ChangeLog 742 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057
  1. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Defined FD_SETSIZE 1024 for MinGW32.
  3. * src/a2netcompat.h
  4. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Fixed compile error on the system which lacks poll()
  6. * src/DownloadEngineFactory.cc
  7. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. In SocketCore::isReadable()/isWritable(), use poll() if it is
  9. available otherwise use select(). Removed epoll/port from there
  10. because poll() does the good enough job for single socket event
  11. notification.
  12. * src/SocketCore.cc
  13. * src/SocketCore.h
  14. * src/main.cc
  15. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Added kqueue support. We use poll() for
  17. SocketCore::isReadable()/isWritable() when kqueue is used.
  18. * configure.ac
  19. * src/DownloadEngineFactory.cc
  20. * src/KqueueEventPoll.cc
  21. * src/KqueueEventPoll.h
  22. * src/Makefile.am
  23. * src/Makefile.in
  24. * src/OptionHandlerFactory.cc
  25. * src/main.cc
  26. * src/prefs.cc
  27. * src/prefs.h
  28. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Added missing timespec.h to SRCS
  30. * src/Makefile.am
  31. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Fixed the bug that aria2.unpause fails with -s1.
  33. * src/FileEntry.cc
  34. * src/XmlRpcMethodImpl.cc
  35. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Added missing #ifdef HAVE_PORT_ASSOCIATE
  37. * src/DownloadEngineFactory.cc
  38. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Added opensolaris port_associate() support.
  40. * src/DownloadEngineFactory.cc
  41. * src/Makefile.am
  42. * src/OptionHandlerFactory.cc
  43. * src/PortEventPoll.cc
  44. * src/PortEventPoll.h
  45. * src/SocketCore.cc
  46. * src/SocketCore.h
  47. * src/configure.ac
  48. * src/main.cc
  49. * src/prefs.cc
  50. * src/prefs.h
  51. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Fixed the bug that _e is passed where e should be passed.
  53. * src/HttpListenCommand.cc
  54. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Increased _epEvents size if necessary.
  56. * src/EpollEventPoll.cc
  57. * src/EpollEventPoll.h
  58. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Removed EventRType template parameter
  60. * src/EpollEventPoll.cc
  61. * src/EpollEventPoll.h
  62. * src/Event.h
  63. * src/PollEventPoll.cc
  64. * src/PollEventPoll.h
  65. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Use Event in EpollEventPoll
  67. * src/EpollEventPoll.cc
  68. * src/EpollEventPoll.h
  69. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  71. AsyncNameResolverEntry class.
  72. * src/Event.h
  73. * src/Makefile.am
  74. * src/PollEventPoll.cc
  75. * src/PollEventPoll.h
  76. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Supported poll() for socket event notification. --event-poll can
  78. take value "poll". Fixed the bug that timeout for
  79. SocketCore::isReadable()/isWritable() is ignored when epoll is
  80. used.
  81. * src/OptionHandlerFactory.cc
  82. * src/a2io.h
  83. * src/prefs.h
  84. * src/SocketCore.h
  85. * src/Makefile.am
  86. * src/main.cc
  87. * src/PollEventPoll.h
  88. * src/SocketCore.cc
  89. * src/DownloadEngineFactory.cc
  90. * src/PollEventPoll.cc
  91. * src/prefs.cc
  92. * configure.ac
  93. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Reverted previous change to DownloadCommand.cc with additional
  95. commentary.
  96. * src/DownloadCommand.cc
  97. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Fixed compile error with openssl 1.1.0 and mingw32.
  99. * src/AsyncNameResolver.cc
  100. * src/LogFactory.cc
  101. * src/Logger.cc
  102. * src/Logger.h
  103. * src/SocketCore.cc
  104. * src/SocketCore.h
  105. * src/a2netcompat.h
  106. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Release 1.9.1
  108. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Bump up version number to 1.9.0
  110. * doc/aria2c.1.txt
  111. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  113. translation. Thanks to all translators.
  114. * po/de.po
  115. * po/el.po
  116. * po/ru.po
  117. * po/uk.po
  118. * po/zh_CN.po
  119. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  121. needs -lnsl for inet_aton.
  122. * configure.ac
  123. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Updated po templates.
  125. * po/aria2.pot
  126. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  128. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  129. method to aria2rpc
  130. * doc/xmlrpc/aria2rpc
  131. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Use elapsed time between two mach_absolute_time() calls.
  133. Fixed compile error in Mac OS X.
  134. * src/clock_gettime_osx.cc
  135. * src/timespec.h
  136. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  138. * configure.ac
  139. * src/Makefile.am
  140. * src/a2time.h
  141. * src/clock_gettime_osx.cc
  142. * src/clock_gettime_osx.h
  143. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Implemented clock_gettime() using timeGetTime in mingw.
  145. * configure.ac
  146. * src/Makefile.am
  147. * src/a2time.h
  148. * src/clock_gettime_mingw.cc
  149. * src/clock_gettime_mingw.h
  150. * src/timespec.h
  151. * test/Makefile.am
  152. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Ensure that std::ofstream is destroyed before renaming.
  154. * src/SessionSerializer.cc
  155. * src/util.cc
  156. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Fixed the bug that user specified path is escaped using
  158. util::escapePath() where it should not.
  159. * src/DownloadContext.cc
  160. * src/DownloadContext.h
  161. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Hold reference to PieceStorage when paused in order to provide
  163. progress information via XML-RPC.
  164. * src/RequestGroup.cc
  165. * src/RequestGroup.h
  166. * src/RequestGroupMan.cc
  167. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Defined struct timespec if it is not available.
  169. * src/a2time.h
  170. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Added missing serialize_session.meta4 to EXTRA_DIST
  172. * test/Makefile.am
  173. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Fixed compile error without BitTorrent support.
  175. * src/Metalink2RequestGroup.cc
  176. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Fixed compile error on Mac OS X
  178. * src/TimerA2.h
  179. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Added warning for the system which lacks clock_gettime with
  181. CLOCK_MONOTONIC.
  182. * src/MultiUrlRequestInfo.cc
  183. * src/TimerA2.cc
  184. * src/TimerA2.h
  185. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Removed redundant method call for DownloadEngine.
  187. * src/DownloadCommand.cc
  188. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Fixed the bug that hash check hangs when aria2.pause is issued
  190. while aria2 is checking piece hashes. Fixed the bug that the
  191. download is paused after file allocation completion even if
  192. aria2.pause is issued during file allocation.
  193. * src/CheckIntegrityCommand.cc
  194. * src/FileAllocationCommand.cc
  195. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Added nsl to search-libs for getaddrinfo on opensolaris
  197. * configure.ac
  198. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed compile error on opensolaris
  200. * configure.ac
  201. * src/Logger.h
  202. * src/GZipEncoder.h
  203. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  205. XML-RPC method.
  206. * doc/aria2c.1.txt
  207. * src/XmlRpcMethodFactory.cc
  208. * src/XmlRpcMethodImpl.cc
  209. * src/XmlRpcMethodImpl.h
  210. * test/XmlRpcMethodTest.cc
  211. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Added aria2.forcePause XML-RPC command.
  213. * src/XmlRpcMethodFactory.cc
  214. * src/XmlRpcMethodImpl.cc
  215. * src/XmlRpcMethodImpl.h
  216. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Use global::wallclock
  218. * src/DHTBucket.cc
  219. * src/DHTMessageTrackerEntry.cc
  220. * src/DHTMessageTrackerEntry.h
  221. * src/DefaultBtInteractive.cc
  222. * src/Peer.cc
  223. * src/PeerAbstractCommand.cc
  224. * src/PeerStat.h
  225. * src/RequestSlot.h
  226. * src/TimeBasedCommand.cc
  227. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  229. usable to prevent from aria2 from being affected by system time
  230. change.
  231. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  233. pauses the download denoted by gid. gid is of type string. The
  234. status of paused download becomes "paused" and the download is
  235. placed on the first position of waiting queue. As long as the
  236. status is "paused", the download is not started. To change status
  237. to "waiting", use aria2.unpause method. This method returns GID of
  238. paused download. aria2.unpause changes the status of the download
  239. denoted by gid from "paused" to "waiting". This makes the download
  240. eligible to restart. gid is of type string. This method returns
  241. GID of unpaused download.
  242. * doc/aria2c.1.txt
  243. * src/DownloadContext.cc
  244. * src/FileEntry.cc
  245. * src/OptionHandlerFactory.cc
  246. * src/RequestGroup.cc
  247. * src/RequestGroup.h
  248. * src/RequestGroupMan.cc
  249. * src/XmlRpcMethodFactory.cc
  250. * src/XmlRpcMethodImpl.cc
  251. * src/XmlRpcMethodImpl.h
  252. * src/prefs.cc
  253. * src/prefs.h
  254. * src/usage_text.h
  255. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Added --save-session=FILE option. This option saves
  257. error/unfinished downloads to FILE on exit. You can pass this
  258. output file to aria2c with -i option on restart. Please note that
  259. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  260. method are not saved.
  261. * src/BtPostDownloadHandler.cc
  262. * src/DownloadResult.h
  263. * src/Makefile.am
  264. * src/MetadataInfo.cc
  265. * src/MetadataInfo.h
  266. * src/Metalink2RequestGroup.cc
  267. * src/MetalinkPostDownloadHandler.cc
  268. * src/MultiUrlRequestInfo.cc
  269. * src/OptionHandlerFactory.cc
  270. * src/RequestGroup.cc
  271. * src/RequestGroup.h
  272. * src/SessionSerializer.cc
  273. * src/SessionSerializer.h
  274. * src/UTMetadataPostDownloadHandler.cc
  275. * src/download_helper.cc
  276. * src/download_helper.h
  277. * src/prefs.cc
  278. * src/prefs.h
  279. * src/usage_text.h
  280. * test/Makefile.am
  281. * test/SessionSerializerTest.cc
  282. * test/XmlRpcMethodTest.cc
  283. * test/serialize_session.meta4
  284. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Fixed the bug that FTP data connection is not established via
  286. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  287. --proxy-method=tunnel.
  288. * src/AbstractCommand.cc
  289. * src/AbstractCommand.h
  290. * src/FtpNegotiationCommand.cc
  291. * src/FtpNegotiationCommand.h
  292. * src/InitiateConnectionCommand.cc
  293. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Updated po templates.
  295. * po/aria2.pot
  296. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Bump up version number to 1.9.1
  298. * configure.ac
  299. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added shutdown and forceShutdown to aria2rpc
  301. * doc/xmlrpc/aria2rpc
  302. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Changed error message.
  304. * src/XmlRpcMethod.cc
  305. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  307. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  308. list options.
  309. * doc/aria2c.1.txt
  310. * doc/xmlrpc/aria2rpc
  311. * src/download_helper.cc
  312. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Fixed the bug that web-seed URI is not percent-encoded.
  314. * src/a2functional.h
  315. * src/bittorrent_helper.cc
  316. * test/BittorrentHelperTest.cc
  317. * test/url-list-multiFile.torrent
  318. * test/url-list-singleFileEndsWithSlash.torrent
  319. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  321. These methods, as their name implies, shutdown aria2. These
  322. methods are useful for Windows because it lacks signal mechanism.
  323. * doc/aria2c.1.txt
  324. * src/TimedHaltCommand.cc
  325. * src/XmlRpcMethodFactory.cc
  326. * src/XmlRpcMethodImpl.cc
  327. * src/XmlRpcMethodImpl.h
  328. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Added forceHalt argument to TimedHaltCommand.
  330. Added requestForceHalt() to DownloadEngine.
  331. * src/DownloadEngine.cc
  332. * src/DownloadEngine.h
  333. * src/TimedHaltCommand.cc
  334. * src/TimedHaltCommand.h
  335. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Possible fix for chunked encoding with Content-Length.
  337. * src/HttpResponseCommand.cc
  338. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Don't send "Accept: default, gzip" by default. This is because
  340. some server responds with "Content-Encoding: gzip" for files which
  341. itself is gzipped file and aria2 inflates them. This is a problem
  342. if user don't want to inflate the file. Apparently this is server
  343. configuration error, but I cannot do anything about this. So turn
  344. this off. Added --http-accept-gzip option. If true is given to
  345. this option, aria2 sends 'Accept: deflate, gzip' request header
  346. and inflates response if remote server responds with
  347. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  348. indicates we removed extension tgz hack in order not to inflate
  349. files with tgz extensions.
  350. * doc/aria2c.1.txt
  351. * src/HttpRequest.cc
  352. * src/HttpRequest.h
  353. * src/HttpRequestCommand.cc
  354. * src/HttpResponseCommand.cc
  355. * src/OptionHandlerFactory.cc
  356. * src/prefs.cc
  357. * src/prefs.h
  358. * src/usage_text.h
  359. * test/HttpRequestTest.cc
  360. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Made aria2 not send
  362. "application/metalink4+xml,application/metalink+xml" in Accept
  363. header for web-seeding URIs and tracker request.
  364. * src/Metalink2RequestGroup.cc
  365. * src/TrackerWatcherCommand.cc
  366. * src/download_helper.cc
  367. * src/util.cc
  368. * src/util.h
  369. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Added download_helper.{cc,h} to SRCS
  371. * src/Makefile.am
  372. * test/Makefile.am
  373. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Added --dht-message-timeout option.
  375. * doc/aria2c.1.txt
  376. * src/DHTConstants.h
  377. * src/DHTMessageDispatcherImpl.cc
  378. * src/DHTMessageDispatcherImpl.h
  379. * src/DHTMessageTracker.cc
  380. * src/DHTMessageTracker.h
  381. * src/DHTReplaceNodeTask.h
  382. * src/DHTSetup.cc
  383. * src/DHTTaskFactoryImpl.cc
  384. * src/DHTTaskFactoryImpl.h
  385. * src/OptionHandlerFactory.cc
  386. * src/prefs.cc
  387. * src/prefs.h
  388. * src/usage_text.h
  389. * test/DHTMessageTrackerTest.cc
  390. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  392. option.
  393. * doc/aria2c.1.txt
  394. * src/OptionHandlerFactory.cc
  395. * src/TrackerWatcherCommand.cc
  396. * src/prefs.cc
  397. * src/prefs.h
  398. * src/usage_text.h
  399. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Documented that specifying --seed-time=0 disables seeding after
  401. download completed.
  402. * doc/aria2c.1.txt
  403. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Code cleanup
  405. * src/BtSetup.cc
  406. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Drop connection if same Peer ID has been already seen.
  408. * src/DefaultBtInteractive.cc
  409. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Fixed the bug that waiting download unintentionally starts when
  411. URIs are added to it using aria2.changeUri XML-RPC method. This
  412. also fixes the bug that causes segmentation fault when adding URIs
  413. to waiting download, which is a regression introduced by the
  414. previous change made to src/XmlRpcMethodImpl.cc
  415. * src/XmlRpcMethodImpl.cc
  416. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Fixed compile error with g++-4.4 on FreeBSD.
  418. * src/util.h
  419. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  421. is not used immediately if there is no URIs remaining before
  422. calling aria2.changeUri and the number of connection is less than
  423. the value in -s(or -C for Metalink downloads).
  424. * src/XmlRpcMethodImpl.cc
  425. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Documented --always-resume and --max-resume-failure-tries option
  427. and exit status 8 in man page. Fixed typo.
  428. * doc/aria2c.1.txt
  429. * src/OptionHandlerFactory.cc
  430. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Added --always-resume and --max-resume-failure-tries option. If
  432. --always-resume=false is given, when all given URIs does not
  433. support resume or aria2 encounters N URIs which does not support
  434. resume
  435. (N is the value specified using --max-resume-failure-tries
  436. option), aria2 download file from scratch. The default behavior
  437. is --always-resume=true, which means if all URIs do not support
  438. resume, download fails. I think this is OK because user normally
  439. don't like to see that partially downloaded file is
  440. overwritten(this is particularly true if file size is big). This
  441. option is useful when aria2 is used as download backend and
  442. graceful falling back to overwritten behavior is preferable.
  443. Added exit status value 8, which means download failed because
  444. server did not support resume.
  445. * src/AbstractCommand.cc
  446. * src/DefaultPieceStorage.cc
  447. * src/DownloadCommand.cc
  448. * src/DownloadResultCode.h
  449. * src/FileEntry.h
  450. * src/FtpNegotiationCommand.cc
  451. * src/HttpResponse.cc
  452. * src/HttpResponseCommand.cc
  453. * src/OptionHandlerFactory.cc
  454. * src/RequestGroup.cc
  455. * src/RequestGroup.h
  456. * src/SegmentMan.cc
  457. * src/SegmentMan.h
  458. * src/prefs.cc
  459. * src/prefs.h
  460. * src/usage_text.h
  461. * test/DefaultPieceStorageTest.cc
  462. * test/SegmentManTest.cc
  463. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Added --remove-control-file option to -i list options.
  465. * doc/aria2c.1.txt
  466. * doc/xmlrpc/aria2rpc
  467. * src/download_helper.cc
  468. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Added --remove-control-file option. This option removes control
  470. file(*.aria2 file) before download. Using with
  471. --allow-overwrite=true, download always starts from scratch. This
  472. will be useful for users behind proxy server which disables
  473. resume. For such proxy user, -C1 is also recommended for Metalink
  474. downloads to avoid establishing unnecessary connections.
  475. * doc/aria2c.1.txt
  476. * src/OptionHandlerFactory.cc
  477. * src/RequestGroup.cc
  478. * src/prefs.cc
  479. * src/prefs.h
  480. * src/usage_text.h
  481. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  483. size of array at compile time.
  484. * src/array_fun.h
  485. * test/BitfieldManTest.cc
  486. * test/BtPortMessageTest.cc
  487. * test/DHTRoutingTableDeserializerTest.cc
  488. * test/DHTRoutingTableSerializerTest.cc
  489. * test/DownloadHelperTest.cc
  490. * test/LongestSequencePieceSelectorTest.cc
  491. * test/MultiDiskAdaptorTest.cc
  492. * test/OptionParserTest.cc
  493. * test/PriorityPieceSelectorTest.cc
  494. * test/array_funTest.cc
  495. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Added vbegin() and vend() for fixed sized array.
  497. * src/DownloadHandlerConstants.cc
  498. * src/FeatureConfig.cc
  499. * src/OptionHandlerFactory.cc
  500. * src/ServerStat.cc
  501. * src/TimeA2.cc
  502. * src/XmlRpcMethod.cc
  503. * src/array_fun.h
  504. * src/download_helper.cc
  505. * src/messageDigest.cc
  506. * src/util.cc
  507. * test/BittorrentHelperTest.cc
  508. * test/DHTRoutingTableDeserializerTest.cc
  509. * test/DHTRoutingTableSerializerTest.cc
  510. * test/DefaultBtAnnounceTest.cc
  511. * test/DefaultBtProgressInfoFileTest.cc
  512. * test/DownloadContextTest.cc
  513. * test/DownloadHelperTest.cc
  514. * test/FeatureConfigTest.cc
  515. * test/FeedbackURISelectorTest.cc
  516. * test/HttpRequestTest.cc
  517. * test/InOrderURISelectorTest.cc
  518. * test/MSEHandshakeTest.cc
  519. * test/MultiDiskAdaptorTest.cc
  520. * test/MultiFileAllocationIteratorTest.cc
  521. * test/PriorityPieceSelectorTest.cc
  522. * test/RequestGroupManTest.cc
  523. * test/UtilTest.cc
  524. * test/XmlRpcMethodTest.cc
  525. * test/a2algoTest.cc
  526. * test/array_funTest.cc
  527. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Simplified code using lastByteMask
  529. * src/BitfieldMan.cc
  530. * src/PieceStatMan.cc
  531. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Rewritten lastByteMask
  533. * src/bitfield.h
  534. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Redefined the maximum length of buffer used for HTTP header.
  536. * src/HttpHeaderProcessor.cc
  537. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Code cleanup
  539. * src/SleepCommand.cc
  540. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Do exact match if IP address is specified in --no-proxy.
  542. * src/AbstractCommand.cc
  543. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Fixed the bug that socket is added to EventPoll object twice. This
  545. is because derived class FtpFinishDownloadCommand adds socket to
  546. EventPoll object while base class AbstractCommand does that
  547. already.
  548. * src/FtpFinishDownloadCommand.cc
  549. * src/FtpFinishDownloadCommand.h
  550. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Defined gid_t as int64_t.
  552. * src/BtDependency.cc
  553. * src/BtStopDownloadCommand.cc
  554. * src/FtpNegotiationCommand.cc
  555. * src/HttpResponseCommand.cc
  556. * src/RequestGroup.cc
  557. * src/RequestGroup.h
  558. * src/RequestGroupMan.cc
  559. * src/TrackerWatcherCommand.cc
  560. * src/XmlRpcMethodImpl.cc
  561. * src/message.h
  562. * test/XmlRpcMethodTest.cc
  563. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  565. translatable texts because it is used in log and debugging
  566. purpose.
  567. * src/AbstractCommand.cc
  568. * src/ActivePeerConnectionCommand.cc
  569. * src/BtPieceMessage.cc
  570. * src/CUIDCounter.h
  571. * src/CheckIntegrityCommand.cc
  572. * src/CheckIntegrityDispatcherCommand.cc
  573. * src/Command.h
  574. * src/CreateRequestCommand.cc
  575. * src/DHTEntryPointNameResolveCommand.cc
  576. * src/DefaultBtInteractive.cc
  577. * src/DefaultBtMessageDispatcher.cc
  578. * src/DownloadCommand.cc
  579. * src/FileAllocationCommand.cc
  580. * src/FileAllocationDispatcherCommand.cc
  581. * src/FtpConnection.cc
  582. * src/FtpInitiateConnectionCommand.cc
  583. * src/FtpNegotiationCommand.cc
  584. * src/HttpConnection.cc
  585. * src/HttpInitiateConnectionCommand.cc
  586. * src/HttpListenCommand.cc
  587. * src/HttpResponse.cc
  588. * src/HttpServerBodyCommand.cc
  589. * src/HttpServerCommand.cc
  590. * src/HttpServerResponseCommand.cc
  591. * src/InitiateConnectionCommand.cc
  592. * src/InitiatorMSEHandshakeCommand.cc
  593. * src/MSEHandshake.cc
  594. * src/PeerAbstractCommand.cc
  595. * src/PeerConnection.cc
  596. * src/PeerInitiateConnectionCommand.cc
  597. * src/PeerInteractionCommand.cc
  598. * src/PeerListenCommand.cc
  599. * src/PeerReceiveHandshakeCommand.cc
  600. * src/SegmentMan.cc
  601. * src/SimpleBtMessage.cc
  602. * src/TrackerWatcherCommand.cc
  603. * src/message.h
  604. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Use gid_t type for gid.
  606. * src/BtRegistry.cc
  607. * src/BtRegistry.h
  608. * src/DownloadResult.h
  609. * src/RequestGroup.cc
  610. * src/RequestGroup.h
  611. * src/RequestGroupMan.cc
  612. * src/RequestGroupMan.h
  613. * src/XmlRpcMethodImpl.cc
  614. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Use cuid_t type for cuid.
  616. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Added v key in DHT message. aria2's DHT version is independent of
  618. the package version and we defined it as 1 at the moment. It is
  619. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  620. scheme is "A2"+2bytes DHT version number in network byte order.
  621. * src/DHTAbstractMessage.cc
  622. * src/DHTConstants.h
  623. * src/DHTMessage.cc
  624. * src/DHTMessage.h
  625. * src/DHTMessageFactoryImpl.cc
  626. * src/DHTQueryMessage.cc
  627. * src/DHTResponseMessage.cc
  628. * src/util.h
  629. * test/DHTAnnouncePeerMessageTest.cc
  630. * test/DHTAnnouncePeerReplyMessageTest.cc
  631. * test/DHTFindNodeMessageTest.cc
  632. * test/DHTFindNodeReplyMessageTest.cc
  633. * test/DHTGetPeersMessageTest.cc
  634. * test/DHTGetPeersReplyMessageTest.cc
  635. * test/DHTPingMessageTest.cc
  636. * test/DHTPingReplyMessageTest.cc
  637. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  639. method response is integer, while manual says it is string. When
  640. peer's port is not listening port, set '0' to port in
  641. aria2.getPeers response.
  642. * src/XmlRpcMethodImpl.cc
  643. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Lines starting "#" in -i list are treated as comments.
  645. Example:
  646. # this is comment
  647. http://example.org/file
  648. http://example.org/file2
  649. dir=/tmp
  650. # another comment
  651. out=myfile
  652. * doc/aria2c.1.txt
  653. * src/UriListParser.cc
  654. * test/filelist1.txt
  655. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Accept IPv4 network address with CIDR block in --no-proxy option
  657. and no_proxy environment variable. Current implementation does
  658. not resolve hostname in URI to compare network address. So it is
  659. only effecive if URI has numeric IP addresses.
  660. * doc/aria2c.1.txt
  661. * src/AbstractCommand.cc
  662. * src/OptionHandlerFactory.cc
  663. * src/bitfield.h
  664. * src/usage_text.h
  665. * src/util.cc
  666. * src/util.h
  667. * test/UtilTest.cc
  668. * test/bitfieldTest.cc
  669. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Reduced interval for metadatagetmode to quickly gather metadata.
  671. * src/BtSetup.cc
  672. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Release 1.9.0
  674. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Updated po templates.
  676. * po/aria2.pot
  677. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Updated doc.
  679. * doc/aria2c.1.txt
  680. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Documented about Metalink4 and LPD in README
  682. * RADME
  683. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Few adjustment for timeouts in DHT. DHT message timeout is changed
  685. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  686. it adds another 5 seconds in each retry.
  687. * src/DHTConstants.h
  688. * src/DHTGetPeersCommand.cc
  689. * src/DHTGetPeersCommand.h
  690. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Changed log level from error to info for DHT message send error.
  692. * src/DHTMessageDispatcherImpl.cc
  693. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Inspect all xt in magnet to find urn:btih.
  695. * src/bittorrent_helper.cc
  696. * test/BittorrentHelperTest.cc
  697. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Use global option for DHTSetup.
  699. * src/DHTSetup.cc
  700. * src/DHTSetup.h
  701. * src/RequestGroup.cc
  702. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Added bt-enable-lpt, reuse-uri
  704. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  705. options.
  706. * doc/aria2c.1.txt
  707. * doc/xmlrpc/aria2rpc
  708. * src/download_helper.cc
  709. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  711. * src/BtSetup.cc
  712. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Resurrected --http-proxy-user and --http-proxy-passwd option.
  714. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  715. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  716. * doc/aria2c.1.txt
  717. * src/OptionHandlerFactory.cc
  718. * src/OptionHandlerImpl.h
  719. * src/prefs.cc
  720. * src/prefs.h
  721. * src/usage_text.h
  722. * test/OptionHandlerTest.cc
  723. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Updated Russian and Simplified Chinese translation. Thanks to all
  725. translators.
  726. * po/ru.po
  727. * po/zh_CN.po
  728. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Updated po templates.
  730. * po/aria2.pot
  731. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. For LPD sockets, bind IN_ADDRANY because binding multicast address
  733. fails under Windows.
  734. * src/LpdMessageReceiver.cc
  735. * test/LpdMessageDispatcherTest.cc
  736. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Fixed the bug that error message is not propagated to Exception.
  738. * src/SocketCore.cc
  739. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Documented --bt-lpd-interface option in man page.
  741. * doc/aria2c.1.txt
  742. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Bump up version number to 1.9.0
  744. * configure.ac
  745. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Fixed the bug that FillRequestGroupCommand is not invoked when
  747. RequestGroupMan::createInitialCommand() creates no Command object.
  748. * src/FillRequestGroupCommand.cc
  749. * src/RequestGroupMan.cc
  750. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Added debug logs.
  752. * src/FileEntry.cc
  753. * src/SegmentMan.cc
  754. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Fixed unit test error with mingw32 build.
  756. * test/LpdMessageReceiverTest.cc
  757. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Updated automake-1.11.1
  759. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Fixed compile error and unit test error without openssl and
  761. gnutls.
  762. * src/MetalinkParserController.cc
  763. * test/MetalinkProcessorTest.cc
  764. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Fixed unitest fails if openssl doesn't support sha-256.
  766. * src/MetalinkParserStateV4Impl.cc
  767. * test/MetalinkProcessorTest.cc
  768. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Wait until message arrives(again)
  770. * test/LpdMessageReceiverTest.cc
  771. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Added missing wallclock.h to SRCS.
  773. * src/Makefile.am
  774. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Fixed compile error with --disable-bittorrent
  776. * test/Metalink2RequestGroupTest.cc
  777. * test/MetalinkParserControllerTest.cc
  778. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Added --reuse-uri option. This option has existed quite long, but
  780. been hidden.
  781. * doc/aria2c.1.txt
  782. * src/OptionHandlerFactory.cc
  783. * src/usage_text.h
  784. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Ignore filename parameter if it contains directory traversal
  786. directives.
  787. * src/util.cc
  788. * test/UtilTest.cc
  789. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. urldecode -> percentDecode
  791. * src/FtpConnection.cc
  792. * src/FtpNegotiationCommand.cc
  793. * src/HttpResponse.cc
  794. * src/Request.cc
  795. * src/magnet.cc
  796. * src/util.cc
  797. * src/util.h
  798. * test/UtilTest.cc
  799. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. urlencode -> percentEncode,
  801. torrentUrlencode -> torrentPercentEncode
  802. * src/BtHandshakeMessage.cc
  803. * src/BtHandshakeMessageValidator.h
  804. * src/DHTMessageFactoryImpl.cc
  805. * src/DefaultBtAnnounce.cc
  806. * src/HandshakeExtensionMessage.cc
  807. * src/HttpRequest.cc
  808. * src/XmlRpcMethodImpl.cc
  809. * src/bittorrent_helper.cc
  810. * src/util.cc
  811. * src/util.h
  812. * test/DHTAnnouncePeerMessageTest.cc
  813. * test/DHTGetPeersMessageTest.cc
  814. * test/DHTGetPeersReplyMessageTest.cc
  815. * test/UTPexExtensionMessageTest.cc
  816. * test/UtilTest.cc
  817. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed the bug that filename is percent encoded where it must be
  819. percent decoded in sendMdtm().
  820. * src/FtpConnection.cc
  821. * test/FtpConnectionTest.cc
  822. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. url -> uri in Request class.
  824. * src/AbstractCommand.cc
  825. * src/AdaptiveURISelector.cc
  826. * src/DefaultBtAnnounce.cc
  827. * src/FeedbackURISelector.cc
  828. * src/FileEntry.cc
  829. * src/FileEntry.h
  830. * src/HttpRequest.h
  831. * src/HttpResponse.cc
  832. * src/InitiateConnectionCommandFactory.cc
  833. * src/Metalink2RequestGroup.cc
  834. * src/OptionHandlerImpl.h
  835. * src/ProtocolDetector.cc
  836. * src/Request.cc
  837. * src/Request.h
  838. * src/XmlRpcMethodImpl.cc
  839. * test/AuthConfigFactoryTest.cc
  840. * test/FtpConnectionTest.cc
  841. * test/HttpRequestTest.cc
  842. * test/HttpResponseTest.cc
  843. * test/RequestTest.cc
  844. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Added getServers XML-RPC method.
  846. * doc/aria2c.1.txt
  847. * src/FileEntry.h
  848. * src/XmlRpcMethodFactory.cc
  849. * src/XmlRpcMethodImpl.cc
  850. * src/XmlRpcMethodImpl.h
  851. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Pool request when download finished.
  853. * src/DownloadCommand.cc
  854. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  856. 1-based.
  857. * doc/aria2c.1.txt
  858. * src/XmlRpcMethodImpl.cc
  859. * test/XmlRpcMethodTest.cc
  860. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Call RequestGroupMan::requestQueueCheck() when
  862. max-concurrent-downloads option is changed or new downloads are
  863. added/inserted into reserved list.
  864. * src/RequestGroupMan.cc
  865. * src/XmlRpcMethodImpl.cc
  866. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Added aria2.forceRemove XML-RPC method.
  868. * doc/aria2c.1.txt
  869. * src/XmlRpcMethodFactory.cc
  870. * src/XmlRpcMethodImpl.cc
  871. * src/XmlRpcMethodImpl.h
  872. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Added debug log.
  874. * src/AbstractCommand.cc
  875. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Create CreateRequestCommand to the number of -s/-C when URIs are
  877. added by XML-RPC.
  878. * src/RequestGroup.cc
  879. * src/RequestGroup.h
  880. * src/XmlRpcMethodImpl.cc
  881. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Added 'status' key to the response of getUri XML-RPC method.
  883. * doc/aria2c.1.txt
  884. * src/XmlRpcMethodImpl.cc
  885. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Replaced Time::reset() call with assigning of global::wallclock.
  887. * src/BtLeecherStateChoke.cc
  888. * src/BtSeederStateChoke.cc
  889. * src/PeerSessionResource.cc
  890. * src/RequestSlot.cc
  891. * src/ServerStat.cc
  892. * src/SpeedCalc.cc
  893. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Added changeUri XML-RPC method. This method removes/adds URIs
  895. dynamically.
  896. * doc/aria2c.1.txt
  897. * src/AbstractCommand.cc
  898. * src/DownloadContext.cc
  899. * src/DownloadContext.h
  900. * src/FileEntry.cc
  901. * src/FileEntry.h
  902. * src/Request.cc
  903. * src/Request.h
  904. * src/RequestGroup.cc
  905. * src/RequestGroupMan.cc
  906. * src/XmlRpcMethodFactory.cc
  907. * src/XmlRpcMethodImpl.cc
  908. * src/XmlRpcMethodImpl.h
  909. * test/FileEntryTest.cc
  910. * test/XmlRpcMethodTest.cc
  911. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Rewritten copy ctor of RequestSlot to use initialization list.
  913. * src/RequestSlot.h
  914. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Added Time global::wallclock to cache "current time" to reduce the
  916. call gettimeofday(). Global variables are now in namespace global.
  917. * src/AbstractCommand.cc
  918. * src/ActivePeerConnectionCommand.cc
  919. * src/AdaptiveURISelector.cc
  920. * src/BtLeecherStateChoke.cc
  921. * src/BtLeecherStateChoke.h
  922. * src/BtSeederStateChoke.cc
  923. * src/BtSeederStateChoke.h
  924. * src/BtStopDownloadCommand.cc
  925. * src/ConsoleStatCalc.cc
  926. * src/DHTBucket.cc
  927. * src/DHTGetPeersCommand.cc
  928. * src/DHTMessageTrackerEntry.cc
  929. * src/DHTNode.cc
  930. * src/DHTPeerAnnounceEntry.cc
  931. * src/DHTPeerAnnounceStorage.cc
  932. * src/DHTSetup.cc
  933. * src/DefaultBtAnnounce.cc
  934. * src/DefaultBtInteractive.cc
  935. * src/DefaultBtMessageDispatcher.cc
  936. * src/DefaultPeerStorage.cc
  937. * src/DefaultPieceStorage.cc
  938. * src/DownloadCommand.cc
  939. * src/DownloadEngine.cc
  940. * src/FileEntry.cc
  941. * src/HttpServerBodyCommand.cc
  942. * src/HttpServerCommand.cc
  943. * src/HttpServerResponseCommand.cc
  944. * src/LpdMessageDispatcher.cc
  945. * src/MultiUrlRequestInfo.cc
  946. * src/Peer.cc
  947. * src/Peer.h
  948. * src/PeerAbstractCommand.cc
  949. * src/PeerStat.h
  950. * src/RequestSlot.cc
  951. * src/RequestSlot.h
  952. * src/SegmentMan.cc
  953. * src/ServerStatMan.cc
  954. * src/SleepCommand.cc
  955. * src/SpeedCalc.cc
  956. * src/SpeedCalc.h
  957. * src/TimeA2.cc
  958. * src/TimeA2.h
  959. * src/TimeBasedCommand.cc
  960. * src/TimeSeedCriteria.h
  961. * src/UTMetadataRequestTracker.h
  962. * src/UTPexExtensionMessage.cc
  963. * src/wallclock.h
  964. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Fixed the bug that util::itos(INT64_MIN) fails.
  966. * src/util.cc
  967. * src/util.h
  968. * test/UtilTest.cc
  969. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Fixed memory leak in SocketBuffer when _bufq is not empty when
  971. SocketBuffer is deleted. Added BufEntry constructor and deleted
  972. static factory functions.
  973. * src/SocketBuffer.cc
  974. * src/SocketBuffer.h
  975. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  977. queue maintenance is requested by RequestGroup to avoid to call
  978. the function unnecessarily.
  979. * src/FillRequestGroupCommand.cc
  980. * src/RequestGroup.cc
  981. * src/RequestGroup.h
  982. * src/RequestGroupMan.cc
  983. * src/RequestGroupMan.h
  984. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Don't use hash for Peer::id. Simple concatenation of ip address
  986. and port is enough.
  987. * src/Peer.cc
  988. * test/PeerTest.cc
  989. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Enclosed log of DHTMessage::toString() with Logger::info().
  991. * src/DHTMessageDispatcherImpl.cc
  992. * src/DHTMessageReceiver.cc
  993. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Rewritten util::toHex().
  995. * src/util.cc
  996. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Removed SocketBuffer::feedAndSend(). Renamed
  998. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  999. * src/FtpConnection.cc
  1000. * src/HttpConnection.cc
  1001. * src/HttpServer.cc
  1002. * src/MSEHandshake.cc
  1003. * src/PeerConnection.cc
  1004. * src/SocketBuffer.cc
  1005. * src/SocketBuffer.h
  1006. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Removed unused PeerConnection::sendMessage(). Updated doc.
  1008. * src/PeerConnection.cc
  1009. * src/PeerConnection.h
  1010. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Reduced copying/std::string instantiation in sending/receiving
  1012. BitTorrent messages.
  1013. * src/BtBitfieldMessage.cc
  1014. * src/BtBitfieldMessage.h
  1015. * src/BtExtendedMessage.cc
  1016. * src/BtExtendedMessage.h
  1017. * src/BtHandshakeMessage.cc
  1018. * src/BtHandshakeMessage.h
  1019. * src/BtKeepAliveMessage.cc
  1020. * src/BtKeepAliveMessage.h
  1021. * src/BtPieceMessage.cc
  1022. * src/BtPieceMessage.h
  1023. * src/BtPortMessage.cc
  1024. * src/BtPortMessage.h
  1025. * src/BtUnchokeMessage.h
  1026. * src/DefaultBtMessageReceiver.cc
  1027. * src/IndexBtMessage.cc
  1028. * src/IndexBtMessage.h
  1029. * src/PeerConnection.cc
  1030. * src/PeerConnection.h
  1031. * src/RangeBtMessage.cc
  1032. * src/RangeBtMessage.h
  1033. * src/SimpleBtMessage.cc
  1034. * src/SimpleBtMessage.h
  1035. * src/SocketBuffer.cc
  1036. * src/SocketBuffer.h
  1037. * src/ZeroBtMessage.cc
  1038. * src/ZeroBtMessage.h
  1039. * test/BtAllowedFastMessageTest.cc
  1040. * test/BtBitfieldMessageTest.cc
  1041. * test/BtCancelMessageTest.cc
  1042. * test/BtChokeMessageTest.cc
  1043. * test/BtExtendedMessageTest.cc
  1044. * test/BtHandshakeMessageTest.cc
  1045. * test/BtHaveAllMessageTest.cc
  1046. * test/BtHaveMessageTest.cc
  1047. * test/BtHaveNoneMessageTest.cc
  1048. * test/BtInterestedMessageTest.cc
  1049. * test/BtKeepAliveMessageTest.cc
  1050. * test/BtNotInterestedMessageTest.cc
  1051. * test/BtPieceMessageTest.cc
  1052. * test/BtPortMessageTest.cc
  1053. * test/BtRejectMessageTest.cc
  1054. * test/BtRequestMessageTest.cc
  1055. * test/BtSuggestPieceMessageTest.cc
  1056. * test/BtUnchokeMessageTest.cc
  1057. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Rewritten SocketBuffer. Old implementation uses single std::string
  1059. to store data and erase sent data, which is costly. New
  1060. implementation uses deque to hold each data to avoid to mutate
  1061. string.
  1062. * src/SocketBuffer.cc
  1063. * src/SocketBuffer.h
  1064. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Removed unused FileEntry::extracted
  1066. * src/FileEntry.cc
  1067. * src/FileEntry.h
  1068. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Wait until data arrives.
  1070. * test/LpdMessageReceiverTest.cc
  1071. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. In Metalink4, if size element contains invalid size, discard whole
  1073. document. Added strict hash value check for metalink3/4.
  1074. * src/MetalinkParserController.cc
  1075. * src/MetalinkParserStateMachine.cc
  1076. * src/MetalinkParserStateMachine.h
  1077. * src/MetalinkParserStateV3Impl.cc
  1078. * src/MetalinkParserStateV4Impl.cc
  1079. * src/util.cc
  1080. * src/util.h
  1081. * test/MetalinkParserControllerTest.cc
  1082. * test/MetalinkProcessorTest.cc
  1083. * test/metalink4.xml
  1084. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Added strict attribute validation for metalink4. When
  1086. specification violation is found, discard the whole document.
  1087. * src/ExpatMetalinkProcessor.cc
  1088. * src/MetalinkParserStateMachine.cc
  1089. * src/MetalinkParserStateMachine.h
  1090. * src/MetalinkParserStateV4Impl.cc
  1091. * src/XML2SAXMetalinkProcessor.cc
  1092. * test/Makefile.am
  1093. * test/MetalinkProcessorTest.cc
  1094. * test/metalink4-attrs.xml: Removed
  1095. * test/metalink4-dirtraversal.xml: Removed
  1096. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Added test for Metaurl transaction.
  1098. * src/MetalinkParserController.cc
  1099. * test/MetalinkParserControllerTest.cc
  1100. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Avoid costly BtMessage::toString() if info level log is not
  1102. required.
  1103. * src/DefaultBtInteractive.cc
  1104. * src/Logger.h
  1105. * src/SimpleBtMessage.cc
  1106. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Reserved vector elements based on profiler results.
  1108. * src/DefaultBtInteractive.cc
  1109. * src/DefaultBtProgressInfoFile.cc
  1110. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Avoid to calculate end() iterator in each loop. std::deque is
  1112. particularly slow. Make sure that recalculate end iterator if
  1113. element is erased during loop.
  1114. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Use vector instead of deque for containers which is used for
  1116. mostly read-only purpose.
  1117. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Fixed typo
  1119. * test/Makefile.am
  1120. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1122. * test/Makefile.am
  1123. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Small optimization: In updateTransferStatFor(), don't search peer
  1125. ID twice.
  1126. * src/DefaultPeerStorage.cc
  1127. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1129. objects.
  1130. * src/Metalink2RequestGroup.cc
  1131. * src/Metalink2RequestGroup.h
  1132. * src/MetalinkEntry.cc
  1133. * src/MetalinkEntry.h
  1134. * src/MetalinkHelper.cc
  1135. * src/MetalinkHelper.h
  1136. * src/Metalinker.cc
  1137. * src/Metalinker.h
  1138. * src/main.cc
  1139. * test/MetalinkEntryTest.cc
  1140. * test/MetalinkHelperTest.cc
  1141. * test/MetalinkProcessorTest.cc
  1142. * test/MetalinkerTest.cc
  1143. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Fixed the bug that grouped FileEntry objects are not used but
  1145. instead all FileEntry objects are used for each metaurl group.
  1146. * src/Metalink2RequestGroup.cc
  1147. * test/Metalink2RequestGroupTest.cc
  1148. * test/metalink4-groupbymetaurl.xml
  1149. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Use vector instead of deque for ChunkChecksum.
  1151. * src/ChunkChecksum.h
  1152. * src/MetalinkParserController.cc
  1153. * src/MetalinkParserController.h
  1154. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1156. algorithm in Metalink properly
  1157. * src/MetalinkParserController.cc
  1158. * src/MetalinkParserController.h
  1159. * src/messageDigest.cc
  1160. * src/messageDigest.h
  1161. * test/MetalinkProcessorTest.cc
  1162. * test/metalink4.xml
  1163. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Replaced null or control characters in file path with '_'. For
  1165. MinGW32 build, additional characters which is not allowed in
  1166. Windows kernel are also replaced. util::detectDirTraversal() now
  1167. returns true if given string contains null or control characters.
  1168. * src/DownloadContext.cc
  1169. * src/DownloadContext.h
  1170. * src/Metalink2RequestGroup.cc
  1171. * src/MetalinkParserController.cc
  1172. * src/bittorrent_helper.cc
  1173. * src/util.cc
  1174. * src/util.h
  1175. * test/UtilTest.cc
  1176. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Discard metalink:file if its name attribute is empty string.
  1178. Removed FileEntry instantiation in
  1179. MetalinkParserController::setFileLengthOfEntry()
  1180. * src/MetalinkParserController.cc
  1181. * src/MetalinkParserStateV3Impl.cc
  1182. * src/MetalinkParserStateV4Impl.cc
  1183. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Discard torrent file if path data in it contains directory
  1185. traversal directives. Discard metalink:file element in Metalink3
  1186. format if its name attribute contains directory traversal
  1187. directives. Ignore name attribute of metalink:signature element
  1188. in Metalink3 format if it contains directory traversal directives.
  1189. * src/MetalinkParserStateV3Impl.cc
  1190. * src/bittorrent_helper.cc
  1191. * src/message.h
  1192. * test/BittorrentHelperTest.cc
  1193. * test/Makefile.am
  1194. * test/MetalinkProcessorTest.cc
  1195. * test/metalink3-dirtraversal.xml
  1196. * test/test.xml
  1197. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Removed useless comment
  1199. * src/MetalinkParserStateV4Impl.cc
  1200. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Supported name attribute of metalink::metaurl element and
  1202. multi-file torrent with Metalink4. Files with same metaurl are
  1203. grouped and downloaded in one RequestGroup.
  1204. * src/BtDependency.cc
  1205. * src/FileEntry.h
  1206. * src/Metalink2RequestGroup.cc
  1207. * src/Metalink2RequestGroup.h
  1208. * src/MetalinkEntry.cc
  1209. * src/MetalinkEntry.h
  1210. * src/MetalinkHelper.cc
  1211. * src/MetalinkHelper.h
  1212. * src/MetalinkMetaurl.cc
  1213. * src/MetalinkMetaurl.h
  1214. * src/MetalinkParserController.cc
  1215. * src/RequestGroup.cc
  1216. * src/RequestGroup.h
  1217. * src/bittorrent_helper.cc
  1218. * test/BittorrentHelperTest.cc
  1219. * test/BtDependencyTest.cc
  1220. * test/MetalinkHelperTest.cc
  1221. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1223. * src/MetalinkMetaurl.h
  1224. * src/MetalinkParserController.cc
  1225. * src/MetalinkParserController.h
  1226. * src/MetalinkParserStateMachine.cc
  1227. * src/MetalinkParserStateMachine.h
  1228. * src/MetalinkParserStateV4Impl.cc
  1229. * test/MetalinkProcessorTest.cc
  1230. * test/metalink4-dirtraversal.xml
  1231. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1233. element.
  1234. * src/Makefile.am
  1235. * src/Metalink2RequestGroup.cc
  1236. * src/MetalinkEntry.cc
  1237. * src/MetalinkEntry.h
  1238. * src/MetalinkMetaurl.cc
  1239. * src/MetalinkMetaurl.h
  1240. * src/MetalinkParserController.cc
  1241. * src/MetalinkParserController.h
  1242. * src/MetalinkParserStateMachine.cc
  1243. * src/MetalinkParserStateMachine.h
  1244. * src/MetalinkParserStateV4Impl.cc
  1245. * src/MetalinkParserStateV4Impl.h
  1246. * test/MetalinkProcessorTest.cc
  1247. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Added Metalink4 support. Currently, name attribute of
  1249. metalink::metaurl is ignored and multi-file torrent cannot be used
  1250. with Metalink4.
  1251. * doc/aria2c.1.txt
  1252. * src/DownloadHandlerConstants.cc
  1253. * src/ExpatMetalinkProcessor.cc
  1254. * src/Makefile.am
  1255. * src/Metalink2RequestGroup.cc
  1256. * src/MetalinkEntry.cc
  1257. * src/MetalinkEntry.h
  1258. * src/MetalinkParserController.cc
  1259. * src/MetalinkParserController.h
  1260. * src/MetalinkParserState.h
  1261. * src/MetalinkParserStateImpl.cc
  1262. * src/MetalinkParserStateImpl.h
  1263. * src/MetalinkParserStateMachine.cc
  1264. * src/MetalinkParserStateMachine.h
  1265. * src/MetalinkParserStateV3Impl.cc
  1266. * src/MetalinkParserStateV3Impl.h
  1267. * src/MetalinkParserStateV4Impl.cc
  1268. * src/MetalinkParserStateV4Impl.h
  1269. * src/MetalinkResource.cc
  1270. * src/MetalinkResource.h
  1271. * src/Metalinker.cc
  1272. * src/RequestGroup.cc
  1273. * src/RequestGroup.h
  1274. * src/XML2SAXMetalinkProcessor.cc
  1275. * src/messageDigest.cc
  1276. * src/util.cc
  1277. * src/util.h
  1278. * test/Makefile.am
  1279. * test/MetalinkEntryTest.cc
  1280. * test/MetalinkParserControllerTest.cc
  1281. * test/MetalinkProcessorTest.cc
  1282. * test/MetalinkerTest.cc
  1283. * test/UtilTest.cc
  1284. * test/metalink4-attrs.xml
  1285. * test/metalink4-dirtraversal.xml
  1286. * test/metalink4.xml
  1287. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Added aiFlags argument to getInterfaceAddress(). Use
  1289. AI_NUMERICHOST to find interface specified using
  1290. --bt-lpd-interface option to avoid time-consuming address lookup.
  1291. * src/BtSetup.cc
  1292. * src/SocketCore.cc
  1293. * src/SocketCore.h
  1294. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1296. is bad in LpdMessageReceiver.
  1297. * src/LpdMessage.h
  1298. * src/LpdMessageReceiver.cc
  1299. * src/LpdMessageReceiver.h
  1300. * src/LpdReceiveMessageCommand.cc
  1301. * test/LpdMessageReceiverTest.cc
  1302. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Added --bt-lpd-interface option to specify the interface to use
  1304. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1305. own socket. LpdMessageReceiver's socket is binded to multicast
  1306. address to only receive multicast packets.
  1307. * src/BtSetup.cc
  1308. * src/LpdMessageDispatcher.cc
  1309. * src/LpdMessageDispatcher.h
  1310. * src/LpdMessageReceiver.cc
  1311. * src/LpdMessageReceiver.h
  1312. * src/LpdReceiveMessageCommand.cc
  1313. * src/LpdReceiveMessageCommand.h
  1314. * src/OptionHandlerFactory.cc
  1315. * src/SocketCore.cc
  1316. * src/SocketCore.h
  1317. * src/prefs.cc
  1318. * src/prefs.h
  1319. * src/usage_text.h
  1320. * test/LpdMessageDispatcherTest.cc
  1321. * test/LpdMessageReceiverTest.cc
  1322. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. Put the portion of code to get interface addresses in
  1324. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1325. * src/SocketCore.cc
  1326. * src/SocketCore.h
  1327. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Rewritten util::parseInt() and parseUInt()
  1329. * src/util.cc
  1330. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Fixed compile error with mingw32 cross compiler. Defined
  1332. a2_sockopt_t as void* for the target systems other than mingw32.
  1333. * src/SocketCore.cc
  1334. * src/a2netcompat.h
  1335. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Removed 'always true' condition
  1337. * src/util.cc
  1338. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Documented --bt-enable-lpd option in man page.
  1340. * doc/aria2c.1.txt
  1341. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Added Local Peer Discovery. It is disabled by default. Use
  1343. --bt-enable-lpd to enable the function.
  1344. * src/BtConstants.h
  1345. * src/BtSetup.cc
  1346. * src/LpdDispatchMessageCommand.cc
  1347. * src/LpdDispatchMessageCommand.h
  1348. * src/LpdMessage.h
  1349. * src/LpdMessageDispatcher.cc
  1350. * src/LpdMessageDispatcher.h
  1351. * src/LpdMessageReceiver.cc
  1352. * src/LpdMessageReceiver.h
  1353. * src/LpdReceiveMessageCommand.cc
  1354. * src/LpdReceiveMessageCommand.h
  1355. * src/Makefile.am
  1356. * src/OptionHandlerFactory.cc
  1357. * src/Peer.cc
  1358. * src/Peer.h
  1359. * src/PeerInteractionCommand.cc
  1360. * src/SocketCore.cc
  1361. * src/SocketCore.h
  1362. * src/prefs.cc
  1363. * src/prefs.h
  1364. * src/usage_text.h
  1365. * src/util.cc
  1366. * src/util.h
  1367. * test/LpdMessageDispatcherTest.cc
  1368. * test/LpdMessageReceiverTest.cc
  1369. * test/Makefile.am
  1370. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. User-defined custom request headers specified by --header option
  1372. now override builtin headers if they have same name.
  1373. * src/HttpRequest.cc
  1374. * src/HttpRequest.h
  1375. * test/HttpRequestTest.cc
  1376. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Rewirtten util::isNumber()
  1378. * src/util.cc
  1379. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1381. because without it localized error messages are not printed
  1382. correctly.
  1383. * src/Platform.cc
  1384. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Added unit tests for util::getContentDispositionFilename() from
  1386. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1387. tests are passed.
  1388. * src/util.cc
  1389. * test/UtilTest.cc
  1390. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1392. util.cc
  1393. * src/Platform.cc
  1394. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Support RFC2231 "Parameter Value Character Set and Language
  1396. Information" in Content-Disposition header.
  1397. * src/HttpResponse.cc
  1398. * src/util.cc
  1399. * src/util.h
  1400. * test/UtilTest.cc
  1401. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Print CXXFLAGS
  1403. * configure.ac
  1404. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Small optimization for A2_WOULDBLOCK(e)
  1406. * src/SocketCore.cc
  1407. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Removed test file
  1409. * test/CookieStorageTest.cc
  1410. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Check both EAGAIN and EWOULDBLOCK
  1412. * src/SocketCore.cc
  1413. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1415. SSL_peek() because the checks are done in the caller. In
  1416. SocketBuffer::send(), throw exception if nothing could be written
  1417. and socket error was not EWOULDBLOCK
  1418. * src/SocketBuffer.cc
  1419. * src/SocketCore.cc
  1420. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Fixed error code handling so that it can handle Winsock2 error
  1422. code.
  1423. * src/SocketCore.cc
  1424. * src/SocketCore.h
  1425. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Bump up version number to 1.9.0a
  1427. * configure.ac
  1428. * doc/aria2c.1.txt
  1429. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Fixed the bug that aria2 doesn't handle return value if error
  1431. occurred before download begins.
  1432. * src/MultiUrlRequestInfo.cc
  1433. * src/main.cc
  1434. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Removed SegmentManFactory class.
  1436. * src/AbstractSegmentManFactory.h
  1437. * src/DefaultSegmentManFactory.cc
  1438. * src/DefaultSegmentManFactory.h
  1439. * src/Makefile.am
  1440. * src/RequestGroup.cc
  1441. * src/RequestGroup.h
  1442. * src/SegmentManFactory.h
  1443. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Destroyed digest context after getting calculated hash.
  1445. * src/Piece.cc
  1446. * src/Piece.h
  1447. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Removed BitfieldManFactory class.
  1449. * src/BitfieldManFactory.cc
  1450. * src/BitfieldManFactory.h
  1451. * src/DefaultPieceStorage.cc
  1452. * src/Makefile.am
  1453. * src/PeerSessionResource.cc
  1454. * src/Piece.cc
  1455. * src/main.cc
  1456. * test/DefaultPieceStorageTest.cc
  1457. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Removed unused methods from BitfieldMan class. Moved
  1459. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1460. class.
  1461. * src/BitfieldMan.cc
  1462. * src/BitfieldMan.h
  1463. * src/BitfieldManFactory.cc
  1464. * src/BitfieldManFactory.h
  1465. * src/bitfield.h
  1466. * src/main.cc
  1467. * test/BitfieldManTest.cc
  1468. * test/DefaultPieceStorageTest.cc
  1469. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1471. number of appended indexes.
  1472. * src/BitfieldMan.cc
  1473. * src/BitfieldMan.h
  1474. * src/Piece.cc
  1475. * src/Piece.h
  1476. * src/bitfield.h
  1477. * test/BitfieldManTest.cc
  1478. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Added more tests.
  1480. * test/BitfieldManTest.cc
  1481. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1483. unused block indexes at once instead of calling
  1484. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1485. Piece class and DefaultBtRequestFactory class via Piece class.
  1486. * src/BitfieldMan.cc
  1487. * src/BitfieldMan.h
  1488. * src/DefaultBtRequestFactory.cc
  1489. * src/Piece.cc
  1490. * src/Piece.h
  1491. * test/BitfieldManTest.cc
  1492. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Use std::make_pair(...)
  1494. * src/DHTMessageTracker.cc
  1495. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Use std::make_pair(...)
  1497. * src/bittorrent_helper.cc
  1498. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. urlencode(removeFragment(...)) in parseUrl(...)
  1500. * src/Request.cc
  1501. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1503. * src/AbstractCommand.cc
  1504. * src/AdaptiveURISelector.cc
  1505. * src/BtPieceMessage.cc
  1506. * src/BtPortMessage.cc
  1507. * src/CreateRequestCommand.cc
  1508. * src/DHTAbstractNodeLookupTask.cc
  1509. * src/DHTBucket.cc
  1510. * src/DHTGetPeersCommand.cc
  1511. * src/DHTMessageDispatcherImpl.cc
  1512. * src/DHTMessageFactoryImpl.cc
  1513. * src/DHTMessageTracker.cc
  1514. * src/DHTPeerAnnounceStorage.cc
  1515. * src/DHTRoutingTable.cc
  1516. * src/DHTSetup.cc
  1517. * src/DefaultBtAnnounce.cc
  1518. * src/DefaultBtInteractive.cc
  1519. * src/DefaultBtMessageDispatcher.cc
  1520. * src/DefaultBtMessageReceiver.cc
  1521. * src/DefaultBtProgressInfoFile.cc
  1522. * src/DefaultBtRequestFactory.cc
  1523. * src/DefaultPeerStorage.cc
  1524. * src/DefaultPieceStorage.cc
  1525. * src/DownloadCommand.cc
  1526. * src/DownloadEngine.cc
  1527. * src/EpollEventPoll.cc
  1528. * src/FileAllocationCommand.cc
  1529. * src/FileEntry.cc
  1530. * src/FtpNegotiationCommand.cc
  1531. * src/HandshakeExtensionMessage.cc
  1532. * src/HttpListenCommand.cc
  1533. * src/HttpServer.cc
  1534. * src/HttpSkipResponseCommand.cc
  1535. * src/IteratableChunkChecksumValidator.cc
  1536. * src/Logger.h
  1537. * src/MSEHandshake.cc
  1538. * src/MetalinkPostDownloadHandler.cc
  1539. * src/MultiDiskAdaptor.cc
  1540. * src/PeerAbstractCommand.cc
  1541. * src/PeerConnection.cc
  1542. * src/PeerListenCommand.cc
  1543. * src/PeerReceiveHandshakeCommand.cc
  1544. * src/RequestGroup.cc
  1545. * src/RequestGroupMan.cc
  1546. * src/SegmentMan.cc
  1547. * src/SelectEventPoll.cc
  1548. * src/ServerStat.cc
  1549. * src/SimpleBtMessage.cc
  1550. * src/SocketCore.cc
  1551. * src/TrackerWatcherCommand.cc
  1552. * src/UTMetadataDataExtensionMessage.cc
  1553. * src/UTMetadataRequestFactory.cc
  1554. * src/UTMetadataRequestTracker.cc
  1555. * src/XmlRpcMethod.cc
  1556. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Changed log level from debug to info
  1558. * src/BtDependency.cc
  1559. * src/BtPostDownloadHandler.cc
  1560. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Removed unused PeerSessionResource::_latency.
  1562. * src/BtConstants.h
  1563. * src/BtPieceMessage.cc
  1564. * src/Peer.cc
  1565. * src/Peer.h
  1566. * src/PeerSessionResource.cc
  1567. * src/PeerSessionResource.h
  1568. * test/PeerSessionResourceTest.cc
  1569. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Fixed the bug that --file-allocation=falloc doesn't work with
  1571. single file download.
  1572. * src/AbstractSingleDiskAdaptor.cc
  1573. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Release 1.8.2
  1575. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Added Portuguese translation. Updated Ukrainian and Spanish
  1577. translation. Thanks to all translators.
  1578. * po/LINGUAS
  1579. * po/es.po
  1580. * po/pt.po
  1581. * po/uk.po
  1582. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Remove fragment from redirected URI.
  1584. * src/Request.cc
  1585. * test/RequestTest.cc
  1586. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Updated po templates.
  1588. * po/aria2.pot
  1589. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Drop legacy ifdef for ares support and code cleanup.
  1591. * src/AsyncNameResolver.cc
  1592. * src/AsyncNameResolver.h
  1593. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Call ares_library_init and ares_library_cleanup if they are
  1595. available. Some code cleanups.
  1596. * src/Platform.cc
  1597. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Call ares_process_fd() each time after epoll to handle timeout.
  1599. * src/EpollEventPoll.cc
  1600. * src/EpollEventPoll.h
  1601. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Suppressed type-cast compiler warning
  1603. * src/CookieStorage.cc
  1604. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Fixed compile error on Mac OS X.
  1606. * src/CookieStorage.h
  1607. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Removed cookietest.txt from Makefile.am
  1609. * test/Makefile.am
  1610. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Updated version number in man page.
  1612. * doc/aria2c.1.txt
  1613. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Rewritten help message for --allow-overwrite option.
  1615. * doc/aria2c.1.txt
  1616. * src/usage_text.h
  1617. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Added bittorrent key to the response of tellStatus XML-RPC method.
  1619. The associated value of the key is a struct and contains data
  1620. retrieved from .torrent file, such as name, announce-list,
  1621. comment, etc.
  1622. * doc/aria2c.1.txt
  1623. * src/XmlRpcMethodImpl.cc
  1624. * src/XmlRpcMethodImpl.h
  1625. * test/XmlRpcMethodTest.cc
  1626. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Removed parse(std::istream&) and parse(const std::string&) from
  1628. CookieParser.
  1629. * src/CookieParser.cc
  1630. * src/CookieParser.h
  1631. * test/CookieParserTest.cc
  1632. * test/cookietest.txt: Removed
  1633. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1635. a.b.c if no other cookies are stored. Fixed the bug that
  1636. Cookie::markOriginServerOnly() is not called when cookies are
  1637. loaded from file/sqlite3 database.
  1638. * src/Cookie.h
  1639. * src/CookieStorage.cc
  1640. * src/NsCookieParser.cc
  1641. * src/Sqlite3MozCookieParser.cc
  1642. * test/CookieStorageTest.cc
  1643. * test/NsCookieParserTest.cc
  1644. * test/Sqlite3MozCookieParserTest.cc
  1645. * test/cookies.sqlite
  1646. * test/nscookietest.txt
  1647. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1649. both _pieceStorage and _segmentMan are initialized or they are
  1650. not.
  1651. * src/RequestGroup.cc
  1652. * src/RequestGroup.h
  1653. * test/BtDependencyTest.cc
  1654. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Bump up version number to 1.8.2
  1656. * configure.ac
  1657. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Replaced "." with A2STR::DOT_C
  1659. * src/AbstractCommand.cc
  1660. * src/Cookie.cc
  1661. * src/DownloadContext.cc
  1662. * src/FtpConnection.cc
  1663. * src/RequestGroup.cc
  1664. * src/util.cc
  1665. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Replaced isNumberAndDotsNotation() with isNumericHost().
  1667. isNumericHost() can handle IPv6 address.
  1668. * src/Cookie.cc
  1669. * src/CookieStorage.cc
  1670. * src/util.cc
  1671. * src/util.h
  1672. * test/CookieTest.cc
  1673. * test/UtilTest.cc
  1674. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Included A2STR.h
  1676. * src/CookieStorage.cc
  1677. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Rewritten Cookie storage.
  1679. * src/Cookie.cc
  1680. * src/Cookie.h
  1681. * src/CookieParser.cc
  1682. * src/CookieStorage.cc
  1683. * src/CookieStorage.h
  1684. * src/a2functional.h
  1685. * test/CookieParserTest.cc
  1686. * test/CookieStorageTest.cc
  1687. * test/CookieTest.cc
  1688. * test/HttpResponseTest.cc
  1689. * test/TestUtil.h
  1690. * test/a2functionalTest.cc
  1691. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Handle redirected URI which is not properly percent encoded.
  1693. * src/Request.cc
  1694. * test/RequestTest.cc
  1695. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1697. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1698. in a row without single '200 OK' response.
  1699. * src/RequestGroup.cc.
  1700. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1702. readout by 80 characters in mingw32 build. Catch exception in
  1703. DHTMessageReceiver::receiveMessage().
  1704. * src/AbstractDiskWriter.cc
  1705. * src/ConsoleStatCalc.cc
  1706. * src/DHTMessageReceiver.cc
  1707. * src/File.cc
  1708. * src/RequestGroupMan.cc
  1709. * src/a2io.h
  1710. * test/FileTest.cc
  1711. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Fixed compile error with intel compiler
  1713. * src/XmlRpcMethodImpl.cc
  1714. * src/XmlRpcMethodImpl.h
  1715. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Release 1.8.1
  1717. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Updated Swedish, Russian and Italian translations. Thanks to all
  1719. translators.
  1720. * po/it.po
  1721. * po/ru.po
  1722. * po/sv.po
  1723. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Fixed broken OptionParser::findByName().
  1725. * src/OptionParser.cc
  1726. * test/OptionParserTest.cc
  1727. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Fixed test error without BitTorrent support.
  1729. * test/XmlRpcMethodTest.cc
  1730. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Fixed compile error without GNUTLS/OpenSSL.
  1732. * src/util.cc
  1733. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Changed compression level to Z_DEFAULT_COMPRESSION.
  1735. * src/GZipEncoder.cc
  1736. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Added missing command line options: --http-no-cache,
  1738. --bt-save-metadata and --bt-metadata-only.
  1739. * doc/xmlrpc/aria2rpc
  1740. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1742. client accepts gzip content encoding.
  1743. * src/A2STR.cc
  1744. * src/A2STR.h
  1745. * src/GZipEncoder.cc
  1746. * src/GZipEncoder.h
  1747. * src/HttpHeader.cc
  1748. * src/HttpHeader.h
  1749. * src/HttpServer.cc
  1750. * src/HttpServer.h
  1751. * src/HttpServerBodyCommand.cc
  1752. * src/HttpServerCommand.cc
  1753. * src/Makefile.am
  1754. * src/XmlRpcResponse.cc
  1755. * src/XmlRpcResponse.h
  1756. * test/GZipEncoderTest.cc
  1757. * test/Makefile.am
  1758. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Added XML-RPC client sample code in Python.
  1760. * doc/aria2c.1.txt
  1761. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated po templates.
  1763. * po/aria2.pot
  1764. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Bump up version number to 1.8.1
  1766. * configure.ac
  1767. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Added version number to man page. Updated copyright year in man
  1769. page.
  1770. * doc/aria2c.1.txt
  1771. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Rewritten toTagString
  1773. * src/NameMatchOptionHandler.cc
  1774. * test/OptionHandlerTest.cc
  1775. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Added dir and files key to the response struct of aria2.tellStatus
  1777. XML-RPC method. The value associated with files key is the list
  1778. of files. Its element is the same struct used in aria2.getFiles
  1779. XML-RPC method. Added uris key to the response struct of
  1780. aria2.getFiles XML-RPC method. The value associated with uris key
  1781. is the list of URIs. Its element is the same struct used in
  1782. aria2.getUris XML-RPC method.
  1783. * doc/aria2c.1.txt
  1784. * src/XmlRpcMethodImpl.cc
  1785. * test/XmlRpcMethodTest.cc
  1786. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1788. struct containing Session ID, which is generated each time when
  1789. aria2 is invoked.
  1790. * doc/aria2c.1.txt
  1791. * doc/xmlrpc/aria2rpc
  1792. * src/DownloadEngine.cc
  1793. * src/DownloadEngine.h
  1794. * src/XmlRpcMethodFactory.cc
  1795. * src/XmlRpcMethodImpl.cc
  1796. * src/XmlRpcMethodImpl.h
  1797. * test/XmlRpcMethodTest.cc
  1798. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Moved generateRandomKey() from bittorrent_helper to util.
  1800. * src/DHTBucket.cc
  1801. * src/DHTNode.cc
  1802. * src/bittorrent_helper.cc
  1803. * src/bittorrent_helper.h
  1804. * src/util.cc
  1805. * src/util.h
  1806. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Updated doc about GID.
  1808. * doc/aria2c.1.txt
  1809. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1811. accepts a negative integer. 'offset' == -1 points last download
  1812. in the waiting queue and 'offset' == -2 points the download before
  1813. the last download, and so on. The downloads in the response are in
  1814. reversed order.
  1815. * doc/aria2c.1.txt
  1816. * src/XmlRpcMethodImpl.cc
  1817. * src/XmlRpcMethodImpl.h
  1818. * test/XmlRpcMethodTest.cc
  1819. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Added --human-readable option. This option, when true is given,
  1821. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1822. 3.4Mi) in the console readout. The default value is true and it
  1823. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1824. appears when false is given. In this case, sizes and speed are
  1825. printed without in bytes. No Ki, Mi units conversion is used.
  1826. This may be useful for a program to parse the output of aria2.
  1827. * doc/aria2c.1.txt
  1828. * src/ConsoleStatCalc.cc
  1829. * src/ConsoleStatCalc.h
  1830. * src/OptionHandlerFactory.cc
  1831. * src/main.cc
  1832. * src/prefs.cc
  1833. * src/prefs.h
  1834. * src/usage_text.h
  1835. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1837. option accepts empty string "". When "" is given, it erases
  1838. previously defined proxy.
  1839. * doc/aria2c.1.txt
  1840. * src/OptionHandlerImpl.h
  1841. * src/usage_text.h
  1842. * test/OptionHandlerTest.cc
  1843. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Code cleanup for proxy URI handling.
  1845. * src/AbstractCommand.cc
  1846. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Added --bt-metadata-only option. If true is given to this option,
  1848. aria2 downloads metadata only. The file(s) described in metadata
  1849. will not be downloaded. This option has effect only when
  1850. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1851. * doc/aria2c.1.txt
  1852. * src/OptionHandlerFactory.cc
  1853. * src/UTMetadataPostDownloadHandler.cc
  1854. * src/download_helper.cc
  1855. * src/prefs.cc
  1856. * src/prefs.h
  1857. * src/usage_text.h
  1858. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1860. deleted when exception is thrown. Make sure that when passing
  1861. std::deque<Command*> to function to store Commands, handle
  1862. exception and delete these Commands.
  1863. * src/AbstractCommand.cc
  1864. * src/CheckIntegrityCommand.cc
  1865. * src/FileAllocationCommand.cc
  1866. * src/RequestGroup.cc
  1867. * src/TrackerWatcherCommand.cc
  1868. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1870. * src/A2STR.cc
  1871. * src/A2STR.h
  1872. * src/FtpNegotiationCommand.cc
  1873. * src/HttpResponseCommand.cc
  1874. * src/util.cc
  1875. * src/util.h
  1876. * test/UtilTest.cc
  1877. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Treat --dir="" as --dir="."
  1879. * src/FtpNegotiationCommand.cc
  1880. * src/HttpResponseCommand.cc
  1881. * src/Metalink2RequestGroup.cc
  1882. * src/UTMetadataPostDownloadHandler.cc
  1883. * src/bittorrent_helper.cc
  1884. * src/download_helper.cc
  1885. * src/util.cc
  1886. * src/util.h
  1887. * test/UtilTest.cc
  1888. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Code clean up.
  1890. * src/main.cc
  1891. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Reset GID to 1 when they reach maximum value. Rewritten
  1893. CUIDCounter::newID()
  1894. * src/CUIDCounter.h
  1895. * src/RequestGroup.cc
  1896. * src/RequestGroup.h
  1897. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Documented --http-no-cache option in man page.
  1899. * doc/aria2c.1.txt
  1900. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Added --http-no-cache option. When true is given, aria2 sends
  1902. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1903. cached content. If false is given , these headers are not sent
  1904. and you can add Cache-Control header with a directive you like
  1905. using --header option.
  1906. * src/HttpRequest.cc
  1907. * src/HttpRequest.h
  1908. * src/HttpRequestCommand.cc
  1909. * src/OptionHandlerFactory.cc
  1910. * src/download_helper.cc
  1911. * src/prefs.cc
  1912. * src/prefs.h
  1913. * src/usage_text.h
  1914. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Removed Logger from OptionParser. When OptionParser is used to
  1916. parse options at bootstrap, LogFactory is not configured yet
  1917. properly. When LogFactory is used in OptionParser, it initializes
  1918. itself to return a logger which has no ability to write log to the
  1919. disk.
  1920. * src/OptionParser.cc
  1921. * src/OptionParser.h
  1922. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Added following sentance to the help message of --out option:
  1924. --out option is ignored when -Z is used.
  1925. * doc/aria2c.1.txt
  1926. * src/usage_text.h
  1927. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Added --bt-save-metadata option to -i list options.
  1929. * doc/aria2c.1.txt
  1930. * src/download_helper.cc
  1931. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1933. additional libraries.
  1934. * src/MultiUrlRequestInfo.cc
  1935. * src/NameResolver.cc
  1936. * src/SelectEventPoll.cc
  1937. * src/SelectEventPoll.h
  1938. * src/SocketCore.cc
  1939. * src/SocketCore.h
  1940. * src/a2netcompat.h
  1941. * src/daemon.cc
  1942. * src/main.cc
  1943. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Fixed typo.
  1945. * src/DHTMessageReceiver.cc
  1946. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Fixed the bug that causes segmentation fault if unknown option is
  1948. put in aria2.conf file. BUG#2928303
  1949. * src/OptionParser.cc
  1950. * src/OptionParser.h
  1951. * src/option_processing.cc
  1952. * test/OptionParserTest.cc
  1953. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Ignore port message with port=0.
  1955. * src/BtPortMessage.cc
  1956. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Run autoupdate
  1958. * configure.ac
  1959. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Updated autoconf/automake auxiliary files.
  1961. * INSTALL
  1962. * config.guess
  1963. * config.sub
  1964. * depcomp
  1965. * install-sh
  1966. * m4/intldir.m4
  1967. * missing
  1968. * mkinstalldirs
  1969. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Removed unused function.
  1971. * src/SharedHandle.h
  1972. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Find pooled socket using all cached addresses.
  1974. * src/DNSCache.h
  1975. * src/DownloadEngine.cc
  1976. * src/DownloadEngine.h
  1977. * src/InitiateConnectionCommand.cc
  1978. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Updated copyright year.
  1980. * src/version_usage.cc
  1981. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Pool connection if _contentEncodingDecoder is used and server
  1983. supports persistent connection.
  1984. * src/HttpDownloadCommand.cc
  1985. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Updated doc.
  1987. * src/DownloadCommand.cc
  1988. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Untabify. Fixed one line in copyright which is longer than 80
  1990. columns.
  1991. * src
  1992. * test
  1993. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Release 1.8.0
  1995. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Updated po templates.
  1997. * po/aria2.pot
  1998. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Documented --bt-save-metadata option in man page.
  2000. * doc/aria2c.1.txt
  2001. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Fixed usage of --bt-save-metadata option.
  2003. * src/usage_text.h
  2004. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Updated po templates.
  2006. * po/aria2.pot
  2007. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2009. causes name resolution error when none of network interface has
  2010. IPv4 address.
  2011. * src/main.cc
  2012. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Bump up version number to 1.8.0.
  2014. * configure.ac
  2015. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Use info hash as a filename when saving BitTorrent metadata.
  2017. * src/UTMetadataPostDownloadHandler.cc
  2018. * test/UTMetadataPostDownloadHandlerTest.cc
  2019. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Documented system.multicall XML-RPC method in man page.
  2021. * doc/aria2c.1.txt
  2022. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Added signal handler for SIGHUP to save .aria2 file when terminal
  2024. is closed. The handler is the same one for SIGINT and SIGTERM.
  2025. * src/MultiUrlRequestInfo.cc
  2026. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Defined method name in XmlRpcMethod subclasses.
  2028. * src/XmlRpcMethodFactory.cc
  2029. * src/XmlRpcMethodImpl.cc
  2030. * src/XmlRpcMethodImpl.h
  2031. * test/XmlRpcMethodTest.cc
  2032. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added system.multicall XML-RPC method.
  2034. * src/XmlRpcMethod.cc
  2035. * src/XmlRpcMethod.h
  2036. * src/XmlRpcMethodFactory.cc
  2037. * src/XmlRpcMethodImpl.cc
  2038. * src/XmlRpcMethodImpl.h
  2039. * test/XmlRpcMethodTest.cc
  2040. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Check structure depth when decoding.
  2042. * src/bencode.cc
  2043. * src/bencode.h
  2044. * test/BencodeTest.cc
  2045. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Documented tellStopped XML-RPC method in man page.
  2047. * doc/aria2c.1.txt
  2048. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Added tellStopped XML-RPC method to aria2rpc.
  2050. * doc/xmlrpc/aria2rpc
  2051. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added tellStopped XML-RPC method. This method returns stopped
  2053. download in the specified range. It takes same parameters with
  2054. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2055. * src/XmlRpcMethodFactory.cc
  2056. * src/XmlRpcMethodImpl.cc
  2057. * src/XmlRpcMethodImpl.h
  2058. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2060. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2061. when conducting unit tests because they fail if networking
  2062. interface is not configured with IPv4 address.
  2063. * src/NameResolver.cc
  2064. * src/SocketCore.cc
  2065. * src/SocketCore.h
  2066. * src/a2netcompat.h
  2067. * test/AllTest.cc
  2068. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Fixed unit test error
  2070. * test/UTMetadataPostDownloadHandlerTest.cc
  2071. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Defined static string constants for efficiency.
  2073. * src/XmlRpcMethodImpl.cc
  2074. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Added --bt-save-metadata option. When true is given, it saves
  2076. metadata as .torrent file. This option has effect only when
  2077. BitTorrent Magnet URI is used. The filename is name in metadata
  2078. with suffix .torrent. The directory to be saved is the same
  2079. directory where download file is saved. If the same file already
  2080. exists, metdata is not saved.
  2081. * src/OptionHandlerFactory.cc
  2082. * src/UTMetadataPostDownloadHandler.cc
  2083. * src/UTMetadataPostDownloadHandler.h
  2084. * src/message.h
  2085. * src/prefs.cc
  2086. * src/prefs.h
  2087. * src/usage_text.h
  2088. * test/UTMetadataDataExtensionMessageTest.cc
  2089. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Added util::saveAs() function. Use it in Signature::save().
  2091. * src/Signature.cc
  2092. * src/util.cc
  2093. * src/util.h
  2094. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Upcase info hash in Magnet URI.
  2096. * doc/aria2c.1.txt
  2097. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Refactored RequestGroupMan::changeReservedGroupPosition()
  2099. * src/RequestGroupMan.cc
  2100. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Updated the description for aria2.addTorrent XML-RPC method.
  2102. * doc/aria2c.1.txt
  2103. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Added changePosition to aria2rpc.
  2105. * doc/xmlrpc/aria2rpc
  2106. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Documented changePosition XML-RPC method in man page.
  2108. * doc/aria2c.1.txt
  2109. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2111. pos and how. This method changes the position of download denoted
  2112. by gid. If how is POS_SET, it moves the download to a position
  2113. relative to the beginning of the queue. If how is POS_CUR, it
  2114. moves the download to a position relative to the current
  2115. position. If how is POS_END, it moves the download to a position
  2116. relative to the end of the queue. If the destination position is
  2117. less than 0 or beyond the end of the queue, it moves the download
  2118. to the beginning or the end of the queue respectively. Returns
  2119. the destination position.
  2120. * src/RequestGroupMan.cc
  2121. * src/RequestGroupMan.h
  2122. * src/XmlRpcMethodFactory.cc
  2123. * src/XmlRpcMethodImpl.cc
  2124. * src/XmlRpcMethodImpl.h
  2125. * test/RequestGroupManTest.cc
  2126. * test/XmlRpcMethodTest.cc
  2127. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Added getOption and getGlobalOption to aria2rpc.
  2129. * doc/xmlrpc/aria2rpc
  2130. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Documented getOption and getGlobalOption XML-RPC method in man
  2132. page
  2133. * doc/aria2c.1.txt
  2134. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Added getOption and getGlobalOption XML-RPC method. getOption
  2136. takes GID as a parameter and returns its options as struct.
  2137. getGlobalOption takes no parameter and returns global
  2138. options. Because global option is used as a template for the
  2139. option of newly added downloads, it includes options returned by
  2140. getOption.
  2141. * src/Option.h
  2142. * src/XmlRpcMethodFactory.cc
  2143. * src/XmlRpcMethodImpl.cc
  2144. * src/XmlRpcMethodImpl.h
  2145. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Sort _optionHandlers in OptionParser by name in ascending order.
  2147. Use vector instead of deque for efficiency.
  2148. * src/OptionHandler.h
  2149. * src/OptionHandlerFactory.h
  2150. * src/OptionParser.cc
  2151. * src/OptionParser.h
  2152. * src/version_usage.cc
  2153. * test/OptionParserTest.cc
  2154. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Code cleanup
  2156. * src/XmlRpcMethod.cc
  2157. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Documented about followedBy and belongsTo in man page.
  2159. * doc/aria2c.1.txt
  2160. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Added following 2 keys, followedBy and belongsTo, to the response
  2162. of tellStatus.
  2163. followedBy: List of GIDs which are generated by the consequence of
  2164. this download. For example, when aria2 downloaded Metalink file,
  2165. it generates downloads described in it(see *--follow-metalink*
  2166. option). This value is useful to track these auto generated
  2167. downloads. If there is no such downloads, this key will not be
  2168. included in the response.
  2169. belongsTo: GID of a parent download. Some downloads are a part of
  2170. another download. For example, if a file in Metalink has
  2171. BitTorrent resource, the download of .torrent is a part of that
  2172. file. If this download has no parent, this key will not be
  2173. included in the response.
  2174. * src/BtPostDownloadHandler.cc
  2175. * src/DownloadResult.h
  2176. * src/Metalink2RequestGroup.cc
  2177. * src/MetalinkPostDownloadHandler.cc
  2178. * src/RequestGroup.cc
  2179. * src/RequestGroup.h
  2180. * src/UTMetadataPostDownloadHandler.cc
  2181. * src/XmlRpcMethodImpl.cc
  2182. * src/XmlRpcMethodImpl.h
  2183. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Assigned BObject in BDE() to avoid segmentation fault when calling
  2185. methods of BDE::none().
  2186. * src/BDE.cc
  2187. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Show info hash in Magnet URI in upper case letters in -S output.
  2189. * src/bittorrent_helper.cc
  2190. * test/BittorrentHelperTest.cc
  2191. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Removed old useless comment
  2193. * src/MultiUrlRequestInfo.cc
  2194. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2196. not properly used in configure script and failed to detect gnutls.
  2197. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2198. and the initialization of pkg-config is done in first occurrence
  2199. of PKG_CHECK_MODULES which is not executed because it is inside of
  2200. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2201. * configure.ac
  2202. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Release 1.7.2
  2204. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2206. true even if all downloads haven't finished, especially when
  2207. PostDownloadHandler is involved. Changed the condition so that it
  2208. only returns true if both _requestGroups and _reservedGroups are
  2209. empty.
  2210. * src/RequestGroupMan.cc
  2211. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Log listening port for BitTorrent/DHT in notice level.
  2213. * src/DHTConnectionImpl.cc
  2214. * src/PeerListenCommand.cc
  2215. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Updated po templates.
  2217. * po/aria2.pot
  2218. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Bump up version number to 1.7.2
  2220. * configure.ac
  2221. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Changed default value of --enable-dht from 'false' to 'true'.
  2223. * doc/aria2c.1.txt
  2224. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Enabled DHT by default because of Magnet URI support. To disable
  2226. DHT, use --enable-dht=false
  2227. * src/OptionHandlerFactory.cc
  2228. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Print Magnet URI in -S output.
  2230. * src/AnnounceList.cc
  2231. * src/bittorrent_helper.cc
  2232. * src/bittorrent_helper.h
  2233. * test/BittorrentHelperTest.cc
  2234. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Added --bt-prioritize-piece option to aria2rpc.
  2236. * doc/xmlrpc/aria2rpc
  2237. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Refer Magnet URI in --help. Made some cosmetic changes.
  2239. * src/version_usage.cc
  2240. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Updated -T and -M option.
  2242. * doc/aria2c.1.txt
  2243. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Fixed typo
  2245. * doc/aria2c.1.txt
  2246. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed the bug that line separator is missing in horizontal bar.
  2248. * doc/xmlrpc/aria2mon
  2249. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Updated usage text for --metalink-file option.
  2251. * src/usage_text.h
  2252. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. If '-' is given as an argument to --metalink-file option, aria2
  2254. reads Metalink file from stdin.
  2255. * src/OptionHandlerFactory.cc
  2256. * src/OptionHandlerImpl.h
  2257. * src/a2io.h
  2258. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Fixed the bug that aria2 listens wrong port if --interface option
  2260. is used.
  2261. * src/SocketCore.cc
  2262. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Fixed the bug that query parameter in magnet URI is not decoded.
  2264. * src/magnet.cc
  2265. * test/MagnetTest.cc
  2266. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Specified defaultSize as an argument for easy testing.
  2268. * src/util.cc
  2269. * src/util.h
  2270. * test/UtilTest.cc
  2271. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Release 1.7.1
  2273. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Bump up version number to 1.7.1
  2275. * configure.ac
  2276. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Fixed the bug --bt-prioritize-piece=tail is not working.
  2278. * src/util.cc
  2279. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Release 1.7.0
  2281. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Updated po templates.
  2283. * po/aria2.pot
  2284. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Updated help message for --bt-prioritize-piece. Some cosmetic
  2286. changes.
  2287. * doc/aria2c.1.txt
  2288. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2290. * src/usage_text.h
  2291. * src/util.cc
  2292. * test/UtilTest.cc
  2293. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Updated Russian, Ukrainian, German and French translations.
  2295. Thanks to all translators involved.
  2296. * po/de.po
  2297. * po/fr.po
  2298. * po/ru.po
  2299. * po/uk.po
  2300. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Mentioned about pkg-config
  2302. * README
  2303. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Fixed typo. Referred --index-out option in BitTorrent notes.
  2305. * README
  2306. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2308. bind, try all addresses until success
  2309. * src/SocketCore.cc
  2310. * src/SocketCore.h
  2311. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Updated po templates.
  2313. * po/aria2.pot
  2314. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Bump up version number to 1.7.0
  2316. * configure.ac
  2317. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2319. * src/DefaultPieceStorage.cc
  2320. * src/DefaultPieceStorage.h
  2321. * src/PieceStorage.h
  2322. * src/UnknownLengthPieceStorage.cc
  2323. * src/UnknownLengthPieceStorage.h
  2324. * test/MockPieceStorage.h
  2325. * test/ProtocolDetectorTest.cc
  2326. * test/XmlRpcMethodTest.cc
  2327. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Documented in man page that if getifaddrs() is missing,
  2329. --interface option doesn't accept interface name.
  2330. * doc/aria2c.1.txt
  2331. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2333. * src/DefaultBtAnnounce.cc
  2334. * src/DefaultBtAnnounce.h
  2335. * test/DefaultBtAnnounceTest.cc
  2336. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Fixed the bug that connection is always dropped if handshake
  2338. message in extension protocol don't have metadata_size.
  2339. src/HandshakeExtensionMessage.cc
  2340. * src/HandshakeExtensionMessage.cc
  2341. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2343. text saying DHT is recommended when Magnet URI is provided.
  2344. * doc/aria2c.1.txt
  2345. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2347. URI is supplied. Notify user that they should consider enabling
  2348. DHT if they use Magnet URI.
  2349. * src/RequestGroup.cc
  2350. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Added --disable-ipv6 option to disable IPv6.
  2352. * doc/aria2c.1.txt
  2353. * src/InitiateConnectionCommand.cc
  2354. * src/NameResolver.cc
  2355. * src/NameResolver.h
  2356. * src/OptionHandlerFactory.cc
  2357. * src/main.cc
  2358. * src/prefs.cc
  2359. * src/prefs.h
  2360. * src/usage_text.h
  2361. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Updated usage text for --bt-prioritize-piece option.
  2363. * doc/aria2c.1.txt
  2364. * src/usage_text.h
  2365. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2367. given and PACKAGE is missing in the system or FEATURE cannot be
  2368. enabled, print error message and stop the script.
  2369. * configure.ac
  2370. * m4/aria2_arg.m4
  2371. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Halt metadata download immediately when metadata download is done.
  2373. Don't wait unresponsive tracker.
  2374. * src/ByteArrayDiskWriter.h
  2375. * src/DefaultBtInteractive.cc
  2376. * src/DefaultExtensionMessageFactory.cc
  2377. * src/DefaultExtensionMessageFactory.h
  2378. * src/PeerInteractionCommand.cc
  2379. * src/UTMetadataDataExtensionMessage.cc
  2380. * src/UTMetadataDataExtensionMessage.h
  2381. * src/UTMetadataRequestExtensionMessage.cc
  2382. * test/UTMetadataDataExtensionMessageTest.cc
  2383. * test/UTMetadataRequestExtensionMessageTest.cc
  2384. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Documented --interface option in man page.
  2386. * doc/aria2c.1.txt
  2387. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Try resolved address in the order received from the resolver.
  2389. * src/DNSCache.h
  2390. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Added debug logs.
  2392. * src/SocketCore.cc
  2393. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Fixed type of tail to uint64_t
  2395. * src/util.cc
  2396. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Added --interface option. This feature binds sockets to given
  2398. interface. You can specify interface name, IP address and
  2399. hostname.
  2400. * configure.ac
  2401. * src/OptionHandlerFactory.cc
  2402. * src/SocketCore.cc
  2403. * src/SocketCore.h
  2404. * src/main.cc
  2405. * src/message.h
  2406. * src/prefs.cc
  2407. * src/prefs.h
  2408. * src/usage_text.h
  2409. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Updated man page for bt-prioritize-piece option in -i list.
  2411. * doc/aria2c.1.txt
  2412. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added bt-prioritize-piece option to -i list.
  2414. * src/download_helper.cc
  2415. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Removed --http-auth-scheme option from man page.
  2417. * doc/aria2c.1.txt
  2418. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Removed --http-auth-scheme option since it doesn't do nothing.
  2420. * src/OptionHandlerFactory.cc
  2421. * src/prefs.cc
  2422. * src/prefs.h
  2423. * src/usage_text.h
  2424. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Adjusted the number of peer info which get_peers reply message can
  2426. carry.
  2427. * src/DHTGetPeersReplyMessage.cc
  2428. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Added extension_message_test_helper.h to aria2c_SOURCES.
  2430. * test/Makefile.am
  2431. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Documented --bt-prioritize-piece option in man page.
  2433. * doc/aria2c.1.txt
  2434. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Added option --bt-prioritize-piece. This option instruct aria2 to
  2436. try to download first and last pieces of each file first. The
  2437. argument can contain 2 keywords:head and tail. To include both
  2438. keywords, they must be separated by comma. These keywords can take
  2439. one parameter, SIZE. For example , if head=SIZE is specified,
  2440. pieces in the range of first SIZE bytes of each file get higher
  2441. priority. tail=SIZE means the range of last SIZE bytes of each
  2442. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2443. * src/DefaultPieceStorage.h
  2444. * src/Makefile.am
  2445. * src/OptionHandlerFactory.cc
  2446. * src/OptionHandlerImpl.h
  2447. * src/PriorityPieceSelector.cc
  2448. * src/PriorityPieceSelector.h
  2449. * src/RequestGroup.cc
  2450. * src/prefs.cc
  2451. * src/prefs.h
  2452. * src/usage_text.h
  2453. * src/util.cc
  2454. * src/util.h
  2455. * test/Makefile.am
  2456. * test/MockPieceSelector.h
  2457. * test/PriorityPieceSelectorTest.cc
  2458. * test/UtilTest.cc
  2459. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Fixed typo
  2461. * src/HttpRequest.h
  2462. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. In Magnet URI with tr parameter, put each announce URI in separate
  2464. tier.
  2465. * src/bittorrent_helper.cc
  2466. * test/BittorrentHelperTest.cc
  2467. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Renamed ExtensionMessage::getBencodedData() as
  2469. ExtensionMessage::getPayload()
  2470. * src/BtExtendedMessage.cc
  2471. * src/ExtensionMessage.h
  2472. * src/HandshakeExtensionMessage.cc
  2473. * src/HandshakeExtensionMessage.h
  2474. * src/UTMetadataDataExtensionMessage.cc
  2475. * src/UTMetadataDataExtensionMessage.h
  2476. * src/UTMetadataRejectExtensionMessage.cc
  2477. * src/UTMetadataRejectExtensionMessage.h
  2478. * src/UTMetadataRequestExtensionMessage.cc
  2479. * src/UTMetadataRequestExtensionMessage.h
  2480. * src/UTPexExtensionMessage.cc
  2481. * src/UTPexExtensionMessage.h
  2482. * test/HandshakeExtensionMessageTest.cc
  2483. * test/MockExtensionMessage.h
  2484. * test/UTMetadataDataExtensionMessageTest.cc
  2485. * test/UTMetadataRejectExtensionMessageTest.cc
  2486. * test/UTMetadataRequestExtensionMessageTest.cc
  2487. * test/UTPexExtensionMessageTest.cc
  2488. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Updated man page for BitTorrent Magnet URI.
  2490. * doc/aria2c.1.txt
  2491. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Call DownloadContext::setOwnerRequestGroup() in
  2493. RequestGroup::setDownloadContext().
  2494. * src/BtDependency.cc
  2495. * src/RequestGroup.cc
  2496. * src/RequestGroup.h
  2497. * src/download_helper.cc
  2498. * test/DefaultBtMessageDispatcherTest.cc
  2499. * test/DefaultExtensionMessageFactoryTest.cc
  2500. * test/HandshakeExtensionMessageTest.cc
  2501. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2503. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2504. from metadata, use new metadata2Torrent() function.
  2505. * src/BtDependency.cc
  2506. * src/UTMetadataPostDownloadHandler.cc
  2507. * src/bittorrent_helper.cc
  2508. * src/bittorrent_helper.h
  2509. * test/BittorrentHelperTest.cc
  2510. * test/BtDependencyTest.cc
  2511. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Use createRequestGroupForUri to create the download for torrent
  2513. file.
  2514. * src/Metalink2RequestGroup.cc
  2515. * test/Metalink2RequestGroupTest.cc
  2516. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Fixed typo
  2518. * src/DownloadContext.h
  2519. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Use createRequestGroupForBitTorrent()
  2521. * src/BtPostDownloadHandler.cc
  2522. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Added remove().
  2524. * src/Option.cc
  2525. * src/Option.h
  2526. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Removed options which is only valid for URIs specified in
  2528. command-line. If they are left, because op is used as a template
  2529. for new RequestGroup(such as created in XML-RPC command,
  2530. BtPostDownloadHandler etc), they causes unintentional effect.
  2531. * src/main.cc
  2532. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Refer to option value of PREF_OUT only in download_helper.
  2534. * src/FtpNegotiationCommand.cc
  2535. * src/HttpResponseCommand.cc
  2536. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2538. * src/download_helper.cc
  2539. * src/download_helper.h
  2540. * src/XmlRpcMethodImpl.cc
  2541. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Updated man page for changeOption XML-RPC method.
  2543. * doc/aria2c.1.txt
  2544. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Added --bt-max-peers option to changeOption XML-RPC method.
  2546. * src/XmlRpcMethod.cc
  2547. * src/XmlRpcMethodImpl.cc
  2548. * test/XmlRpcMethodTest.cc
  2549. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2551. * test/XmlRpcMethodTest.cc
  2552. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Removed redundant DownloadContext::hasAttribute(...) calls.
  2554. * src/ConsoleStatCalc.cc
  2555. * src/RequestGroup.cc
  2556. * src/XmlRpcMethodImpl.cc
  2557. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Changed the number of tracker request attempt from 5 to 2.
  2559. * src/TrackerWatcherCommand.cc
  2560. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Use host and protocol in original URI, because URI selector
  2562. selects URI based on original URI, not redirected one.
  2563. * src/Request.cc
  2564. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Fixed the bug which causes segmentation fault with tellWaiting
  2566. XML-RPC method when BitTorrent download is waiting. The key of
  2567. BtRegistry is changed from info hash to GID, because it is
  2568. registered per RequestGroup, not info hash.
  2569. * src/BtRegistry.cc
  2570. * src/BtRegistry.h
  2571. * src/BtSetup.cc
  2572. * src/ConsoleStatCalc.cc
  2573. * src/InitiatorMSEHandshakeCommand.cc
  2574. * src/PeerInitiateConnectionCommand.cc
  2575. * src/PeerInteractionCommand.cc
  2576. * src/PeerInteractionCommand.h
  2577. * src/PeerReceiveHandshakeCommand.cc
  2578. * src/RequestGroup.cc
  2579. * src/XmlRpcMethodImpl.cc
  2580. * test/BtRegistryTest.cc
  2581. * test/XmlRpcMethodTest.cc
  2582. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Updated man page for changeOption XML-RPC method.
  2584. * doc/aria2c.1.txt
  2585. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2587. method.
  2588. * src/XmlRpcMethod.cc
  2589. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Documented about BitTorrent Magnet URI in man page.
  2591. * doc/aria2c.1.txt
  2592. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2594. inherited to generated RequestGroup.
  2595. * src/UTMetadataPostDownloadHandler.cc
  2596. * test/UTMetadataPostDownloadHandlerTest.cc
  2597. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Prepended "[METADATA]" before dn.
  2599. * src/bittorrent_helper.cc
  2600. * test/BittorrentHelperTest.cc
  2601. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Rewritten Magnet URI parser.
  2603. * src/Makefile.am
  2604. * src/ProtocolDetector.cc
  2605. * src/bittorrent_helper.cc
  2606. * src/bittorrent_helper.h
  2607. * src/download_helper.cc
  2608. * src/magnet.cc
  2609. * src/magnet.h
  2610. * test/BittorrentHelperTest.cc
  2611. * test/MagnetTest.cc
  2612. * test/Makefile.am
  2613. * test/ProtocolDetectorTest.cc
  2614. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Use hton64
  2616. * src/base32.cc
  2617. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added Base32 encoded BitTorrent Magnet Link support.
  2619. * src/Makefile.am
  2620. * src/base32.cc
  2621. * src/base32.h
  2622. * src/bittorrent_helper.cc
  2623. * test/Base32Test.cc
  2624. * test/BittorrentHelperTest.cc
  2625. * test/Makefile.am
  2626. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2628. supported yet. Fixed typo in method name in RequestGroup. In
  2629. metadataGetMode, don't show "Your share ratio was ..." message.
  2630. * src/DefaultBtInteractive.cc
  2631. * src/DefaultBtInteractive.h
  2632. * src/DownloadHandlerFactory.cc
  2633. * src/DownloadHandlerFactory.h
  2634. * src/HandshakeExtensionMessage.cc
  2635. * src/Makefile.am
  2636. * src/Metalink2RequestGroup.cc
  2637. * src/PeerInteractionCommand.cc
  2638. * src/RequestGroup.cc
  2639. * src/RequestGroup.h
  2640. * src/UTMetadataPostDownloadHandler.cc
  2641. * src/UTMetadataPostDownloadHandler.h
  2642. * src/download_helper.cc
  2643. * test/HandshakeExtensionMessageTest.cc
  2644. * test/Makefile.am
  2645. * test/UTMetadataPostDownloadHandlerTest.cc
  2646. * test/UTMetadataRejectExtensionMessageTest.cc
  2647. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. In metadataGetMode, don't show SEEDING.
  2649. * src/ConsoleStatCalc.cc
  2650. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Fixed ut_metadata data handling. Implemented
  2652. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2653. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2654. metadata_size is received.
  2655. * src/DefaultExtensionMessageFactory.cc
  2656. * src/DefaultExtensionMessageFactory.h
  2657. * src/HandshakeExtensionMessage.cc
  2658. * src/HandshakeExtensionMessage.h
  2659. * src/UTMetadataDataExtensionMessage.cc
  2660. * src/UTMetadataDataExtensionMessage.h
  2661. * src/UTMetadataRequestExtensionMessage.cc
  2662. * src/UTMetadataRequestFactory.cc
  2663. * src/UTMetadataRequestFactory.h
  2664. * src/UTMetadataRequestTracker.cc
  2665. * src/UTMetadataRequestTracker.h
  2666. * test/DefaultExtensionMessageFactoryTest.cc
  2667. * test/HandshakeExtensionMessageTest.cc
  2668. * test/MockBtMessage.h
  2669. * test/UTMetadataDataExtensionMessageTest.cc
  2670. * test/UTMetadataRequestExtensionMessageTest.cc
  2671. * test/UTMetadataRequestFactoryTest.cc
  2672. * test/UTMetadataRequestTrackerTest.cc
  2673. * test/extension_message_test_helper.h
  2674. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Drop connection if ut_metadata reject message is received.
  2676. * src/UTMetadataRejectExtensionMessage.cc
  2677. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2679. get high enough in that mode.
  2680. * src/ActivePeerConnectionCommand.cc
  2681. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2682. Added BitTorrent magnet link support to ProtocolDetector.
  2683. * src/ProtocolDetector.cc
  2684. * src/ProtocolDetector.h
  2685. * test/ProtocolDetectorTest.cc
  2686. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Don't inject validator into BtMessage in metadataGetMode because
  2688. most of the checks depends on the total length of download but it
  2689. is unknown. Delegate metadataGetMode to BtMessage.
  2690. * src/DefaultBtMessageFactory.cc
  2691. * src/DefaultBtMessageFactory.h
  2692. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2694. * src/DefaultPieceStorage.h
  2695. * src/PieceStorage.h
  2696. * src/UnknownLengthPieceStorage.h
  2697. * test/MockPieceStorage.h
  2698. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Added markTotalLengthIsKnown().
  2700. * src/DownloadContext.h
  2701. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2703. missing. If metadata is missing, always use DHT when it is ready.
  2704. * src/BtSetup.cc
  2705. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Added parseMagnetLink(). Hex encoded info hash is supported.
  2707. Base32 encoded info hash is not supported yet.
  2708. * src/bittorrent_helper.cc
  2709. * src/bittorrent_helper.h
  2710. * test/BittorrentHelperTest.cc
  2711. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added FromHex()
  2713. * src/util.cc
  2714. * src/util.h
  2715. * test/UtilTest.cc
  2716. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Added _metadataGetMode member variable. It toggles the action when
  2718. messages are received: usually they almost do nothing if
  2719. _metadataGetMode is true.
  2720. * src/AbstractBtMessage.cc
  2721. * src/AbstractBtMessage.h
  2722. * src/BtAllowedFastMessage.cc
  2723. * src/BtBitfieldMessage.cc
  2724. * src/BtCancelMessage.cc
  2725. * src/BtChokeMessage.cc
  2726. * src/BtHaveAllMessage.cc
  2727. * src/BtHaveMessage.cc
  2728. * src/BtInterestedMessage.cc
  2729. * src/BtNotInterestedMessage.cc
  2730. * src/BtPieceMessage.cc
  2731. * src/BtRejectMessage.cc
  2732. * src/BtRequestMessage.cc
  2733. * src/BtUnchokeMessage.cc
  2734. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Added bencode::decode overload functions. They have extra argument
  2736. 'end', passed by reference. 'end' points to the beyond the last
  2737. position of data used in decoding process.
  2738. * src/bencode.cc
  2739. * src/bencode.h
  2740. * test/BencodeTest.cc
  2741. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Initial support of Extension for Peers to Send Metadata
  2743. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2744. metadata from swarm.
  2745. * src/BtConstants.h
  2746. * src/DefaultBtInteractive.cc
  2747. * src/DefaultExtensionMessageFactory.cc
  2748. * src/DefaultExtensionMessageFactory.h
  2749. * src/ExtensionMessage.h
  2750. * src/ExtensionMessageRegistry.h
  2751. * src/HandshakeExtensionMessage.cc
  2752. * src/HandshakeExtensionMessage.h
  2753. * src/Makefile.am
  2754. * src/PeerConnection.h
  2755. * src/PeerInteractionCommand.cc
  2756. * src/UTMetadataDataExtensionMessage.cc
  2757. * src/UTMetadataDataExtensionMessage.h
  2758. * src/UTMetadataExtensionMessage.cc
  2759. * src/UTMetadataExtensionMessage.h
  2760. * src/UTMetadataRejectExtensionMessage.cc
  2761. * src/UTMetadataRejectExtensionMessage.h
  2762. * src/UTMetadataRequestExtensionMessage.cc
  2763. * src/UTMetadataRequestExtensionMessage.h
  2764. * src/bittorrent_helper.cc
  2765. * src/bittorrent_helper.h
  2766. * test/BittorrentHelperTest.cc
  2767. * test/DefaultExtensionMessageFactoryTest.cc
  2768. * test/HandshakeExtensionMessageTest.cc
  2769. * test/Makefile.am
  2770. * test/UTMetadataDataExtensionMessageTest.cc
  2771. * test/UTMetadataRejectExtensionMessageTest.cc
  2772. * test/UTMetadataRequestExtensionMessageTest.cc
  2773. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Cancel segment in prepareForRetry() because there is a chance that
  2775. the command has segments.
  2776. * src/CreateRequestCommand.cc
  2777. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Fixed the bug that slow server is not knocked down in favor of
  2779. faster one.
  2780. * src/AbstractCommand.cc
  2781. * src/DefaultPieceStorage.cc
  2782. * src/DefaultPieceStorage.h
  2783. * src/PieceStorage.h
  2784. * src/UnknownLengthPieceStorage.cc
  2785. * src/UnknownLengthPieceStorage.h
  2786. * test/MockPieceStorage.h
  2787. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Fixed the bug that Request object is not added to
  2789. _inFlightRequests in findFasterRequest().
  2790. * src/FileEntry.cc
  2791. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Changed the strategry of how to increase the number of outstanding
  2793. requests. Now the number is doubled if there are no outstanding
  2794. requests after receiving messages.
  2795. * src/BtConstants.h
  2796. * src/DefaultBtInteractive.cc
  2797. * src/DefaultBtInteractive.h
  2798. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Check socket for reading if there are outstanding requests.
  2800. * src/PeerInteractionCommand.cc
  2801. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Moved frequently called methods to header file so they get
  2803. inlined.
  2804. * src/RequestSlot.cc
  2805. * src/RequestSlot.h
  2806. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Copied in_addr instead of just casting from char* which might
  2808. violate strict aliasing rules.
  2809. * src/AsyncNameResolver.cc
  2810. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Use dynamic_pointer_cast
  2812. * test/BtPieceMessageTest.cc
  2813. * test/BtRequestMessageTest.cc
  2814. * test/DefaultBtRequestFactoryTest.cc
  2815. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Added testSetUrl20()
  2817. * test/RequestTest.cc
  2818. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Code cleanup
  2820. * src/bittorrent_helper.cc
  2821. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Use C++ style cast
  2823. * src/AsyncNameResolver.cc
  2824. * src/Base64.h
  2825. * src/BtBitfieldMessage.cc
  2826. * src/BtHandshakeMessage.cc
  2827. * src/DefaultBtMessageFactory.cc
  2828. * src/DefaultBtProgressInfoFile.cc
  2829. * src/EpollEventPoll.cc
  2830. * src/ExpatMetalinkProcessor.cc
  2831. * src/IteratableChecksumValidator.cc
  2832. * src/IteratableChunkChecksumValidator.cc
  2833. * src/MessageDigestHelper.cc
  2834. * src/Platform.cc
  2835. * src/RequestGroupMan.cc
  2836. * src/SingleFileAllocationIterator.cc
  2837. * src/Sqlite3MozCookieParser.cc
  2838. * src/XML2SAXMetalinkProcessor.cc
  2839. * src/Xml2XmlRpcRequestProcessor.cc
  2840. * src/util.cc
  2841. * src/util.h
  2842. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Fixed integer potential alignment problem.
  2844. * src/bitfield.h
  2845. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2847. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2848. include file ordering.
  2849. * src/PeerListProcessor.h
  2850. * src/bittorrent_helper.cc
  2851. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2853. * src/Request.cc
  2854. * src/util.cc
  2855. * src/util.h
  2856. * test/RequestTest.cc
  2857. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Rewritten util::uitos()
  2859. * src/util.h
  2860. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Code cleanup
  2862. * src/Request.cc
  2863. * src/Request.h
  2864. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Rewritten Request::parseUrl()
  2866. * src/Request.cc
  2867. * test/RequestTest.cc
  2868. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Removed unused macro SAFE_CHARS
  2870. * src/Request.cc
  2871. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Updated doc
  2873. * src/DHTRoutingTableDeserializer.cc
  2874. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Release 1.6.3
  2876. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Removed unused function.
  2878. * test/DHTPeerAnnounceStorageTest.cc
  2879. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Only decrement cols if cols > 0
  2881. * src/ConsoleStatCalc.cc
  2882. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2884. translations. Thanks to all translators.
  2885. * po/ca.po
  2886. * po/fr.po
  2887. * po/it.po
  2888. * po/ja.po
  2889. * po/pl.po
  2890. * po/ru.po
  2891. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Updated translation template
  2893. * po
  2894. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Fixed compile error without ssl library.
  2896. * src/util.cc
  2897. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Logged received nodes in get_peers reply message.
  2899. * src/DHTAbstractNodeLookupTask.cc
  2900. * src/DHTAbstractNodeLookupTask.h
  2901. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2903. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2904. * src/DHTMessageDispatcherImpl.cc
  2905. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Don't reuse URI if Request pool is not empty.
  2907. * src/CreateRequestCommand.cc
  2908. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2910. receive get_peers request for torrent which the client is now
  2911. downloading.
  2912. * src/BtSetup.cc
  2913. * src/DHTPeerAnnounceEntry.cc
  2914. * src/DHTPeerAnnounceEntry.h
  2915. * src/DHTPeerAnnounceStorage.cc
  2916. * src/DHTPeerAnnounceStorage.h
  2917. * src/RequestGroup.cc
  2918. * test/DHTPeerAnnounceEntryTest.cc
  2919. * test/DHTPeerAnnounceStorageTest.cc
  2920. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Fixed the bug that in Windows environment new blank line is
  2922. inserted when console readout is updated.
  2923. * src/ConsoleStatCalc.cc
  2924. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Throw exception if binding listening port is failed. Removed
  2926. RequestGroupMan::getInitialCommand(). Use
  2927. fillRequestGroupFromReserver() instead. Delete commands for
  2928. RequestGroup which has errors when it is being added.
  2929. * src/BtSetup.cc
  2930. * src/DownloadEngine.cc
  2931. * src/DownloadEngine.h
  2932. * src/DownloadEngineFactory.cc
  2933. * src/MultiUrlRequestInfo.cc
  2934. * src/RequestGroupMan.cc
  2935. * src/RequestGroupMan.h
  2936. * test/RequestGroupManTest.cc
  2937. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Fixed the bug that when downloading more than one torrent,
  2939. listening port is not reported properly to tracker for 2nd or
  2940. later torrents.
  2941. * src/BtSetup.cc
  2942. * src/PeerListenCommand.cc
  2943. * src/PeerListenCommand.h
  2944. * src/RequestGroup.cc
  2945. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Bump up version number to 1.6.3
  2947. * configure.ac
  2948. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. Removed Util.cc from POTFILES.in
  2950. * po/POTFILES.in
  2951. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Updated man page for previous change.
  2953. * doc/aria2c.1.txt
  2954. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. If user name is embedded but password is missing in URI, first
  2956. resolve password using .netrc. If password is found in .netrc,
  2957. then use it as password. If not, use the password specified in
  2958. --ftp-passwd.
  2959. * src/AuthConfigFactory.cc
  2960. * src/Request.cc
  2961. * src/Request.h
  2962. * test/AuthConfigFactoryTest.cc
  2963. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Fixed typo
  2965. * doc/aria2c.1.txt
  2966. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed typo
  2968. * src/usage_text.h
  2969. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added missing bitfield.cc
  2971. * src/bitfield.cc
  2972. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2973. Renamed Util.{cc,h} as util.{cc,h}
  2974. * src/Util.cc
  2975. * src/Util.h
  2976. * src/util.cc
  2977. * src/util.h
  2978. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Moved static functions in Util class to namespace util.
  2980. * src
  2981. * test
  2982. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2984. Moved generateRandomKey to bittorrent_helper.cc.
  2985. * src/DHTBucket.cc
  2986. * src/DHTGetPeersMessage.cc
  2987. * src/DHTGetPeersReplyMessage.cc
  2988. * src/DHTMessage.cc
  2989. * src/DHTNode.cc
  2990. * src/DHTTokenTracker.cc
  2991. * src/DHTUtil.cc: Removed.
  2992. * src/DHTUtil.h: Removed.
  2993. * src/Makefile.am
  2994. * src/Util.cc
  2995. * src/Util.h
  2996. * src/bitfield.h
  2997. * src/bittorrent_helper.cc
  2998. * src/bittorrent_helper.h
  2999. * test/ARC4Test.cc
  3000. * test/BNodeTest.cc
  3001. * test/DHTAnnouncePeerMessageTest.cc
  3002. * test/DHTAnnouncePeerReplyMessageTest.cc
  3003. * test/DHTFindNodeMessageTest.cc
  3004. * test/DHTFindNodeReplyMessageTest.cc
  3005. * test/DHTGetPeersMessageTest.cc
  3006. * test/DHTGetPeersReplyMessageTest.cc
  3007. * test/DHTPingMessageTest.cc
  3008. * test/DHTPingReplyMessageTest.cc
  3009. * test/DHTTokenTrackerTest.cc
  3010. * test/DHTUtilTest.cc: Removed.
  3011. * test/Makefile.am
  3012. * test/UtilTest.cc
  3013. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Removed the call to trim() because trim() is called for each
  3015. element in split().
  3016. * src/CookieParser.cc
  3017. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Replaced Util::slice() with split()
  3019. * src/AbstractCommand.cc
  3020. * src/CookieParser.cc
  3021. * src/File.cc
  3022. * src/HttpHeaderProcessor.cc
  3023. * src/HttpRequest.cc
  3024. * src/Metalink2RequestGroup.cc
  3025. * src/MetalinkParserController.cc
  3026. * src/Netrc.cc
  3027. * src/NsCookieParser.cc
  3028. * src/ParameterizedStringParser.cc
  3029. * src/ServerStatMan.cc
  3030. * src/UriListParser.cc
  3031. * src/Util.cc
  3032. * src/Util.h
  3033. * src/bittorrent_helper.cc
  3034. * test/UtilTest.cc
  3035. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. Use request->getDir() instead of "/" for embedded user/pass in
  3037. URI.
  3038. * src/AuthConfigFactory.cc
  3039. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Fixed wrong insertion point for BasicCred.
  3041. * src/AuthConfigFactory.cc
  3042. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Allowed non-regular file in LocalFilePathOptionHandler
  3044. * src/OptionHandlerImpl.h
  3045. * src/message.h
  3046. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3048. * src/Netrc.cc
  3049. * src/Util.h
  3050. * test/NetrcTest.cc
  3051. * test/sample.netrc
  3052. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Fixed typo
  3054. * src/BtDependency.cc
  3055. * src/BtRejectMessage.cc
  3056. * src/FtpConnection.cc
  3057. * src/HttpHeaderProcessor.h
  3058. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Fixed lintian report in man page
  3060. * doc/aria2c.1.txt
  3061. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3062. Release 1.6.2
  3063. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Updated Ukrainian translation. Thanks to all translators.
  3065. * po/uk.po
  3066. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Updated translation template
  3068. * po
  3069. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Bump up version number to 1.6.2
  3071. * configure.ac
  3072. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Updated licence message in -v output.
  3074. * src/version_usage.cc
  3075. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Replaced aria2 with aria2c in help message.
  3077. * src/version_usage.cc
  3078. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3080. * src/version_usage.cc
  3081. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Quoted localedir
  3083. * src/Makefile.am
  3084. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3086. utime. Check header for utime.h.
  3087. * configure.ac
  3088. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3090. * configure.ac
  3091. * src/daemon.cc
  3092. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Don't set localedir manually. Leave it to autoconf.
  3094. * configure.ac
  3095. * src/Makefile.am
  3096. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Added --install to ACLOCAL_AMFLAGS.
  3098. Removed m4 from SUBDIRS.
  3099. Updated automake 1.11 and autoconf 2.64.
  3100. Replaced some obsolute macros with new one.
  3101. * Makefile.am
  3102. * configure.ac
  3103. * m4/aria2_arg.m4
  3104. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Removed Makefile.am in m4 directory.
  3106. * configure.ac
  3107. * m4/ChangeLog
  3108. * m4/Makefile.am
  3109. * m4/Makefile.in
  3110. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Removed unused m4 macros.
  3112. * m4/intldir.m4
  3113. * m4/inttypes.m4
  3114. * m4/isc-posix.m4
  3115. * m4/libgnutls-extra.m4
  3116. * m4/ulonglong.m4
  3117. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Fixed the bug that causes segmentation fault if
  3119. req->getCurrentUrl() contains printf formatting characters such as
  3120. %d. The statement that causes this bug is useless and removed.
  3121. * src/AbstractCommand.cc
  3122. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. * Release 1.6.1
  3124. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Updated Simplified Chinese translation. Thanks to translators.
  3126. * po/zh_CN.po
  3127. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Updated translation template
  3129. * po
  3130. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Bump up version number to 1.6.1
  3132. * configure.ac
  3133. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Changed interval from 120 to 60 for dropping inactive peer.
  3135. * src/DefaultBtInteractive.cc
  3136. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Updated man page for --user-agent and --peer-id-prefix option.
  3138. * doc/aria2c.1.txt
  3139. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Code clean up
  3141. * src/BtPostDownloadHandler.cc
  3142. * src/ContentTypeRequestGroupCriteria.cc
  3143. * src/ContentTypeRequestGroupCriteria.h
  3144. * src/DownloadHandlerConstants.cc
  3145. * src/DownloadHandlerConstants.h
  3146. * src/DownloadHandlerFactory.cc
  3147. * src/MetalinkPostDownloadHandler.cc
  3148. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Don't save control file when aria2 exists while checking piece
  3150. hash(behavior of -V option). If control file doesn't exist when
  3151. aria2 launched, the completed length in saved control file will be
  3152. 0 byte and this confuses user. disableSaveControlFile() is called
  3153. in RequestGroup::processCheckIntegrityEntry().
  3154. enableSaveControlFile() will be called after hash checking is
  3155. done. See CheckIntegrityCommand.
  3156. * src/CheckIntegrityCommand.cc
  3157. * src/RequestGroup.cc
  3158. * src/RequestGroup.h
  3159. * src/RequestGroupMan.cc
  3160. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Included version number in Peer ID and client version. Peer ID
  3162. now starts with "aria2/VERSION-", where VERSION is
  3163. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3164. * src/DefaultBtInteractive.cc
  3165. * src/OptionHandlerFactory.cc
  3166. * src/bittorrent_helper.cc
  3167. * src/bittorrent_helper.h
  3168. * src/main.cc
  3169. * src/usage_text.h
  3170. * test/BittorrentHelperTest.cc
  3171. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Fixed memory leak.
  3173. * src/DownloadCommand.cc
  3174. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Removed server, port, user and passwd key from options before
  3176. XMLRPC::Client.call since they are not options of aria2.
  3177. * doc/xmlrpc/aria2mon
  3178. * doc/xmlrpc/aria2rpc
  3179. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Included version number in user-agent string.
  3181. * src/OptionHandlerFactory.cc
  3182. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Fixed the bug that the option values changed by XML-RPC
  3184. method(changeOption and changeGlobalOption) are overwritten to the
  3185. previous value by the next these request which doesn't contain
  3186. that option value. Supporse max-download-limit is initially 0. You
  3187. changed this value to 100K by changeOption. Then you issue
  3188. changeOption request to change max-upload-limit to 50K. This
  3189. second request doesn't contain xml-download-limit, so it is back
  3190. to initial value, 0. Another improvement is that exception is
  3191. thrown when changeOption and changeGlobalOption request contains
  3192. option name which doesn't allowed in each request.
  3193. * src/DownloadEngine.h
  3194. * src/XmlRpcMethod.cc
  3195. * src/XmlRpcMethod.h
  3196. * src/XmlRpcMethodImpl.cc
  3197. * src/download_helper.cc
  3198. * src/download_helper.h
  3199. * test/XmlRpcMethodTest.cc
  3200. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Added missing MetalinkParserStateImpl.{cc,h}
  3202. * src/MetalinkParserStateImpl.cc
  3203. * src/MetalinkParserStateImpl.h
  3204. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Put all MetalinkParserState subclasses into
  3206. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3207. * src/FileMetalinkParserState.cc: Removed
  3208. * src/FileMetalinkParserState.h: Removed
  3209. * src/FilesMetalinkParserState.cc: Removed
  3210. * src/FilesMetalinkParserState.h: Removed
  3211. * src/FinMetalinkParserState.cc: Removed
  3212. * src/FinMetalinkParserState.h: Removed
  3213. * src/HashMetalinkParserState.cc: Removed
  3214. * src/HashMetalinkParserState.h: Removed
  3215. * src/InitialMetalinkParserState.cc: Removed
  3216. * src/InitialMetalinkParserState.h: Removed
  3217. * src/LanguageMetalinkParserState.cc: Removed
  3218. * src/LanguageMetalinkParserState.h: Removed
  3219. * src/Makefile.am
  3220. * src/MetalinkMetalinkParserState.cc: Removed
  3221. * src/MetalinkMetalinkParserState.h: Removed
  3222. * src/MetalinkParserState.h
  3223. * src/MetalinkParserStateMachine.cc
  3224. * src/MetalinkParserStateMachine.h
  3225. * src/OSMetalinkParserState.cc: Removed
  3226. * src/OSMetalinkParserState.h: Removed
  3227. * src/PieceHashMetalinkParserState.cc: Removed
  3228. * src/PieceHashMetalinkParserState.h: Removed
  3229. * src/PiecesMetalinkParserState.cc: Removed
  3230. * src/PiecesMetalinkParserState.h: Removed
  3231. * src/ResourcesMetalinkParserState.cc: Removed
  3232. * src/ResourcesMetalinkParserState.h: Removed
  3233. * src/SignatureMetalinkParserState.cc: Removed
  3234. * src/SignatureMetalinkParserState.h: Removed
  3235. * src/SizeMetalinkParserState.cc: Removed
  3236. * src/SizeMetalinkParserState.h: Removed
  3237. * src/SkipTagMetalinkParserState.cc: Removed
  3238. * src/SkipTagMetalinkParserState.h: Removed
  3239. * src/URLMetalinkParserState.cc: Removed
  3240. * src/URLMetalinkParserState.h: Removed
  3241. * src/VerificationMetalinkParserState.cc: Removed
  3242. * src/VerificationMetalinkParserState.h: Removed
  3243. * src/VersionMetalinkParserState.cc: Removed
  3244. * src/VersionMetalinkParserState.h: Removed
  3245. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Move all functions in PeerMessageUtil to bittorrent_helper.
  3247. * src/BtBitfieldMessage.cc
  3248. * src/BtBitfieldMessageValidator.h
  3249. * src/BtExtendedMessage.cc
  3250. * src/BtHandshakeMessage.cc
  3251. * src/BtHandshakeMessageValidator.h
  3252. * src/BtPieceMessage.cc
  3253. * src/BtPieceMessageValidator.h
  3254. * src/BtPortMessage.cc
  3255. * src/DHTFindNodeReplyMessage.cc
  3256. * src/DHTGetPeersReplyMessage.cc
  3257. * src/DHTMessageFactoryImpl.cc
  3258. * src/DHTRoutingTableDeserializer.cc
  3259. * src/DHTRoutingTableSerializer.cc
  3260. * src/DHTTokenTracker.cc
  3261. * src/DefaultBtMessageFactory.cc
  3262. * src/IndexBtMessage.cc
  3263. * src/IndexBtMessage.h
  3264. * src/IndexBtMessageValidator.h
  3265. * src/Makefile.am
  3266. * src/PeerMessageUtil.cc: Removed.
  3267. * src/PeerMessageUtil.h: Removed.
  3268. * src/RangeBtMessage.cc
  3269. * src/RangeBtMessage.h
  3270. * src/RangeBtMessageValidator.h
  3271. * src/UTPexExtensionMessage.cc
  3272. * src/ZeroBtMessage.cc
  3273. * src/ZeroBtMessage.h
  3274. * src/bittorrent_helper.cc
  3275. * src/bittorrent_helper.h
  3276. * test/BittorrentHelperTest.cc
  3277. * test/BtAllowedFastMessageTest.cc
  3278. * test/BtBitfieldMessageTest.cc
  3279. * test/BtCancelMessageTest.cc
  3280. * test/BtChokeMessageTest.cc
  3281. * test/BtExtendedMessageTest.cc
  3282. * test/BtHandshakeMessageTest.cc
  3283. * test/BtHaveAllMessageTest.cc
  3284. * test/BtHaveMessageTest.cc
  3285. * test/BtHaveNoneMessageTest.cc
  3286. * test/BtInterestedMessageTest.cc
  3287. * test/BtNotInterestedMessageTest.cc
  3288. * test/BtPieceMessageTest.cc
  3289. * test/BtPortMessageTest.cc
  3290. * test/BtRejectMessageTest.cc
  3291. * test/BtRequestMessageTest.cc
  3292. * test/BtSuggestPieceMessageTest.cc
  3293. * test/BtUnchokeMessageTest.cc
  3294. * test/DHTFindNodeReplyMessageTest.cc
  3295. * test/DHTGetPeersReplyMessageTest.cc
  3296. * test/DHTMessageFactoryImplTest.cc
  3297. * test/DHTRoutingTableDeserializerTest.cc
  3298. * test/DHTRoutingTableSerializerTest.cc
  3299. * test/DefaultBtMessageFactoryTest.cc
  3300. * test/DefaultExtensionMessageFactoryTest.cc
  3301. * test/Makefile.am
  3302. * test/PeerListProcessorTest.cc
  3303. * test/PeerMessageUtilTest.cc: Removed.
  3304. * test/UTPexExtensionMessageTest.cc
  3305. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Limit the size of values list when sending get_peers reply.
  3307. * src/DHTGetPeersReplyMessage.cc
  3308. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Updated banner
  3310. * doc/xmlrpc/aria2rpc
  3311. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Added missing help message for remove command.
  3313. * doc/xmlrpc/aria2rpc
  3314. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Generated configure and config.h.in
  3316. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3317. Add check for fork(), which is missing on MinGW
  3318. * src/daemon.cc
  3319. * configure.ac
  3320. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3322. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3323. Util::httpGMT().
  3324. * src/Util.cc
  3325. * src/Util.h
  3326. * test/UtilTest.cc
  3327. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. * Release 1.6.0
  3329. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3330. Fixed a path to xmlrpc/README.txt
  3331. * doc/Makefile.am
  3332. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Added XML-RPC in -v Configuration output.
  3334. * src/FeatureConfig.cc
  3335. * src/FeatureConfig.h
  3336. * test/FeatureConfigTest.cc
  3337. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Updated Bulgarian, Russian, Slovak and Japanese
  3339. translations. Thanks to all translators.
  3340. * po/bg.po
  3341. * po/ja.po
  3342. * po/ru.po
  3343. * po/sk.po
  3344. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Removed --retry-wait option from aria2rpc
  3346. * doc/xmlrpc/aria2rpc
  3347. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3348. Removed --retry-wait option from man page.
  3349. * doc/aria2c.1.txt
  3350. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Removed --retry-wait option since the current architecture doesn't
  3352. allow sleep for particular URI.
  3353. * src/AbstractCommand.cc
  3354. * src/OptionHandlerFactory.cc
  3355. * src/download_helper.cc
  3356. * src/prefs.cc
  3357. * src/prefs.h
  3358. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Removed Retry-After header support. Since the current architecture
  3360. doesn't allow sleep for particular URI.
  3361. * src/HttpSkipResponseCommand.cc
  3362. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Updated the help message for --daemon option.
  3364. * doc/aria2c.1.txt
  3365. * src/usage_text.h
  3366. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Added our own daemon() function for systems which desn't have
  3368. daemon(3).
  3369. * configure.ac
  3370. * src/Makefile.am
  3371. * src/daemon.cc
  3372. * src/daemon.h
  3373. * src/option_processing.cc
  3374. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Simplified File::getCurrentDir()
  3376. * src/File.cc
  3377. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Use exit() instead of _exit
  3379. * src/RequestGroupMan.cc
  3380. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Replaced "CATEGORY" with "TAGS".
  3382. * src/usage_text.h
  3383. * doc/aria2c.1.txt
  3384. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Updated the help message for --help option.
  3386. * src/usage_text.h
  3387. * doc/aria2c.1.txt
  3388. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Updated man page for added help tags.
  3390. * doc/aria2c.1.txt
  3391. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3392. Added help category #file. Added #file tag to the options related
  3393. to downloaded file.
  3394. * src/OptionHandlerFactory.cc
  3395. * src/help_tags.h
  3396. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added help categories: #cookie and #hook. Added #https tag to
  3398. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3399. * src/OptionHandlerFactory.cc
  3400. * src/help_tags.h
  3401. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Made MSG_NOT_FILE translatable.
  3403. * src/message.h
  3404. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Updated man page for --help option.
  3406. * doc/aria2c.1.txt
  3407. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Updated doc.
  3409. * src/XmlRpcMethod.h
  3410. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Help category now starts with "#" to distinguish a category from
  3412. keyword search. For example, "http" categroy is now "#http". You
  3413. can type "--help=#http" to get explanation of options related to
  3414. http. If '#' is omitted, then the argument is treated as a keyword
  3415. and aria2 searches options whose name includes the keyword and
  3416. print matched ones. For example, "--help=http" will show options
  3417. whose name includes "http".
  3418. * src/OptionHandlerFactory.cc
  3419. * src/help_tags.h
  3420. * src/usage_text.h
  3421. * src/version_usage.cc
  3422. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Documented missing experimental tag and newly added xml-rpc tag in
  3424. man page.
  3425. * doc/aria2c.1.txt
  3426. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Added xml-rpc help tag. Tagged xml-rpc related options with
  3428. xml-rpc tag.
  3429. * src/OptionHandlerFactory.cc
  3430. * src/help_tags.h
  3431. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Updated message when a path is not a file. Updated common message
  3433. for wrong option.
  3434. * src/OptionHandlerException.cc
  3435. * src/message.h
  3436. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Use File::isFile() instead of File::exists(). Updated message when
  3438. a path is not a file.
  3439. * src/OptionHandlerImpl.cc
  3440. * src/message.h
  3441. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Fixed the bug that server performence profile is not updated when
  3443. aria2c was terminated by emergency shutdown.
  3444. * src/TrackerWatcherCommand.cc
  3445. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Use LocalFilePathOptionHandler for -T and -M option.
  3447. Updated message of MSG_FILE_NOT_EXIST.
  3448. * src/OptionHandlerFactory.cc
  3449. * src/message.h
  3450. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Added LocalFilePathOptionHandler which check whether the specified
  3452. file path does exist or not.
  3453. * src/OptionHandlerImpl.cc
  3454. * src/message.h
  3455. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Updated wiki page URI.
  3457. * README
  3458. * doc/aria2c.1.txt
  3459. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Added README.txt for xmlrpc directory.
  3461. * doc/Makefile.am
  3462. * doc/xmlrpc/README.txt
  3463. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Bump up version number to 1.6.0.
  3465. * configure.ac
  3466. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Added XML-RPC client scripts written in ruby.
  3468. * doc/Makefile.am
  3469. * doc/xmlrpc/aria2mon
  3470. * doc/xmlrpc/aria2rpc
  3471. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Added support for IPv6 literal address in URI. Now aria2 can
  3473. handle URI such as http://[::1]/
  3474. * src/HttpRequest.cc
  3475. * src/HttpRequest.h
  3476. * src/Request.cc
  3477. * src/Request.h
  3478. * test/HttpRequestTest.cc
  3479. * test/OptionHandlerTest.cc
  3480. * test/RequestTest.cc
  3481. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Fixed the bug that HTTP request header for XML-RPC request is not
  3483. parsed properly.
  3484. * src/HttpHeader.cc
  3485. * src/HttpHeaderProcessor.cc
  3486. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Fixed the bug that XML-RPC authorization might be done before HTTP
  3488. request header is fully received.
  3489. * src/HttpServerCommand.cc
  3490. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Documented --xml-rpc-listen-all option in man page.
  3492. * doc/aria2c.1.txt
  3493. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Added --xml-rpc-listen-all option. If true is given to this
  3495. option, aria2 listens incoming XML-RPC requests on all network
  3496. interfaces. If false is given, listens only on local loopback
  3497. interface. The default value is false.
  3498. * src/HttpListenCommand.cc
  3499. * src/OptionHandlerFactory.cc
  3500. * src/SocketCore.cc
  3501. * src/SocketCore.h
  3502. * src/prefs.cc
  3503. * src/prefs.h
  3504. * src/usage_text.h
  3505. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. * Release 1.5.2
  3507. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Updated Ukrainian and Russian translations. Thanks to all
  3509. translators.
  3510. * po/ru.po
  3511. * po/uk.po
  3512. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Bump up version number to 1.5.2
  3514. * configure.ac
  3515. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Get comment, comment.utf-8, created by and creation date from
  3517. .torrent file and print them in -S output.
  3518. * src/bittorrent_helper.cc
  3519. * src/bittorrent_helper.h
  3520. * test/BittorrentHelperTest.cc
  3521. * test/test.torrent
  3522. * test/utf8.torrent
  3523. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Show exact file size along in -S option output.
  3525. * src/Util.h
  3526. * src/bittorrent_helper.cc
  3527. * test/UtilTest.cc
  3528. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Avoided unnecessary memory allocation in
  3530. BitfieldMan::getCompletedLength().
  3531. * src/BitfieldMan.cc
  3532. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Fixed the bug that download fails if
  3534. SocketCore::establishConnection() throws exception and aria2
  3535. doesn't try another address.
  3536. * src/AbstractCommand.cc
  3537. * src/InitiateConnectionCommand.cc
  3538. * src/message.h
  3539. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3541. detected properly.
  3542. * m4/sqlite3.m4
  3543. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3545. because it causes compile error if PARAMS macro is defined.
  3546. * src/XmlRpcElements.cc
  3547. * src/XmlRpcElements.h
  3548. * src/XmlRpcRequestParserStateImpl.cc
  3549. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. * Release 1.5.1
  3551. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Bump up version number to 1.5.1
  3553. * configure.ac
  3554. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Fixed compile error without BitTorrent support
  3556. * src/DefaultBtProgressInfoFile.cc
  3557. * src/DownloadEngine.cc
  3558. * src/DownloadEngine.h
  3559. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Added missing '=' in Download Results
  3561. * src/RequestGroupMan.cc
  3562. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Fixed compiler warning
  3564. * src/DefaultBtProgressInfoFile.cc
  3565. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Fixed compiler warning on 32bit systems.
  3567. * src/DownloadCommand.cc
  3568. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Call flush from ServerStatMan::save()
  3570. * src/ServerStatMan.cc
  3571. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Check stream status after file is opened.
  3573. * src/CookieStorage.cc
  3574. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Rewritten Signature::save()
  3576. * src/Signature.cc
  3577. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Rewritten RequestGroupMan::saveServerStat()
  3579. * src/RequestGroupMan.cc
  3580. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Rewritten stream error handling
  3582. * src/DHTAutoSaveCommand.cc
  3583. * src/DHTRoutingTableDeserializer.cc
  3584. * src/DHTRoutingTableSerializer.cc
  3585. * src/DHTSetup.cc
  3586. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Check stream status after file is opened.
  3588. * src/DefaultBtProgressInfoFile.cc
  3589. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Rewritten stream error handling
  3591. * src/DefaultBtProgressInfoFile.cc
  3592. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Make sure that stream is closed before renaming file. Unit test
  3594. fails on mingw32 in the previous implementation.
  3595. * src/CookieStorage.cc
  3596. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Fixed the unit test error without sqlite3
  3598. * test/CookieStorageTest.cc
  3599. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Fixed the undefined reference error
  3601. * test/HttpResponseTest.cc
  3602. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. * Release 1.5.0
  3604. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3606. Ukrainian translations. Thanks to all translators.
  3607. * po/ru.po
  3608. * po/it.po
  3609. * po/da.po
  3610. * po/bg.po
  3611. * po/ja.po
  3612. * po/uk.po
  3613. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3614. Added missing src/Logger.cc
  3615. * src/Logger.cc
  3616. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Rewritten Logger to avoiding constly virtual call.
  3618. * src/LogFactory.cc
  3619. * src/LogFactory.h
  3620. * src/Logger.h
  3621. * src/Makefile.am
  3622. * src/Makefile.in
  3623. * src/NullLogger.h: Removed.
  3624. * src/SimpleLogger.cc
  3625. * src/SimpleLogger.h
  3626. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Updated doc
  3628. * src/main.cc
  3629. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Updated debug log message
  3631. * src/AbstractCommand.cc
  3632. * src/message.h
  3633. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Avoid to create zombie process when commands specified in
  3635. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3636. X and NetBSD.
  3637. * src/main.cc
  3638. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3639. Fixed typo
  3640. * src/usage_text.h
  3641. * doc/aria2c.1.txt
  3642. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Documented 'errorCode' of tellStatus in man page.
  3644. * doc/aria2c.1.txt
  3645. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3647. This key is only available for stopped/completed downloads and its
  3648. value is the error code defined in EXIT STATUS in man page.
  3649. * src/XmlRpcMethodImpl.cc
  3650. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Fixed the bug that session download length is not updated when
  3652. PeerStat is not fastest one.
  3653. * src/SegmentMan.cc
  3654. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Updated doc.
  3656. * doc/aria2c.1.txt
  3657. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Updated doc.
  3659. * src/AbstractCommand.cc
  3660. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Handle the case when DownloadContext has no FileEntry.
  3662. * src/XmlRpcMethodImpl.cc
  3663. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Handle the situation where struct option.name is char *.
  3665. * configure.ac
  3666. * src/OptionParser.cc
  3667. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Code cleanup
  3669. * src/AbstractCommand.cc
  3670. * src/DownloadCommand.cc
  3671. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Use option of each download to create AuthConfig instead of global
  3673. option.
  3674. * src/AuthConfigFactory.cc
  3675. * src/AuthConfigFactory.h
  3676. * src/FtpNegotiationCommand.cc
  3677. * src/HttpRequest.cc
  3678. * src/HttpRequest.h
  3679. * src/HttpRequestCommand.cc
  3680. * src/HttpSkipResponseCommand.cc
  3681. * src/MultiUrlRequestInfo.cc
  3682. * test/AuthConfigFactoryTest.cc
  3683. * test/FtpConnectionTest.cc
  3684. * test/HttpRequestTest.cc
  3685. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Don't call prepareForRetry(1) if all segments are ignored in
  3687. SegmentMan.
  3688. * src/AbstractCommand.cc
  3689. * src/BitfieldMan.cc
  3690. * src/BitfieldMan.h
  3691. * src/SegmentMan.cc
  3692. * src/SegmentMan.h
  3693. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Removed FileEntry::getAssociatedUris()
  3695. * src/FileEntry.h
  3696. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Updated doc: TODO1.5 -> TODO
  3698. * src/FileEntry.cc
  3699. * src/HttpResponseCommand.cc
  3700. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3702. involved.
  3703. * src/RequestGroup.cc
  3704. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Eliminated duplicated filterBitfield initialization code.
  3706. * src/BitfieldMan.cc
  3707. * src/BitfieldMan.h
  3708. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3710. relatively naive approach, though). For DownloadFailureException,
  3711. we handle the case when req is null properly.
  3712. * src/AbstractCommand.cc
  3713. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Added function returning suffix of control file to
  3715. DefaultBtProgressInfoFile.
  3716. * src/DefaultBtProgressInfoFile.cc
  3717. * src/DefaultBtProgressInfoFile.h
  3718. * src/RequestGroup.cc
  3719. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Documented getVersion in man page.
  3721. * doc/aria2c.1.txt
  3722. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Documented type of offset and num for tellWaiting xml-rpc method.
  3724. * doc/aria2c.1.txt
  3725. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Implemented getVersion xml-rpc method. This method returns struct
  3727. which has 2 key-value pairs: "version" key is associated to the
  3728. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3729. associated to the list of enabled features, such as "Async DNS",
  3730. "BitTorrent".
  3731. * src/FeatureConfig.h
  3732. * src/XmlRpcMethodFactory.cc
  3733. * src/XmlRpcMethodImpl.cc
  3734. * src/XmlRpcMethodImpl.h
  3735. * test/XmlRpcMethodTest.cc
  3736. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3738. for compatibility issue.
  3739. * src/SocketCore.cc
  3740. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Fixed compile error with openSSL
  3742. * src/bittorrent_helper.cc
  3743. * src/messageDigest.h
  3744. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Removed bad code: setting certificate type priority to key
  3746. exchange priority.
  3747. * src/SocketCore.cc
  3748. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. Disconnect seeder if client is also in seed state.
  3750. * src/BtBitfieldMessage.cc
  3751. * src/BtHaveAllMessage.cc
  3752. * src/BtHaveMessage.cc
  3753. * src/message.h
  3754. * test/BtBitfieldMessageTest.cc
  3755. * test/BtHaveAllMessageTest.cc
  3756. * test/BtHaveMessageTest.cc
  3757. * test/MockPieceStorage.h
  3758. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Keep CreateRequestCommand in queue when no segment is available so
  3760. that they can pick up pieces which slow BitTorrent peers are
  3761. downloading.
  3762. * src/AbstractCommand.cc
  3763. * src/CreateRequestCommand.cc
  3764. * src/CreateRequestCommand.h
  3765. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. --bt-stop-timeout now only checks download speed.
  3767. * src/BtStopDownloadCommand.cc
  3768. * src/BtStopDownloadCommand.h
  3769. * src/BtSetup.cc
  3770. * src/usage_text.h
  3771. * doc/aria2c.1.txt
  3772. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Fixed compile error regarding BUFSIZE.
  3774. * src/DownloadCommand.cc
  3775. * src/DownloadCommand.h
  3776. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. Documented tellWaiting xml-rpc method in man page.
  3778. * doc/aria2c.1.txt
  3779. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Bump up version number to 1.5.0
  3781. * configure.ac
  3782. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Removed resolved TODO1.5
  3784. * src/AbstractCommand.cc
  3785. * src/DownloadCommand.cc
  3786. * src/RequestGroup.cc
  3787. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Release pooled and in-flight Request objectsand URIResult objects
  3789. in FileEntry after download completed.
  3790. * src/DownloadContext.cc
  3791. * src/DownloadContext.h
  3792. * src/FileEntry.cc
  3793. * src/FileEntry.h
  3794. * src/RequestGroup.cc
  3795. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Set manual and source attribute in aria2c.1.txt
  3797. * doc/aria2c.1.txt
  3798. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Documented that the default value of --use-head is 'false' in man
  3800. page.
  3801. * doc/aria2c.1.txt
  3802. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Added bt-stop-timeout option to -i list.
  3804. * doc/aria2c.1.txt
  3805. * src/download_helper.cc
  3806. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Fixed typo
  3808. * doc/aria2c.1.txt
  3809. * src/usage_text.h
  3810. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Removed peer-id-prefix option from -i list.
  3812. * doc/aria2c.1.txt
  3813. * src/download_helper.cc
  3814. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Fixed typo
  3816. * doc/aria2c.1.txt
  3817. * src/usage_text.h
  3818. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Documented --bt-stop-timeout option in man page.
  3820. * doc/aria2c.1.txt
  3821. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Updated README regarding multi-file torrent web-seeding.
  3823. * doc/README.txt
  3824. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Updated man page regarding multi-file torrent web-seeding.
  3826. * doc/aria2c.1.txt
  3827. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Updated doc
  3829. * src/version_usage.cc
  3830. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Winsock select() doesn't work if no socket is in FD_SET. To
  3832. overcome this problem, a dummy socket is added to FD_SET and it is
  3833. given to select().
  3834. * src/SelectEventPoll.cc
  3835. * src/SelectEventPoll.h
  3836. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Disabled --use-head option by default because --use-head=true
  3838. causes problems on some web sites.
  3839. * src/OptionHandlerFactory.cc
  3840. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Print URL List in -S option for torrent.
  3842. * src/bittorrent_helper.cc
  3843. * src/bittorrent_helper.h
  3844. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Allocate buffer in ctor of DownloadCommand.
  3846. * src/DownloadCommand.cc
  3847. * src/DownloadCommand.h
  3848. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Removed DiskAdaptor::onDownloadComplete()
  3850. * src/DirectDiskAdaptor.cc
  3851. * src/DirectDiskAdaptor.h
  3852. * src/DiskAdaptor.h
  3853. * src/MultiDiskAdaptor.cc
  3854. * src/MultiDiskAdaptor.h
  3855. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Committed missing BtStopDownloadCommand.{cc,h}
  3857. * src/BtStopDownloadCommand.cc
  3858. * src/BtStopDownloadCommand.h
  3859. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3861. download if the download speed is 0 and the number of seeder is 0
  3862. in consecutive SEC seconds. By default, this function is disabled.
  3863. * src/BtSetup.cc
  3864. * src/Makefile.am
  3865. * src/OptionHandlerFactory.cc
  3866. * src/prefs.cc
  3867. * src/prefs.h
  3868. * src/usage_text.h
  3869. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Removed the call to DiskAdaptor::onDownloadComplete() from
  3871. BtCheckIntegrityEntry and DefaultPieceStorage.
  3872. * src/BtCheckIntegrityEntry.cc
  3873. * src/DefaultPieceStorage.cc
  3874. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Commented out throw statements when number of piece is 0 to
  3876. download 0 length torrent.
  3877. * src/bittorrent_helper.cc
  3878. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Call RequestGroup::createNextCommandWithAdj() from
  3880. BtFileAllocationEntry if at least one FileEntry has URI. The
  3881. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3882. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3883. * src/BtFileAllocationEntry.cc
  3884. * src/FileEntry.h
  3885. * src/RequestGroup.cc
  3886. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Generate peer ID after SimpleRandomizer is initialized.
  3888. * src/main.cc
  3889. * src/option_processing.cc
  3890. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Removed unused method argument.
  3892. * src/CreateRequestCommand.cc
  3893. * src/RequestGroup.cc
  3894. * src/RequestGroup.h
  3895. * src/RequestGroupMan.cc
  3896. * src/TrackerWatcherCommand.cc
  3897. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Made URI reusing function work.
  3899. * src/CreateRequestCommand.cc
  3900. * src/FileEntry.cc
  3901. * src/FileEntry.h
  3902. * test/FileEntryTest.cc
  3903. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Add formerly fastest PeerStat's sessionDownloadLength to new
  3905. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3906. bytes in a session.
  3907. * src/PeerStat.cc
  3908. * src/SegmentMan.cc
  3909. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. If pipelining is enabled, we can always pool socket.
  3911. * src/HttpDownloadCommand.cc
  3912. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. In a single file download, file size becomes known just after
  3914. downloading, set total length to FileEntry object when download
  3915. completed.
  3916. * src/DownloadCommand.cc
  3917. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Use std::vector::reserve() for fileEntries and pieceHashes in
  3919. bittorrent_helper
  3920. * src/bittorrent_helper.cc
  3921. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3923. Removed hidden option PREF_RESET_URI.
  3924. * src/AbstractCommand.cc
  3925. * src/OptionHandlerFactory.cc
  3926. * src/prefs.cc
  3927. * src/prefs.h
  3928. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Removed unused variable/function.
  3930. * src/PeerStat.h
  3931. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3932. Show first URL in Download Results if file path is not available.
  3933. * src/FileEntry.h
  3934. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Throw exception if file path doesn't exist in FTP URL.
  3936. * src/InitiateConnectionCommandFactory.cc
  3937. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3939. * src/BitfieldMan.cc
  3940. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3942. of PeerStat in SegmentMan. peerStats is used for calculating
  3943. download speed. Therefore all active PeerStats should be in
  3944. there. Another one is _fastestPeerStats and it only contains
  3945. fastest PeerStat for each hostname/protocol pair. They are used
  3946. for updating ServerStat.
  3947. * src/DownloadCommand.cc
  3948. * src/Request.h
  3949. * src/RequestGroupMan.cc
  3950. * src/SegmentMan.cc
  3951. * src/SegmentMan.h
  3952. * test/SegmentManTest.cc
  3953. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Try all available addresses returned by DNS until it gets
  3955. connected in HTTP(S)/FTP download
  3956. * src/AbstractCommand.cc
  3957. * src/AbstractCommand.h
  3958. * src/AbstractProxyRequestCommand.cc
  3959. * src/AbstractProxyRequestCommand.h
  3960. * src/DNSCache.h
  3961. * src/DownloadEngine.cc
  3962. * src/DownloadEngine.h
  3963. * src/FtpInitiateConnectionCommand.cc
  3964. * src/FtpInitiateConnectionCommand.h
  3965. * src/FtpNegotiationCommand.cc
  3966. * src/FtpNegotiationCommand.h
  3967. * src/HttpInitiateConnectionCommand.cc
  3968. * src/HttpInitiateConnectionCommand.h
  3969. * src/HttpRequestCommand.cc
  3970. * src/HttpRequestCommand.h
  3971. * src/InitiateConnectionCommand.cc
  3972. * src/InitiateConnectionCommand.h
  3973. * test/DNSCacheTest.cc
  3974. * test/Makefile.am
  3975. * test/SimpleDNSCacheTest.cc
  3976. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Updated doc
  3978. * src/download_helper.cc
  3979. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Refactored fieldMan ctor.
  3981. * src/BitfieldMan.cc
  3982. * src/BitfieldMan.h
  3983. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Don't print "No files to download." message if -S is given.
  3985. * src/main.cc
  3986. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Set referer and method to newly created Request object.
  3988. * src/CreateRequestCommand.cc
  3989. * src/FileEntry.cc
  3990. * src/FileEntry.h
  3991. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3993. * src/AbstractCommand.cc
  3994. * src/AbstractCommand.h
  3995. * src/CreateRequestCommand.cc
  3996. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3997. Get proxy download working
  3998. * src/AbstractProxyRequestCommand.cc
  3999. * src/AbstractProxyRequestCommand.h
  4000. * src/AbstractProxyResponseCommand.cc
  4001. * src/AbstractProxyResponseCommand.h
  4002. * src/FtpInitiateConnectionCommand.cc
  4003. * src/FtpTunnelRequestCommand.cc
  4004. * src/FtpTunnelRequestCommand.h
  4005. * src/FtpTunnelResponseCommand.cc
  4006. * src/FtpTunnelResponseCommand.h
  4007. * src/HttpInitiateConnectionCommand.cc
  4008. * src/HttpProxyRequestCommand.cc
  4009. * src/HttpProxyRequestCommand.h
  4010. * src/HttpProxyResponseCommand.cc
  4011. * src/HttpProxyResponseCommand.h
  4012. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Use SegmentMan::getSegment(cuid) for single file download.
  4014. * src/AbstractCommand.cc
  4015. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Fixed bufSize calculation
  4017. * src/DownloadCommand.cc
  4018. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Don't append "/" if base URI ends with "/".
  4020. * src/bittorrent_helper.cc
  4021. * test/url-list-multiFile.torrent
  4022. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. HTTP pipelining is now working. Fixed Segmention fault in
  4024. BitfieldMan's copy ctor.
  4025. * src/AbstractCommand.cc
  4026. * src/BitfieldMan.cc
  4027. * src/BitfieldMan.h
  4028. * src/DownloadCommand.cc
  4029. * src/HttpDownloadCommand.cc
  4030. * src/HttpRequest.cc
  4031. * src/SegmentMan.cc
  4032. * src/SegmentMan.h
  4033. * test/BitfieldManTest.cc
  4034. * test/SegmentManTest.cc
  4035. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Removed ServerHost. Same functionality is implemented using
  4037. FileEntry's in-flight Request objects.
  4038. * src/AbstractCommand.cc
  4039. * src/BtDependency.cc
  4040. * src/CreateRequestCommand.cc
  4041. * src/FileEntry.cc
  4042. * src/FileEntry.h
  4043. * src/FtpNegotiationCommand.cc
  4044. * src/HttpResponseCommand.cc
  4045. * src/Makefile.am
  4046. * src/Metalink2RequestGroup.cc
  4047. * src/RequestGroup.cc
  4048. * src/RequestGroup.h
  4049. * src/ServerHost.cc: Removed
  4050. * src/ServerHost.h: Removed
  4051. * test/BtDependencyTest.cc
  4052. * test/FileEntryTest.cc
  4053. * test/RequestGroupTest.cc
  4054. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Rewritten PeerStat handling. In the previous implementation,
  4056. faster command tries to find slower command. In this new
  4057. implementation, slower command tries to find faster command.
  4058. PeerStat is now created in each HTTP/FTP request to get download
  4059. rate correctly. If the download range is small, the download rate
  4060. tends to small and this will occur at the later stage of download.
  4061. * src/AbstractCommand.cc
  4062. * src/DownloadCommand.cc
  4063. * src/FileEntry.cc
  4064. * src/FileEntry.h
  4065. * src/Request.cc
  4066. * src/Request.h
  4067. * src/RequestGroup.h
  4068. * src/RequestGroupMan.cc
  4069. * src/SegmentMan.cc
  4070. * src/SegmentMan.h
  4071. * test/SegmentManTest.cc
  4072. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Removed _uris from RequestGroup. All functions that refer to _uris
  4074. were moved to FileEntry. Exit status code are now defined in
  4075. DownloadResultCode.h.
  4076. * src/AbstractCommand.cc
  4077. * src/AdaptiveURISelector.cc
  4078. * src/AdaptiveURISelector.h
  4079. * src/AutoSaveCommand.cc
  4080. * src/BtPostDownloadHandler.cc
  4081. * src/CheckIntegrityDispatcherCommand.cc
  4082. * src/CookieStorage.cc
  4083. * src/DHTAutoSaveCommand.cc
  4084. * src/DHTBucketRefreshCommand.cc
  4085. * src/DHTEntryPointNameResolveCommand.cc
  4086. * src/DHTInteractionCommand.cc
  4087. * src/DHTPeerAnnounceCommand.cc
  4088. * src/DHTTokenUpdateCommand.cc
  4089. * src/DlAbortEx.h
  4090. * src/DlRetryEx.h
  4091. * src/DownloadCommand.cc
  4092. * src/DownloadContext.h
  4093. * src/DownloadFailureException.h
  4094. * src/DownloadResult.h
  4095. * src/DownloadResultCode.h
  4096. * src/FeedbackURISelector.cc
  4097. * src/FeedbackURISelector.h
  4098. * src/FileEntry.cc
  4099. * src/FileEntry.h
  4100. * src/FtpNegotiationCommand.cc
  4101. * src/HttpListenCommand.cc
  4102. * src/HttpResponseCommand.cc
  4103. * src/HttpServerResponseCommand.cc
  4104. * src/HttpSkipResponseCommand.cc
  4105. * src/InOrderURISelector.cc
  4106. * src/InOrderURISelector.h
  4107. * src/Makefile.am
  4108. * src/Makefile.in
  4109. * src/Metalink2RequestGroup.cc
  4110. * src/MultiUrlRequestInfo.cc
  4111. * src/MultiUrlRequestInfo.h
  4112. * src/OptionHandlerFactory.cc
  4113. * src/PeerListenCommand.cc
  4114. * src/RecoverableException.h
  4115. * src/RequestGroup.cc
  4116. * src/RequestGroup.h
  4117. * src/RequestGroupMan.cc
  4118. * src/RequestGroupMan.h
  4119. * src/TimedHaltCommand.cc
  4120. * src/TrackerWatcherCommand.cc
  4121. * src/URIResult.cc
  4122. * src/URIResult.h
  4123. * src/URISelector.h
  4124. * src/XmlRpcMethodImpl.cc
  4125. * src/bittorrent_helper.cc
  4126. * src/bittorrent_helper.h
  4127. * src/download_helper.cc
  4128. * src/main.cc
  4129. * src/option_processing.cc
  4130. * test/BtDependencyTest.cc
  4131. * test/BtPostDownloadHandlerTest.cc
  4132. * test/CookieStorageTest.cc
  4133. * test/DefaultBtMessageDispatcherTest.cc
  4134. * test/DownloadHandlerFactoryTest.cc
  4135. * test/DownloadHelperTest.cc
  4136. * test/FeedbackURISelectorTest.cc
  4137. * test/FileEntryTest.cc
  4138. * test/InOrderURISelectorTest.cc
  4139. * test/Metalink2RequestGroupTest.cc
  4140. * test/MetalinkPostDownloadHandlerTest.cc
  4141. * test/RequestGroupManTest.cc
  4142. * test/RequestGroupTest.cc
  4143. * test/XmlRpcMethodTest.cc
  4144. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Removed MockBtContext.h
  4146. * test/Makefile.am
  4147. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Removed _currentRequest from StreamCheckIntegrityEntry and
  4149. StreamFileAllocationEntry.
  4150. * src/AbstractCommand.cc
  4151. * src/HttpResponseCommand.cc
  4152. * src/RequestGroup.cc
  4153. * src/StreamCheckIntegrityEntry.cc
  4154. * src/StreamCheckIntegrityEntry.h
  4155. * src/StreamFileAllocationEntry.cc
  4156. * src/StreamFileAllocationEntry.h
  4157. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Rewritten DownloadContext and removed SingleFileDownloadContext
  4159. and BtContext and its derived classes. BitTorrent specific
  4160. attributes are now set by DownloadContext::setAttribute() with key
  4161. bittorrent::BITTORRENT.
  4162. * src/AbstractBtMessage.cc
  4163. * src/AbstractBtMessage.h
  4164. * src/AbstractCommand.cc
  4165. * src/AbstractCommand.h
  4166. * src/AbstractProxyRequestCommand.cc
  4167. * src/AbstractProxyResponseCommand.cc
  4168. * src/ActivePeerConnectionCommand.cc
  4169. * src/ActivePeerConnectionCommand.h
  4170. * src/AnnounceList.cc
  4171. * src/BtCheckIntegrityEntry.cc
  4172. * src/BtConstants.h
  4173. * src/BtContext.h: Removed
  4174. * src/BtDependency.cc
  4175. * src/BtExtendedMessage.cc
  4176. * src/BtPieceMessage.cc
  4177. * src/BtPieceMessage.h
  4178. * src/BtPostDownloadHandler.cc
  4179. * src/BtRegistry.cc
  4180. * src/BtRegistry.h
  4181. * src/BtSetup.cc
  4182. * src/CheckIntegrityCommand.cc
  4183. * src/CheckIntegrityEntry.cc
  4184. * src/ChecksumCheckIntegrityEntry.cc
  4185. * src/ConsoleStatCalc.cc
  4186. * src/ContentTypeRequestGroupCriteria.cc
  4187. * src/DHTGetPeersCommand.cc
  4188. * src/DHTGetPeersCommand.h
  4189. * src/DHTPeerLookupTask.cc
  4190. * src/DHTPeerLookupTask.h
  4191. * src/DHTTaskFactory.h
  4192. * src/DHTTaskFactoryImpl.cc
  4193. * src/DHTTaskFactoryImpl.h
  4194. * src/DefaultBtAnnounce.cc
  4195. * src/DefaultBtAnnounce.h
  4196. * src/DefaultBtContext.cc: Removed
  4197. * src/DefaultBtContext.h: Removed
  4198. * src/DefaultBtInteractive.cc
  4199. * src/DefaultBtInteractive.h
  4200. * src/DefaultBtMessageDispatcher.cc
  4201. * src/DefaultBtMessageDispatcher.h
  4202. * src/DefaultBtMessageFactory.cc
  4203. * src/DefaultBtMessageFactory.h
  4204. * src/DefaultBtMessageReceiver.cc
  4205. * src/DefaultBtMessageReceiver.h
  4206. * src/DefaultBtProgressInfoFile.cc
  4207. * src/DefaultBtRequestFactory.cc
  4208. * src/DefaultBtRequestFactory.h
  4209. * src/DefaultExtensionMessageFactory.cc
  4210. * src/DefaultExtensionMessageFactory.h
  4211. * src/DefaultPeerStorage.cc
  4212. * src/DefaultPeerStorage.h
  4213. * src/DefaultPieceStorage.cc
  4214. * src/DefaultSegmentManFactory.cc
  4215. * src/DiskAdaptor.cc
  4216. * src/DiskAdaptor.h
  4217. * src/DownloadContext.cc
  4218. * src/DownloadContext.h
  4219. * src/DownloadEngine.cc
  4220. * src/DownloadEngineFactory.cc
  4221. * src/DownloadHandler.cc
  4222. * src/DownloadResult.h
  4223. * src/FileAllocationCommand.cc
  4224. * src/FileAllocationDispatcherCommand.cc
  4225. * src/FileAllocationEntry.cc
  4226. * src/FileEntry.h
  4227. * src/FillRequestGroupCommand.cc
  4228. * src/FtpDownloadCommand.cc
  4229. * src/FtpFinishDownloadCommand.cc
  4230. * src/FtpInitiateConnectionCommand.cc
  4231. * src/FtpNegotiationCommand.cc
  4232. * src/FtpTunnelRequestCommand.cc
  4233. * src/FtpTunnelResponseCommand.cc
  4234. * src/HandshakeExtensionMessage.cc
  4235. * src/HandshakeExtensionMessage.h
  4236. * src/HaveEraseCommand.cc
  4237. * src/HttpDownloadCommand.cc
  4238. * src/HttpInitiateConnectionCommand.cc
  4239. * src/HttpProxyRequestCommand.cc
  4240. * src/HttpProxyResponseCommand.cc
  4241. * src/HttpRequest.cc
  4242. * src/HttpRequest.h
  4243. * src/HttpRequestCommand.cc
  4244. * src/HttpResponseCommand.cc
  4245. * src/HttpServerBodyCommand.cc
  4246. * src/HttpServerCommand.cc
  4247. * src/HttpSkipResponseCommand.cc
  4248. * src/InitiateConnectionCommandFactory.cc
  4249. * src/InitiatorMSEHandshakeCommand.cc
  4250. * src/InitiatorMSEHandshakeCommand.h
  4251. * src/IteratableChecksumValidator.cc
  4252. * src/IteratableChecksumValidator.h
  4253. * src/IteratableChunkChecksumValidator.cc
  4254. * src/MSEHandshake.cc
  4255. * src/MSEHandshake.h
  4256. * src/Makefile.am
  4257. * src/Makefile.in
  4258. * src/Metalink2RequestGroup.cc
  4259. * src/MetalinkPostDownloadHandler.cc
  4260. * src/MultiDiskAdaptor.cc
  4261. * src/MultiDiskAdaptor.h
  4262. * src/MultiFileAllocationIterator.cc
  4263. * src/MultiUrlRequestInfo.cc
  4264. * src/PeerChokeCommand.cc
  4265. * src/PeerChokeCommand.h
  4266. * src/PeerInitiateConnectionCommand.cc
  4267. * src/PeerInitiateConnectionCommand.h
  4268. * src/PeerInteractionCommand.cc
  4269. * src/PeerInteractionCommand.h
  4270. * src/PeerReceiveHandshakeCommand.cc
  4271. * src/PieceHashCheckIntegrityEntry.cc
  4272. * src/RealtimeCommand.cc
  4273. * src/ReceiverMSEHandshakeCommand.cc
  4274. * src/RequestGroup.cc
  4275. * src/RequestGroup.h
  4276. * src/RequestGroupEntry.cc
  4277. * src/RequestGroupMan.cc
  4278. * src/SeedCheckCommand.cc
  4279. * src/SeedCheckCommand.h
  4280. * src/SegmentMan.cc
  4281. * src/ShareRatioSeedCriteria.h
  4282. * src/SingleFileDownloadContext.cc: Removed
  4283. * src/SingleFileDownloadContext.h: Removed
  4284. * src/SleepCommand.cc
  4285. * src/StreamCheckIntegrityEntry.cc
  4286. * src/TrackerWatcherCommand.cc
  4287. * src/TrackerWatcherCommand.h
  4288. * src/UnknownLengthPieceStorage.cc
  4289. * src/Util.cc
  4290. * src/Util.h
  4291. * src/XmlRpcMethodImpl.cc
  4292. * src/bittorrent_helper.cc
  4293. * src/bittorrent_helper.h
  4294. * src/download_helper.cc
  4295. * src/main.cc
  4296. * src/option_processing.cc
  4297. * test/BitfieldManTest.cc
  4298. * test/BittorrentHelperTest.cc
  4299. * test/BtCancelMessageTest.cc
  4300. * test/BtChokeMessageTest.cc
  4301. * test/BtDependencyTest.cc
  4302. * test/BtPieceMessageTest.cc
  4303. * test/BtPostDownloadHandlerTest.cc
  4304. * test/BtRegistryTest.cc
  4305. * test/BtRejectMessageTest.cc
  4306. * test/BtRequestMessageTest.cc
  4307. * test/DHTPeerAnnounceStorageTest.cc
  4308. * test/DefaultBtAnnounceTest.cc
  4309. * test/DefaultBtContextTest.cc: Removed
  4310. * test/DefaultBtMessageDispatcherTest.cc
  4311. * test/DefaultBtMessageFactoryTest.cc
  4312. * test/DefaultBtProgressInfoFileTest.cc
  4313. * test/DefaultBtRequestFactoryTest.cc
  4314. * test/DefaultExtensionMessageFactoryTest.cc
  4315. * test/DefaultPeerStorageTest.cc
  4316. * test/DefaultPieceStorageTest.cc
  4317. * test/DirectDiskAdaptorTest.cc
  4318. * test/DownloadContextTest.cc
  4319. * test/DownloadHandlerFactoryTest.cc
  4320. * test/DownloadHelperTest.cc
  4321. * test/HandshakeExtensionMessageTest.cc
  4322. * test/HttpRequestTest.cc
  4323. * test/HttpResponseTest.cc
  4324. * test/IteratableChecksumValidatorTest.cc
  4325. * test/IteratableChunkChecksumValidatorTest.cc
  4326. * test/MSEHandshakeTest.cc
  4327. * test/Makefile.am
  4328. * test/Makefile.in
  4329. * test/Metalink2RequestGroupTest.cc
  4330. * test/MetalinkPostDownloadHandlerTest.cc
  4331. * test/MockBtContext.h: Removed
  4332. * test/MockDHTTaskFactory.h
  4333. * test/MockDownloadContext.h: Removed
  4334. * test/MockPieceStorage.h
  4335. * test/MultiDiskAdaptorTest.cc
  4336. * test/MultiFileAllocationIteratorTest.cc
  4337. * test/RequestGroupManTest.cc
  4338. * test/RequestGroupTest.cc
  4339. * test/SegmentManTest.cc
  4340. * test/ShareRatioSeedCriteriaTest.cc
  4341. * test/SingleFileDownloadContextTest.cc: Removed
  4342. * test/UtilTest.cc
  4343. * test/XmlRpcMethodTest.cc
  4344. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added experimental support of WEB-Seeding for multi-file torrent.
  4346. Due to fundamental changes in file handling in HTTP/FTP code, many
  4347. functions are not working: PeerStat, ServerHost, proxy..etc
  4348. * src/AbstractCommand.cc
  4349. * src/AbstractCommand.h
  4350. * src/BitfieldMan.cc
  4351. * src/BitfieldMan.h
  4352. * src/CreateRequestCommand.cc
  4353. * src/CreateRequestCommand.h
  4354. * src/DefaultPieceStorage.cc
  4355. * src/DefaultPieceStorage.h
  4356. * src/DownloadCommand.cc
  4357. * src/DownloadCommand.h
  4358. * src/DownloadContext.cc
  4359. * src/DownloadContext.h
  4360. * src/FileEntry.cc
  4361. * src/FileEntry.h
  4362. * src/FtpDownloadCommand.cc
  4363. * src/FtpDownloadCommand.h
  4364. * src/FtpFinishDownloadCommand.cc
  4365. * src/FtpFinishDownloadCommand.h
  4366. * src/FtpInitiateConnectionCommand.cc
  4367. * src/FtpInitiateConnectionCommand.h
  4368. * src/FtpNegotiationCommand.cc
  4369. * src/FtpNegotiationCommand.h
  4370. * src/FtpTunnelResponseCommand.cc
  4371. * src/HttpDownloadCommand.cc
  4372. * src/HttpDownloadCommand.h
  4373. * src/HttpInitiateConnectionCommand.cc
  4374. * src/HttpInitiateConnectionCommand.h
  4375. * src/HttpProxyResponseCommand.cc
  4376. * src/HttpRequest.cc
  4377. * src/HttpRequest.h
  4378. * src/HttpRequestCommand.cc
  4379. * src/HttpRequestCommand.h
  4380. * src/HttpResponseCommand.cc
  4381. * src/HttpResponseCommand.h
  4382. * src/HttpSkipResponseCommand.cc
  4383. * src/HttpSkipResponseCommand.h
  4384. * src/InitiateConnectionCommand.cc
  4385. * src/InitiateConnectionCommand.h
  4386. * src/InitiateConnectionCommandFactory.cc
  4387. * src/InitiateConnectionCommandFactory.h
  4388. * src/Makefile.am
  4389. * src/PieceStorage.h
  4390. * src/RequestGroup.cc
  4391. * src/RequestGroup.h
  4392. * src/RequestGroupMan.cc
  4393. * src/SegmentMan.cc
  4394. * src/SegmentMan.h
  4395. * src/SingleFileDownloadContext.h
  4396. * src/StreamFileAllocationEntry.cc
  4397. * src/TrackerWatcherCommand.cc
  4398. * src/UnknownLengthPieceStorage.cc
  4399. * src/UnknownLengthPieceStorage.h
  4400. * src/array_fun.h
  4401. * src/bitfield.h
  4402. * src/download_helper.cc
  4403. * test/DownloadContextTest.cc
  4404. * test/Makefile.am
  4405. * test/MockDownloadContext.h
  4406. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Added tellWaiting XML-RPC method.
  4408. * src/SingleFileDownloadContext.cc
  4409. * src/XmlRpcMethodFactory.cc
  4410. * src/XmlRpcMethodImpl.cc
  4411. * src/XmlRpcMethodImpl.h
  4412. * test/XmlRpcMethodTest.cc
  4413. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Updated CookieStorageTest
  4415. * test/CookieStorageTest.cc
  4416. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4418. handle excepion inside these functions.
  4419. * src/LibgnutlsTLSContext.cc
  4420. * src/LibgnutlsTLSContext.h
  4421. * src/LibsslTLSContext.cc
  4422. * src/LibsslTLSContext.h
  4423. * src/MultiUrlRequestInfo.cc
  4424. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Added comment
  4426. * src/RequestGroup.cc
  4427. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. In CookieStorage::load() and saveNsFormat(), handle exception
  4429. inside the functions. When saving Cookies, first write temporary
  4430. file and after successful writes, then renames it to final
  4431. destination.
  4432. * src/CookieStorage.cc
  4433. * src/CookieStorage.h
  4434. * src/MultiUrlRequestInfo.cc
  4435. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. The default value of --dir option is the absolute path to the
  4437. current directory. If getcwd() is failed, then it is ".", which is
  4438. the same value with old implementation. This change is necessary
  4439. because after daemon() call, the current working directory is
  4440. changed to /.
  4441. * src/File.cc
  4442. * src/File.h
  4443. * src/OptionHandlerFactory.cc
  4444. * src/option_processing.cc
  4445. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Call daemon() with arguments(0,0), which means daemon() changes
  4447. current working directory to / and redirects stdin, stdout and
  4448. stderr to /dev/null.
  4449. * src/option_processing.cc
  4450. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Small performance optimizations.
  4452. * src/RequestGroupMan.cc
  4453. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4454. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4455. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4456. * src/RequestGroupMan.cc
  4457. * src/RequestGroupMan.h
  4458. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4460. setNoWiat(true) if newly created command calls
  4461. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4462. * src/HttpListenCommand.cc
  4463. * src/HttpServerBodyCommand.cc
  4464. * src/HttpServerCommand.cc
  4465. * src/HttpServerResponseCommand.cc
  4466. * src/InitiateConnectionCommand.cc
  4467. * src/RequestGroup.cc
  4468. * src/StreamFileAllocationEntry.cc
  4469. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Removed include vector
  4471. * src/BtRegistry.h
  4472. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Rewritten BtRegistry
  4474. * src/BtRegistry.cc
  4475. * src/BtRegistry.h
  4476. * src/BtSetup.cc
  4477. * src/ConsoleStatCalc.cc
  4478. * src/PeerInteractionCommand.cc
  4479. * src/PeerReceiveHandshakeCommand.cc
  4480. * src/ReceiverMSEHandshakeCommand.cc
  4481. * src/RequestGroup.cc
  4482. * src/XmlRpcMethodImpl.cc
  4483. * test/BtRegistryTest.cc
  4484. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4486. * src/DefaultBtProgressInfoFile.cc
  4487. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Throw an exception if position is less than 0.
  4489. * src/XmlRpcMethodImpl.cc
  4490. * test/XmlRpcMethodTest.cc
  4491. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Use writeFilePath() in ConsoleStatCalc.cc
  4493. * src/ConsoleStatCalc.cc
  4494. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Receive the return value as const reference from
  4496. DownloadContext::getFileEntries().
  4497. * src/DefaultPieceStorage.cc
  4498. * src/RequestGroupMan.cc
  4499. * src/XmlRpcMethodImpl.cc
  4500. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4501. DownloadContext now has _fileEntries so that
  4502. DownloadContext::getFileEntries() can returns its const reference.
  4503. * src/DefaultBtContext.cc
  4504. * src/DefaultBtContext.h
  4505. * src/DownloadContext.cc
  4506. * src/DownloadContext.h
  4507. * src/SingleFileDownloadContext.cc
  4508. * src/SingleFileDownloadContext.h
  4509. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4511. writeFilePath() function template from RequestGroupMan.cc to
  4512. FileEntry.h
  4513. * src/FileEntry.h
  4514. * src/RequestGroupMan.cc
  4515. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Documented 'position' parameter is starting from 0 in man page.
  4517. * doc/aria2c.1.txt
  4518. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Updated doc.
  4520. * src/MSEHandshake.cc
  4521. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Removed _acceptFeatures and its accessor functions from
  4523. RequestGroup since they are not used practically.
  4524. * src/HttpRequestCommand.cc
  4525. * src/RequestGroup.cc
  4526. * src/RequestGroup.h
  4527. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Removed member _maxTries from RequestGroup class to avoid
  4529. duplicate option value. Those classes who refer this variable
  4530. should use option value of PREF_MAX_TRIES directly.
  4531. * src/AbstractCommand.cc
  4532. * src/RequestGroup.cc
  4533. * src/RequestGroup.h
  4534. * src/TrackerWatcherCommand.cc
  4535. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. * Release 1.4.1
  4537. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Fixed compiler warnings on netbsd
  4539. * src/DHTConnectionImpl.cc
  4540. * src/PeerListenCommand.cc
  4541. * src/PeerSessionResource.cc
  4542. * src/SegmentMan.cc
  4543. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4544. Updated Ukrainian translation. Thanks to all translators.
  4545. * po/uk.po
  4546. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4547. Bump up version number to 1.4.1.
  4548. * configure.ac
  4549. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Added unit tests for strjoin, strconcat and strappend.
  4551. * test/a2functionalTest.cc
  4552. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Rewritten strconcat and strappend using operator+ instead of
  4554. append().
  4555. * src/a2functional.h
  4556. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4558. is enabled.
  4559. * src/Makefile.am
  4560. * test/Makefile.am
  4561. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Added countSeeder() function which counts seeder in the given
  4563. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4564. * src/ConsoleStatCalc.cc
  4565. * src/Peer.h
  4566. * src/XmlRpcMethodImpl.cc
  4567. * test/PeerTest.cc
  4568. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Documented missing seeder in getPeers xml-rpc method.
  4570. Documented uploadLength and numSeeders.
  4571. * doc/aria2c.1.txt
  4572. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4573. Added uploadLength and numSeeders to the response of tellStatus
  4574. xml-rpc method. Assert that PeerStorage instance is not null
  4575. instead of checking if statement. It should be non-null in this
  4576. context.
  4577. * src/XmlRpcMethodImpl.cc
  4578. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4579. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4580. * src/XmlRpcResponse.cc
  4581. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Avoid intermediate object during string concatenation.
  4583. * src/HttpRequest.cc
  4584. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Added strjoin function template. Use it in pathJoin()
  4586. * src/Util.h
  4587. * src/a2functional.h
  4588. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Avoid intermediate object during string concatenation. Replaced
  4590. post-increment unary operator with pre-increment one in for loop.
  4591. * src/AdaptiveURISelector.cc
  4592. * src/AnnounceList.cc
  4593. * src/AuthConfig.h
  4594. * src/BtBitfieldMessage.cc
  4595. * src/BtExtendedMessage.cc
  4596. * src/BtHandshakeMessage.cc
  4597. * src/BtPieceMessage.cc
  4598. * src/BtPortMessage.cc
  4599. * src/Cookie.cc
  4600. * src/DHTAnnouncePeerMessage.cc
  4601. * src/DHTAutoSaveCommand.cc
  4602. * src/DHTGetPeersReplyMessage.cc
  4603. * src/DHTNode.cc
  4604. * src/DHTQueryMessage.cc
  4605. * src/DHTResponseMessage.cc
  4606. * src/DHTUnknownMessage.cc
  4607. * src/DefaultBtAnnounce.cc
  4608. * src/DefaultBtContext.cc
  4609. * src/DefaultBtInteractive.cc
  4610. * src/DefaultBtProgressInfoFile.cc
  4611. * src/DefaultPeerStorage.cc
  4612. * src/DownloadEngine.cc
  4613. * src/FeatureConfig.cc
  4614. * src/File.cc
  4615. * src/FtpConnection.cc
  4616. * src/FtpNegotiationCommand.cc
  4617. * src/HandshakeExtensionMessage.cc
  4618. * src/HttpConnection.cc
  4619. * src/HttpRequest.cc
  4620. * src/HttpResponseCommand.cc
  4621. * src/HttpServer.cc
  4622. * src/IndexBtMessage.cc
  4623. * src/Metalink2RequestGroup.cc
  4624. * src/OptionHandlerImpl.h
  4625. * src/PStringBuildVisitor.cc
  4626. * src/Peer.cc
  4627. * src/PeerListenCommand.cc
  4628. * src/Piece.cc
  4629. * src/RangeBtMessage.cc
  4630. * src/Request.cc
  4631. * src/Request.h
  4632. * src/RequestGroup.cc
  4633. * src/RequestGroupMan.cc
  4634. * src/ServerStat.cc
  4635. * src/ServerStatMan.cc
  4636. * src/UTPexExtensionMessage.cc
  4637. * src/Util.cc
  4638. * src/a2functional.h
  4639. * src/download_helper.cc
  4640. * src/messageDigest.cc
  4641. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Unchoke a peer randomly at first and second choke round in seed
  4643. state.
  4644. * src/BtSeederStateChoke.cc
  4645. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4646. Added (sock_t) to quiet compiler warnings in MinGW
  4647. * src/SocketCore.cc
  4648. * src/SocketCore.h
  4649. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4651. * src/EpollEventPoll.h
  4652. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4653. Added fork() emulation using CreateProcess() in MinGW
  4654. * src/RequestGroupMan.cc
  4655. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. * Release 1.4.0
  4657. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Added utf8.torrent to EXTRA_DIST
  4659. * test/Makefile.am
  4660. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Fixed docs of aria2.addMetalink xml-rpc method.
  4662. * doc/aria2c.1.txt
  4663. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Added Slovak translation. Updated Ukrainian and Brazilian
  4665. Portuguese translation. Thanks to all translators.
  4666. * po/sk.po
  4667. * po/uk.po
  4668. * po/pt_BR.po
  4669. * po/LINGUAS
  4670. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. Added test case for XmlRpcProcessor to fail to parse malformed
  4672. document.
  4673. * test/XmlRpcRequestProcessorTest.cc
  4674. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4675. Removed *.gmo files in po because they are generated on 'make
  4676. dist'
  4677. * po/*.gmo
  4678. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Documented max-concurrent-downloads of changeGlobalOption method
  4680. in man page.
  4681. * doc/aria2c.1.txt
  4682. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Added max-concurrent-downloads option to changeGlobalOption
  4684. xml-rpc method. Rewritten loop conditional in
  4685. RequestGroupMan::fillRequestGroupFromReserver().
  4686. * src/RequestGroupMan.cc
  4687. * src/RequestGroupMan.h
  4688. * src/XmlRpcMethod.cc
  4689. * src/XmlRpcMethodImpl.cc
  4690. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4691. Documented position parameter in man page.
  4692. * doc/aria2c.1.txt
  4693. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Added 'position' parameter to addUri, addTorrent and addMetalink
  4695. xml-rpc method.
  4696. * src/RequestGroupMan.cc
  4697. * src/RequestGroupMan.h
  4698. * src/XmlRpcMethodImpl.cc
  4699. * test/XmlRpcMethodTest.cc
  4700. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. Removed Peer.cc from compile source list when --disable-bittorrent
  4702. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4703. takes Peer.
  4704. * src/DefaultPieceStorage.cc
  4705. * src/DefaultPieceStorage.h
  4706. * src/Makefile.am
  4707. * src/PieceStorage.h
  4708. * src/UnknownLengthPieceStorage.cc
  4709. * src/UnknownLengthPieceStorage.h
  4710. * test/MockPieceStorage.h
  4711. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4712. Implemented getter methods in header files to give them more
  4713. chance of optimization.
  4714. Return const reference for SharadHandle if possible.
  4715. * src/AbstractAuthResolver.cc
  4716. * src/AbstractAuthResolver.h
  4717. * src/AbstractBtMessage.cc
  4718. * src/AbstractBtMessage.h
  4719. * src/AbstractSingleDiskAdaptor.cc
  4720. * src/AbstractSingleDiskAdaptor.h
  4721. * src/AsyncNameResolver.cc
  4722. * src/AsyncNameResolver.h
  4723. * src/BNode.cc
  4724. * src/BNode.h
  4725. * src/BitfieldMan.cc
  4726. * src/BitfieldMan.h
  4727. * src/BtAbortOutstandingRequestEvent.h
  4728. * src/BtExtendedMessage.cc
  4729. * src/BtExtendedMessage.h
  4730. * src/BtSeederStateChoke.cc
  4731. * src/BtSeederStateChoke.h
  4732. * src/Cookie.cc
  4733. * src/Cookie.h
  4734. * src/DHTBucket.cc
  4735. * src/DHTBucket.h
  4736. * src/DHTConnectionImpl.cc
  4737. * src/DHTConnectionImpl.h
  4738. * src/DHTFindNodeReplyMessage.cc
  4739. * src/DHTFindNodeReplyMessage.h
  4740. * src/DHTGetPeersReplyMessage.cc
  4741. * src/DHTGetPeersReplyMessage.h
  4742. * src/DHTInteractionCommand.cc
  4743. * src/DHTMessage.cc
  4744. * src/DHTMessage.h
  4745. * src/DHTMessageDispatcherImpl.cc
  4746. * src/DHTMessageEntry.cc
  4747. * src/DHTMessageReceiver.cc
  4748. * src/DHTMessageReceiver.h
  4749. * src/DHTMessageTrackerEntry.cc
  4750. * src/DHTMessageTrackerEntry.h
  4751. * src/DHTPeerAnnounceEntry.cc
  4752. * src/DHTPeerAnnounceEntry.h
  4753. * src/DHTPeerLookupTask.cc
  4754. * src/DHTPeerLookupTask.h
  4755. * src/DHTRoutingTableDeserializer.cc
  4756. * src/DHTRoutingTableDeserializer.h
  4757. * src/DefaultBtAnnounce.cc
  4758. * src/DefaultBtAnnounce.h
  4759. * src/DefaultBtMessageDispatcher.cc
  4760. * src/DefaultBtMessageDispatcher.h
  4761. * src/DefaultBtRequestFactory.cc
  4762. * src/DefaultBtRequestFactory.h
  4763. * src/DiskAdaptor.cc
  4764. * src/DiskAdaptor.h
  4765. * src/DownloadContext.cc
  4766. * src/DownloadContext.h
  4767. * src/DownloadEngine.cc
  4768. * src/DownloadEngine.h
  4769. * src/EpollEventPoll.cc
  4770. * src/EpollEventPoll.h
  4771. * src/FtpConnection.cc
  4772. * src/FtpConnection.h
  4773. * src/HttpConnection.cc
  4774. * src/HttpConnection.h
  4775. * src/HttpHeader.cc
  4776. * src/HttpHeader.h
  4777. * src/HttpRequest.cc
  4778. * src/HttpRequest.h
  4779. * src/HttpResponse.cc
  4780. * src/HttpResponse.h
  4781. * src/LibsslTLSContext.cc
  4782. * src/LibsslTLSContext.h
  4783. * src/MSEHandshake.cc
  4784. * src/MSEHandshake.h
  4785. * src/MetalinkEntry.cc
  4786. * src/MetalinkEntry.h
  4787. * src/MetalinkParserController.cc
  4788. * src/MetalinkParserController.h
  4789. * src/MetalinkParserStateMachine.cc
  4790. * src/MetalinkParserStateMachine.h
  4791. * src/MultiDiskAdaptor.cc
  4792. * src/MultiDiskAdaptor.h
  4793. * src/NetrcAuthResolver.cc
  4794. * src/NetrcAuthResolver.h
  4795. * src/Peer.cc
  4796. * src/Peer.h
  4797. * src/PeerSessionResource.cc
  4798. * src/PeerSessionResource.h
  4799. * src/Piece.cc
  4800. * src/Piece.h
  4801. * src/PieceStatMan.cc
  4802. * src/PieceStatMan.h
  4803. * src/Request.cc
  4804. * src/Request.h
  4805. * src/RequestGroup.cc
  4806. * src/RequestGroup.h
  4807. * src/RequestGroupMan.cc
  4808. * src/RequestGroupMan.h
  4809. * src/RequestSlot.cc
  4810. * src/RequestSlot.h
  4811. * src/SegmentMan.cc
  4812. * src/SegmentMan.h
  4813. * src/SelectEventPoll.cc
  4814. * src/SelectEventPoll.h
  4815. * src/ServerStat.cc
  4816. * src/ServerStat.h
  4817. * src/Signature.cc
  4818. * src/Signature.h
  4819. * src/URIResult.cc
  4820. * src/URIResult.h
  4821. * src/UTPexExtensionMessage.cc
  4822. * src/UTPexExtensionMessage.h
  4823. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Fixed compile error without BitTorrent and Metalink support.
  4825. * src/XmlRpcMethod.cc
  4826. * src/XmlRpcMethodFactory.cc
  4827. * src/XmlRpcMethodImpl.cc
  4828. * src/XmlRpcMethodImpl.h
  4829. * test/XmlRpcMethodTest.cc
  4830. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. Rewritten the help message for --allow-overwrite option.
  4832. * doc/aria2c.1.txt
  4833. * src/usage_text.h
  4834. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Fixed typo
  4836. * doc/aria2c.1.txt
  4837. * src/usage_text.h
  4838. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Updated README for 1.4.0 release. Use new table syntax of
  4840. asciidoc.
  4841. * README
  4842. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Documented --xml-rpc-max-request-size option in man page.
  4844. * doc/aria2c.1.txt
  4845. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4846. Moved C_* constants from BtContext to DefaultBtContext.
  4847. * src/BtContext.cc: Removed.
  4848. * src/BtContext.h
  4849. * src/DefaultBtContext.cc
  4850. * src/DefaultBtContext.h
  4851. * src/Makefile.am
  4852. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4854. path key respectively when persing .torrent file.
  4855. * src/BtContext.cc
  4856. * src/BtContext.h
  4857. * src/DefaultBtContext.cc
  4858. * test/DefaultBtContextTest.cc
  4859. * test/utf8.torrent
  4860. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4861. Added --xml-rpc-max-request-size option to limit the size of
  4862. XML-RPC request.
  4863. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Documented XML-RPC API in man page.
  4865. * doc/aria2c.1.txt
  4866. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4867. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4868. will break strict-aliasing rules
  4869. * src/PeerConnection.cc
  4870. * test/DHTRoutingTableSerializerTest.cc
  4871. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4873. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4874. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4875. PKG_CHECK_MODULES macro uses latter name.
  4876. * m4/sqlite3.m4
  4877. * src/Makefile.am
  4878. * test/Makefile.am
  4879. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Fixed typo
  4881. * configure.ac
  4882. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4884. presence of libgnutls using pkg-config first. If it fails, fall
  4885. back to old macro libgnutls.m4.
  4886. * configure.ac
  4887. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Use s itself instead of !s.bad()
  4889. * src/CookieStorage.cc
  4890. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Documented --on-download-* option and --save-cookies option in man
  4892. page.
  4893. * doc/aria2c.1.txt
  4894. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Set possible values for --load-cookie option to "/path/to/file".
  4896. * src/OptionHandlerFactory.cc
  4897. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Added --save-cookies option.
  4899. * src/Cookie.cc
  4900. * src/Cookie.h
  4901. * src/CookieStorage.cc
  4902. * src/CookieStorage.h
  4903. * src/MultiUrlRequestInfo.cc
  4904. * src/OptionHandlerFactory.cc
  4905. * src/prefs.cc
  4906. * src/prefs.h
  4907. * src/usage_text.h
  4908. * test/CookieStorageTest.cc
  4909. * test/CookieTest.cc
  4910. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Removed tellAll XML-RPC command because its reponse tends to be
  4912. big if stopped/waiting downloads pile up.
  4913. * src/XmlRpcMethodFactory.cc
  4914. * src/XmlRpcMethodImpl.cc
  4915. * src/XmlRpcMethodImpl.h
  4916. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Added the ability to execute command when download starts and
  4918. stops. You can also specify command for particular cases such as
  4919. complete/error download. Added --on-download-start,
  4920. --on-download-stop, --on-download-complete and --on-download-error
  4921. option.
  4922. * src/OptionHandlerFactory.cc
  4923. * src/RequestGroupMan.cc
  4924. * src/prefs.cc
  4925. * src/prefs.h
  4926. * src/usage_text.h
  4927. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Fixed test error
  4929. * test/BencodeTest.cc
  4930. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Added unit tests.
  4932. * test/XmlRpcMethodTest.cc
  4933. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4934. Made exception message more verbose.
  4935. * src/bencode.cc
  4936. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4938. space in console readout. Also they are now shown in MiB/s if
  4939. speed > 1024KiB/s.
  4940. * src/ConsoleStatCalc.cc
  4941. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Added SEED to console output, which represents the number of
  4943. seeders currently the client is connecting to.
  4944. * src/ConsoleStatCalc.cc
  4945. * src/ConsoleStatCalc.h
  4946. * src/DownloadEngine.cc
  4947. * src/NullStatCalc.h
  4948. * src/StatCalc.h
  4949. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Added source filename(__FILE__) and line number(__LINE__) to
  4951. exception message.
  4952. * src/AbstractCommand.cc
  4953. * src/AbstractDiskWriter.cc
  4954. * src/AbstractProxyResponseCommand.cc
  4955. * src/BDE.h
  4956. * src/BtAllowedFastMessage.cc
  4957. * src/BtHandshakeMessageValidator.h
  4958. * src/BtHaveAllMessage.cc
  4959. * src/BtHaveNoneMessage.cc
  4960. * src/BtPieceMessage.cc
  4961. * src/BtRejectMessage.cc
  4962. * src/ChunkedDecoder.cc
  4963. * src/CookieStorage.cc
  4964. * src/DHTAnnouncePeerMessage.cc
  4965. * src/DHTEntryPointNameResolveCommand.cc
  4966. * src/DHTMessageFactoryImpl.cc
  4967. * src/DHTMessageTracker.cc
  4968. * src/DHTRoutingTableDeserializer.cc
  4969. * src/DHTRoutingTableSerializer.cc
  4970. * src/DHTSetup.cc
  4971. * src/DHTTokenTracker.cc
  4972. * src/DefaultBtAnnounce.cc
  4973. * src/DefaultBtContext.cc
  4974. * src/DefaultBtInteractive.cc
  4975. * src/DefaultBtMessageFactory.cc
  4976. * src/DefaultBtProgressInfoFile.cc
  4977. * src/DefaultExtensionMessageFactory.cc
  4978. * src/DlAbortEx.h
  4979. * src/DlRetryEx.h
  4980. * src/DownloadCommand.cc
  4981. * src/DownloadEngineFactory.cc
  4982. * src/DownloadFailureException.h
  4983. * src/Exception.cc
  4984. * src/Exception.h
  4985. * src/ExpatMetalinkProcessor.cc
  4986. * src/ExpatXmlRpcRequestProcessor.cc
  4987. * src/FallocFileAllocationIterator.cc
  4988. * src/FatalException.h
  4989. * src/FtpConnection.cc
  4990. * src/FtpFinishDownloadCommand.cc
  4991. * src/FtpInitiateConnectionCommand.cc
  4992. * src/FtpNegotiationCommand.cc
  4993. * src/GZipDecoder.cc
  4994. * src/HandshakeExtensionMessage.cc
  4995. * src/HttpConnection.cc
  4996. * src/HttpHeaderProcessor.cc
  4997. * src/HttpInitiateConnectionCommand.cc
  4998. * src/HttpResponse.cc
  4999. * src/HttpResponseCommand.cc
  5000. * src/HttpServer.cc
  5001. * src/HttpSkipResponseCommand.cc
  5002. * src/InitiateConnectionCommandFactory.cc
  5003. * src/IteratableChunkChecksumValidator.cc
  5004. * src/LibgcryptARC4Context.h
  5005. * src/LibgcryptARC4Decryptor.h
  5006. * src/LibgcryptARC4Encryptor.h
  5007. * src/LibgcryptDHKeyExchange.h
  5008. * src/LibgnutlsTLSContext.cc
  5009. * src/LibsslARC4Context.h
  5010. * src/LibsslARC4Decryptor.h
  5011. * src/LibsslARC4Encryptor.h
  5012. * src/LibsslDHKeyExchange.h
  5013. * src/LibsslTLSContext.cc
  5014. * src/MSEHandshake.cc
  5015. * src/MessageDigestHelper.cc
  5016. * src/MetalinkHelper.cc
  5017. * src/MultiDiskAdaptor.cc
  5018. * src/NameMatchOptionHandler.h
  5019. * src/NameResolver.cc
  5020. * src/Netrc.cc
  5021. * src/NsCookieParser.cc
  5022. * src/OptionHandlerException.cc
  5023. * src/OptionHandlerException.h
  5024. * src/OptionHandlerImpl.h
  5025. * src/OptionParser.cc
  5026. * src/ParameterizedStringParser.cc
  5027. * src/PeerAbstractCommand.cc
  5028. * src/PeerConnection.cc
  5029. * src/PeerMessageUtil.cc
  5030. * src/PeerReceiveHandshakeCommand.cc
  5031. * src/Platform.cc
  5032. * src/ReceiverMSEHandshakeCommand.cc
  5033. * src/RecoverableException.h
  5034. * src/RequestGroup.cc
  5035. * src/SimpleLogger.cc
  5036. * src/SocketCore.cc
  5037. * src/Sqlite3MozCookieParser.cc
  5038. * src/UTPexExtensionMessage.cc
  5039. * src/Util.cc
  5040. * src/XML2SAXMetalinkProcessor.cc
  5041. * src/Xml2XmlRpcRequestProcessor.cc
  5042. * src/XmlRpcMethodImpl.cc
  5043. * src/bencode.cc
  5044. * src/download_helper.cc
  5045. * src/messageDigest.h
  5046. * test/ExceptionTest.cc
  5047. * test/TestUtil.cc
  5048. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Bump up version number to 1.4.0
  5050. * configure.ac
  5051. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Added 2files.metalink to EXTRA_DIST
  5053. * test/Makefile.am
  5054. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Added missing 2files.metalink
  5056. * test/2files.metalink
  5057. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5058. Show "[MEMORY]" prefix before filename in download summary if it
  5059. is downloaded into memory.
  5060. * src/DownloadResult.h
  5061. * src/RequestGroup.cc
  5062. * src/RequestGroupMan.cc
  5063. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5065. * src/ExpatXmlRpcRequestProcessor.cc
  5066. * src/Xml2XmlRpcRequestProcessor.cc
  5067. * src/message.h
  5068. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Defined const BDEs to avoid duplicate instantiation.
  5070. Defined MSG_GID_NOT_PROVIDED.
  5071. * src/XmlRpcMethodImpl.cc
  5072. * src/message.h
  5073. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5074. Code cleanup
  5075. * src/Xml2XmlRpcRequestProcessor.cc
  5076. * src/Xml2XmlRpcRequestProcessor.h
  5077. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Defined ENABLE_XML_RPC
  5079. * configure.ac
  5080. * configure
  5081. * config.h.in
  5082. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Added ExpatXmlRpcRequestProcessor
  5084. * src/ExpatXmlRpcRequestProcessor.cc
  5085. * src/ExpatXmlRpcRequestProcessor.h
  5086. * src/Makefile.am
  5087. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Added tests for addTorrent and addMetalink command.
  5089. * test/TestUtil.cc
  5090. * test/TestUtil.h
  5091. * test/XmlRpcMethodTest.cc
  5092. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Corrected the description of --file-allocation option.
  5094. * doc/aria2c.1.txt
  5095. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Added tellAll command.
  5097. * src/XmlRpcMethodFactory.cc
  5098. * src/XmlRpcMethodImpl.cc
  5099. * src/XmlRpcMethodImpl.h
  5100. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5101. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5102. * src/XmlRpcMethodImpl.cc
  5103. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Added changeGlobalOption command. Currently,
  5105. max-overall-download-limit and max-overall-upload-limit option are
  5106. available.
  5107. * src/RequestGroupMan.h
  5108. * src/XmlRpcMethod.cc
  5109. * src/XmlRpcMethod.h
  5110. * src/XmlRpcMethodFactory.cc
  5111. * src/XmlRpcMethodImpl.cc
  5112. * src/XmlRpcMethodImpl.h
  5113. * test/XmlRpcMethodTest.cc
  5114. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5115. Added changeOption command. Currently, max-download-limit,
  5116. max-upload-limit option are available in this command.
  5117. * src/RequestGroup.h
  5118. * src/XmlRpcMethod.cc
  5119. * src/XmlRpcMethod.h
  5120. * src/XmlRpcMethodFactory.cc
  5121. * src/XmlRpcMethodImpl.cc
  5122. * src/XmlRpcMethodImpl.h
  5123. * test/XmlRpcMethodTest.cc
  5124. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5125. Added purgeDownloadResult command.
  5126. * src/RequestGroupMan.cc
  5127. * src/RequestGroupMan.h
  5128. * src/XmlRpcMethodFactory.cc
  5129. * src/XmlRpcMethodImpl.cc
  5130. * src/XmlRpcMethodImpl.h
  5131. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Refactored.
  5133. * src/XmlRpcMethod.cc
  5134. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5135. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5136. XmlRpcResponse.
  5137. * src/HttpServerBodyCommand.cc
  5138. * src/Makefile.am
  5139. * src/XmlRpcMethod.cc
  5140. * src/XmlRpcMethod.h
  5141. * src/XmlRpcMethodImpl.cc
  5142. * src/XmlRpcResponse.cc
  5143. * src/XmlRpcResponse.h
  5144. * test/XmlRpcMethodTest.cc
  5145. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. In XML-RPC option struct, header and index-out option can take
  5147. array as value.
  5148. * src/XmlRpcMethod.cc
  5149. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Removed unused option member from PeerConnection.
  5151. * src/InitiatorMSEHandshakeCommand.cc
  5152. * src/PeerConnection.cc
  5153. * src/PeerConnection.h
  5154. * src/PeerInteractionCommand.cc
  5155. * src/PeerReceiveHandshakeCommand.cc
  5156. * src/ReceiverMSEHandshakeCommand.cc
  5157. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Added "seeder" key to getPeers response.
  5159. * src/XmlRpcMethodImpl.cc
  5160. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5161. Added addMetalink XML-RPC command.
  5162. * src/XmlRpcMethodFactory.cc
  5163. * src/XmlRpcMethodImpl.cc
  5164. * src/XmlRpcMethodImpl.h
  5165. * src/download_helper.cc
  5166. * src/download_helper.h
  5167. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Fixed the bug that POU peers are never choked in seeding.
  5169. * src/BtSeederStateChoke.cc
  5170. * src/BtSeederStateChoke.h
  5171. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Added web-seeding URI handling in addTorrent command.
  5173. * src/XmlRpcMethodImpl.cc
  5174. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Added "length" key to getFiles response.
  5176. * src/XmlRpcMethodImpl.cc
  5177. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Moved --no-netrc option from ftp option section to http/ftp option
  5179. section.
  5180. * doc/aria2c.1.txt
  5181. * src/OptionHandlerFactory.cc
  5182. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Removed garbage "\" character before '
  5184. * doc/aria2c.1.txt
  5185. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5186. Removed garbage "\" character before http.
  5187. * doc/aria2c.1.txt
  5188. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Documented additional options that can be specified in -i list.
  5190. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5191. and --xml-rpc-passwd. Removed --enable-http-server and
  5192. --http-server-listen-port.
  5193. * doc/aria2c.1.txt
  5194. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5196. * src/DefaultPeerStorage.cc
  5197. * src/DefaultPeerStorage.h
  5198. * src/PeerStorage.h
  5199. * src/XmlRpcMethodImpl.cc
  5200. * test/MockPeerStorage.h
  5201. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. Put a call to Socket::isReadable() in try block.
  5203. * src/HttpServerBodyCommand.cc
  5204. * src/HttpServerCommand.cc
  5205. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5207. exception , so it is now in try block.
  5208. * src/HttpServerResponseCommand.cc
  5209. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Added "amChoking" and "peerChoking" key in getPeers response.
  5211. * src/XmlRpcMethodImpl.cc
  5212. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Added test case for zero-length filter.
  5214. * test/BitfieldManTest.cc
  5215. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. getFiles command now returns file data for finished/stopped
  5217. downloads.
  5218. * src/XmlRpcMethodImpl.cc
  5219. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5220. DownloadResult now has the list of FileEntry. The download
  5221. summary displays the path of first selected file and the number of
  5222. remaining files for multi-file torrent.
  5223. * src/DownloadResult.h
  5224. * src/RequestGroup.cc
  5225. * src/RequestGroupMan.cc
  5226. * test/RequestGroupTest.cc
  5227. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Fixed segmentation fault error when no file is selected in
  5229. multi-file torrent.
  5230. * src/BitfieldMan.cc
  5231. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Escaped <,>,& character in XML-RPC response.
  5233. * src/XmlRpcMethod.cc
  5234. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5235. Throw DlAbortEx instead of FatalException during parsing options
  5236. because we don't want for aria2 to quit when bad option is passed
  5237. via XML-RPC.
  5238. * src/OptionHandlerException.cc
  5239. * src/OptionHandlerException.h
  5240. * src/OptionHandlerImpl.h
  5241. * src/OptionParser.cc
  5242. * src/OptionParser.h
  5243. * src/PStringSegment.cc
  5244. * src/ParameterizedStringParser.cc
  5245. * src/download_helper.cc
  5246. * test/ParameterizedStringParserTest.cc
  5247. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Selecting files are now done in
  5249. DefaultBtContext::setFileFileter().
  5250. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5251. functions are removed because they are no longer used. Creating
  5252. filter in BitfieldMan is done in new funtion
  5253. PieceStorage::setupFileFilter()
  5254. * src/BtContext.cc
  5255. * src/BtContext.h
  5256. * src/DefaultBtContext.cc
  5257. * src/DefaultBtContext.h
  5258. * src/DefaultPieceStorage.cc
  5259. * src/DefaultPieceStorage.h
  5260. * src/DiskAdaptor.cc
  5261. * src/DiskAdaptor.h
  5262. * src/PieceStorage.h
  5263. * src/RequestGroup.cc
  5264. * src/UnknownLengthPieceStorage.h
  5265. * src/XmlRpcMethodImpl.cc
  5266. * test/DefaultBtContextTest.cc
  5267. * test/MockBtContext.h
  5268. * test/MockPieceStorage.h
  5269. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Fixed compile error on Mac OS X
  5271. * src/HttpServer.cc
  5272. * src/XmlRpcMethod.h
  5273. * src/XmlRpcMethodImpl.cc
  5274. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Use std::binary_search instead of std::find
  5276. * src/DefaultPieceStorage.cc
  5277. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Removed unnecessary BDE() call; leave them to implicit conversion.
  5279. * src/XmlRpcMethodImpl.cc
  5280. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Return connections and gid in string
  5282. * src/XmlRpcMethodImpl.cc
  5283. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Renamed addURI as addUri
  5285. * src/XmlRpcMethodFactory.cc
  5286. * src/XmlRpcMethodImpl.cc
  5287. * src/XmlRpcMethodImpl.h
  5288. * test/XmlRpcMethodTest.cc
  5289. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Renamed addTorrentFile as addTorrent
  5291. * src/XmlRpcMethodFactory.cc
  5292. * src/XmlRpcMethodImpl.cc
  5293. * src/XmlRpcMethodImpl.h
  5294. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. The information for files, URIs, peers are removed from the
  5296. reponse of TellaActive, TellStatus command because they tend to be
  5297. large. Instead they can be retrieved by the dedicated commands:
  5298. getFiles, getUris and getPeers respectively.
  5299. * src/XmlRpcMethodFactory.cc
  5300. * src/XmlRpcMethodImpl.cc
  5301. * src/XmlRpcMethodImpl.h
  5302. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Removed --max-overall-upload-limit and
  5304. --max-overall-download-limit option from listRequestOptions.
  5305. * src/download_helper.cc
  5306. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Log incoming host in HttpListenCommand.
  5308. * src/HttpListenCommand.cc
  5309. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5311. --xml-rpc-passwd option.
  5312. * src/HttpServer.cc
  5313. * src/HttpServer.h
  5314. * src/HttpServerCommand.cc
  5315. * src/OptionHandlerFactory.cc
  5316. * src/prefs.cc
  5317. * src/prefs.h
  5318. * src/usage_text.h
  5319. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5321. processing 0 length request.
  5322. * src/HttpServerBodyCommand.cc
  5323. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Removed --enable-http-server and --http-server-listen-port
  5325. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5326. instead. The original feature for --enable-http-server that
  5327. reports download progress in HTML was officially removed. Persist
  5328. XML-RPC connection if client supports keep-alive.
  5329. * src/DownloadEngineFactory.cc
  5330. * src/HttpServerCommand.cc
  5331. * src/HttpServerResponseCommand.cc
  5332. * src/Makefile.am
  5333. * src/Makefile.in
  5334. * src/OptionHandlerFactory.cc
  5335. * src/RequestGroupMan.cc
  5336. * src/main.cc
  5337. * src/option_processing.cc
  5338. * src/prefs.cc
  5339. * src/prefs.h
  5340. * src/usage_text.h
  5341. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. Added "uris" key to the response of tellStatus command. Added
  5343. "connections" key to the response of tellStatus and tellActive
  5344. command.
  5345. * src/XmlRpcMethodImpl.cc
  5346. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5347. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5348. Added TellStatusXmlRpcMethod. Remove command can now remove
  5349. waiting RequestGroup.
  5350. * src/RequestGroupMan.cc
  5351. * src/RequestGroupMan.h
  5352. * src/XmlRpcMethodFactory.cc
  5353. * src/XmlRpcMethodImpl.cc
  5354. * src/XmlRpcMethodImpl.h
  5355. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. Initialized _peerId
  5357. * src/Peer.cc
  5358. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Return fault structure for error. FailXmlRpcMethod is renamed as
  5360. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5361. in non-torrent download. Return single param value.
  5362. * src/XmlRpcMethod.cc
  5363. * src/XmlRpcMethodFactory.cc
  5364. * src/XmlRpcMethodImpl.cc
  5365. * src/XmlRpcMethodImpl.h
  5366. * test/XmlRpcMethodTest.cc
  5367. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5369. command.
  5370. * src/RequestGroup.cc
  5371. * src/RequestGroup.h
  5372. * src/RequestGroupMan.cc
  5373. * src/XmlRpcMethodImpl.cc
  5374. * test/RequestGroupTest.cc
  5375. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Added more options that can be specified in -i list and xml-rpc
  5377. add* command.
  5378. * src/download_helper.h
  5379. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5380. The available options in -i list should be listed in
  5381. listRequestOptions().
  5382. * src/download_helper.cc
  5383. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5385. command.
  5386. * src/XmlRpcMethodImpl.cc
  5387. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Now RequestGroup has its own copy of Option object. This will help
  5389. to give custom option for each RequestGroup.
  5390. addTorrentFile command now takes options.
  5391. * src/AbstractCommand.cc
  5392. * src/AbstractCommand.h
  5393. * src/AbstractProxyRequestCommand.cc
  5394. * src/ActivePeerConnectionCommand.cc
  5395. * src/ActivePeerConnectionCommand.h
  5396. * src/AdaptiveURISelector.cc
  5397. * src/BtCheckIntegrityEntry.cc
  5398. * src/BtDependency.cc
  5399. * src/BtDependency.h
  5400. * src/BtFileAllocationEntry.cc
  5401. * src/BtPostDownloadHandler.cc
  5402. * src/CheckIntegrityEntry.cc
  5403. * src/DownloadCommand.cc
  5404. * src/FtpDownloadCommand.cc
  5405. * src/FtpFinishDownloadCommand.cc
  5406. * src/FtpInitiateConnectionCommand.cc
  5407. * src/FtpNegotiationCommand.cc
  5408. * src/HttpInitiateConnectionCommand.cc
  5409. * src/HttpRequestCommand.cc
  5410. * src/HttpResponseCommand.cc
  5411. * src/HttpSkipResponseCommand.cc
  5412. * src/InitiateConnectionCommand.cc
  5413. * src/InitiateConnectionCommandFactory.cc
  5414. * src/InitiatorMSEHandshakeCommand.cc
  5415. * src/InitiatorMSEHandshakeCommand.h
  5416. * src/Metalink2RequestGroup.cc
  5417. * src/Metalink2RequestGroup.h
  5418. * src/MetalinkPostDownloadHandler.cc
  5419. * src/MultiUrlRequestInfo.cc
  5420. * src/MultiUrlRequestInfo.h
  5421. * src/PeerAbstractCommand.cc
  5422. * src/PeerInteractionCommand.cc
  5423. * src/PeerInteractionCommand.h
  5424. * src/PeerReceiveHandshakeCommand.cc
  5425. * src/PeerReceiveHandshakeCommand.h
  5426. * src/RequestGroup.cc
  5427. * src/RequestGroup.h
  5428. * src/TrackerWatcherCommand.cc
  5429. * src/TrackerWatcherCommand.h
  5430. * src/XmlRpcMethod.cc
  5431. * src/XmlRpcMethod.h
  5432. * src/XmlRpcMethodImpl.cc
  5433. * src/download_helper.cc
  5434. * src/download_helper.h
  5435. * src/main.cc
  5436. * test/BtDependencyTest.cc
  5437. * test/BtPostDownloadHandlerTest.cc
  5438. * test/DefaultBtMessageDispatcherTest.cc
  5439. * test/DownloadHandlerFactoryTest.cc
  5440. * test/DownloadHelperTest.cc
  5441. * test/Metalink2RequestGroupTest.cc
  5442. * test/MetalinkPostDownloadHandlerTest.cc
  5443. * test/RequestGroupManTest.cc
  5444. * test/RequestGroupTest.cc
  5445. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Added tellActiveStatus xml-rpc command which reports download
  5447. status of active downloads.
  5448. * src/XmlRpcMethodFactory.cc
  5449. * src/XmlRpcMethodImpl.cc
  5450. * src/XmlRpcMethodImpl.h
  5451. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added addTorrentFile xml-rpc command which receives uploaded
  5453. torrent file and add download for it.
  5454. * src/RequestGroupMan.cc
  5455. * src/XmlRpcMethodFactory.cc
  5456. * src/XmlRpcMethodImpl.cc
  5457. * src/XmlRpcMethodImpl.h
  5458. * src/download_helper.cc
  5459. * src/download_helper.h
  5460. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Added remove xml-rpc command which removes specified download.
  5462. There is a known issue: the removed unfinished downloads are
  5463. reported ERR when aria2 exits. They should be reported as INPR.
  5464. * src/RequestGroupMan.cc
  5465. * src/RequestGroupMan.h
  5466. * src/XmlRpcMethodFactory.cc
  5467. * src/XmlRpcMethodImpl.cc
  5468. * src/XmlRpcMethodImpl.h
  5469. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. If --enable-http-server is enabled, don't stop aria2 when all
  5471. download finished and don't quit when no files to download at
  5472. start up.
  5473. * src/RequestGroupMan.cc
  5474. * src/main.cc
  5475. * src/option_processing.cc
  5476. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Added missing AM_CONDITIONAL
  5478. * configure.ac
  5479. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Added xml-rpc functionality. Currently only addURI commad is
  5481. supported. To enable xml-rpc, run aria2 with
  5482. --enable-http-server. This option name is temporal and will be
  5483. changed. The feature that reports download progress in html format
  5484. is temporarily disabled.
  5485. * src/HttpServer.cc
  5486. * src/HttpServer.h
  5487. * src/HttpServerBodyCommand.cc
  5488. * src/HttpServerBodyCommand.h
  5489. * src/HttpServerCommand.cc
  5490. * src/HttpServerResponseCommand.cc
  5491. * src/Makefile.am
  5492. * src/OptionParser.cc
  5493. * src/OptionParser.h
  5494. * src/RequestGroupMan.cc
  5495. * src/RequestGroupMan.h
  5496. * src/XmlRpcMethod.cc
  5497. * src/XmlRpcMethod.h
  5498. * src/XmlRpcMethodFactory.cc
  5499. * src/XmlRpcMethodFactory.h
  5500. * src/XmlRpcMethodImpl.cc
  5501. * src/XmlRpcMethodImpl.h
  5502. * src/download_helper.cc
  5503. * src/download_helper.h
  5504. * test/Makefile.am
  5505. * test/XmlRpcMethodTest.cc
  5506. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5507. Added xml-rpc request parser. The supported value types are:
  5508. i4/int, string, double, struct, array, base64. Currently only
  5509. libxml2 version is provided.
  5510. * src/Xml2XmlRpcRequestProcessor.cc
  5511. * src/Xml2XmlRpcRequestProcessor.h
  5512. * src/XmlRpcElements.cc
  5513. * src/XmlRpcElements.h
  5514. * src/XmlRpcRequest.h
  5515. * src/XmlRpcRequestParserController.cc
  5516. * src/XmlRpcRequestParserController.h
  5517. * src/XmlRpcRequestParserState.h
  5518. * src/XmlRpcRequestParserStateImpl.cc
  5519. * src/XmlRpcRequestParserStateImpl.h
  5520. * src/XmlRpcRequestParserStateMachine.cc
  5521. * src/XmlRpcRequestParserStateMachine.h
  5522. * src/XmlRpcRequestProcessor.h
  5523. * test/XmlRpcRequestParserControllerTest.cc
  5524. * test/XmlRpcRequestProcessorTest.cc
  5525. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. * Release 1.3.3
  5527. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Fixed compile error since r1202.
  5529. * src/ExpatMetalinkProcessor.cc
  5530. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Updated Ukrainian, Russian and Simplified Chinese
  5532. translations. Thanks to all translators.
  5533. * po/ru.po
  5534. * po/uk.po
  5535. * po/zh_CN.po
  5536. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5537. Pass reference of Option object instead of pointer.
  5538. * src/download_helper.cc
  5539. * src/download_helper.h
  5540. * src/main.cc
  5541. * test/DownloadHelperTest.cc
  5542. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5543. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5544. from option directly. Instead, get them from RequestGroup.
  5545. * src/ActivePeerConnectionCommand.cc
  5546. * src/ActivePeerConnectionCommand.h
  5547. * src/PeerReceiveHandshakeCommand.cc
  5548. * src/RequestGroup.h
  5549. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5550. Removed unused uploadLimitCheck and uploadLimit from
  5551. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5552. PeerInteractionCommand.
  5553. * src/PeerAbstractCommand.cc
  5554. * src/PeerAbstractCommand.h
  5555. * src/PeerInteractionCommand.cc
  5556. * src/PeerInteractionCommand.h
  5557. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Fixed broken file renaming feature since r1202.
  5559. * src/FtpNegotiationCommand.cc
  5560. * src/FtpNegotiationCommand.h
  5561. * src/HttpResponseCommand.cc
  5562. * src/RequestGroup.cc
  5563. * src/RequestGroup.h
  5564. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5565. Removed unused debug log
  5566. * src/SocketCore.cc
  5567. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Generated configure and Makefile.in using autoconf 2.63 and
  5569. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5570. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5571. * configure.ac
  5572. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Moved piece statistics stuff to new PieceStatMan class.
  5574. Refactored PieceSelector interface.
  5575. * src/DefaultPieceStorage.cc
  5576. * src/DefaultPieceStorage.h
  5577. * src/LongestSequencePieceSelector.cc
  5578. * src/LongestSequencePieceSelector.h
  5579. * src/Makefile.am
  5580. * src/PieceSelector.h
  5581. * src/PieceStatMan.cc
  5582. * src/PieceStatMan.h
  5583. * src/RarestPieceSelector.cc
  5584. * src/RarestPieceSelector.h
  5585. * src/RequestGroup.cc
  5586. * test/DefaultPieceStorageTest.cc
  5587. * test/InOrderPieceSelector.h
  5588. * test/Makefile.am
  5589. * test/PieceStatManTest.cc
  5590. * test/RarestPieceSelectorTest.cc
  5591. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5592. Added static member _protocolFamily to SocketCore. By default,
  5593. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5594. address. Sometime SocketCore::bind() and
  5595. SocketCore::establishConnection() use difference protocl family
  5596. and latter cannot connect to former. To avoid this situation, we
  5597. limit protocol family to AF_INET for unit tests.
  5598. * src/SocketCore.cc
  5599. * src/SocketCore.h
  5600. * test/AllTest.cc
  5601. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. Avoid std::bad_alloc for negative bencode string length.
  5603. * src/bencode.cc
  5604. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Supported segmented downloading with chunked transfer encoding and
  5606. content-length.
  5607. * src/DownloadCommand.cc
  5608. * src/HttpResponseCommand.cc
  5609. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Bump up version number to 1.3.3
  5611. * configure.ac
  5612. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5613. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5614. from 4096 to 65536 (for insanely large ftp login banners)
  5615. * src/FtpConnection.h
  5616. * test/FtpConnectionTest.cc
  5617. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. In DefaultBtContext::getActualBasePath(), return first
  5619. FileEntry::getPath() for single file torrent.
  5620. * src/DefaultBtContext.cc
  5621. * test/DefaultBtContextTest.cc
  5622. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5624. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5625. Removed _directIOAllowed member from DiskWriter.
  5626. * src/AbstractDiskWriter.cc
  5627. * src/AbstractDiskWriter.h
  5628. * src/AbstractSingleDiskAdaptor.cc
  5629. * src/AbstractSingleDiskAdaptor.h
  5630. * src/BinaryStream.h
  5631. * src/ByteArrayDiskWriter.h
  5632. * src/DefaultPieceStorage.cc
  5633. * src/DiskWriter.h
  5634. * src/MultiDiskAdaptor.cc
  5635. * src/MultiDiskAdaptor.h
  5636. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5637. Now the constructor of AbstractDiskWriter takes filename as an
  5638. argument and filename argument is removed from openFile(),
  5639. initAndOpenFile(), openExistingFile() interface. storeDir member
  5640. and its accessor functions are removed from DiskAdaptor because it
  5641. is not used anymore. size() member function of DefaultDiskWriter,
  5642. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5643. opening file.
  5644. * src/AbstractDiskWriter.cc
  5645. * src/AbstractDiskWriter.h
  5646. * src/AbstractSingleDiskAdaptor.cc
  5647. * src/AbstractSingleDiskAdaptor.h
  5648. * src/ByteArrayDiskWriter.cc
  5649. * src/ByteArrayDiskWriter.h
  5650. * src/ByteArrayDiskWriterFactory.cc
  5651. * src/ByteArrayDiskWriterFactory.h
  5652. * src/DefaultDiskWriter.cc
  5653. * src/DefaultDiskWriter.h
  5654. * src/DefaultDiskWriterFactory.cc
  5655. * src/DefaultDiskWriterFactory.h
  5656. * src/DefaultPieceStorage.cc
  5657. * src/DirectDiskAdaptor.cc
  5658. * src/DirectDiskAdaptor.h
  5659. * src/DiskAdaptor.h
  5660. * src/DiskWriter.h
  5661. * src/DiskWriterFactory.h
  5662. * src/MessageDigestHelper.cc
  5663. * src/MultiDiskAdaptor.cc
  5664. * src/RequestGroup.cc
  5665. * src/UnknownLengthPieceStorage.cc
  5666. * src/Util.cc
  5667. * test/DefaultDiskWriterTest.cc
  5668. * test/DirectDiskAdaptorTest.cc
  5669. * test/FallocFileAllocationIteratorTest.cc
  5670. * test/MessageDigestHelperTest.cc
  5671. * test/MetalinkProcessorTest.cc
  5672. * test/MultiDiskAdaptorTest.cc
  5673. * test/MultiFileAllocationIteratorTest.cc
  5674. * test/SingleFileAllocationIteratorTest.cc
  5675. * test/UtilTest.cc
  5676. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Fixed the bug that aria2 aborts when --select-file is used. This
  5678. bug was introduced in r1199.
  5679. * src/MultiDiskAdaptor.cc
  5680. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5681. Code cleanup
  5682. * test/MockPieceStorage.cc
  5683. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5684. Fixed the bug that read-only file with wrong file size will cause
  5685. error because it cannot be truncated to the correct size. Now if
  5686. file size is different than the expected one, re-open file in
  5687. writable mode.
  5688. * src/AbstractSingleDiskAdaptor.cc
  5689. * src/AbstractSingleDiskAdaptor.h
  5690. * src/BtCheckIntegrityEntry.cc
  5691. * src/DiskAdaptor.h
  5692. * src/MultiDiskAdaptor.h
  5693. * src/RequestGroup.cc
  5694. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Fixed the bug that with --check-integrity option aria2 reports
  5696. downloaded file size is 0 even if some parts of file is correctly
  5697. downloaded. This bug is reproducible for the download that a file
  5698. includes last piece is missing. This bug doesn't reveal for
  5699. single-torrent with file allocation on.
  5700. * src/IteratableChecksumValidator.cc
  5701. * test/IteratableChecksumValidatorTest.cc
  5702. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5704. * src/RequestGroupMan.cc
  5705. * src/AdaptiveURISelector.cc
  5706. * src/AdaptiveURISelector.h
  5707. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. * Release 1.3.2
  5709. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Updated README
  5711. * README
  5712. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Updated Ukrainian translations. Thanks to Alexander10.
  5714. * po/uk.po
  5715. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Code cleanup
  5717. * src/MetalinkParserStateMachine.cc
  5718. * src/MetalinkParserStateMachine.h
  5719. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5721. and expat simultaneously, MetalinkProcessor is now not base class
  5722. and it is directly implemented in XML2SAXMetalinkProcessor and
  5723. ExpatMetalinkProcessor.
  5724. * src/ExpatMetalinkProcessor.cc
  5725. * src/ExpatMetalinkProcessor.h
  5726. * src/Makefile.am
  5727. * src/MetalinkHelper.cc
  5728. * src/MetalinkProcessor.h
  5729. * src/MetalinkProcessorFactory.cc: Removed.
  5730. * src/MetalinkProcessorFactory.h: Removed
  5731. * src/XML2SAXMetalinkProcessor.cc
  5732. * src/XML2SAXMetalinkProcessor.h
  5733. * test/MetalinkProcessorTest.cc
  5734. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5735. Bump up version number to 1.3.2
  5736. * configure.ac
  5737. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Added missing file.
  5739. * test/Makefile.am
  5740. * test/url-list-singleFileEndsWithSlash.torrent
  5741. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5743. request.
  5744. * src/AnnounceList.cc
  5745. * src/AnnounceList.h
  5746. * src/BDE.cc: Added
  5747. * src/BDE.h: Added
  5748. * src/DHTAbstractMessage.cc
  5749. * src/DHTAbstractMessage.h
  5750. * src/DHTAnnouncePeerMessage.cc
  5751. * src/DHTAnnouncePeerMessage.h
  5752. * src/DHTAnnouncePeerReplyMessage.cc
  5753. * src/DHTAnnouncePeerReplyMessage.h
  5754. * src/DHTFindNodeMessage.cc
  5755. * src/DHTFindNodeMessage.h
  5756. * src/DHTFindNodeReplyMessage.cc
  5757. * src/DHTFindNodeReplyMessage.h
  5758. * src/DHTGetPeersMessage.cc
  5759. * src/DHTGetPeersMessage.h
  5760. * src/DHTGetPeersReplyMessage.cc
  5761. * src/DHTGetPeersReplyMessage.h
  5762. * src/DHTMessageFactory.h
  5763. * src/DHTMessageFactoryImpl.cc
  5764. * src/DHTMessageFactoryImpl.h
  5765. * src/DHTMessageReceiver.cc
  5766. * src/DHTMessageTracker.cc
  5767. * src/DHTMessageTracker.h
  5768. * src/DHTPingMessage.cc
  5769. * src/DHTPingMessage.h
  5770. * src/DHTPingReplyMessage.cc
  5771. * src/DHTPingReplyMessage.h
  5772. * src/DHTQueryMessage.cc
  5773. * src/DHTQueryMessage.h
  5774. * src/DHTResponseMessage.cc
  5775. * src/DHTResponseMessage.h
  5776. * src/DefaultBtAnnounce.cc
  5777. * src/DefaultBtContext.cc
  5778. * src/DefaultBtContext.h
  5779. * src/HandshakeExtensionMessage.cc
  5780. * src/Makefile.am
  5781. * src/PeerListProcessor.h
  5782. * src/UTPexExtensionMessage.cc
  5783. * src/bencode.cc
  5784. * src/bencode.h
  5785. * test/AnnounceListTest.cc
  5786. * test/BDETest.cc: Added
  5787. * test/BencodeTest.cc
  5788. * test/DHTAnnouncePeerMessageTest.cc
  5789. * test/DHTAnnouncePeerReplyMessageTest.cc
  5790. * test/DHTFindNodeMessageTest.cc
  5791. * test/DHTFindNodeReplyMessageTest.cc
  5792. * test/DHTGetPeersMessageTest.cc
  5793. * test/DHTGetPeersReplyMessageTest.cc
  5794. * test/DHTMessageFactoryImplTest.cc
  5795. * test/DHTMessageTrackerTest.cc
  5796. * test/DHTPingMessageTest.cc
  5797. * test/DHTPingReplyMessageTest.cc
  5798. * test/Makefile.am
  5799. * test/MockDHTMessageFactory.h
  5800. * test/PeerListProcessorTest.cc
  5801. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Use url-list (web-seeding) only for single-file torrent. This is
  5803. basically the same behavior with Metalink file with torrent and
  5804. URIs.
  5805. * src/RequestGroup.cc
  5806. * src/DefaultBtContext.cc
  5807. * test/DefaultBtContextTest.cc
  5808. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5809. Rewritten expr
  5810. * src/array_fun.h
  5811. * test/array_funTest.cc
  5812. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5813. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5814. * src/DefaultBtMessageDispatcher.cc
  5815. * src/a2algo.h
  5816. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Removed ExtendedMessagingAware. Instead of using inheritance,
  5818. added ExtensionMessageRegistry and it is passed to
  5819. DefaultExtensionMessageFactory.
  5820. * src/DefaultBtInteractive.cc
  5821. * src/DefaultBtInteractive.h
  5822. * src/DefaultExtensionMessageFactory.cc
  5823. * src/DefaultExtensionMessageFactory.h
  5824. * src/ExtendedMessagingAware.h: Removed.
  5825. * src/ExtensionMessageFactory.h
  5826. * src/ExtensionMessageRegistry.h: Added.
  5827. * src/Makefile.am
  5828. * src/PeerInteractionCommand.cc
  5829. * test/DefaultExtensionMessageFactoryTest.cc
  5830. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Fixed typo in log messages
  5832. * src/MSEHandshake.cc
  5833. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Fixed the bug that prevents torrent download from finishing. The
  5835. bug doesn't reveal for all torrents. The torrents affected this
  5836. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5837. of pieces.
  5838. * src/bitfield.h
  5839. * test/bitfieldTest.cc
  5840. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Code cleanup
  5842. * src/PeerListProcessor.h
  5843. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Removed RequestGroupAware
  5845. * src/AbstractCommand.cc
  5846. * src/AbstractCommand.h
  5847. * src/ActivePeerConnectionCommand.cc
  5848. * src/ActivePeerConnectionCommand.h
  5849. * src/DHTGetPeersCommand.cc
  5850. * src/DHTGetPeersCommand.h
  5851. * src/InitiatorMSEHandshakeCommand.cc
  5852. * src/InitiatorMSEHandshakeCommand.h
  5853. * src/Makefile.am
  5854. * src/PeerInitiateConnectionCommand.cc
  5855. * src/PeerInitiateConnectionCommand.h
  5856. * src/PeerInteractionCommand.cc
  5857. * src/PeerInteractionCommand.h
  5858. * src/RealtimeCommand.cc
  5859. * src/RealtimeCommand.h
  5860. * src/RequestGroupAware.cc: Removed
  5861. * src/RequestGroupAware.h: Removed
  5862. * src/SeedCheckCommand.cc
  5863. * src/SeedCheckCommand.h
  5864. * src/SleepCommand.cc
  5865. * src/TrackerWatcherCommand.cc
  5866. * src/TrackerWatcherCommand.h
  5867. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5868. Rewritten PeerListProcessor
  5869. * src/PeerListProcessor.h
  5870. * src/CompactPeerListProcessor.h: Removed
  5871. * src/CompactPeerListProcessor.cc: Removed
  5872. * src/DelegatingPeerListProcessor.cc: Removed.
  5873. * src/DefaultBtAnnounce.cc
  5874. * src/Makefile.am
  5875. * src/UTPexExtensionMessage.cc
  5876. * src/DefaultPeerListProcessor.h: Removed.
  5877. * src/DefaultPeerListProcessor.cc: Removed.
  5878. * src/DelegatingPeerListProcessor.h: Removed.
  5879. * test/Makefile.am
  5880. * test/PeerListProcessorTest.cc
  5881. * test/DefaultPeerListProcessorTest.cc: Removed.
  5882. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Rewritten RequestGroupMan::calculateStat()
  5884. * src/RequestGroupMan.cc
  5885. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Removed unnecessary virtual destructor for Request class.
  5887. * src/Request.cc
  5888. * src/Request.h
  5889. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5890. Avoid dynamic_pointer_cast.
  5891. * src/DHTGetPeersCommand.cc
  5892. * src/DHTGetPeersCommand.h
  5893. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5895. BtEvent.
  5896. * src/AbstractBtEventListener.h: Removed.
  5897. * src/AbstractBtMessage.cc
  5898. * src/AbstractBtMessage.h
  5899. * src/BtAbortOutstandingRequestEvent.h
  5900. * src/BtCancelSendingPieceEvent.h
  5901. * src/BtChokedEvent.h: Removed.
  5902. * src/BtChokingEvent.h
  5903. * src/BtEvent.h: Removed
  5904. * src/BtEventListener.h: Removed.
  5905. * src/BtMessage.h
  5906. * src/BtPieceMessage.cc
  5907. * src/BtPieceMessage.h
  5908. * src/BtRequestMessage.cc
  5909. * src/BtRequestMessage.h
  5910. * src/DefaultBtMessageDispatcher.cc
  5911. * src/Makefile.am
  5912. * src/a2functional.h
  5913. * test/BtPieceMessageTest.cc
  5914. * test/BtRequestMessageTest.cc
  5915. * test/DefaultBtMessageDispatcherTest.cc
  5916. * test/MockBtMessage.h
  5917. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Code cleanup
  5919. * src/RequestGroupMan.cc
  5920. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Code cleanup
  5922. * src/DownloadCommand.cc
  5923. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5925. byte.
  5926. * src/DownloadCommand.cc
  5927. * src/bitfield.h
  5928. * test/bitfieldTest.cc
  5929. Fixed the bug that causes infinite loop if broken web server
  5930. returns chunked response without last "0" chunk-size marker and
  5931. closes connection.
  5932. * src/DownloadCommand.cc
  5933. Instantiate properly configured HttpDownloadCommand for
  5934. non-resumable downlaods.
  5935. * src/HttpResponseCommand.cc
  5936. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5937. Rewritten array operation functions.
  5938. * src/BitfieldMan.cc
  5939. * src/array_fun.h
  5940. * test/array_funTest.cc
  5941. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Removed unused variable 'query'
  5943. * src/Request.cc
  5944. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5946. accidentally set to false in r1162.
  5947. * configure.ac
  5948. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Code cleanup
  5950. * src/BNode.cc
  5951. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Increase prefixLength for the bucket which doesn't own local node
  5953. ID when splitting bucket.
  5954. * src/DHTBucket.cc
  5955. * test/DHTBucketTest.cc
  5956. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. * Release 1.3.1
  5958. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5959. Bump up version number to 1.3.1
  5960. * configure.ac
  5961. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5962. Removed unused variable checkPoint. Also removed include directive
  5963. for TimeA2.h.
  5964. * src/SeedCheckCommand.h
  5965. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5966. Fixed the bug that upload limit exceeds the value specified in
  5967. --seed-ratio option depending on the timing of the execution of
  5968. SeedCheckCommand.
  5969. * src/SeedCheckCommand.cc
  5970. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Fixed the bug that removed peer's session upload/download length
  5972. are counted twice in _cachedTransferStat before it is
  5973. re-calculated. This affected the calculation of shara ratio,
  5974. resulting aria2 wrongly determines that specified share ratio is
  5975. reached. Also fixed the typo in calculateStatFor function name.
  5976. * src/BtSetup.cc
  5977. * src/DefaultPeerStorage.cc
  5978. * src/ShareRatioSeedCriteria.h
  5979. * test/ShareRatioSeedCriteriaTest.cc
  5980. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5981. * Release 1.3.0
  5982. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5984. Nynorsk translations. Thanks to all translators.
  5985. * po/es.po
  5986. * po/ja.po
  5987. * po/nn.po
  5988. * po/ru.po
  5989. * po/uk.po
  5990. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Rewritten isInRange()
  5992. * src/DHTBucket.cc
  5993. * test/DHTBucketTest.cc
  5994. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Fixed typo
  5996. * doc/aria2c.1.txt
  5997. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5999. malloc/realloc is not used.
  6000. * src/configure.ac
  6001. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6003. char* bitfield instead of stl container for efficiency.
  6004. PieceSelector::select now takes this
  6005. bitfield. RarestPieceSelector::select now also performs
  6006. efficiently for this change. bitfield namespace is introduced and
  6007. it has several helper functions to handle basic bitfield
  6008. operations such as test, count set bits, etc.
  6009. * src/BitfieldMan.cc
  6010. * src/BitfieldMan.h
  6011. * src/DefaultBtRequestFactory.cc
  6012. * src/DefaultPieceStorage.cc
  6013. * src/DefaultPieceStorage.h
  6014. * src/LongestSequencePieceSelector.cc
  6015. * src/LongestSequencePieceSelector.h
  6016. * src/Makefile.am
  6017. * src/Piece.cc
  6018. * src/Piece.h
  6019. * src/PieceSelector.h
  6020. * src/RarestPieceSelector.cc
  6021. * src/RarestPieceSelector.h
  6022. * src/Util.cc
  6023. * src/Util.h
  6024. * src/bitfield.h
  6025. * test/BitfieldManTest.cc
  6026. * test/LongestSequencePieceSelectorTest.cc
  6027. * test/Makefile.am
  6028. * test/RarestPieceSelectorTest.cc
  6029. * test/UtilTest.cc
  6030. * test/bitfieldTest.cc
  6031. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6032. Made accepted socket non-block.
  6033. * src/FtpNegotiationCommand.cc
  6034. * src/HttpListenCommand.cc
  6035. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6037. * src/AbstractSingleDiskAdaptor.cc
  6038. * src/DefaultPieceStorage.cc
  6039. * src/DiskAdaptor.h
  6040. * src/DiskAdaptor.h
  6041. * src/MultiFileAllocationIterator.cc
  6042. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Run
  6044. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6045. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6046. it doesn't need to be called every time when
  6047. DefaultBtInteractive::doInteractionProcessing() is called.
  6048. * src/DefaultBtInteractive.cc
  6049. * src/DefaultBtInteractive.h
  6050. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6051. Documented 'falloc' in man page.
  6052. * doc/aria2c.1.txt
  6053. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6054. Updated doc
  6055. * src/usage_text.h
  6056. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6057. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6058. allocation mode uses posix_fallocate() system call to allocate
  6059. file on disk. If you are using newer file systems such as ext4
  6060. (with extents support), btrfs or xfs, 'falloc' is your best
  6061. choice. It allocates large(few GiB) files almost instantly. Don't
  6062. use 'falloc' with legacy file systems such as ext3 because it
  6063. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6064. until allocation finishes. 'falloc' may not be available if your
  6065. system doesn't have posix_fallocate() system call.
  6066. * configure.ac
  6067. * src/AbstractDiskWriter.cc
  6068. * src/AbstractDiskWriter.h
  6069. * src/AbstractSingleDiskAdaptor.cc
  6070. * src/BinaryStream.h
  6071. * src/BtCheckIntegrityEntry.cc
  6072. * src/ByteArrayDiskWriter.h
  6073. * src/CheckIntegrityEntry.cc
  6074. * src/CheckIntegrityEntry.h
  6075. * src/DefaultPieceStorage.cc
  6076. * src/DiskAdaptor.cc
  6077. * src/DiskAdaptor.h
  6078. * src/DiskWriter.h
  6079. * src/FallocFileAllocationIterator.cc
  6080. * src/FallocFileAllocationIterator.h
  6081. * src/FileAllocationEntry.cc
  6082. * src/FileAllocationEntry.h
  6083. * src/Makefile.am
  6084. * src/MultiFileAllocationIterator.cc
  6085. * src/MultiFileAllocationIterator.h
  6086. * src/OptionHandlerFactory.cc
  6087. * src/RequestGroup.cc
  6088. * src/StreamCheckIntegrityEntry.cc
  6089. * src/prefs.cc
  6090. * src/prefs.h
  6091. * src/usage_text.h
  6092. * test/FallocFileAllocationIteratorTest.cc
  6093. * test/Makefile.am
  6094. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6095. Removed duplicate enableDirectIO() call.
  6096. * src/MultiFileAllocationIterator.cc
  6097. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6098. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6099. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6100. cost of std::rotate().
  6101. * src/RarestPieceSelector.cc
  6102. * src/RarestPieceSelector.h
  6103. * test/RarestPieceSelectorTest.cc
  6104. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6105. Updated usage doc for --bt-tracker-interval option.
  6106. * src/usage_text.h
  6107. * doc/aria2c.1.txt
  6108. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6109. Documented --bt-tracker-interval option in man page.
  6110. * doc/aria2c.1.txt
  6111. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Added an option to specify the interval between tracker requests.
  6113. If non-zero value is specified, aria2 uses it and ignores the
  6114. interval value in the response of tracker. If zero is specified,
  6115. aria2 determines the inteval value based on the tarcker response
  6116. and download progress.
  6117. * src/DefaultBtAnnounce.cc
  6118. * src/DefaultBtAnnounce.h
  6119. * src/OptionHandlerFactory.cc
  6120. * src/RequestGroup.cc
  6121. * src/prefs.cc
  6122. * src/prefs.h
  6123. * src/usage_text.h
  6124. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Added operator+=, operator-=, operator-
  6126. * src/TransferStat.cc
  6127. * src/TransferStat.h
  6128. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6129. Refactored RarestPieceSelector to reduce CPU load, especially for
  6130. addPieceStats.
  6131. * src/RarestPieceSelector.cc
  6132. * src/RarestPieceSelector.h
  6133. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6135. getAllMissingBlockIndexes to reduce a call to
  6136. array_function_base::operator[].
  6137. * src/BitfieldMan.cc
  6138. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6139. Cached TransferStat/download speed to avoid to sum them up in each
  6140. call.
  6141. * src/DefaultPeerStorage.cc
  6142. * src/DefaultPeerStorage.h
  6143. * src/SegmentMan.cc
  6144. * src/SegmentMan.h
  6145. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. Typedefed cuid_t as int32_t in Command.h
  6147. * src/CUIDCounter.h
  6148. * src/Command.cc
  6149. * src/Command.h
  6150. * src/DownloadEngine.cc
  6151. * src/DownloadEngine.h
  6152. * src/PeerStat.h
  6153. * src/SegmentMan.cc
  6154. * src/SegmentMan.h
  6155. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Reduced the number of calls to PeerStorage::calculateStat() and
  6157. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6158. transfer rate.
  6159. * src/DefaultBtInteractive.cc
  6160. * src/DefaultBtMessageDispatcher.cc
  6161. * src/DefaultPeerStorage.cc
  6162. * src/DefaultPeerStorage.h
  6163. * src/DownloadCommand.cc
  6164. * src/DownloadEngine.cc
  6165. * src/PeerStorage.h
  6166. * src/SegmentMan.cc
  6167. * src/SegmentMan.h
  6168. * test/MockPeerStorage.h
  6169. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Prepended _dir+"/" after joining path elements in torrent file.
  6171. * src/DefaultBtContext.cc
  6172. * test/DefaultBtContextTest.cc
  6173. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Added missing IndexBtMessageValidator.h
  6175. * src/Makefile.am
  6176. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6178. Chinese translations. Thank you for contributing our project.
  6179. * po/id.po
  6180. * po/it.po
  6181. * po/ru.po
  6182. * po/uk.po
  6183. * po/zh_CN.po
  6184. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6185. Updated README
  6186. * README
  6187. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Bump up version number to 1.3.0
  6189. * configure.ac
  6190. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Updated doc
  6192. * src/DefaultBtContext.h
  6193. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Slice/joinPath for name of single torrent.
  6195. * src/DefaultBtContext.cc
  6196. * test/DefaultBtContextTest.cc
  6197. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Updated man page: Documented --dry-run and --index-out
  6199. options. Changed the default value of --uri-selector and
  6200. --http-auth-challenge options. Removed --direct-file-mapping
  6201. option. Added example for --index-out
  6202. * doc/aria2c.1.txt
  6203. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Updated TEXT_DRY_RUN
  6205. * src/usage_text.h
  6206. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6207. Changed the default value of --uri-selector option from 'inorder'
  6208. to 'feedback'
  6209. * src/OptionHandlerFactory.cc
  6210. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6211. Included current URI in exception message.
  6212. * src/AbstractCommand.cc
  6213. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6214. Renamed ServerStatURISelector as FeedbackURISelector.
  6215. * src/FeedbackURISelector.cc
  6216. * src/FeedbackURISelector.h
  6217. * src/Makefile.am
  6218. * src/RequestGroupMan.cc
  6219. * src/ServerStatURISelector.cc
  6220. * src/ServerStatURISelector.h
  6221. * test/FeedbackURISelectorTest.cc
  6222. * test/Makefile.am
  6223. * test/ServerStatURISelectorTest.cc
  6224. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6226. all URIs are tested and their timeout is not reached.
  6227. * src/AdaptiveURISelector.cc
  6228. * src/AdaptiveURISelector.h
  6229. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Changed the default value of --http-auth-challenge option to false.
  6231. * src/OptionHandlerFactory.cc
  6232. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6233. Reuse URIs when all unused URIs run out.
  6234. * src/OptionHandlerFactory.cc
  6235. * src/RequestGroup.cc
  6236. * src/prefs.cc
  6237. * src/prefs.h
  6238. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6240. and BtRejectMessage are derived from RangeBtMessage class.
  6241. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6242. derived from IndexBtMessage class. BtChokeMessage,
  6243. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6244. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6245. ZeroBtMessage class.
  6246. * src/AbstractBtMessage.cc
  6247. * src/AbstractBtMessage.h
  6248. * src/BtAllowedFastMessage.cc
  6249. * src/BtAllowedFastMessage.h
  6250. * src/BtAllowedFastMessageValidator.h: Removed
  6251. * src/BtBitfieldMessage.cc
  6252. * src/BtBitfieldMessage.h
  6253. * src/BtCancelMessage.cc
  6254. * src/BtCancelMessage.h
  6255. * src/BtCancelMessageValidator.h: Removed
  6256. * src/BtChokeMessage.cc
  6257. * src/BtChokeMessage.h
  6258. * src/BtExtendedMessage.cc
  6259. * src/BtExtendedMessage.h
  6260. * src/BtHandshakeMessage.cc
  6261. * src/BtHandshakeMessage.h
  6262. * src/BtHaveAllMessage.cc
  6263. * src/BtHaveAllMessage.h
  6264. * src/BtHaveMessage.cc
  6265. * src/BtHaveMessage.h
  6266. * src/BtHaveMessageValidator.h: Removed
  6267. * src/BtHaveNoneMessage.cc
  6268. * src/BtHaveNoneMessage.h
  6269. * src/BtInterestedMessage.cc
  6270. * src/BtInterestedMessage.h
  6271. * src/BtKeepAliveMessage.cc
  6272. * src/BtKeepAliveMessage.h
  6273. * src/BtNotInterestedMessage.cc
  6274. * src/BtNotInterestedMessage.h
  6275. * src/BtPieceMessage.cc
  6276. * src/BtPieceMessage.h
  6277. * src/BtPortMessage.cc
  6278. * src/BtPortMessage.h
  6279. * src/BtRejectMessage.cc
  6280. * src/BtRejectMessage.h
  6281. * src/BtRejectMessageValidator.h: Removed
  6282. * src/BtRequestMessage.cc
  6283. * src/BtRequestMessage.h
  6284. * src/BtRequestMessageValidator.h: Removed
  6285. * src/BtSuggestPieceMessage.cc
  6286. * src/BtSuggestPieceMessage.h
  6287. * src/BtSuggestPieceMessageValidator.h: Removed
  6288. * src/BtUnchokeMessage.cc
  6289. * src/BtUnchokeMessage.h
  6290. * src/DefaultBtMessageFactory.cc
  6291. * src/IndexBtMessage.cc
  6292. * src/IndexBtMessage.h
  6293. * src/IndexBtMessageValidator.h
  6294. * src/Makefile.am
  6295. * src/PeerMessageUtil.cc
  6296. * src/PeerMessageUtil.h
  6297. * src/RangeBtMessage.cc
  6298. * src/RangeBtMessage.h
  6299. * src/RangeBtMessageValidator.h
  6300. * src/SimpleBtMessage.cc
  6301. * src/SimpleBtMessage.h
  6302. * src/ZeroBtMessage.cc
  6303. * src/ZeroBtMessage.h
  6304. * test/BtRequestMessageTest.cc
  6305. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6306. Reverted usage_text.h to r1093 to avoid to lose translated
  6307. messages.
  6308. * src/usage_text.h
  6309. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6310. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6311. declared as non-const previously is now const and defined in class
  6312. definition.
  6313. * src/AbstractBtMessage.cc
  6314. * src/AbstractBtMessage.h
  6315. * src/BtAllowedFastMessage.cc
  6316. * src/BtAllowedFastMessage.h
  6317. * src/BtBitfieldMessage.h
  6318. * src/BtCancelMessage.cc
  6319. * src/BtCancelMessage.h
  6320. * src/BtChokeMessage.cc
  6321. * src/BtChokeMessage.h
  6322. * src/BtExtendedMessage.cc
  6323. * src/BtExtendedMessage.h
  6324. * src/BtHandshakeMessage.cc
  6325. * src/BtHandshakeMessage.h
  6326. * src/BtHaveAllMessage.cc
  6327. * src/BtHaveAllMessage.h
  6328. * src/BtHaveMessage.cc
  6329. * src/BtHaveMessage.h
  6330. * src/BtHaveNoneMessage.cc
  6331. * src/BtHaveNoneMessage.h
  6332. * src/BtInterestedMessage.cc
  6333. * src/BtInterestedMessage.h
  6334. * src/BtKeepAliveMessage.cc
  6335. * src/BtKeepAliveMessage.h
  6336. * src/BtMessage.h
  6337. * src/BtNotInterestedMessage.cc
  6338. * src/BtNotInterestedMessage.h
  6339. * src/BtPieceMessage.h
  6340. * src/BtPortMessage.cc
  6341. * src/BtPortMessage.h
  6342. * src/BtRejectMessage.cc
  6343. * src/BtRejectMessage.h
  6344. * src/BtRequestMessage.cc
  6345. * src/BtRequestMessage.h
  6346. * src/BtSuggestPieceMessage.cc
  6347. * src/BtSuggestPieceMessage.h
  6348. * src/BtUnchokeMessage.cc
  6349. * src/BtUnchokeMessage.h
  6350. * src/SimpleBtMessage.cc
  6351. * src/SimpleBtMessage.h
  6352. * test/MockBtMessage.h
  6353. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6354. Use FileEntry::exists()
  6355. * src/MultiDiskAdaptor.cc
  6356. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6357. Added exists()
  6358. * src/FileEntry.cc
  6359. * src/FileEntry.h
  6360. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Added missing prefix dir.
  6362. * src/download_helper.cc
  6363. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6364. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6365. * src/CopyDiskAdaptor.cc: Removed
  6366. * src/CopyDiskAdaptor.h: Removed
  6367. * src/DefaultPieceStorage.cc
  6368. * src/Makefile.am
  6369. * src/OptionHandlerFactory.cc
  6370. * src/prefs.cc
  6371. * src/prefs.h
  6372. * src/usage_text.h
  6373. * test/CopyDiskAdaptorTest.cc: Removed
  6374. * test/Makefile.am
  6375. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6376. Rewritten isSameFileBeingDownloaded()
  6377. * src/RequestGroupMan.cc
  6378. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6379. Removed getName() from DownloadContext. getName() is declared in
  6380. BtContext.
  6381. * src/BtContext.h
  6382. * src/DownloadContext.h
  6383. * src/SingleFileDownloadContext.cc
  6384. * src/SingleFileDownloadContext.h
  6385. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6386. in AbstractSingleDiskAdaptor.
  6387. * src/AbstractSingleDiskAdaptor.h
  6388. * src/DiskAdaptor.h
  6389. * src/MultiDiskAdaptor.h
  6390. * src/RequestGroup.cc
  6391. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6392. MultiDiskAdaptor.
  6393. * src/DefaultPieceStorage.cc
  6394. * src/MultiDiskAdaptor.cc
  6395. * src/MultiDiskAdaptor.h
  6396. * test/MultiDiskAdaptorTest.cc
  6397. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6398. FileEntry::getPath() contains store(top level) directory to
  6399. simplify path handling operation. In the previous implementation,
  6400. store directory is concatenated to FileEntry::getPath() in
  6401. DownloadContext.
  6402. * src/BtDependency.cc
  6403. * src/BtPostDownloadHandler.cc
  6404. * src/CopyDiskAdaptor.cc
  6405. * src/DefaultBtContext.cc
  6406. * src/DirectDiskAdaptor.cc
  6407. * src/FileEntry.cc
  6408. * src/FileEntry.h
  6409. * src/FtpNegotiationCommand.cc
  6410. * src/HttpResponse.cc
  6411. * src/HttpResponseCommand.cc
  6412. * src/Metalink2RequestGroup.cc
  6413. * src/MultiDiskAdaptor.cc
  6414. * src/MultiDiskAdaptor.h
  6415. * src/MultiFileAllocationIterator.cc
  6416. * src/RequestGroup.cc
  6417. * src/SingleFileDownloadContext.cc
  6418. * src/SingleFileDownloadContext.h
  6419. * src/download_helper.cc
  6420. * test/BtDependencyTest.cc
  6421. * test/CopyDiskAdaptorTest.cc
  6422. * test/DefaultBtContextTest.cc
  6423. * test/DefaultBtProgressInfoFileTest.cc
  6424. * test/DirectDiskAdaptorTest.cc
  6425. * test/DownloadHelperTest.cc
  6426. * test/FileEntryTest.cc
  6427. * test/MultiDiskAdaptorTest.cc
  6428. * test/MultiFileAllocationIteratorTest.cc
  6429. * test/RequestGroupTest.cc
  6430. * test/SingleFileDownloadContextTest.cc
  6431. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Fixed compiler warning
  6433. * src/download_helper.cc
  6434. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6435. Throw exception if same infohash torrent is now downloading.
  6436. * src/RequestGroup.cc
  6437. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Added --dry-run option. In this mode, aria2 just checks whether
  6439. the remote file is available and doesn't download data. This
  6440. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6441. are canceled in this mode.
  6442. * src/FtpNegotiationCommand.cc
  6443. * src/HttpResponseCommand.cc
  6444. * src/HttpResponseCommand.h
  6445. * src/OptionHandlerFactory.cc
  6446. * src/RequestGroup.cc
  6447. * src/RequestGroupMan.cc
  6448. * src/prefs.cc
  6449. * src/prefs.h
  6450. * src/usage_text.h
  6451. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Fixed compiler waring
  6453. * test/UriListParserTest.cc
  6454. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6455. Parse options in -i list using OptionParser.
  6456. * src/UriListParser.cc
  6457. * src/UriListParser.h
  6458. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Don't reset URI in retry to avoid additional round trips because
  6460. of redirects.
  6461. * src/AbstractCommand.cc
  6462. * src/OptionHandlerFactory.cc
  6463. * src/prefs.cc
  6464. * src/prefs.h
  6465. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6466. Declared hide() in OptionHandler.
  6467. * src/NameMatchOptionHandler.h
  6468. * src/OptionHandler.h
  6469. * src/OptionHandlerImpl.h
  6470. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6471. Updated doc
  6472. * src/Peer.h
  6473. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6474. Added log message in setStatusInternal()
  6475. * src/ServerStat.cc
  6476. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6477. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6478. effectively exclude failed server.
  6479. * src/AbstractCommand.cc
  6480. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Added --index-out option to specify each file path for torrent.
  6482. Here index shown in --show-files option is used to specify which
  6483. file path should be altered. For example, to change the file path
  6484. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6485. option multiple times: --index-out=1=aria2.tar.bz2
  6486. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6487. available. This option can be specified in -i list.
  6488. * src/DefaultBtContext.cc
  6489. * src/DefaultBtContext.h
  6490. * src/MultiDiskAdaptor.cc
  6491. * src/MultiDiskAdaptor.h
  6492. * src/MultiFileAllocationIterator.cc
  6493. * src/OptionHandlerFactory.cc
  6494. * src/OptionHandlerImpl.h
  6495. * src/Util.cc
  6496. * src/Util.h
  6497. * src/download_helper.cc
  6498. * src/prefs.cc
  6499. * src/prefs.h
  6500. * src/usage_text.h
  6501. * test/DefaultBtContextTest.cc
  6502. * test/MultiDiskAdaptorTest.cc
  6503. * test/MultiFileAllocationIteratorTest.cc
  6504. * test/UtilTest.cc
  6505. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6506. Use Util::pathJoin()
  6507. * src/MetalinkParserController.cc
  6508. * test/test.xml
  6509. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6510. Use Util::pathJoin()
  6511. * src/DefaultBtContext.cc
  6512. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6513. Added Util::pathJoin()
  6514. * src/Util.h
  6515. * test/UtilTest.cc
  6516. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6517. Applied basename function to remove directory element in
  6518. content-disposition value.
  6519. Return empty string if content-disposition value is ".." or ".".
  6520. * src/Util.cc
  6521. * test/UtilTest.cc
  6522. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6523. Added --max-overall-download-limit in man page.
  6524. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6525. * doc/aria2c.1.txt
  6526. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Added --max-overall-download-limit option. Now --max-upload-limit
  6528. option is not ignored when --max-overall-upload-limit option has
  6529. non-zero value. aria2 checks download(upload) speed in the order:
  6530. first checks overall speed limit and if it is not exceeded, then
  6531. checks speed limit per download. Thus you can specify both
  6532. value. For example, set --max-overall-download-limit=1M and
  6533. --max-download-limit=500K to prevent from one download from eating
  6534. all overall speed limit.
  6535. * src/DefaultBtInteractive.cc
  6536. * src/DefaultBtInteractive.h
  6537. * src/DefaultBtMessageDispatcher.cc
  6538. * src/DefaultBtMessageDispatcher.h
  6539. * src/DownloadCommand.cc
  6540. * src/DownloadCommand.h
  6541. * src/FtpNegotiationCommand.cc
  6542. * src/HttpResponseCommand.cc
  6543. * src/OptionHandlerFactory.cc
  6544. * src/PeerInteractionCommand.cc
  6545. * src/RequestGroup.cc
  6546. * src/RequestGroup.h
  6547. * src/RequestGroupMan.cc
  6548. * src/RequestGroupMan.h
  6549. * src/prefs.cc
  6550. * src/prefs.h
  6551. * src/usage_text.h
  6552. * test/DefaultBtMessageDispatcherTest.cc
  6553. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6554. Documented select-file option in Input File section.
  6555. Documented --http-auth-challenge option.
  6556. * doc/aria2c.1.txt
  6557. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6558. Now select-file can be specified in the uri list(-i list).
  6559. * src/BtContext.cc
  6560. * src/BtContext.h
  6561. * src/RequestGroup.cc
  6562. * src/Sequence.h
  6563. * src/download_helper.cc
  6564. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Made the upper value of --max-concurrent-downloads options unlimited.
  6566. * src/OptionHandlerFactory.cc
  6567. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6568. Fixed the bug that disk writer is not created even if it shares
  6569. same piece with the preceding file if the length of previous file
  6570. is 0.
  6571. * src/MultiDiskAdaptor.cc
  6572. * test/MultiDiskAdaptorTest.cc
  6573. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6574. In BitTorrent, Open files in read-only mode for hash check. After
  6575. that, re-open file in read/write mode only when the download is
  6576. not finished.
  6577. * src/AbstractDiskWriter.cc
  6578. * src/AbstractDiskWriter.h
  6579. * src/AbstractSingleDiskAdaptor.cc
  6580. * src/AbstractSingleDiskAdaptor.h
  6581. * src/BtCheckIntegrityEntry.cc
  6582. * src/DiskAdaptor.h
  6583. * src/DiskWriter.h
  6584. * src/MultiDiskAdaptor.cc
  6585. * src/MultiDiskAdaptor.h
  6586. * src/RequestGroup.cc
  6587. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Added --http-auth-challenge option. If it is set to true(by
  6589. default), aria2 sends HTTP authorization header only when it is
  6590. requested by the server. If false is set, then authorization
  6591. header is always sent to the server. This is useful for servers
  6592. that don't respond 401 code when authentication is required.
  6593. There is an exception: if username and password are embedded in
  6594. URI, authorization header is always sent to the server regardless
  6595. of this option.
  6596. * src/AuthConfigFactory.cc
  6597. * src/HttpSkipResponseCommand.cc
  6598. * src/OptionHandlerFactory.cc
  6599. * src/prefs.cc
  6600. * src/prefs.h
  6601. * src/usage_text.h
  6602. * test/AuthConfigFactoryTest.cc
  6603. * test/HttpRequestTest.cc
  6604. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. * Release 1.2.0
  6606. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6608. Thanks to all translators.
  6609. * po/es.po
  6610. * po/ja.po
  6611. * po/ru.po
  6612. * po/uk.po
  6613. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Call deleteSocketForReadCheck() before socket is closed.
  6615. * src/HttpListenCommand.cc
  6616. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Defined virtual destructor for BObject.
  6618. * src/bencode.h
  6619. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6620. Rewritten BDE to make it efficient.
  6621. * src/bencode.cc
  6622. * src/bencode.h
  6623. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Removed function throw list.
  6625. * src/bencode.cc
  6626. * src/bencode.h
  6627. * test/BencodeTest.cc
  6628. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6629. Enclosed all URLs in double quotes in command-line examples.
  6630. * doc/aria2c.1.txt
  6631. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6632. Updated reference/see also section.
  6633. * README
  6634. * doc/aria2c.1.txt
  6635. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6636. Reorganized man page based on man man-pages.
  6637. * doc/aria2c.1.txt
  6638. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6640. because same documents are available in man page. Added
  6641. References section.
  6642. * README
  6643. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6644. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6645. PERFORMANCE PROFILE section.
  6646. * doc/aria2c.1.txt
  6647. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Rewritten the section for configuration file.
  6649. * README
  6650. * doc/aria2c.1.txt
  6651. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Fixed the segmentation fault during execution of choking algorithm
  6653. in leecher state because of broken compare operator
  6654. implementation.
  6655. * src/BtLeecherStateChoke.cc
  6656. * src/BtLeecherStateChoke.h
  6657. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Open file in binary mode.
  6659. * src/CookieStorage.cc
  6660. * src/DHTSetup.cc
  6661. * src/DHTUtil.cc
  6662. * src/Netrc.cc
  6663. * src/NsCookieParser.cc
  6664. * src/ProtocolDetector.cc
  6665. * src/RequestGroupMan.cc
  6666. * src/Signature.cc
  6667. * src/bencode.cc
  6668. * src/download_helper.cc
  6669. * src/option_processing.cc
  6670. * test/CookieParserTest.cc
  6671. * test/DefaultBtProgressInfoFileTest.cc
  6672. * test/FileTest.cc
  6673. * test/GZipDecoderTest.cc
  6674. * test/RequestGroupManTest.cc
  6675. * test/SignatureTest.cc
  6676. * test/SingleFileAllocationIteratorTest.cc
  6677. * test/UriListParserTest.cc
  6678. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6679. Removed operator[] because it is ambiguous with built-in []
  6680. operator.
  6681. * src/array_fun.h
  6682. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6683. Fixed compile error
  6684. * src/OptionParser.cc
  6685. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6686. Added missing call to arrayWrapperConst
  6687. * test/array_funTest.cc
  6688. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6689. Use array_wrapper instead of array_ptr.
  6690. * src/DHTRoutingTableDeserializer.cc
  6691. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6693. * src/array_fun.h
  6694. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Added array_wrapper template.
  6696. * src/array_fun.h
  6697. * test/array_funTest.cc
  6698. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6699. Use operator T* of array_ptr.
  6700. * src/OptionParser.cc
  6701. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6702. Use localhost instead of 127.0.0.1
  6703. * test/FtpConnectionTest.cc
  6704. * test/MSEHandshakeTest.cc
  6705. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Added operator T*
  6707. * src/array_fun.h
  6708. * test/array_funTest.cc
  6709. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6710. Use dynamically allocated char array to detect memory access
  6711. violation.
  6712. * src/DHTRoutingTableDeserializer.cc
  6713. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6714. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6715. defined.
  6716. * src/PeerMessageUtil.cc
  6717. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6719. * configure.ac
  6720. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6721. Added a check to see struct sockaddr_in has sin_len member.
  6722. * configure.ac
  6723. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6724. Fixed buffer overrun.
  6725. * src/DHTRoutingTableDeserializer.cc
  6726. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Added LL for long long int constant.
  6728. * test/FtpConnectionTest.cc
  6729. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6730. Casted to unsigned int to suppress compiler warning on netbsd.
  6731. * src/BtRuntime.h
  6732. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6733. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6734. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6735. type time_t.
  6736. * src/SimpleLogger.cc
  6737. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6738. Added test for FtpConnection::receiveSizeResponse().
  6739. * test/FtpConnectionTest.cc
  6740. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6741. Fix epoll error on the old kernel 2.6.8 or ealier.
  6742. * src/EpollEventPoll.cc
  6743. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6744. Use Util::parseLLInt instead of sscanf for portability. The
  6745. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6746. * src/FtpConnection.cc
  6747. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6748. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6749. block. It should not filter anything.
  6750. * src/BitfieldMan.cc
  6751. * src/ConsoleStatCalc.cc
  6752. * test/BitfieldManTest.cc
  6753. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Fixed the bug that the boolean options that don't take arguments
  6755. don't work.
  6756. * src/OptionHandlerImpl.h
  6757. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6758. Fixed broken selected file BitTorrent download.
  6759. * src/MultiDiskAdaptor.cc
  6760. * test/MultiDiskAdaptorTest.cc
  6761. * test/MultiFileAllocationIteratorTest.cc
  6762. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. Fixed #define guard for EpollEventPoll
  6764. * src/EpollEventPoll.h
  6765. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6766. Wait 2 seconds. 1 second is sometimes not enough.
  6767. * test/TimeSeedCriteriaTest.cc
  6768. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Use localhost instead of 127.0.0.1.
  6770. * test/DHTConnectionImplTest.cc
  6771. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Suppressed compiler warning.
  6773. * src/AdaptiveURISelector.cc
  6774. * src/DefaultPieceStorage.cc
  6775. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6776. Defined virtual destructor.
  6777. * src/MetalinkParserState.h
  6778. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Give NULL for second argument of getaddrinfo instead of "0".
  6780. * src/NameResolver.cc
  6781. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6783. included strptime doesn't parse data for this format.
  6784. * src/FtpConnection.cc
  6785. * test/FtpConnectionTest.cc
  6786. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6787. Removed tests giving -1 for unsigned argument.
  6788. * test/SingleFileDownloadContextTest.cc
  6789. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6790. Don't use sha256 in tests because it might not be supported by the
  6791. SSL library.
  6792. * test/MetalinkProcessorTest.cc
  6793. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Removed tests giving -1 for unsigned argument.
  6795. * test/AlphaNumberDecoratorTest
  6796. * test/BitfieldManTest.cc
  6797. * test/DefaultBtContextTest.cc
  6798. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6799. Fixed compile error without libcares when epoll is available.
  6800. * src/EpollEventPoll.cc
  6801. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6802. Included fstream instead of iostream.
  6803. * test/SignatureTest.cc
  6804. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6805. Removed #include <algorithm>
  6806. * test/RequestGroupTest.cc
  6807. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6808. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6809. using RequestGroup::extractURIResult().
  6810. * src/AdaptiveURISelector.cc
  6811. * src/RequestGroup.cc
  6812. * src/RequestGroup.h
  6813. * test/RequestGroupTest.cc
  6814. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6815. Added tests for array_ptr.
  6816. * test/array_funTest.cc
  6817. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Don't send ip parameter to a tracker if ip parameter is empty
  6819. string.
  6820. * src/DefaultBtAnnounce.cc
  6821. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Adjusted line feed.
  6823. * src/version_usage.cc
  6824. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Print tags, possible values when OptionHandlerException is caught.
  6826. * src/option_processing.cc
  6827. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Changed the message for FatalException.
  6829. * src/OptionParser.cc
  6830. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6831. Documented --bt-external-ip option in man page. Updated man pages
  6832. for --proxy-method option.
  6833. * doc/aria2c.1.txt
  6834. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Use GET method for FTP via HTTP proxy.
  6836. * src/FtpInitiateConnectionCommand.cc
  6837. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6838. Changed the default value of --proxy-method option from 'tunnel'
  6839. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6840. option.
  6841. * src/AbstractCommand.cc
  6842. * src/AbstractCommand.h
  6843. * src/FtpInitiateConnectionCommand.cc
  6844. * src/HttpDownloadCommand.cc
  6845. * src/HttpInitiateConnectionCommand.cc
  6846. * src/HttpInitiateConnectionCommand.h
  6847. * src/OptionHandlerFactory.cc
  6848. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Initialized _logger
  6850. * src/SelectEventPoll.cc
  6851. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Defined a copy constructor for the same type.
  6853. * src/SharedHandle.h
  6854. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Added OptionParser::parseArg() which internally uses getopt_long
  6856. to parse command-line options. All command-line options are now
  6857. configured by OptionHandler. No manual editing of struct option*
  6858. is required any more.
  6859. * src/NameMatchOptionHandler.h
  6860. * src/OptionHandler.h
  6861. * src/OptionHandlerFactory.cc
  6862. * src/OptionHandlerImpl.h
  6863. * src/OptionParser.cc
  6864. * src/OptionParser.h
  6865. * src/array_fun.h
  6866. * src/main.cc
  6867. * src/option_processing.cc
  6868. * test/OptionHandlerTest.cc
  6869. * test/OptionParserTest.cc
  6870. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Fixed configure error with --disable-epoll
  6872. * configure.ac
  6873. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6874. Fixed compile error when HAVE_EPOLL is not defined.
  6875. Fixed linker error on bigendian systems.
  6876. * src/SocketCore.cc
  6877. * src/SocketCore.h
  6878. * test/DefaultBtProgressInfoFileTest.cc
  6879. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6880. Added --bt-external-ip option. You can specify the external IP
  6881. address to report to a BitTorrent tracker. Although this function
  6882. is named 'external', it can accept any kind of IP addresses.
  6883. * src/DefaultBtAnnounce.cc
  6884. * src/OptionHandlerFactory.cc
  6885. * src/option_processing.cc
  6886. * src/prefs.cc
  6887. * src/prefs.h
  6888. * src/usage_text.h
  6889. * test/DefaultBtAnnounceTest.cc
  6890. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Extracted the algorithm to find the longest incremental sequence
  6892. as max_sequence template.
  6893. * src/LongestSequencePieceSelector.cc
  6894. * src/a2algo.h
  6895. * test/Makefile.am
  6896. * test/a2algoTest.cc
  6897. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6898. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6899. * src/usage_text.h
  6900. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6901. Updated doc for --uri-selector, --http-server-listen-port and
  6902. --enable-http-server option. Documented --event-poll option.
  6903. * doc/aria2c.1.txt
  6904. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6905. Updated doc for --enable-http-server.
  6906. * src/usage_text.h
  6907. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. Documented --http-server-listen-port and --enable-http-server in
  6909. man page.
  6910. * doc/aria2c.1.txt
  6911. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6912. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6913. translations. Thanks to all translators.
  6914. * po/es.po
  6915. * po/id.po
  6916. * po/it.po
  6917. * po/ru.po
  6918. * po/uk.po
  6919. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6920. Bump up version number to 1.2.0
  6921. * configure.ac
  6922. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6923. BtContext::getAnnounceTiers() now returns const reference.
  6924. * src/BtContext.h
  6925. * src/DefaultBtContext.cc
  6926. * src/DefaultBtContext.h
  6927. * test/MockBtContext.h
  6928. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6929. Change the number of retries for tracker request based on the
  6930. number of available tracker in a torrent file.
  6931. * src/TrackerWatcherCommand.cc
  6932. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6933. Added _maxTries property to RequestGroup and assign the option
  6934. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6935. RequestGroup::getMaxTries() instead of
  6936. Option::getAsInt(PREF_MAX_TRIES).
  6937. * src/AbstractCommand.cc
  6938. * src/RequestGroup.cc
  6939. * src/RequestGroup.h
  6940. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6941. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6942. Mandriva. I modified the patch: make RequestGroup have the
  6943. timeout value and AdaptiveURISelector directly modifies that
  6944. value.
  6945. * src/AbstractCommand.cc
  6946. * src/AdaptiveURISelector.cc
  6947. * src/AdaptiveURISelector.h
  6948. * src/FtpNegotiationCommand.cc
  6949. * src/RequestGroup.cc
  6950. * src/RequestGroup.h
  6951. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6952. Fixed compiler warning
  6953. * test/IteratableChecksumValidatorTest.cc
  6954. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6956. integrated downloads. This PieceSelector subclass finds the
  6957. longest continuous sequence in the available missing pieces and
  6958. selects the last index of such sequence. This makes HTTP/FTP
  6959. connections less interrupted by the pieces obtained by BitTorrent
  6960. peers.
  6961. * src/DefaultPieceStorage.cc
  6962. * src/DefaultPieceStorage.h
  6963. * src/LongestSequencePieceSelector.cc
  6964. * src/LongestSequencePieceSelector.h
  6965. * src/Makefile.am
  6966. * src/PieceSelector.h
  6967. * src/RarestPieceSelector.h
  6968. * src/RequestGroup.cc
  6969. * test/BtDependencyTest.cc
  6970. * test/DefaultPieceStorageTest.cc
  6971. * test/IteratableChecksumValidatorTest.cc
  6972. * test/LongestSequencePieceSelectorTest.cc
  6973. * test/Makefile.am
  6974. * test/SegmentManTest.cc
  6975. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. Fixed the bug that the average speed is wrong in
  6977. http/ftp/BitTorrent integrated download. Only the download bytes
  6978. in BitTorrent were considered.
  6979. * src/RequestGroup.cc
  6980. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6981. Choose port for BitTorrent/DHT randomly from the specified range.
  6982. * src/DHTConnectionImpl.cc
  6983. * src/PeerListenCommand.cc
  6984. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6985. Send HTTP Authorization header only if it is requested by the
  6986. server(response 401). There are some exceptions. The authorization
  6987. header for proxy is always sent if it is available without request
  6988. by the server. If username/password is specified in the URI, it
  6989. is immediately sent to the server without request by the server.
  6990. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6991. SharedHandle<AuthConfig>().
  6992. NetrcAuthResolver::resolveAuthConfig() returns
  6993. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6994. * src/AbstractAuthResolver.cc
  6995. * src/AbstractProxyRequestCommand.cc
  6996. * src/AuthConfigFactory.cc
  6997. * src/AuthConfigFactory.h
  6998. * src/HttpConnection.cc
  6999. * src/HttpRequest.cc
  7000. * src/HttpRequest.h
  7001. * src/HttpResponse.cc
  7002. * src/HttpResponseCommand.cc
  7003. * src/HttpSkipResponseCommand.cc
  7004. * test/AuthConfigFactoryTest.cc
  7005. * test/HttpRequestTest.cc
  7006. * test/HttpResponseTest.cc
  7007. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7008. Remove leading "--" from help keyword and a substring after "="
  7009. from help keyword, so that one can query options by '-h--max-' or
  7010. '-hmax-peers=10'.
  7011. * src/option_processing.cc
  7012. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7013. Rewritten PStringVisitor and its implementation.
  7014. * src/PStringBuildVisitor.cc
  7015. * src/PStringBuildVisitor.h
  7016. * src/PStringDatum.h
  7017. * src/PStringNumLoop.h
  7018. * src/PStringSegment.cc
  7019. * src/PStringSegment.h
  7020. * src/PStringSelect.h
  7021. * src/PStringVisitor.h
  7022. * src/download_helper.cc
  7023. * test/PStringBuildVisitorTest.cc
  7024. * test/ParameterizedStringParserTest.cc
  7025. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7026. Persist connection between the built-in HTTP server and a client
  7027. if a client supports keep-alive. Fixed the bug that aria2 exits
  7028. when the HTTP server receives EOF from a client.
  7029. * src/HttpServer.cc
  7030. * src/HttpServer.h
  7031. * src/HttpServerCommand.cc
  7032. * src/HttpServerCommand.h
  7033. * src/HttpServerResponseCommand.cc
  7034. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7035. Added experimental built-in HTTP server. Currently, when a client
  7036. accesses to the server, it responds with the current download
  7037. progress. By default, it is disabled. To enable the server, give
  7038. --enable-http-server option. To change the default port number
  7039. for the server to listen to, use --http-server-listen-port option.
  7040. The response HTML is very simple and refreshes it self each 1
  7041. second. Because of this refresh, you see flicker in normal web
  7042. browser such as Firefox. I recommend to use console-based browser
  7043. such as elinks, w3m. To connect to the server, run 'elinks
  7044. http://localhost:6800/' while running aria2. Please replace port
  7045. number '6800'(which is default) with your preference.
  7046. * src/DownloadEngineFactory.cc
  7047. * src/HttpHeader.cc
  7048. * src/HttpHeader.h
  7049. * src/HttpHeaderProcessor.cc
  7050. * src/HttpHeaderProcessor.h
  7051. * src/HttpListenCommand.cc
  7052. * src/HttpListenCommand.h
  7053. * src/HttpServer.cc
  7054. * src/HttpServer.h
  7055. * src/HttpServerCommand.cc
  7056. * src/HttpServerCommand.h
  7057. * src/HttpServerResponseCommand.cc
  7058. * src/HttpServerResponseCommand.h
  7059. * src/Makefile.am
  7060. * src/OptionHandlerFactory.cc
  7061. * src/Util.cc
  7062. * src/Util.h
  7063. * src/help_tags.h
  7064. * src/option_processing.cc
  7065. * src/prefs.cc
  7066. * src/prefs.h
  7067. * src/usage_text.h
  7068. * test/HttpHeaderProcessorTest.cc
  7069. * test/UtilTest.cc
  7070. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7071. Removed.
  7072. * src/CheckIntegrityMan.cc
  7073. * src/FileAllocationMan.cc
  7074. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7075. Made (piece) hash check sequential for each RequestGroup because
  7076. simultaneous hash check is slower than sequential execution.
  7077. * src/CheckIntegrityCommand.cc
  7078. * src/CheckIntegrityDispatcherCommand.cc
  7079. * src/CheckIntegrityDispatcherCommand.h
  7080. * src/CheckIntegrityMan.h
  7081. * src/ConsoleStatCalc.cc
  7082. * src/DownloadCommand.cc
  7083. * src/DownloadEngine.cc
  7084. * src/DownloadEngine.h
  7085. * src/DownloadEngineFactory.cc
  7086. * src/Makefile.am
  7087. * src/Makefile.in
  7088. * src/RequestGroup.cc
  7089. * src/StatCalc.h
  7090. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7091. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7092. SequentialDispatcherCommand.
  7093. * src/FileAllocationDispatcherCommand.cc
  7094. * src/SequentialDispatcherCommand.h
  7095. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7096. Rewritten FileAllocationDispatcherCommand using brand new
  7097. SequentialDispatcherCommand.
  7098. * src/DownloadEngineFactory.cc
  7099. * src/FileAllocationCommand.cc
  7100. * src/FileAllocationDispatcherCommand.cc
  7101. * src/FileAllocationDispatcherCommand.h
  7102. * src/Makefile.am
  7103. * src/SequentialDispatcherCommand.h
  7104. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7105. Replaced FileAllocationMan with
  7106. SequentialPicker<FileAllocationEntry>.
  7107. * src/BtCheckIntegrityEntry.cc
  7108. * src/ConsoleStatCalc.cc
  7109. * src/DownloadEngine.cc
  7110. * src/DownloadEngine.h
  7111. * src/DownloadEngineFactory.cc
  7112. * src/FileAllocationCommand.cc
  7113. * src/FileAllocationDispatcherCommand.cc
  7114. * src/FileAllocationMan.h
  7115. * src/Makefile.am
  7116. * src/SequentialPicker.h
  7117. * src/StatCalc.h
  7118. * src/StreamCheckIntegrityEntry.cc
  7119. * test/Makefile.am
  7120. * test/SequentialPickerTest.cc
  7121. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7122. Added doc for adaptive URI selector.
  7123. * doc/aria2c.1.txt
  7124. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7125. Added doc for adaptive URI selector.
  7126. * src/usage_text.h
  7127. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7128. Added doc for --bt-max-peers option.
  7129. * doc/aria2c.1.txt
  7130. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7131. Added doc for --bt-hash-check-seed option.
  7132. * doc/aria2c.1.txt
  7133. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7134. Documented exit codes.
  7135. * doc/aria2c.1.txt
  7136. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7137. Added --bt-max-peers option to specify the maximum number of peers
  7138. per torrent. 0 means unlimited number of peers.
  7139. * src/ActivePeerConnectionCommand.cc
  7140. * src/BtRuntime.h
  7141. * src/DefaultPeerStorage.cc
  7142. * src/DefaultPeerStorage.h
  7143. * src/OptionHandlerFactory.cc
  7144. * src/RequestGroup.cc
  7145. * src/option_processing.cc
  7146. * src/prefs.cc
  7147. * src/prefs.h
  7148. * src/usage_text.h
  7149. * test/DefaultPeerStorageTest.cc
  7150. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7151. Added --bt-hash-check-seed option. If true is given to this
  7152. option, after hash check using --check-integrity option and file
  7153. is complete, continue to seed file. If you want to check file and
  7154. download it only when it is damaged or incomplete, set this option
  7155. to false. This option has effect only on BitTorrent download.
  7156. The default value is true(This is the same behavior with the
  7157. previous release).
  7158. * src/BtCheckIntegrityEntry.cc
  7159. * src/OptionHandlerFactory.cc
  7160. * src/option_processing.cc
  7161. * src/prefs.cc
  7162. * src/prefs.h
  7163. * src/usage_text.h
  7164. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7165. Updated copyright year.
  7166. * src/version_usage.cc
  7167. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7168. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7169. * doc/aria2c.1.txt
  7170. * src/usage_text.h
  7171. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7172. Made the max value of split option unlimited.
  7173. * doc/aria2c.1.txt
  7174. * src/OptionHandlerFactory.cc
  7175. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Fixed compile warning/error.
  7177. * src/DownloadResult.h
  7178. * src/HttpDownloadCommand.cc
  7179. * src/ServerStat.cc
  7180. * test/RequestGroupTest.cc
  7181. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7182. Added --event-poll option to select the method for polling events.
  7183. The available methods are "select" and "epoll". "epoll" is
  7184. available on Linux only. The earlier release has the compile
  7185. option to choose from these methods.
  7186. * configure.ac
  7187. * src/RequestGroupMan.cc
  7188. * src/OptionHandlerFactory.cc
  7189. * src/EpollEventPoll.h
  7190. * src/StreamFileAllocationEntry.cc
  7191. * src/a2io.h
  7192. * src/SelectEventPoll.h
  7193. * src/option_processing.cc
  7194. * src/prefs.h
  7195. * src/EpollEventPoll.cc
  7196. * src/EventPoll.h
  7197. * src/SocketCore.h
  7198. * src/Makefile.am
  7199. * src/main.cc
  7200. * src/DownloadEngine.h
  7201. * src/SelectEventPoll.cc
  7202. * src/DownloadEngine.cc
  7203. * src/SocketCore.cc
  7204. * src/DownloadEngineFactory.cc
  7205. * src/Makefile.in
  7206. * src/prefs.cc
  7207. * src/usage_text.h
  7208. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7209. Included RecoverableException.h from main.cc
  7210. * src/main.cc
  7211. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7212. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7213. now returns last error encountered in the HTTP/FTP downloads as a
  7214. exit status value. If all downloads finished successfully, aria2
  7215. returns 0. The error code is defined in src/DownloadResult.h.
  7216. The error occurred in the download currently in progress is not
  7217. reported as a last error. If no error has encountered but there
  7218. are in progress or waiting downloads, aria2 returns 7.
  7219. * src/AbstractCommand.cc
  7220. * src/DlAbortEx.h
  7221. * src/DlRetryEx.h
  7222. * src/DownloadCommand.cc
  7223. * src/DownloadFailureException.h
  7224. * src/DownloadResult.h
  7225. * src/FtpNegotiationCommand.cc
  7226. * src/HttpSkipResponseCommand.cc
  7227. * src/Makefile.am
  7228. * src/MultiUrlRequestInfo.cc
  7229. * src/MultiUrlRequestInfo.h
  7230. * src/RecoverableException.h
  7231. * src/RequestGroup.cc
  7232. * src/RequestGroup.h
  7233. * src/RequestGroupMan.cc
  7234. * src/RequestGroupMan.h
  7235. * src/URIResult.cc
  7236. * src/URIResult.h
  7237. * src/main.cc
  7238. * src/option_processing.cc
  7239. * test/RequestGroupTest.cc
  7240. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7241. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7242. patch adds AdaptiveURISelector, which selects one of the bests
  7243. mirrors for first and reserved connections. For supplementary
  7244. ones, it returns mirrors which has not been tested yet, and if
  7245. each of them already tested, returns mirrors which has to be
  7246. tested again. Otherwise, it doesn't return anymore mirrors.
  7247. * src/AdaptiveURISelector.cc
  7248. * src/AdaptiveURISelector.h
  7249. * src/FtpNegotiationCommand.cc
  7250. * src/HttpResponseCommand.cc
  7251. * src/Makefile.am
  7252. * src/Makefile.in
  7253. * src/OptionHandlerFactory.cc
  7254. * src/RequestGroup.cc
  7255. * src/RequestGroup.h
  7256. * src/RequestGroupMan.cc
  7257. * src/ServerStat.cc
  7258. * src/ServerStat.h
  7259. * src/ServerStatMan.cc
  7260. * src/SpeedCalc.cc
  7261. * src/URISelector.h
  7262. * src/prefs.cc
  7263. * src/prefs.h
  7264. * test/RequestGroupManTest.cc
  7265. * test/ServerStatManTest.cc
  7266. * test/ServerStatTest.cc
  7267. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7268. Fixed unit test error.
  7269. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7270. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7271. * Release 1.1.2
  7272. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7273. Updated Russian translation. Thanks to the translators.
  7274. * po/ru.po
  7275. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7276. Added the description of --use-head option to man page.
  7277. * doc/aria2c.1.txt
  7278. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7279. Bump up version number to 1.1.2
  7280. * configure.ac
  7281. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7282. Added --use-head option to toggle whether HEAD method should be
  7283. used in the first HTTP request. By default aria2 uses HEAD method
  7284. as the first request. When the server doesn't recognize HEAD, then
  7285. give aria2 --use-head=false to force aria2 to use GET method
  7286. instead.
  7287. * src/OptionHandlerFactory.cc
  7288. * src/RequestGroupMan.cc
  7289. * src/option_processing.cc
  7290. * src/prefs.cc
  7291. * src/prefs.h
  7292. * src/usage_text.h
  7293. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7294. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7295. message is received before CHOKE message. The old implementation
  7296. doen't clear the use-bit of the piece when recieved REJECT
  7297. message.
  7298. * src/DefaultBtMessageDispatcher.cc
  7299. * test/DefaultBtMessageDispatcherTest.cc
  7300. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7301. * Release 1.1.1
  7302. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7303. Bump up version number to 1.1.1.
  7304. * configure.ac
  7305. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7306. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7307. is printed repeatedly.
  7308. * src/ConsoleStatCalc.cc
  7309. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7310. * Release 1.1.0
  7311. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7312. Added ifdef clause for conditional compilation.
  7313. * src/main.cc
  7314. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7315. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7316. translations. Thanks to all translators.
  7317. * po/ja.po
  7318. * po/ru.po
  7319. * po/uk.po
  7320. * po/zh_CN.po
  7321. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7322. Added the preceding ">>> " before the message "Printing the
  7323. contents of file..." to make the output more readable.
  7324. * src/main.cc
  7325. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7326. Added try-catch block in the loop in showFiles() to continue the
  7327. operation even if the exception occurred in one file.
  7328. * src/main.cc (showFiles)
  7329. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7330. Made messages in showFiles() translatable.
  7331. * po/aria2.pot
  7332. * src/main.cc
  7333. * src/message.h
  7334. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7335. Print the contents of Torrent/Metalink files are printed without
  7336. -T/-M options.
  7337. * src/main.cc
  7338. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7339. Escaped '--' with '\--'
  7340. * README
  7341. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7342. Updated "How to build" section in README. Mentioned about
  7343. --with-ca-bundle compile option.
  7344. * README
  7345. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7346. Bump up version number to 1.1.0.
  7347. * configure.ac
  7348. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7349. Added a note for --dht-listen-port option.
  7350. * doc/aria2c.1.txt
  7351. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7352. Update doc for --realtime-chunk-checksum option.
  7353. * doc/aria2c.1.txt
  7354. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7355. Update doc for --realtime-chunk-checksum option.
  7356. * src/usage_text.h
  7357. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7358. Updated French, Japanese, Russian and Ukrainian translations.
  7359. Thanks to all translators.
  7360. * po/fr.po
  7361. * po/ja.po
  7362. * po/ru.po
  7363. * po/uk.po
  7364. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7365. Renamed aria2c.pot to aria2.pot
  7366. * po/aria2.pot
  7367. * po/aria2c.pot: Removed.
  7368. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7369. Removed MetaEntry.h
  7370. * src/Makefile.am
  7371. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7372. Rename file by appending digits if a local file exists and its
  7373. file size is larger than that of remote file with --continue
  7374. option. The old implementation just throws exception in such case.
  7375. * src/RequestGroup.cc
  7376. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7377. Fixed the bug that download progress summary is not printed in the
  7378. interval specified by the option.
  7379. * src/ConsoleStatCalc.cc
  7380. * src/ConsoleStatCalc.h
  7381. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7382. Fixed compiler warning
  7383. * src/Cookie.cc
  7384. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7385. Fixed the cookie implementation based on RFC2965.
  7386. Now if a value in domain field is not started with dot, then
  7387. prepend dot. That means a cookie with domain=sf.net is sent to
  7388. wiki.sf.net.
  7389. * src/Cookie.cc
  7390. * test/CookieParserTest.cc
  7391. * test/CookieStorageTest.cc
  7392. * test/CookieTest.cc
  7393. * test/NsCookieParserTest.cc
  7394. * test/Sqlite3MozCookieParserTest.cc
  7395. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7396. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7397. is enabled and the server doesn't support keep-alive.
  7398. * src/AbstractCommand.cc
  7399. * src/DownloadCommand.cc
  7400. * src/HttpDownloadCommand.cc
  7401. * src/HttpDownloadCommand.h
  7402. * src/HttpResponseCommand.cc
  7403. * src/Request.cc
  7404. * src/Request.h
  7405. * test/RequestTest.cc
  7406. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7407. Removed Dictionary/List/Data and its related classes.
  7408. * src/BencodeVisitor.cc: Removed.
  7409. * src/BencodeVisitor.h: Removed.
  7410. * src/Data.cc: Removed.
  7411. * src/Data.h: Removed.
  7412. * src/Dictionary.cc: Removed.
  7413. * src/Dictionary.h: Removed.
  7414. * src/List.cc: Removed.
  7415. * src/List.h: Removed.
  7416. * src/Makefile.am
  7417. * src/MetaEntry.h: Removed.
  7418. * src/MetaEntryVisitor.h: Removed.
  7419. * src/MetaFileUtil.cc: Removed.
  7420. * src/MetaFileUtil.h: Removed.
  7421. * test/BencodeVisitorTest.cc: Removed.
  7422. * test/DataTest.cc: Removed.
  7423. * test/DictionaryTest.cc: Removed.
  7424. * test/ListTest.cc: Removed.
  7425. * test/Makefile.am
  7426. * test/MetaFileUtilTest.cc: Removed.
  7427. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7428. Removed include of MetaEntry.h
  7429. * test/DHTMessageTrackerEntryTest.cc
  7430. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7431. Use BDE instead of Dictionary/List/Data.
  7432. * src/AnnounceList.cc
  7433. * src/AnnounceList.h
  7434. * test/AnnounceListTest.cc
  7435. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7436. Use BDE instead of Dictionary/List/Data.
  7437. * src/DHTAbstractMessage.cc
  7438. * src/DHTAbstractMessage.h
  7439. * src/DHTAnnouncePeerMessage.cc
  7440. * src/DHTAnnouncePeerMessage.h
  7441. * src/DHTAnnouncePeerReplyMessage.cc
  7442. * src/DHTAnnouncePeerReplyMessage.h
  7443. * src/DHTFindNodeMessage.cc
  7444. * src/DHTFindNodeMessage.h
  7445. * src/DHTFindNodeReplyMessage.cc
  7446. * src/DHTFindNodeReplyMessage.h
  7447. * src/DHTGetPeersMessage.cc
  7448. * src/DHTGetPeersMessage.h
  7449. * src/DHTGetPeersReplyMessage.cc
  7450. * src/DHTGetPeersReplyMessage.h
  7451. * src/DHTMessageFactory.h
  7452. * src/DHTMessageFactoryImpl.cc
  7453. * src/DHTMessageFactoryImpl.h
  7454. * src/DHTMessageReceiver.cc
  7455. * src/DHTMessageTracker.cc
  7456. * src/DHTMessageTracker.h
  7457. * src/DHTPingMessage.cc
  7458. * src/DHTPingMessage.h
  7459. * src/DHTPingReplyMessage.cc
  7460. * src/DHTPingReplyMessage.h
  7461. * src/DHTQueryMessage.cc
  7462. * src/DHTQueryMessage.h
  7463. * src/DHTResponseMessage.cc
  7464. * src/DHTResponseMessage.h
  7465. * test/DHTAnnouncePeerMessageTest.cc
  7466. * test/DHTAnnouncePeerReplyMessageTest.cc
  7467. * test/DHTFindNodeMessageTest.cc
  7468. * test/DHTFindNodeReplyMessageTest.cc
  7469. * test/DHTGetPeersMessageTest.cc
  7470. * test/DHTGetPeersReplyMessageTest.cc
  7471. * test/DHTMessageFactoryImplTest.cc
  7472. * test/DHTMessageTrackerTest.cc
  7473. * test/DHTPingMessageTest.cc
  7474. * test/DHTPingReplyMessageTest.cc
  7475. * test/MockDHTMessageFactory.h
  7476. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7477. Added tests the case where length < 0 is specified.
  7478. * test/BencodeTest.cc
  7479. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7480. Fixed memory leak in decoderawstring()
  7481. * src/bencode.cc
  7482. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7483. Added missing #ifdef guard. Added uc() function for String and
  7484. removeKey() for Dict.
  7485. * src/bencode.cc
  7486. * src/bencode.h
  7487. * test/BencodeTest.cc
  7488. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7489. Use BDE instead of Dictionary/List/Data.
  7490. * src/HandshakeExtensionMessage.cc
  7491. * src/HandshakeExtensionMessage.h
  7492. * test/HandshakeExtensionMessageTest.cc
  7493. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7494. Added --max-overall-upload-limit option. This option limits the
  7495. overall upload speed. Stated in help message that the existing
  7496. --max-upload-limit option limits the upload speed per each
  7497. torrent. Man page is also updated.
  7498. * doc/aria2c.1.txt
  7499. * src/DefaultBtMessageDispatcher.cc
  7500. * src/DefaultBtMessageDispatcher.h
  7501. * src/OptionHandlerFactory.cc
  7502. * src/PeerInteractionCommand.cc
  7503. * src/option_processing.cc
  7504. * src/prefs.cc
  7505. * src/prefs.h
  7506. * src/usage_text.h
  7507. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7508. Use BDE instead of Dictionary/List/Data classes.
  7509. * src/CompactPeerListProcessor.cc
  7510. * src/CompactPeerListProcessor.h
  7511. * src/DefaultBtAnnounce.cc
  7512. * src/DefaultBtContext.cc
  7513. * src/DefaultBtContext.h
  7514. * src/DefaultPeerListProcessor.cc
  7515. * src/DefaultPeerListProcessor.h
  7516. * src/DelegatingPeerListProcessor.cc
  7517. * src/DelegatingPeerListProcessor.h
  7518. * src/PeerListProcessor.h
  7519. * src/UTPexExtensionMessage.cc
  7520. * src/Util.h
  7521. * src/message.h
  7522. * test/DefaultBtContextTest.cc
  7523. * test/DefaultPeerListProcessorTest.cc
  7524. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7525. Added bencode helper functions and BDE class.
  7526. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7527. * src/Makefile.am
  7528. * src/bencode.cc
  7529. * src/bencode.h
  7530. * test/BencodeTest.cc
  7531. * test/Makefile.am
  7532. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7533. Fixed the bug that bad URI is sent to the tracker when the announe
  7534. URI in torrent file includes query.
  7535. * src/DefaultBtAnnounce.cc
  7536. * test/DefaultBtAnnounceTest.cc
  7537. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7538. Added Option::blank().
  7539. Use !Option::blank(name) instead of Option::defined(name) for
  7540. the options that take filename.
  7541. * src/MultiUrlRequestInfo.cc
  7542. * src/Option.cc
  7543. * src/Option.h
  7544. * src/main.cc
  7545. * src/option_processing.cc
  7546. * test/OptionTest.cc
  7547. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7548. Documented the default value of --check-certificate option in man
  7549. page.
  7550. * doc/aria2c.1.txt
  7551. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7552. Enabled --check-certificate by default. Added compile
  7553. time(configure) option --with-ca-bundle to specify CA bundle.
  7554. Warn if --check-certificate=true and --ca-certificate is not
  7555. specified or loading CA certificate is failed.
  7556. * configure.ac
  7557. * src/MultiUrlRequestInfo.cc
  7558. * src/OptionHandlerFactory.cc
  7559. * src/message.h
  7560. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7561. Mentioned https tag in help option.
  7562. * doc/aria2c.1.txt
  7563. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7564. Added `https' tag to help option category. Added https tag to
  7565. --ca-certificate, --certificate, --check-certificate and
  7566. --private-key option.
  7567. * src/OptionHandlerFactory.cc
  7568. * src/help_tags.h
  7569. * src/option_processing.cc
  7570. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7571. Changed the package name from `aria2c' to `aria2' in order to fix
  7572. the packaging issue in Debian and Fedora. The name of the
  7573. executable is not changed.
  7574. * configure.ac
  7575. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7576. Fixed typos
  7577. * src/usage_text.h
  7578. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7579. Fixed typos and updated doc.
  7580. * README
  7581. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7582. Fixed typos
  7583. * doc/aria2c.1.txt
  7584. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7585. Fixed typos
  7586. * src/usage_text.h
  7587. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7588. Print a message when no files to download.
  7589. * src/download_helper.cc
  7590. * src/main.cc
  7591. * src/message.h
  7592. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7593. RFC3986 complied Percent-Encoding(urlencode).
  7594. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7595. ones.
  7596. * src/Request.cc
  7597. * src/Util.cc
  7598. * src/Util.h
  7599. * test/BtHandshakeMessageTest.cc
  7600. * test/DefaultBtAnnounceTest.cc
  7601. * test/DefaultBtContextTest.cc
  7602. * test/RequestTest.cc
  7603. * test/UtilTest.cc
  7604. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7605. Fixed the bug that prevents aria2 from downloading 0-length files
  7606. via HTTP/FTP.
  7607. * src/DefaultBtContext.cc
  7608. * src/DefaultBtContext.h
  7609. * src/DownloadContext.h
  7610. * src/FtpNegotiationCommand.cc
  7611. * src/HttpResponseCommand.cc
  7612. * src/HttpResponseCommand.h
  7613. * src/RequestGroup.cc
  7614. * src/SingleFileDownloadContext.cc
  7615. * src/SingleFileDownloadContext.h
  7616. * test/BtPostDownloadHandlerTest.cc
  7617. * test/MetalinkPostDownloadHandlerTest.cc
  7618. * test/MockBtContext.h
  7619. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7620. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7621. * src/option_processing.cc
  7622. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7623. Applied aria2-1.0.1-mingw.patch.
  7624. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7625. mingw.
  7626. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7627. * src/SocketCore.cc
  7628. * src/a2netcompat.h
  7629. * test/SocketCoreTest.cc
  7630. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7631. * Release 1.0.1
  7632. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7633. Updated Ukrainian and Norwegian Nynorsk translations.
  7634. Thanks to all translators.
  7635. * po/nn.po
  7636. * po/uk.po
  7637. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7638. Don't show download result when -S option is used.
  7639. * src/main.cc
  7640. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7641. Bump up version number to 1.0.1
  7642. * configure.ac
  7643. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7644. Closed files after the test cases in MultiDiskWriterTest::
  7645. testResetDiskWriterEntries(). This will fix the unit test error
  7646. in mingw32 build.
  7647. * test/MultiDiskWriterTest.cc
  7648. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7649. Use HEAD method to get file size from HTTP server for segmented
  7650. downloading.
  7651. The request to the BitTorrent Tracker always uses GET method because
  7652. the response of the tracker is small and it doesn't need segmented
  7653. download.
  7654. * src/FtpNegotiationCommand.cc
  7655. * src/HttpRequest.cc
  7656. * src/HttpResponseCommand.cc
  7657. * src/HttpSkipResponseCommand.cc
  7658. * src/RequestGroup.cc
  7659. * src/RequestGroup.h
  7660. * src/TrackerWatcherCommand.cc
  7661. * test/HttpRequestTest.cc
  7662. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7663. Fixed the bug that causes floating exception when -T option is used and
  7664. no URIs are given.
  7665. * src/download_helper.cc
  7666. * test/DownloadHelperTest.cc
  7667. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7668. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7669. errors in MinGW:
  7670. Closed file after saving server stats (RequestGroupMan.cc)
  7671. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7672. Ignored case & handled 2-digit years (strptime.c)
  7673. Added missing suseconds_t definition (a2time.h)
  7674. Fixed socket CLOSE() define (SocketCore.cc)
  7675. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7676. Changed utime() test values from x000 to x00000 as MinGW failed on
  7677. values less than timezone offset from Unix epoch
  7678. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7679. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7680. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7681. handle negative dates (CookieParserTest.cc)
  7682. * src/a2time.h
  7683. * src/FtpConnection.cc
  7684. * src/RequestGroupMan.cc
  7685. * src/SocketCore.cc
  7686. * src/strptime.c
  7687. * test/CookieParserTest.cc
  7688. * test/CopyDiskAdaptorTest.cc
  7689. * test/FileTest.cc
  7690. * test/FtpConnectionTest.cc
  7691. * test/MultiDiskAdaptorTest.cc
  7692. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7693. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7694. * doc/aria2c.1.txt
  7695. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7696. * Release 1.0.0
  7697. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7698. Added '~' to reserved characters.
  7699. * src/Util.cc
  7700. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Do not urlencode Request::url in setUrl() because we want unmodified
  7702. URL using Request::getUrl()
  7703. * src/Request.cc
  7704. * src/Request.h
  7705. * test/RequestTest.cc
  7706. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7707. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7708. Thanks to all translators.
  7709. * po/bg.po
  7710. * po/fr.po
  7711. * po/ja.po
  7712. * po/ru.po
  7713. * po/uk.po
  7714. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7715. Bump up version number to 1.0.0
  7716. * configure.ac
  7717. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7718. Added nosqlite3 build to build_test.sh.
  7719. Renamed noxml as expat.
  7720. * build_test.sh
  7721. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7722. Updated INPUT FILE section.
  7723. * doc/aria2c.1.txt
  7724. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7725. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7726. on big endian systems because test .aria2 files are made for little
  7727. endian systems.
  7728. * test/DefaultBtProgressInfoFileTest.cc
  7729. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7730. Dropped ares support.
  7731. * README
  7732. * configure.ac
  7733. * m4/libares.m4: Removed.
  7734. * src/AsyncNameResolver.cc
  7735. * src/Makefile.am
  7736. * test/Makefile.am
  7737. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7738. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7739. Removed const qualifier from DiskWriter::size().
  7740. * src/AbstractDiskWriter.cc
  7741. * src/AbstractDiskWriter.h
  7742. * src/ByteArrayDiskWriter.cc
  7743. * src/ByteArrayDiskWriter.h
  7744. * src/DiskWriter.h
  7745. * test/ByteArrayDiskWriterTest.cc
  7746. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7747. Fixed the bug that causes segmentation fault/bus error during executing
  7748. choking algorithm while seeding. This is caused by improper
  7749. implementation of compare function which returns inconsistent results
  7750. depending on the timing of last unchoke.
  7751. * src/BtSeederStateChoke.cc
  7752. * src/BtSeederStateChoke.h
  7753. * src/DefaultPeerStorage.cc
  7754. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7755. Removed TODO
  7756. * TODO
  7757. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7758. Added a section that explains how to pass argument to options that
  7759. takes optional arguments with its short form.
  7760. * doc/aria2c.1.txt
  7761. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7762. Added -u for the short form of --max-upload-limit option.
  7763. * doc/aria2c.1.txt
  7764. * src/option_processing.cc
  7765. * src/usage_text.h
  7766. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7767. Added -V for the short form of --check-integrity option.
  7768. Now the argument of --check-integrity option is optional:
  7769. if it is omitted, it is evaluated as true.
  7770. * doc/aria2c.1.txt
  7771. * src/option_processing.cc
  7772. * src/usage_text.h
  7773. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7774. Made the default value of --ftp-pasv option set to true and it can take
  7775. true/false values.
  7776. * src/OptionHandlerFactory.cc
  7777. * src/option_processing.cc
  7778. * src/usage_text.h
  7779. * doc/aria2c.1.txt
  7780. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7781. Given custom random number generator to std::random_shuffle.
  7782. * src/AnnounceList.cc
  7783. * src/BtLeecherStateChoke.cc
  7784. * src/BtSeederStateChoke.cc
  7785. * src/DefaultBtRequestFactory.cc
  7786. * src/MetalinkEntry.cc
  7787. * src/RarestPieceSelector.cc
  7788. * src/SimpleRandomizer.cc
  7789. * src/SimpleRandomizer.h
  7790. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7791. Now the default value of --enable-direct-io is true.
  7792. * src/OptionHandlerFactory.cc
  7793. * doc/aria2c.1.txt
  7794. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7795. Erase peer before executing onReturningPeer and onErasingPeer
  7796. because choking algorithm called from onReturningPeer doesn't
  7797. like erasing peer in the active peer list.
  7798. * src/DefaultPeerStorage.cc
  7799. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7800. Instead of creating special filename in createDownloadResult() if
  7801. inMemoryDownload() is true, now it is done in getFilePath().
  7802. * src/RequestGroup.cc
  7803. * test/RequestGroupTest.cc
  7804. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7805. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7806. processed in memory. This is the fix for previous comment out.
  7807. * src/MemoryBufferPreDownloadHandler.cc
  7808. * src/RequestGroup.cc
  7809. * src/RequestGroup.h
  7810. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7811. Commented out the code which sets virtual directory path "[MEMORY]"
  7812. propagate directory to store to following RequestGroup.
  7813. * src/MemoryBufferPreDownloadHandler.cc
  7814. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7815. Bump up version number to 1.0.0b
  7816. * configure.ac
  7817. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7818. Added input_uris.txt to EXTRA_DIST
  7819. * test/Makefile.am
  7820. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7821. Removed PeerObject.h from Makefile.am
  7822. * src/Makefile.am
  7823. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7824. Avoid slow seeding
  7825. * src/PeerInteractionCommand.cc
  7826. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7827. Updated usage for -i option.
  7828. * src/usage_text.h (TEXT_INPUT_FILE)
  7829. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7830. Added INPUT FILE section to man page.
  7831. Escaped fake URLs.
  7832. * doc/aria2c.1.txt
  7833. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7834. Fixed wrong note position for -o option.
  7835. * doc/aria2c.1.txt
  7836. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7837. Fixed compile error without SSL/XML library.
  7838. * src/DefaultBtProgressInfoFile.cc
  7839. * src/DefaultBtProgressInfoFile.h
  7840. * src/FileMetalinkParserState.cc
  7841. * src/RequestGroup.h
  7842. * src/SocketCore.cc
  7843. * src/SocketCore.h
  7844. * src/VerificationMetalinkParserState.cc
  7845. * src/download_helper.h
  7846. * src/main.cc
  7847. * test/DefaultBtProgressInfoFileTest.cc
  7848. * test/DownloadHelperTest.cc
  7849. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7850. Rewritten URI handling functions. They are now provided as a testable
  7851. functions.
  7852. * src/Makefile.am
  7853. * src/RequestGroup.cc
  7854. * src/RequestGroup.h
  7855. * src/download_helper.cc
  7856. * src/download_helper.h
  7857. * src/main.cc
  7858. * test/DownloadHelperTest.cc
  7859. * test/Makefile.am
  7860. * test/input_uris.txt
  7861. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7862. Quickly terminate commands when ctrl-c is pressed.
  7863. * src/DownloadEngine.cc
  7864. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7865. Quickly terminate idle commands when download finished.
  7866. * src/AbstractCommand.cc
  7867. * src/DownloadCommand.cc
  7868. * src/DownloadEngine.cc
  7869. * src/DownloadEngine.h
  7870. * src/SleepCommand.cc
  7871. * src/SleepCommand.h
  7872. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7873. Added the ability to specify output filename and directory in input
  7874. file.
  7875. Additional parameters are added in the following line of URIs
  7876. with proceeding white space(s), 1 parameter in 1 line.
  7877. The parameter names are the same with the command-line option name
  7878. without proceeding "--". Not all the options are available here:
  7879. at the moment, 'dir' and 'out' options are avialable.
  7880. Please note that out option has no effect against Metalink or BitTorrent
  7881. downloads.
  7882. Example input file:
  7883. http://host/foo-1.1.tar.bz2
  7884. out=foo.tar.bz2
  7885. dir=/tmp/downloads
  7886. http://host/thundermonkey-2.0.tar.bz2
  7887. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7888. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7889. thundermonkey-2.0.tar.bz2 is saved as
  7890. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7891. * src/BtPostDownloadHandler.cc
  7892. * src/Metalink2RequestGroup.cc
  7893. * src/Metalink2RequestGroup.h
  7894. * src/MetalinkPostDownloadHandler.cc
  7895. * src/UriListParser.cc
  7896. * src/UriListParser.h
  7897. * src/main.cc
  7898. * test/Metalink2RequestGroupTest.cc
  7899. * test/UriListParserTest.cc
  7900. * test/filelist1.txt
  7901. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7902. Fixed error when SSL library is not found.
  7903. * configure.ac
  7904. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7905. Cross referenced among -s, -C and -j options.
  7906. Updated usage of -C and -s options.
  7907. * src/usage_text.h
  7908. * doc/aria2c.1.txt
  7909. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7910. Fixed bad cast in 32bit platforms.
  7911. * test/DefaultPieceStorageTest.cc
  7912. (DefaultPieceStorageTest::testGetCompletedLength)
  7913. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7914. Fixed unit test fails on 32bit platforms.
  7915. * test/CookieParserTest.cc
  7916. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7917. Show an average download speed in Download results.
  7918. * src/BtFileAllocationEntry.cc
  7919. * src/DefaultPieceStorage.cc
  7920. * src/DownloadContext.cc
  7921. * src/DownloadContext.h
  7922. * src/DownloadResult.h
  7923. * src/RequestGroup.cc
  7924. * src/RequestGroupMan.cc
  7925. * src/StreamFileAllocationEntry.cc
  7926. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7927. Fixed the bug that metalink file is not processed if Content-Type
  7928. field has a paramter.
  7929. * src/HttpResponse.cc
  7930. * src/HttpResponse.h
  7931. * test/HttpResponseTest.cc
  7932. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7933. Removed unused code.
  7934. * src/DefaultBtAnnounce.cc
  7935. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7936. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7937. the value larger than DefaultPieceStorage::getTotalLength() when
  7938. in flight pieces are involved.
  7939. * src/DefaultPieceStorage.cc
  7940. * test/DefaultPieceStorageTest.cc
  7941. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7942. Bump up version number to 1.0.0a.
  7943. * configure.ac
  7944. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7945. Updated configure.ac
  7946. * configure.ac
  7947. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7948. Added usege for proxy.
  7949. * doc/aria2c.1.txt
  7950. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7951. Added usage for --ca-certificate, --certificate, --private-key and
  7952. --check-certificate options.
  7953. * doc/aria2c.1.txt
  7954. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7955. Updated man page
  7956. * doc/aria2c.1.txt
  7957. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7958. Added --no-proxy option. It receives comman separated hostname or
  7959. domains to which proxy should not be used.
  7960. aria2 honors the environment variable no_proxy to override no-proxy
  7961. value in configuration file. The user can override the environment
  7962. variable no_proxy with --no-proxy command-line option.
  7963. * src/AbstractCommand.cc
  7964. * src/OptionHandlerFactory.cc
  7965. * src/option_processing.cc
  7966. * src/prefs.cc
  7967. * src/prefs.h
  7968. * src/usage_text.h
  7969. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7970. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7971. The CA certificates are specified in --ca-certificate option.
  7972. By default, the verification is disabled. Use --check-certificate
  7973. option to enable it.
  7974. * src/HttpRequestCommand.cc
  7975. * src/LibgnutlsTLSContext.cc
  7976. * src/LibgnutlsTLSContext.h
  7977. * src/LibsslTLSContext.cc
  7978. * src/LibsslTLSContext.h
  7979. * src/MultiUrlRequestInfo.cc
  7980. * src/OptionHandlerFactory.cc
  7981. * src/SocketCore.cc
  7982. * src/SocketCore.h
  7983. * src/a2functional.h
  7984. * src/message.h
  7985. * src/option_processing.cc
  7986. * src/prefs.cc
  7987. * src/prefs.h
  7988. * src/usage_text.h
  7989. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7990. Added client certificate authentication for SSL/TLS.
  7991. Currently a private key must be decrypted for use with aria2.
  7992. If a user accidentally gives encrypted file to aria2 then following
  7993. thing happens:
  7994. If encrypted private key is given to aria2, it behaves differently
  7995. depending on the ssl library it uses. If aria2 built with openssl then
  7996. openssl prompts the user for password. If aria2 build with gnutls then
  7997. aria2 exists with error at start up.
  7998. * src/DownloadEngineFactory.cc
  7999. * src/MultiUrlRequestInfo.cc
  8000. * src/OptionHandlerFactory.cc
  8001. * src/option_processing.cc
  8002. * src/prefs.cc
  8003. * src/prefs.h
  8004. * src/usage_text.h
  8005. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8006. Introduced TLSContext that holds TLS related data that can be shared
  8007. with multiple SSL connections.
  8008. * src/DownloadEngineFactory.cc
  8009. * src/LibgnutlsTLSContext.cc
  8010. * src/LibgnutlsTLSContext.h
  8011. * src/LibsslTLSContext.cc
  8012. * src/LibsslTLSContext.h
  8013. * src/Makefile.am
  8014. * src/SocketCore.cc
  8015. * src/SocketCore.h
  8016. * src/TLSContext.h
  8017. * src/message.h
  8018. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8019. Fixed the bug that the DiskWriter of the first FileEntry whose
  8020. `needsFileAllocation' property is false is not created
  8021. even if it shares a piece with next FileEntry which `requested' property
  8022. is true.
  8023. Fixed the bug that zero-length file is not created if pre file
  8024. allocation is not done.
  8025. * src/MultiDiskAdaptor.cc
  8026. * src/MultiDiskAdaptor.h
  8027. * test/MultiDiskAdaptorTest.cc
  8028. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Added the ability to pool proxy connection.
  8030. The conneciton in FTP with proxy-method=GET is not pooled.
  8031. Proxy-Connection header will not be sent when sending CONNECT method.
  8032. * src/DownloadEngine.cc
  8033. * src/DownloadEngine.h
  8034. * src/FtpFinishDownloadCommand.cc
  8035. * src/FtpInitiateConnectionCommand.cc
  8036. * src/FtpNegotiationCommand.cc
  8037. * src/HttpDownloadCommand.cc
  8038. * src/HttpInitiateConnectionCommand.cc
  8039. * src/HttpRequest.cc
  8040. * src/HttpRequest.h
  8041. * src/HttpResponse.cc
  8042. * src/HttpSkipResponseCommand.cc
  8043. * test/HttpRequestTest.cc
  8044. * test/HttpResponseTest.cc
  8045. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Handle date before epoch.
  8047. To create *bad* Time object, call Time::null().
  8048. * src/CookieParser.cc
  8049. * src/FtpConnection.cc
  8050. * src/FtpConnection.h
  8051. * src/FtpNegotiationCommand.cc
  8052. * src/RequestGroup.cc
  8053. * src/TimeA2.cc
  8054. * src/TimeA2.h
  8055. * test/CookieParserTest.cc
  8056. * test/FtpConnectionTest.cc
  8057. * test/TimeTest.cc
  8058. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Added support for following envrionment variables: http_proxy,
  8060. https_proxy, ftp_proxy and all_proxy.
  8061. Each variable is equivalent to the aria2 option whose name is the
  8062. variable name with '_' replaced with '-'.
  8063. They overrides options specified in aria2.conf file.
  8064. The envrionment variables can be overrode using command-line option.
  8065. * src/option_processing.cc
  8066. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Renamed --http-proxy-method as --proxy-method.
  8068. * src/AbstractCommand.cc
  8069. * src/FtpInitiateConnectionCommand.cc
  8070. * src/HttpInitiateConnectionCommand.cc
  8071. * src/OptionHandlerFactory.cc
  8072. * src/option_processing.cc
  8073. * src/prefs.cc
  8074. * src/prefs.h
  8075. * src/usage_text.h
  8076. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8078. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8079. Above 3 options and --http-proxy option can handle proxy in URL format
  8080. like: http://user:passwd@host:port.
  8081. If a proxy requires user/password, they must be specified in a URL.
  8082. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8083. instead.
  8084. * src/AbstractCommand.cc
  8085. * src/AbstractCommand.h
  8086. * src/AbstractProxyRequestCommand.cc
  8087. * src/AbstractProxyRequestCommand.h
  8088. * src/AuthConfigFactory.cc
  8089. * src/AuthConfigFactory.h
  8090. * src/FtpFinishDownloadCommand.cc
  8091. * src/FtpInitiateConnectionCommand.cc
  8092. * src/FtpInitiateConnectionCommand.h
  8093. * src/FtpNegotiationCommand.cc
  8094. * src/FtpTunnelRequestCommand.cc
  8095. * src/FtpTunnelRequestCommand.h
  8096. * src/HttpDownloadCommand.cc
  8097. * src/HttpInitiateConnectionCommand.cc
  8098. * src/HttpInitiateConnectionCommand.h
  8099. * src/HttpProxyRequestCommand.cc
  8100. * src/HttpProxyRequestCommand.h
  8101. * src/HttpRequest.cc
  8102. * src/HttpRequest.h
  8103. * src/HttpRequestCommand.cc
  8104. * src/HttpRequestCommand.h
  8105. * src/HttpSkipResponseCommand.cc
  8106. * src/InitiateConnectionCommand.cc
  8107. * src/InitiateConnectionCommand.h
  8108. * src/OptionHandlerFactory.cc
  8109. * src/OptionHandlerImpl.h
  8110. * src/Request.cc
  8111. * src/option_processing.cc
  8112. * src/prefs.cc
  8113. * src/prefs.h
  8114. * src/usage_text.h
  8115. * test/AuthConfigFactoryTest.cc
  8116. * test/HttpRequestTest.cc
  8117. * test/OptionHandlerTest.cc
  8118. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Execute choking algorithm when unchoked and interested peer is
  8120. disconected.
  8121. * src/DefaultPeerStorage.cc
  8122. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Added testcase for BtNotInterestedMessage from unchoked peer.
  8124. * test/BtNotInterestedMessageTest.cc
  8125. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Execute choking algorithm when BtInterestedMessage arrives from
  8127. unchoked peer.
  8128. * src/BtInterestedMessage.cc
  8129. * src/BtInterestedMessage.h
  8130. * src/DefaultBtMessageFactory.cc
  8131. * test/BtInterestedMessageTest.cc
  8132. * test/MockPeerStorage.h
  8133. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. AuthConfigFactory is now part of DownloadEngine.
  8135. * src/AbstractProxyRequestCommand.cc
  8136. * src/AuthConfigFactory.h
  8137. * src/DownloadEngine.cc
  8138. * src/DownloadEngine.h
  8139. * src/FtpConnection.cc
  8140. * src/FtpConnection.h
  8141. * src/FtpNegotiationCommand.cc
  8142. * src/HttpConnection.cc
  8143. * src/HttpRequest.cc
  8144. * src/HttpRequest.h
  8145. * src/HttpRequestCommand.cc
  8146. * src/HttpResponse.cc
  8147. * src/HttpResponseCommand.cc
  8148. * src/HttpSkipResponseCommand.cc
  8149. * src/MultiUrlRequestInfo.cc
  8150. * src/main.cc
  8151. * test/FtpConnectionTest.cc
  8152. * test/HttpRequestTest.cc
  8153. * test/HttpResponseTest.cc
  8154. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Corrected catched exception type.
  8156. * src/ServerStatMan.cc
  8157. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. DNSCache is now part of DownloadEngine.
  8159. * src/DNSCache.h
  8160. * src/DownloadEngine.cc
  8161. * src/DownloadEngine.h
  8162. * src/InitiateConnectionCommand.cc
  8163. * src/MultiUrlRequestInfo.cc
  8164. * test/Makefile.am
  8165. * test/Makefile.in
  8166. * test/SimpleDNSCacheTest.cc
  8167. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8169. DownloadEngine.
  8170. * src/ActivePeerConnectionCommand.cc
  8171. * src/BtSetup.cc
  8172. * src/CUIDCounter.h
  8173. * src/DHTSetup.cc
  8174. * src/DownloadCommand.cc
  8175. * src/DownloadEngine.cc
  8176. * src/DownloadEngine.h
  8177. * src/DownloadEngineFactory.cc
  8178. * src/FileAllocationDispatcherCommand.cc
  8179. * src/InitiatorMSEHandshakeCommand.cc
  8180. * src/PeerInitiateConnectionCommand.cc
  8181. * src/PeerInteractionCommand.cc
  8182. * src/PeerListenCommand.cc
  8183. * src/RequestGroup.cc
  8184. * src/StreamFileAllocationEntry.cc
  8185. * src/TrackerWatcherCommand.cc
  8186. * src/main.cc
  8187. * test/RequestGroupManTest.cc
  8188. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Implemented commented code in BtSeederStateChoke
  8190. * src/BtSeederStateChoke.cc
  8191. * src/Peer.cc
  8192. * src/Peer.h
  8193. * src/PeerInteractionCommand.cc
  8194. * src/PeerSessionResource.cc
  8195. * src/PeerSessionResource.h
  8196. * test/MockBtMessageDispatcher.h
  8197. * test/PeerSessionResourceTest.cc
  8198. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8200. its object.
  8201. * src/AbstractBtMessage.cc
  8202. * src/ActivePeerConnectionCommand.cc
  8203. * src/ActivePeerConnectionCommand.h
  8204. * src/BtContextAwareCommand.cc
  8205. * src/BtContextAwareCommand.h
  8206. * src/BtExtendedMessage.cc
  8207. * src/BtExtendedMessage.h
  8208. * src/BtInterestedMessage.cc
  8209. * src/BtInterestedMessage.h
  8210. * src/BtNotInterestedMessage.cc
  8211. * src/BtNotInterestedMessage.h
  8212. * src/BtRegistry.cc
  8213. * src/BtRegistry.h
  8214. * src/BtSeederStateChoke.cc
  8215. * src/BtSetup.cc
  8216. * src/DHTGetPeersCommand.cc
  8217. * src/DHTGetPeersCommand.h
  8218. * src/DHTPeerAnnounceEntry.cc
  8219. * src/DHTPeerAnnounceEntry.h
  8220. * src/DHTPeerAnnounceStorage.cc
  8221. * src/DHTPeerAnnounceStorage.h
  8222. * src/DHTPeerLookupTask.cc
  8223. * src/DHTPeerLookupTask.h
  8224. * src/DHTSetup.cc
  8225. * src/DHTSetup.h
  8226. * src/DHTTaskFactory.h
  8227. * src/DHTTaskFactoryImpl.cc
  8228. * src/DHTTaskFactoryImpl.h
  8229. * src/DefaultBtAnnounce.cc
  8230. * src/DefaultBtInteractive.cc
  8231. * src/DefaultBtInteractive.h
  8232. * src/DefaultBtMessageDispatcher.cc
  8233. * src/DefaultBtMessageDispatcher.h
  8234. * src/DefaultBtMessageFactory.cc
  8235. * src/DefaultBtMessageFactory.h
  8236. * src/DefaultBtMessageReceiver.cc
  8237. * src/DefaultBtProgressInfoFile.cc
  8238. * src/DefaultBtProgressInfoFile.h
  8239. * src/DefaultBtRequestFactory.cc
  8240. * src/DefaultBtRequestFactory.h
  8241. * src/DefaultExtensionMessageFactory.cc
  8242. * src/DefaultExtensionMessageFactory.h
  8243. * src/DefaultPeerStorage.cc
  8244. * src/DefaultPeerStorage.h
  8245. * src/DownloadEngine.cc
  8246. * src/DownloadEngine.h
  8247. * src/InitiatorMSEHandshakeCommand.cc
  8248. * src/InitiatorMSEHandshakeCommand.h
  8249. * src/MSEHandshake.cc
  8250. * src/MSEHandshake.h
  8251. * src/Makefile.am
  8252. * src/Makefile.in
  8253. * src/PeerChokeCommand.cc
  8254. * src/PeerChokeCommand.h
  8255. * src/PeerInitiateConnectionCommand.cc
  8256. * src/PeerInitiateConnectionCommand.h
  8257. * src/PeerInteractionCommand.cc
  8258. * src/PeerInteractionCommand.h
  8259. * src/PeerObject.h
  8260. * src/PeerReceiveHandshakeCommand.cc
  8261. * src/PeerReceiveHandshakeCommand.h
  8262. * src/ReceiverMSEHandshakeCommand.cc
  8263. * src/RequestGroup.cc
  8264. * src/RequestGroup.h
  8265. * src/RequestGroupMan.cc
  8266. * src/RequestGroupMan.h
  8267. * src/SeedCheckCommand.cc
  8268. * src/SeedCheckCommand.h
  8269. * src/ShareRatioSeedCriteria.h
  8270. * src/SimpleBtMessage.cc
  8271. * src/TrackerWatcherCommand.cc
  8272. * src/TrackerWatcherCommand.h
  8273. * src/UTPexExtensionMessage.cc
  8274. * src/UTPexExtensionMessage.h
  8275. * test/BtCancelMessageTest.cc
  8276. * test/BtChokeMessageTest.cc
  8277. * test/BtExtendedMessageTest.cc
  8278. * test/BtInterestedMessageTest.cc
  8279. * test/BtNotInterestedMessageTest.cc
  8280. * test/BtPieceMessageTest.cc
  8281. * test/BtPortMessageTest.cc
  8282. * test/BtRegistryTest.cc
  8283. * test/BtRejectMessageTest.cc
  8284. * test/BtRequestMessageTest.cc
  8285. * test/DHTPeerAnnounceEntryTest.cc
  8286. * test/DHTPeerAnnounceStorageTest.cc
  8287. * test/DefaultBtMessageDispatcherTest.cc
  8288. * test/DefaultBtMessageFactoryTest.cc
  8289. * test/DefaultBtProgressInfoFileTest.cc
  8290. * test/DefaultBtRequestFactoryTest.cc
  8291. * test/DefaultExtensionMessageFactoryTest.cc
  8292. * test/MSEHandshakeTest.cc
  8293. * test/MockDHTTaskFactory.h
  8294. * test/ShareRatioSeedCriteriaTest.cc
  8295. * test/UTPexExtensionMessageTest.cc
  8296. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Fixed compiler warning.
  8298. * test/UtilTest.cc
  8299. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Treat Cookie object as session cookie if expiry = 0 is given.
  8301. With this change, you can specify session scoped cookies in an external
  8302. file setting expiry value to 0.
  8303. * src/Cookie.cc
  8304. * src/Cookie.h
  8305. * test/CookieParserTest.cc
  8306. * test/CookieStorageTest.cc
  8307. * test/CookieTest.cc
  8308. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Changed signature of DHTMessageFactory::createResponseMessage().
  8310. Removed unused validateIDMatch.
  8311. * src/DHTMessageFactory.h
  8312. * src/DHTMessageFactoryImpl.cc
  8313. * src/DHTMessageFactoryImpl.h
  8314. * src/DHTMessageTracker.cc
  8315. * test/DHTMessageFactoryImplTest.cc
  8316. * test/MockDHTMessageFactory.h
  8317. Dropped DHT message coming from same ID of localhost.
  8318. * src/DHTMessageReceiver.cc
  8319. Rejected adding node whose ID is the same as localhost's.
  8320. * src/DHTRoutingTable.cc
  8321. * test/BtPortMessageTest.cc
  8322. * test/DHTRoutingTableTest.cc
  8323. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Pool connection when redirection occurs with Content-Length = 0.
  8325. * src/HttpSkipResponseCommand.cc
  8326. * src/HttpSkipResponseCommand.h
  8327. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Fixed the bug that causes time out when redirection occurs with
  8329. content-length 0.
  8330. * src/HttpResponseCommand.cc
  8331. * src/HttpSkipResponseCommand.cc
  8332. * src/HttpSkipResponseCommand.h
  8333. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Now each status legends is shown only when it appears in Download
  8335. Result. If Download Result has no item, then status legend will not
  8336. be printed.
  8337. * src/RequestGroupMan.cc
  8338. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Removed duplicate creation of OptionHandlers.
  8340. * src/option_processing.cc
  8341. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Fixed the bug that causes segmentation fault when accessing files which
  8343. don't exist or are not included in --select-file option while
  8344. validating chunk checksum.
  8345. * src/MultiDiskAdaptor.cc
  8346. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Fixed compiler warning.
  8348. * test/UtilTest.cc
  8349. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8351. * src/IteratableChecksumValidator.cc
  8352. * src/IteratableChunkChecksumValidator.cc
  8353. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. * Release 0.16.2
  8355. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Added Serbian translation. Updated Ukrainian translation.
  8357. Thanks to all translators.
  8358. * po/sr.po
  8359. * po/uk.po
  8360. * po/LINGUAS
  8361. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Bump up version number to 0.16.2
  8363. * configure.ac
  8364. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Added length equality test to operator== to drop a piece message
  8366. whose length does not match to the requested one.
  8367. * src/RequestSlot.cc
  8368. * test/DefaultBtMessageDispatcherTest.cc
  8369. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8371. recieved.
  8372. In this fix, if a request larger than 16KiB length is received, aria2
  8373. disconnects the peer.
  8374. * src/BtConstants.h
  8375. * src/PeerMessageUtil.cc
  8376. * src/PeerMessageUtil.h
  8377. * test/BtRequestMessageTest.cc
  8378. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. * Release 0.16.1
  8380. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8382. * doc/aria2c.1.txt
  8383. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8385. Updated French, Simplified Chinese and Japanese translations.
  8386. Thanks to all translators.
  8387. en@quot and en@boldquot are also added.
  8388. * po/LINGUAS
  8389. * po/fr.po
  8390. * po/ja.po
  8391. * po/uk.po
  8392. * po/vi.po
  8393. * po/zh_CN.po
  8394. * po/zh_TW.po
  8395. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Bump up version number to 0.16.1.
  8397. * configure.ac
  8398. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Updated README.
  8400. * README
  8401. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8403. not to replace '--' with em dash character.
  8404. * doc/aria2c.1.txt
  8405. * doc/makeman
  8406. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8408. every SEC seconds.
  8409. * src/DownloadEngineFactory.cc
  8410. * src/OptionHandlerFactory.cc
  8411. * src/option_processing.cc
  8412. * src/usage_text.h
  8413. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Fixed compile warning on linux-amd64
  8415. * src/FtpConnection.cc
  8416. * src/IteratableChunkChecksumValidator.cc
  8417. * src/MultiDiskAdaptor.cc
  8418. Fixed the bug that unit test fails on linux-amd64
  8419. * test/UtilTest.cc
  8420. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Added --dht-file-path option to change the path to dht.dat, which is a
  8422. serialized DHT routing table.
  8423. * src/OptionHandlerFactory.cc
  8424. * src/option_processing.cc
  8425. * src/usage_text.h
  8426. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Fixed possible underflow.
  8428. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8429. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Fixed the bug that last character in URI is not encoded.
  8431. * src/Request.cc
  8432. * test/RequestTest.cc
  8433. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Fixed the bug that referer header field contains fragment.
  8435. Now Request class removes fragment part of URI and encodes it
  8436. in Request::setUri() and setReferer().
  8437. * src/Request.h
  8438. * src/Request.cc
  8439. * test/RequestTest.cc
  8440. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Added missing m4 macros.
  8442. * m4/cppunit.m4
  8443. * m4/libgcrypt.m4
  8444. * m4/libgnutls-extra.m4
  8445. * m4/libgnutls.m4
  8446. * m4/libxml2.m4
  8447. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Fixed compile error with gcc-4.4(snapshot)
  8449. * src/File.cc
  8450. * src/FtpConnection.cc
  8451. * src/OptionHandlerImpl.h
  8452. * src/Util.cc
  8453. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Removed assert()
  8455. * src/SocketBuffer.cc (SocketBuffer::send)
  8456. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Changed the type of _numNewConnection to unsigned int.
  8458. * src/ActivePeerConnectionCommand.cc
  8459. * src/ActivePeerConnectionCommand.h
  8460. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. * Release 0.16.0
  8462. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Updated doc
  8464. * README
  8465. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8467. translations. Thanks to all translators.
  8468. * po/bg.po
  8469. * po/de.po
  8470. * po/fr.po
  8471. * po/ja.po
  8472. * po/zh_CN.po
  8473. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Bump up version number to 0.16.0.
  8475. * configure.ac
  8476. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8478. int32_t.
  8479. Changed the type of count to int32_t.
  8480. * src/Metalink2RequestGroup.cc
  8481. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Added test for Time::elapsed(time_t).
  8483. * test/TimeTest.cc
  8484. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8486. Util::difftv() should be used instead.
  8487. * src/TimeA2.cc
  8488. * src/TimeA2.h
  8489. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Made socket for dht connections non-blocking
  8491. * src/DHTAbstractMessage.cc
  8492. * src/DHTAbstractMessage.h
  8493. * src/DHTConnection.h
  8494. * src/DHTConnectionImpl.cc
  8495. * src/DHTConnectionImpl.h
  8496. * src/DHTMessage.h
  8497. * src/DHTMessageDispatcherImpl.cc
  8498. * src/DHTMessageDispatcherImpl.h
  8499. * src/DHTUnknownMessage.cc
  8500. * src/DHTUnknownMessage.h
  8501. * src/SocketCore.cc
  8502. * src/SocketCore.h
  8503. * test/MockDHTMessage.h
  8504. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Changed the type of offset to int.
  8506. * src/ParameterizedStringParser.cc
  8507. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Made getAsInt() return int32_t
  8509. * src/Option.h
  8510. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8512. build.
  8513. * configure.ac
  8514. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Use sqlite3_open if sqlite3_open_v2 is not available.
  8516. * src/Sqlite3MozCookieParser.cc
  8517. * src/Sqlite3MozCookieParser.h
  8518. * m4/sqlite3.m4
  8519. * test/Sqlite3MozCookieParserTest.cc
  8520. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8522. * src/BtPieceMessage.cc
  8523. * src/DHTPeerAnnounceStorage.cc
  8524. * src/DefaultPieceStorage.cc
  8525. * src/DownloadCommand.cc
  8526. * src/DownloadEngine.cc
  8527. * src/FtpConnection.cc
  8528. * src/PeerConnection.cc
  8529. * src/PeerMessageUtil.cc
  8530. * src/RequestGroup.cc
  8531. * src/RequestGroupMan.cc
  8532. * src/SimpleBtMessage.cc
  8533. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8535. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8536. * src/AbstractDiskWriter.cc
  8537. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Don't set Request::supportsPersistentConnection() in HttpConnection
  8539. since this code is also used in AbstractProxyResponseCommand.
  8540. Moved those code to HttpResponse.
  8541. * src/HttpResponse.cc
  8542. * src/HttpResponse.h
  8543. * src/HttpConnection.cc
  8544. * src/HttpConnection.h
  8545. * src/HttpResponseCommand.cc
  8546. * test/HttpResponseTest.cc
  8547. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8549. The configuration is minimum: no torrent, no metalink, so there may be
  8550. other compile error on their code.
  8551. * src/a2netcompat.h
  8552. * src/File.cc
  8553. * src/File.h
  8554. * src/SocketCore.cc
  8555. * src/SocketCore.h
  8556. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Made a socket of incoming peer non-blocking.
  8558. * src/PeerListenCommand.cc
  8559. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8561. whole message data is not sent in one send() call.
  8562. * src/BtPieceMessage.cc
  8563. * src/BtPieceMessage.h
  8564. * src/PeerConnection.cc
  8565. * src/PeerConnection.h
  8566. * src/SimpleBtMessage.cc
  8567. * src/SimpleBtMessage.h
  8568. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Fixed the bug that aria2 downloads faster than max-download-limit when
  8570. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8571. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8572. , instead of sum of them.
  8573. * src/ActivePeerConnectionCommand.cc
  8574. * src/DefaultBtInteractive.cc
  8575. * src/DownloadCommand.cc
  8576. * src/PeerInteractionCommand.cc
  8577. * src/PeerReceiveHandshakeCommand.cc
  8578. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Fixed the bug that HTTPS download fails.
  8580. * src/AbstractCommand.cc
  8581. * src/AbstractCommand.h
  8582. * src/DownloadCommand.cc
  8583. * src/FtpConnection.cc
  8584. * src/HttpConnection.cc
  8585. * src/HttpRequestCommand.cc
  8586. * src/HttpResponseCommand.cc
  8587. * src/HttpSkipResponseCommand.cc
  8588. * src/MSEHandshake.cc
  8589. * src/PeerConnection.cc
  8590. * src/SocketCore.cc
  8591. * src/SocketCore.h
  8592. Fixed the bug that aria2 doesn't download whole content body and cannot
  8593. reuse connection if chunked transfer encoding and gzip content encoding
  8594. are set.
  8595. * src/DownloadCommand.cc
  8596. * src/HttpSkipResponseCommand.cc
  8597. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Updated man page.
  8599. * doc/aria2c.1.txt
  8600. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. When error occurred while aria2 was parsing an .aria2.conf file, print
  8602. the usage of the option that caused error.
  8603. * src/option_processing.cc
  8604. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Fixed compile error on OptionHandlerException
  8606. * src/Makefile.am
  8607. * src/OptionHandlerException.cc
  8608. * src/OptionHandlerException.h
  8609. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Moved message of the error to OptionHandlerException.h
  8611. * src/NameMatchOptionHandler.h
  8612. * src/OptionHandlerException.h
  8613. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. When error occurs while aria2 is parsing an command-line option, print
  8615. the usage of the option.
  8616. * src/Makefile.am
  8617. * src/NameMatchOptionHandler.h
  8618. * src/OptionHandlerException.h
  8619. * src/option_processing.cc
  8620. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Reverted previous change.
  8622. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8623. username is not in URI.
  8624. * src/HttpRequest.cc
  8625. * src/Request.cc
  8626. * test/HttpRequestTest.cc
  8627. * test/RequestTest.cc
  8628. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Now colon is required for username and password in FTP URL, like:
  8630. ftp://username:password@host.
  8631. If colon is not there, aria2 don't parse it as a username. For example,
  8632. aria2 don't retrieve username from ftp://username@host.
  8633. This fix was made in order to login FTP server via non-transparent ftp
  8634. proxy.
  8635. * src/Request.cc
  8636. * test/RequestTest.cc
  8637. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Use netrc for HTTP.
  8639. Now FTP user/password is sent in Authorization header when
  8640. --ftp-via-http-proxy=get is given.
  8641. * src/AuthConfigFactory.cc
  8642. * src/HttpRequest.cc
  8643. * src/HttpRequest.h
  8644. * src/NetrcAuthResolver.cc
  8645. * src/NetrcAuthResolver.h
  8646. * src/OptionHandlerFactory.cc
  8647. * src/option_processing.cc
  8648. * src/prefs.cc
  8649. * src/prefs.h
  8650. * test/AuthConfigFactoryTest.cc
  8651. * test/HttpRequestTest.cc
  8652. * test/NetrcAuthResolverTest.cc
  8653. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Issue PWD command first and get working directory and use it as a prefix
  8655. for CWD command.
  8656. * src/DownloadEngine.cc
  8657. * src/DownloadEngine.h
  8658. * src/FtpConnection.cc
  8659. * src/FtpConnection.h
  8660. * src/FtpFinishDownloadCommand.cc
  8661. * src/FtpInitiateConnectionCommand.cc
  8662. * src/FtpNegotiationCommand.cc
  8663. * src/FtpNegotiationCommand.h
  8664. * test/FtpConnectionTest.cc
  8665. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Removed default user/pass for FTP user/pass, since it should not have
  8667. precedence over netrc configuration by default.
  8668. * src/OptionHandlerFactory.cc
  8669. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Added debug log for socket event.
  8671. * src/AbstractCommand.cc
  8672. * src/PeerAbstractCommand.cc
  8673. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Log microseconds.
  8675. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8676. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Replaced HelpItem.cc with OptionHandler.cc.
  8678. * po/POTFILES.in
  8679. Updated po files with 'make update-po'
  8680. * po/aria2c.pot
  8681. * po/*.po
  8682. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Removed possible values from the text.
  8684. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8685. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Removed unused preferences:
  8687. PREF_NO_PREALLOCATION
  8688. PREF_STDOUT_LOG
  8689. PREF_TRACKER_MAX_TRIES
  8690. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8691. PREF_MIN_SEGMENT_SIZE
  8692. * src/option_processing.cc
  8693. * src/prefs.cc
  8694. * src/prefs.h
  8695. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Integrated HelpItem into OptionParser to ease the workload for adding
  8697. new options. Removed default value from usage text.
  8698. * src/HelpItem.cc: Removed.
  8699. * src/HelpItem.h: Removed.
  8700. * src/HelpItemFactory.cc: Removed.
  8701. * src/HelpItemFactory.h: Removed.
  8702. * src/Makefile.am
  8703. * src/Makefile.in
  8704. * src/NameMatchOptionHandler.h
  8705. * src/OptionHandler.cc
  8706. * src/OptionHandler.h
  8707. * src/OptionHandlerFactory.cc
  8708. * src/OptionHandlerImpl.h
  8709. * src/OptionParser.cc
  8710. * src/OptionParser.h
  8711. * src/TagContainer.cc: Removed.
  8712. * src/TagContainer.h: Removed.
  8713. * src/TaggedItem.cc: Removed.
  8714. * src/TaggedItem.h: Removed.
  8715. * src/main.cc
  8716. * src/option_processing.cc
  8717. * src/usage_text.h
  8718. * src/version_usage.cc
  8719. * test/HelpItemTest.cc: Removed.
  8720. * test/Makefile.am
  8721. * test/Makefile.in
  8722. * test/OptionHandlerTest.cc
  8723. * test/OptionParserTest.cc
  8724. * test/TagContainerTest.cc: Removed.
  8725. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Moved `TransferStat stat = ...' to inside the `if' clause.
  8727. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8728. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Fixed the bug that a block in a piece is requested when same block is
  8730. already requested to the same peer in end game mode.
  8731. * src/BtRequestFactory.h
  8732. * src/DefaultBtInteractive.cc
  8733. * src/DefaultBtRequestFactory.cc
  8734. * src/DefaultBtRequestFactory.h
  8735. * src/DefaultPieceStorage.cc
  8736. * src/DefaultPieceStorage.h
  8737. * src/PieceStorage.h
  8738. * src/UnknownLengthPieceStorage.cc
  8739. * src/UnknownLengthPieceStorage.h
  8740. * test/DefaultBtRequestFactoryTest.cc
  8741. * test/DefaultPieceStorageTest.cc
  8742. * test/MockBtRequestFactory.h
  8743. * test/MockPieceStorage.h
  8744. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Removed _uploadLength and _downloadLength from PeerSessionResource
  8746. and use PeerStat::_sessionUploadLength and
  8747. PeerStat::_sessionDownloadLength.
  8748. * src/PeerSessionResource.cc
  8749. * src/PeerSessionResource.h
  8750. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Fixed the bug that prefixLength of split bucket which doesn't include
  8752. local node ID is incremented.
  8753. * src/DHTBucket.cc
  8754. * src/DHTBucket.h
  8755. * test/DHTBucketTest.cc
  8756. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Added cookies.sqlite to EXTRA_DIST
  8758. * test/Makefile.am
  8759. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Added Turkish translation. Updated French, German, Russian and
  8761. Simplified Chinese translations. Thanks to all translators.
  8762. * po/LINGUAS
  8763. * po/de.po
  8764. * po/fr.po
  8765. * po/ru.po
  8766. * po/tr.po
  8767. * po/zh_CN.po
  8768. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Added deliminating text to the beginning of the log so that one can find
  8770. where the log starts easily.
  8771. * src/main.cc
  8772. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8774. to fix compile error when async DNS is not enabled by configuration.
  8775. * src/AbstractCommand.cc
  8776. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. If establishing conneciton to a server is failed, then mark error on
  8778. its ServerStat.
  8779. Added the cause of error to log when error event occurred.
  8780. Moved message string to message.h for translation.
  8781. * src/AbstractCommand.cc
  8782. * src/AbstractCommand.h
  8783. * src/FtpNegotiationCommand.cc
  8784. * src/HttpRequestCommand.cc
  8785. * src/PeerAbstractCommand.cc
  8786. * src/message.h
  8787. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Added the function to get error message from socket.
  8789. * src/SocketCore.cc
  8790. * src/SocketCore.h
  8791. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8793. * src/RequestGroupMan.cc
  8794. * src/RequestGroupMan.h
  8795. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. If error event is received in epoll, then abort download immediately.
  8797. * src/AbstractCommand.cc
  8798. * src/Command.cc
  8799. * src/Command.h
  8800. * src/DownloadEngine.cc
  8801. * src/PeerAbstractCommand.cc
  8802. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Added usage message for --uri-selector, --server-stat-of,
  8804. --server-stat-in, --server-stat-timeout options.
  8805. * src/HelpItemFactory.cc
  8806. * src/usage_text.h
  8807. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Added upper limit of FTP response buffer. The current implementation
  8809. uses 4096bytes as a limit.
  8810. * src/FtpConnection.cc
  8811. * src/FtpConnection.h
  8812. * test/FtpConnectionTest.cc
  8813. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Use non-blocking socket for TCP communication to avoid possible
  8815. blocking due to buffer full.
  8816. * src/AbstractProxyRequestCommand.cc
  8817. * src/FtpConnection.cc
  8818. * src/FtpConnection.h
  8819. * src/FtpNegotiationCommand.cc
  8820. * src/FtpNegotiationCommand.h
  8821. * src/HttpConnection.cc
  8822. * src/HttpConnection.h
  8823. * src/HttpRequestCommand.cc
  8824. * src/InitiatorMSEHandshakeCommand.cc
  8825. * src/InitiatorMSEHandshakeCommand.h
  8826. * src/MSEHandshake.cc
  8827. * src/MSEHandshake.h
  8828. * src/Makefile.am
  8829. * src/PeerConnection.cc
  8830. * src/PeerConnection.h
  8831. * src/PeerInteractionCommand.cc
  8832. * src/PeerListenCommand.cc
  8833. * src/ReceiverMSEHandshakeCommand.cc
  8834. * src/ReceiverMSEHandshakeCommand.h
  8835. * src/SocketBuffer.cc
  8836. * src/SocketBuffer.h
  8837. * src/SocketCore.cc
  8838. * src/SocketCore.h
  8839. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Call setStatusRealtime() in constructor.
  8841. * src/RealtimeCommand.cc
  8842. * src/RealtimeCommand.h
  8843. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Call Download::setNoWait(true) to execute newly created command without
  8845. a pause.
  8846. * src/AbstractCommand.cc
  8847. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8849. found' error from HTTP/FTP server NUM times without getting single
  8850. bytes of data, then force the download to fail.
  8851. Basically aria2 tris all URIs available. So if long list of URIs are
  8852. specified in Metalink, then aria2 will take a long time to fail
  8853. eventually if all URIs are outdated. This option eases this situation
  8854. to limit the number of servers to try.
  8855. * src/FtpNegotiationCommand.cc
  8856. * src/HelpItemFactory.cc
  8857. * src/HttpResponseCommand.cc
  8858. * src/OptionHandlerFactory.cc
  8859. * src/PeerStat.h
  8860. * src/RequestGroup.cc
  8861. * src/RequestGroup.h
  8862. * src/SegmentMan.cc
  8863. * src/SegmentMan.h
  8864. * src/option_processing.cc
  8865. * src/prefs.cc
  8866. * src/prefs.h
  8867. * src/usage_text.h
  8868. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8870. response even if more than one response is in it.
  8871. * src/FtpConnection.cc
  8872. * src/FtpConnection.h
  8873. * test/FtpConnectionTest.cc
  8874. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Merged from stable-0.15
  8876. * m4/libcares.m4
  8877. Use pkg-config
  8878. * m4/sqlite3.m4
  8879. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. Removed unnecessary if statement.
  8881. * src/DefaultPieceStorage.cc (initPieceStorage)
  8882. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Added --connect-timeout option to specify connect timeout in seconds.
  8884. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8885. connecting to BitTorrent peer is not controlled by this option.
  8886. * src/AbstractProxyRequestCommand.cc
  8887. * src/FtpNegotiationCommand.cc
  8888. * src/HelpItemFactory.cc
  8889. * src/HttpRequestCommand.cc
  8890. * src/OptionHandlerFactory.cc
  8891. * src/option_processing.cc
  8892. * src/prefs.cc
  8893. * src/prefs.h
  8894. * src/usage_text.h
  8895. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Added help message for -R option.
  8897. * src/HelpItemFactory.cc
  8898. * src/usage_text.h
  8899. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Added the message that the time is in local time zone.
  8901. * src/RequestGroup.cc
  8902. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Implemented the ability to get timestamp from remote FTP server using
  8904. MDTM command described in RFC3659.
  8905. * src/FtpConnection.cc
  8906. * src/FtpConnection.h
  8907. * src/FtpNegotiationCommand.cc
  8908. * src/FtpNegotiationCommand.h
  8909. * test/FtpConnectionTest.cc
  8910. * test/Makefile.am
  8911. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Implemented the ability to get timestamp from remote HTTP server and
  8913. apply it to local file. To enable this feature, --remote-time option
  8914. is added. No usage text has been written yet.
  8915. If several servers returns difference timestamp, then aria2 uses latest
  8916. one.
  8917. * src/CopyDiskAdaptor.cc
  8918. * src/CopyDiskAdaptor.h
  8919. * src/DirectDiskAdaptor.cc
  8920. * src/DirectDiskAdaptor.h
  8921. * src/DiskAdaptor.h
  8922. * src/File.cc
  8923. * src/File.h
  8924. * src/HttpHeader.cc
  8925. * src/HttpHeader.h
  8926. * src/HttpResponse.cc
  8927. * src/HttpResponse.h
  8928. * src/HttpResponseCommand.cc
  8929. * src/HttpResponseCommand.h
  8930. * src/MultiDiskAdaptor.cc
  8931. * src/MultiDiskAdaptor.h
  8932. * src/OptionHandlerFactory.cc
  8933. * src/RequestGroup.cc
  8934. * src/RequestGroup.h
  8935. * src/RequestGroupMan.cc
  8936. * src/option_processing.cc
  8937. * src/prefs.cc
  8938. * src/prefs.h
  8939. * test/CopyDiskAdaptorTest.cc
  8940. * test/FileTest.cc
  8941. * test/Makefile.am
  8942. * test/Makefile.in
  8943. * test/MultiDiskAdaptorTest.cc
  8944. * test/TestUtil.cc
  8945. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Fixed the bug that DiskWriterEntry is not created when its
  8947. FileEntry.isRequested() is false and it doesn't share a piece with
  8948. other FileEntries that are requested. This bug causes segmentation fault
  8949. in the end.
  8950. * src/MultiDiskAdaptor.cc
  8951. * src/MultiDiskAdaptor.h
  8952. * src/MultiFileAllocationIterator.cc
  8953. * test/MultiDiskAdaptorTest.cc
  8954. * test/MultiFileAllocationIteratorTest.cc
  8955. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8957. called if the number of file entries are greater than max open files.
  8958. * src/AbstractSingleDiskAdaptor.cc
  8959. * src/AbstractSingleDiskAdaptor.h
  8960. * src/DiskAdaptor.h
  8961. * src/MultiDiskAdaptor.cc
  8962. * src/MultiDiskAdaptor.h
  8963. * test/MultiDiskAdaptorTest.cc
  8964. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Added a constuctor that receives struct timeval.
  8966. Added operator<.
  8967. * src/TimeA2.cc
  8968. * src/TimeA2.h
  8969. * test/TimeTest.cc
  8970. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8972. * src/CookieParser.cc
  8973. * test/CookieParserTest.cc
  8974. * test/HttpResponseTest.cc
  8975. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Implmented the functions to parse date.
  8977. * src/TimeA2.cc
  8978. * src/TimeA2.h
  8979. * test/TimeTest.cc
  8980. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Added "Firefox3 Cookie" feature to FeatureConfig
  8982. * src/FeatureConfig.cc
  8983. * src/FeatureConfig.h
  8984. * test/FeatureConfigTest.cc
  8985. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Bump up version number to 0.16.0b
  8987. * configure.ac
  8988. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Use pkg-config if is is available.
  8990. * m4/openssl.m4
  8991. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8993. * src/BtAnnounce.h
  8994. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. If an error occurred with a URI, remove identical URI from remaining
  8996. URI list because it is likely that same error occurred in the end and it
  8997. is waste of time.
  8998. * src/AbstractCommand.cc
  8999. * src/RequestGroup.cc
  9000. * src/RequestGroup.h
  9001. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. Removed wrong comment.
  9003. * src/DefaultPeerStorage.cc
  9004. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9006. Added return value of getpid() to argument of srand() to achieve more
  9007. randomized value.
  9008. * src/SimpleRandomizer.cc
  9009. * src/SimpleRandomizer.h
  9010. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Contact tracker frequently when the number of connections are 0 and
  9012. download is not finished yet.
  9013. * src/ActivePeerConnectionCommand.cc
  9014. * src/BtAnnounce.h
  9015. * src/DefaultBtAnnounce.cc
  9016. * src/DefaultBtAnnounce.h
  9017. * test/MockBtAnnounce.h
  9018. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Moved threshold values to UTPexExtensionMessage.
  9020. * src/DefaultBtInteractive.cc
  9021. * src/Peer.cc
  9022. * src/Peer.h
  9023. * src/UTPexExtensionMessage.cc
  9024. * src/UTPexExtensionMessage.h
  9025. * test/UTPexExtensionMessageTest.cc
  9026. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Added _incoming member to Peer class and made it true if the peer
  9028. initiated connection. Don't add those peer to UTPex message.
  9029. If extended handshake is received, assign _incoming to false.
  9030. * src/DefaultBtInteractive.cc
  9031. * src/HandshakeExtensionMessage.cc
  9032. * src/Peer.cc
  9033. * src/Peer.h
  9034. * src/PeerListenCommand.cc
  9035. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9037. Encoding Decoder. Removed size threshold for turning off on the fly
  9038. inflation because resulting file may or may not be inflated depending
  9039. on the file size and I think it is not expected by users.
  9040. This change fixes segmentation fault when Metalink file contains gzipped
  9041. file and its filesize is provided.
  9042. * src/HttpResponseCommand.cc
  9043. * src/HttpResponseCommand.h
  9044. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Made Cookie immutable.
  9046. * src/Cookie.cc
  9047. * src/Cookie.h
  9048. * src/CookieParser.cc
  9049. * src/CookieParser.h
  9050. * src/CookieStorage.cc
  9051. * test/CookieParserTest.cc
  9052. * test/CookieStorageTest.cc
  9053. * test/NsCookieParserTest.cc
  9054. * test/Sqlite3MozCookieParserTest.cc
  9055. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Removed CookieBox, CookieBoxFactory.
  9057. * src/CookieBox.cc
  9058. * src/CookieBox.h
  9059. * src/CookieBoxFactory.cc
  9060. * src/CookieBoxFactory.h
  9061. * src/Makefile.am
  9062. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Use CookieStorage class instead of CookieBox class.
  9064. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9065. * src/AbstractProxyRequestCommand.cc
  9066. * src/CookieStorage.cc
  9067. * src/DownloadEngine.cc
  9068. * src/DownloadEngine.h
  9069. * src/HttpConnection.cc
  9070. * src/HttpConnection.h
  9071. * src/HttpRequest.cc
  9072. * src/HttpRequest.h
  9073. * src/HttpRequestCommand.cc
  9074. * src/HttpResponse.cc
  9075. * src/HttpResponseCommand.cc
  9076. * src/HttpSkipResponseCommand.cc
  9077. * src/Makefile.am
  9078. * src/MultiUrlRequestInfo.cc
  9079. * src/Request.cc
  9080. * src/Request.h
  9081. * src/main.cc
  9082. * test/AllTest.cc
  9083. * test/CookieStorageTest.cc
  9084. * test/CookieTest.cc
  9085. * test/HttpRequestTest.cc
  9086. * test/HttpResponseTest.cc
  9087. * test/Makefile.am
  9088. * test/NsCookieParserTest.cc
  9089. * test/Sqlite3MozCookieParserTest.cc
  9090. * test/nscookietest.txt
  9091. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Updated
  9093. * test/Cookies.sqlite
  9094. * test/nscookietest.txt
  9095. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Added tests for CookieStorage::load()
  9097. * test/CookieStorageTest.cc
  9098. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Added CookieStorage class which is based on RFC2109 and manages cookies
  9100. more strictly than CookieBox and CookieBoxFactory class.
  9101. * src/CookieStorage.cc
  9102. * src/CookieStorage.h
  9103. * src/Cookie.cc
  9104. * src/Cookie.h
  9105. * test/CookieStorageTest.cc
  9106. * test/CookieTest.cc
  9107. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Fixed the bug that commands are created more than the number of pieces.
  9109. * src/RequestGroup.cc
  9110. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Fixed infinite loop bug in FTP when SIZE command failed.
  9112. * src/FtpNegotiationCommand.cc
  9113. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Removed DirectDiskAdaptorTest.h
  9115. * test/Makefile.am
  9116. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Fixed chunk checksum validation cannot detect trailing garbage data.
  9118. BUG#2074141
  9119. * src/AbstractSingleDiskAdaptor.cc
  9120. * src/AbstractSingleDiskAdaptor.h
  9121. * src/CheckIntegrityEntry.cc
  9122. * src/CheckIntegrityEntry.h
  9123. * src/DiskAdaptor.h
  9124. * src/MultiDiskAdaptor.cc
  9125. * src/MultiDiskAdaptor.h
  9126. * src/RequestGroup.cc
  9127. * test/DirectDiskAdaptorTest.cc
  9128. * test/MultiDiskAdaptorTest.cc
  9129. * test/TestUtil.cc
  9130. * test/TestUtil.h
  9131. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Bump up version number of dht.dat file to 3. In version 3 format, time
  9133. is stored in 64bit, network byte order.
  9134. New build can load old format(version 2) but it saves the file in new
  9135. format. It means once you used new build, your dht.dat becomes
  9136. incompatible with older build.
  9137. * src/DHTRoutingTableDeserializer.cc
  9138. * src/DHTRoutingTableSerializer.cc
  9139. * test/DHTRoutingTableSerializerTest.cc
  9140. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9142. * test/Makefile.am
  9143. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Bump up version number of .aria2 control file to 0001.
  9145. New aria2 can still load version 0000 file but it saves the file in
  9146. version 0001 format. It means that new aria2 can resume download
  9147. started by old aria2 but the opposite is not true.
  9148. * src/DefaultBtProgressInfoFile.cc
  9149. * src/DefaultBtProgressInfoFile.h
  9150. * test/DefaultBtProgressInfoFileTest.cc
  9151. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Added ntoh64 and hton64 as inline functions.
  9153. * src/Util.cc
  9154. * test/UtilTest.cc
  9155. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Added sqlite3 depenency and Firefox3 cookie support.
  9157. * README
  9158. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. State that firefox3 cookie is supported explicitly in the usage.
  9160. * src/usage_text.h
  9161. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Externalized message.
  9163. * src/RequestGroupMan.cc
  9164. * src/message.h
  9165. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. Save temporary file first and rename to the destination on success.
  9167. Added test cases.
  9168. * src/RequestGroupMan.cc
  9169. * test/RequestGroupManTest.cc
  9170. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Fixed the bug that the number of connected peer is exceeding the limit
  9172. (55 by default) in seeding mode.
  9173. Multiplied 0.8 to _maxUploadSpeedLimit.
  9174. * src/ActivePeerConnectionCommand.cc
  9175. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Clear table item.
  9177. * src/Dictionary.cc
  9178. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Fixed error handling of lseek.
  9180. * src/AbstractDiskWriter.cc
  9181. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9183. style cookie file.
  9184. * src/usage_text.h
  9185. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9187. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9188. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9189. * src/Util.cc
  9190. * src/Util.h
  9191. * src/CookieParser.cc
  9192. * test/UtilTest.cc
  9193. * test/CookieParserTest.cc
  9194. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Separate the implementation to load old mozilla format of cookie to
  9196. NsCookieParser class.
  9197. * src/CookieBoxFactory.cc
  9198. * src/CookieBoxFactory.h
  9199. * src/NsCookieParser.cc
  9200. * src/NsCookieParser.h
  9201. * test/NsCookieParserTest.cc
  9202. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Made parse() const
  9204. * src/Sqlite3MozCookieParser.cc
  9205. * src/Sqlite3MozCookieParser.h
  9206. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Added firefox3 cookie support based on the patch submitted by
  9208. tizianomueller.
  9209. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9210. this functionality.
  9211. * configure.ac
  9212. * m4/sqlite3.m4
  9213. * src/CookieBoxFactory.cc
  9214. * src/CookieBoxFactory.h
  9215. * src/Makefile.am
  9216. * src/Makefile.in
  9217. * src/Sqlite3MozCookieParser.cc
  9218. * src/Sqlite3MozCookieParser.h
  9219. * src/main.cc
  9220. * test/CookieBoxFactoryTest.cc
  9221. * test/Makefile.am
  9222. * test/Makefile.in
  9223. * test/Sqlite3MozCookieParserTest.cc
  9224. * test/badcookies.sqlite
  9225. * test/cookies.sqlite
  9226. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Added Danish and Greek translations.
  9228. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9229. Great thanks to all translators.
  9230. * po/LINGUAS
  9231. * po/el.po
  9232. * po/da.po
  9233. * po/es.po
  9234. * po/ca.po
  9235. * po/nn.po
  9236. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Fixed man page: --follow-bittorrent should be --follow-torrent
  9238. * doc/aria2c.1.txt
  9239. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Fixed: numCommand is less than the value specified in -C option.
  9241. * src/RequestGroup.cc
  9242. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Fixed occasional assertion failure in PieceSegment.
  9244. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9245. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9246. creation of duplicate segments and one of the segment was finished then
  9247. assertion failure was caused.
  9248. * src/SegmentMan.cc
  9249. * test/SegmentManTest.cc
  9250. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Added options to load/save the server's performance/status to a file
  9252. and the timeout to drop their data.
  9253. --server-stat-of=FILE specifies the file to which performance data
  9254. is saved.
  9255. --server-stat-if=FILE specifies the file to read previously saved
  9256. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9257. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9258. TIMEOUT is specified in seconds and the default value is 24hours.
  9259. * src/MultiUrlRequestInfo.cc
  9260. * src/OptionHandlerFactory.cc
  9261. * src/RequestGroupMan.cc
  9262. * src/RequestGroupMan.h
  9263. * src/ServerStatMan.cc
  9264. * src/ServerStatMan.h
  9265. * src/option_processing.cc
  9266. * src/prefs.cc
  9267. * src/prefs.h
  9268. * test/ServerStatManTest.cc
  9269. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9271. * src/ServerStatMan.cc
  9272. * src/ServerStatMan.h
  9273. * test/ServerStatManTest.cc
  9274. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Implemented ServerStatMan::load(...) function and its test case.
  9276. * src/ServerStat.cc
  9277. * src/ServerStat.h
  9278. * src/ServerStatMan.cc
  9279. * test/ServerStatManTest.cc
  9280. * test/ServerStatTest.cc
  9281. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Use time_t instead of int32_t. Use int64_t where milli second is
  9283. expected.
  9284. * src/TimeA2.cc
  9285. * src/TimeA2.h
  9286. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Implemented ServerStatMan::save(...) function and its test case.
  9288. * src/ServerStat.cc
  9289. * src/ServerStat.h
  9290. * src/ServerStatMan.cc
  9291. * src/ServerStatMan.h
  9292. * test/ServerStatManTest.cc
  9293. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Now aria2 uses name attribute in Metalink as local filename in
  9295. BitTorrent downloads. BUG#2033999
  9296. * src/BtContext.h
  9297. * src/BtDependency.cc
  9298. * src/DefaultBtContext.cc
  9299. * src/DefaultBtContext.h
  9300. * src/SingleFileDownloadContext.cc
  9301. * src/SingleFileDownloadContext.h
  9302. * test/BtDependencyTest.cc
  9303. * test/DefaultBtContextTest.cc
  9304. * test/MockBtContext.h
  9305. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Added AC_C_BIGENDIAN
  9307. * src/configure.ac
  9308. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Limited numCommand less than or equal to the number of piece.
  9310. * src/RequestGroup.cc
  9311. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9313. directive.
  9314. * test/DefaultPieceStorageTest.cc
  9315. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Fixed memory leak in test code
  9317. * test/AnnounceListTest.cc
  9318. * test/DefaultPeerListProcessorTest.cc
  9319. * test/DefaultPeerStorageTest.cc
  9320. * test/MetaFileUtilTest.cc
  9321. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9323. * src/DefaultPieceStorage.cc
  9324. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Initialized _directIOAllowed
  9326. * src/MultiDiskAdaptor.cc
  9327. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Fixed memory leak
  9329. * src/GZipDecoder.cc
  9330. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Fixed memory leak
  9332. * src/MetalinkParserStateMachine.cc
  9333. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Fixed memory leak
  9335. * src/Dictionary.cc
  9336. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Fixed memory leak
  9338. * src/IteratableChunkChecksumValidator.h
  9339. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Fixed unmatched malloc/free.
  9341. * src/IteratableChunkChecksumValidator.cc
  9342. * src/IteratableChecksumValidator.cc
  9343. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Removed max chunk size check. This change fixes BUG#2040169
  9345. * src/ChunkedDecoder.cc
  9346. * src/ChunkedDecoder.h
  9347. * test/ChunkedDecoderTest.cc
  9348. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Implemented download speed based URI selection algorithm.
  9350. Introduced new option --uri-selector.
  9351. If --uri-selector=feedback is given, aria2 uses download speed observed
  9352. in the previous downloads and chooses fastest server in the URI list.
  9353. Currently at most 10 URIs are considered to introduce randomeness for
  9354. finding better servers. The speed is average download speed in the
  9355. downloads.
  9356. On the other hand, if --uri-selector=inorder is given, which is default,
  9357. URI is tried in order in URI list.
  9358. The usage text for the new option has not been written yet.
  9359. * src/AbstractCommand.cc
  9360. * src/DownloadCommand.cc
  9361. * src/DownloadEngine.cc
  9362. * src/DownloadEngineFactory.cc
  9363. * src/InOrderURISelector.cc
  9364. * src/InOrderURISelector.h
  9365. * src/OptionHandlerFactory.cc
  9366. * src/PeerStat.h
  9367. * src/RequestGroup.cc
  9368. * src/RequestGroup.h
  9369. * src/RequestGroupMan.cc
  9370. * src/RequestGroupMan.h
  9371. * src/SegmentMan.cc
  9372. * src/SegmentMan.h
  9373. * src/ServerStat.cc
  9374. * src/ServerStat.h
  9375. * src/ServerStatMan.cc
  9376. * src/ServerStatMan.h
  9377. * src/ServerStatURISelector.cc
  9378. * src/ServerStatURISelector.h
  9379. * src/URISelector.h
  9380. * src/option_processing.cc
  9381. * src/prefs.cc
  9382. * src/prefs.h
  9383. * test/InOrderURISelectorTest.cc
  9384. * test/RequestGroupManTest.cc
  9385. * test/ServerStatManTest.cc
  9386. * test/ServerStatURISelectorTest.cc
  9387. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. * Release 0.15.1+2
  9389. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Bump up version number to 0.15.1+2
  9391. * configure.ac
  9392. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9394. * m4/aria2_arg.m4
  9395. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. * Release 0.15.1+1
  9397. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Bump up version number to 0.15.1+1
  9399. * configure.ac
  9400. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Fixed the bug that causes segmentaion fault when resuming download
  9402. using metalink without size tag. Reproducible only using HTTP URI.
  9403. * src/HttpResponseCommand.cc
  9404. * src/FtpNegotiationCommand.cc
  9405. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. * Release 0.15.1
  9407. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Updated Bulgarian and French translations, thanks to all translators.
  9409. * po/bg.po
  9410. * po/fr.po
  9411. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Bump up version number to 0.15.1
  9413. * configure.ac
  9414. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Avoid repeated call of gettimeofday() when calculating speed.
  9416. * src/SpeedCalc.cc
  9417. * src/SpeedCalc.h
  9418. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Removed writable check when socket's send buffer is full in BitTorrent
  9420. downloads to lower CPU usage.
  9421. * src/PeerInteractionCommand.cc
  9422. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Fixed broken gzip inflation.
  9424. Turn off segmented downloading if gzip content is smaller than or equal
  9425. to 1MiB and inflate the data on the fly, because HTTP response header
  9426. doesn't contain the length of inflated file we can't determin where
  9427. the chunk of data should be written.
  9428. On the other hand, if gzip content is larger than 1MB, then turn off
  9429. on the fly inflation, because some servers returns "content-type: gzip"
  9430. for *.tgz, *.gz files.
  9431. * src/DownloadCommand.cc
  9432. * src/HttpResponseCommand.cc
  9433. * src/HttpResponseCommand.h
  9434. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Applied tizianomueller's patch to fix compile error.
  9436. * test/BitfieldManTest.cc
  9437. * test/BtRequestMessageTest.cc
  9438. * test/DefaultBtContextTest.cc
  9439. * test/DefaultDiskWriterTest.cc
  9440. * test/DefaultPieceStorageTest.cc
  9441. * test/HttpHeaderProcessorTest.cc
  9442. * test/HttpResponseTest.cc
  9443. * test/Metalink2RequestGroupTest.cc
  9444. * test/MetalinkParserControllerTest.cc
  9445. * test/MetalinkProcessorTest.cc
  9446. * test/PeerSessionResourceTest.cc
  9447. * test/UtilTest.cc
  9448. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. * Release 0.15.0
  9450. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Reordered src files in POTFILES.in so that usage text appears first.
  9452. * po/POTFILES.in
  9453. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Bump up version number to 0.15.0
  9455. * configure.ac
  9456. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Added Bulgarian translation.
  9458. Updated Catalan, Spanish, French and Japanese translations.
  9459. Thanks to all translators.
  9460. * po/LINGUAS
  9461. * po/bg.po
  9462. * po/ca.po
  9463. * po/es.po
  9464. * po/fr.po
  9465. * po/ja.po
  9466. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Updated feature list. Added libz for dependency section.
  9468. Added a description about unit testing using CppUnit.
  9469. * README
  9470. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Added a test for libz. Quoted where it is necessary.
  9472. * build_test.sh
  9473. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Added GZip to `Enabled Features' list.
  9475. * src/FeatureConfig.cc
  9476. * src/FeatureConfig.h
  9477. * test/FeatureConfigTest.cc
  9478. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9480. the transfer has not yet started.
  9481. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9482. * src/SegmentMan.cc
  9483. * src/SegmentMan.h
  9484. * test/SegmentManTest.cc
  9485. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Cache last calculated average download/upload speed.
  9487. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9488. cached value.
  9489. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9490. * src/PeerStat.h
  9491. * src/SpeedCalc.cc
  9492. * src/SpeedCalc.h
  9493. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Call parseUrl directly.
  9495. * src/Request.cc (resetUrl)
  9496. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Supported absolute/relative path in Location header field.
  9498. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9499. * src/HttpHeader.cc
  9500. * src/HttpHeader.h
  9501. * src/HttpResponse.cc
  9502. * src/HttpSkipResponseCommand.cc
  9503. * src/Request.cc
  9504. * test/HttpHeaderTest.cc
  9505. * test/HttpResponseTest.cc
  9506. * test/RequestTest.cc
  9507. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Changed help text for --load-cookie option.
  9509. * doc/aria2c.1.txt
  9510. * src/usage_text.h
  9511. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Regenerated test/Makefile.in to remove stale ChangeLog.
  9513. * test/Makefile.in
  9514. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Updated po files.
  9516. * po/aria2c.pot
  9517. * po/*.po
  9518. * po/*.gmo
  9519. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Bump up version number to 0.15.0b
  9521. * configure.ac
  9522. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Externalize messages.
  9524. * src/RequestGroupMan.cc
  9525. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9526. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Use File::exists() instead of File::isFile() to allow non-regular file
  9528. such as block special files.
  9529. * src/AbstractDiskWriter.cc
  9530. * src/MultiDiskWriter.cc
  9531. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9533. * src/gai_strerror.h
  9534. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Fixed compile error. Thanks gknauf for the patch.
  9536. * src/asctime_r.c
  9537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Included asctime_r.h from a2time.h.
  9539. * src/a2time.h
  9540. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Added a message "aria2 doesn't verify signature" to log message when
  9542. signature file is saved.
  9543. * src/RequestGroupMan.cc
  9544. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Added the ability to save signature when download is completed if
  9546. signature is available. The filename of signature file is the path to
  9547. download file followed by ".sig". If it already exists, then signature
  9548. will not be saved.
  9549. * src/RequestGroupMan.cc
  9550. * src/Signature.cc
  9551. * test/SignatureTest.cc
  9552. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Updated the descriptions for --bt-seed-unverified.
  9554. * doc/aria2c.1
  9555. * doc/aria2c.1.html
  9556. * doc/aria2c.1.txt
  9557. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9559. that this is not going to verify files using piece hashes.
  9560. * src/HelpItemFactory.cc
  9561. * src/OptionHandlerFactory.cc
  9562. * src/RequestGroup.cc
  9563. * src/option_processing.cc
  9564. * src/prefs.cc
  9565. * src/prefs.h
  9566. * src/usage_text.h
  9567. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Added the ability to retrieve signature from Metalink file.
  9569. A retrieved signature is stored in Signature class and it is held by
  9570. DownloadContext class. Note that aria2 doesn't verify signature.
  9571. * src/DownloadContext.cc
  9572. * src/DownloadContext.h
  9573. * src/Makefile.am
  9574. * src/Makefile.in
  9575. * src/Metalink2RequestGroup.cc
  9576. * src/MetalinkEntry.cc
  9577. * src/MetalinkEntry.h
  9578. * src/MetalinkParserController.cc
  9579. * src/MetalinkParserController.h
  9580. * src/MetalinkParserStateMachine.cc
  9581. * src/MetalinkParserStateMachine.h
  9582. * src/Signature.cc
  9583. * src/Signature.h
  9584. * src/SignatureMetalinkParserState.cc
  9585. * src/SignatureMetalinkParserState.h
  9586. * src/VerificationMetalinkParserState.cc
  9587. * src/VerificationMetalinkParserState.h
  9588. * test/Metalink2RequestGroupTest.cc
  9589. * test/MetalinkParserControllerTest.cc
  9590. * test/MetalinkProcessorTest.cc
  9591. * test/test.xml
  9592. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Close DiskAdaptor after renaming file.
  9594. * src/RequestGroup.cc
  9595. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Corrected indentation
  9597. * src/DefaultBtProgressInfoFile.cc
  9598. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Moved the calls of std::ios::exceptions() inside of try-catch block
  9600. because if an error occurred in constructor of std::fstream, then
  9601. exception is thrown immediately when std::ios::exceptions() is called
  9602. which results unhandled exception and aria2c aborts.
  9603. * src/DefaultBtProgressInfoFile.cc
  9604. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Added the test for the previous change in DefaultBtContext.cc
  9606. * test/DefaultBtContextTest.cc
  9607. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Fixed the bug that causes infinite loop when the number of pieces are
  9609. fewer than allowed fast set size which is 10 by default.
  9610. * src/DefaultBtContext.cc
  9611. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Updated the descriptions for -j, -s. Added --bt-seed.
  9613. * doc/aria2c.1
  9614. * doc/aria2c.1.html
  9615. * doc/aria2c.1.txt
  9616. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9618. aria2 seeds previously downloaded files without validating piece hashs.
  9619. * src/HelpItemFactory.cc
  9620. * src/OptionHandlerFactory.cc
  9621. * src/RequestGroup.cc
  9622. * src/option_processing.cc
  9623. * src/prefs.cc
  9624. * src/prefs.h
  9625. * src/usage_text.h
  9626. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Updated DESCRIPTION of man page.
  9628. * doc/aria2c.1
  9629. * doc/aria2c.1.html
  9630. * doc/aria2c.1.txt
  9631. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9633. Don't define `struct addrinfo' when __sun is defined.
  9634. * src/getaddrinfo.h
  9635. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9637. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9638. second argument is of type `struct _stati64'. Otherwise it is defined as
  9639. `struct stat'.
  9640. * src/AbstractDiskWriter.cc
  9641. * src/File.cc
  9642. * src/File.h
  9643. * src/a2io.h
  9644. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Fixed the compile error in hurd-i386
  9646. See the original bug report:
  9647. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9648. * src/a2io.h
  9649. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Code cleanup.
  9651. * src/PeerAbstractCommand.cc
  9652. * src/PeerAbstractCommand.h
  9653. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Removed TransferEncoding.
  9655. * src/DownloadCommand.cc
  9656. * src/DownloadCommand.h
  9657. * src/HttpResponseCommand.cc
  9658. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9659. Updated po files.
  9660. * po/aria2c.pot
  9661. * po/*.po
  9662. * po/*.gmo
  9663. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9665. * src/A2STR.cc
  9666. * src/A2STR.h
  9667. * src/ChunkedDecoder.cc
  9668. * src/ChunkedDecoder.h
  9669. * src/ChunkedEncoding.cc: Removed
  9670. * src/ChunkedEncoding.h: Removed
  9671. * src/DownloadCommand.cc
  9672. * src/DownloadCommand.h
  9673. * src/HttpDownloadCommand.cc
  9674. * src/HttpResponse.cc
  9675. * src/HttpResponse.h
  9676. * src/HttpResponseCommand.cc
  9677. * src/HttpSkipResponseCommand.cc
  9678. * src/HttpSkipResponseCommand.h
  9679. * src/Makefile.am
  9680. * src/TransferEncoding.h: Removed
  9681. * test/ChunkedDecoderTest.cc
  9682. * test/ChunkedEncodingTest.cc: Removed
  9683. * test/HttpResponseTest.cc
  9684. * test/Makefile.am
  9685. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Use append instead of insert.
  9687. * src/GZipDecoder.cc
  9688. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Updated doc
  9690. * src/Decoder.h
  9691. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Updated usage text for -s option.
  9693. * src/usage_text.h
  9694. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9696. * src/Request.cc
  9697. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Cleaned up configure.ac.
  9699. * configure.ac
  9700. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9702. AC_ARG_ENABLE.
  9703. * configure.ac
  9704. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9706. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9707. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9708. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9709. fly and writes decoded data to a local disk.
  9710. * README
  9711. * README.html
  9712. * configure.ac
  9713. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9714. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9715. * m4/libz.m4
  9716. * src/Decoder.h
  9717. * src/DownloadCommand.cc
  9718. * src/DownloadCommand.h
  9719. * src/Exception.h
  9720. * src/GZipDecoder.cc
  9721. * src/GZipDecoder.h
  9722. * src/HttpHeader.cc
  9723. * src/HttpHeader.h
  9724. * src/HttpRequest.cc
  9725. * src/HttpRequest.h
  9726. * src/HttpResponse.cc
  9727. * src/HttpResponse.h
  9728. * src/HttpResponseCommand.cc
  9729. * src/Makefile.am
  9730. * test/GZipDecoderTest.cc
  9731. * test/HttpRequestTest.cc
  9732. * test/HttpResponseTest.cc
  9733. * test/Makefile.am
  9734. * test/Makefile.in
  9735. * test/gzip_decode_test.gz
  9736. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Clarified usage of -j option.
  9738. * src/usage_text.h
  9739. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Disabled getting size from the response of RETR.
  9741. If SIZE command failed, then disable resuming and segmented downloading.
  9742. * src/FtpConnection.cc
  9743. * src/FtpConnection.h
  9744. * src/FtpNegotiationCommand.cc
  9745. * src/FtpNegotiationCommand.h
  9746. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Use digits to find first byte of file size, which makes the intention
  9748. of the code clearer.
  9749. * src/FtpConnection.cc
  9750. Don't call validateTotalLength() when size is 0.
  9751. * src/FtpNegotiationCommand.cc
  9752. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Updated po files.
  9754. * po/aria2c.pot
  9755. * po/*.gmo
  9756. * po/*.po
  9757. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Clarified usage text for --split option.
  9759. * src/usage_text.h
  9760. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Bump up version number to 0.15.0dev. "dev" means "development"
  9762. version, which means I started the development of the next release!
  9763. * src/configure.ac
  9764. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. If FTP server returns negative response with REST raw command and
  9766. requested range is not 0, throw exception. If requested range is 0,
  9767. continue download a file from 0 byte.
  9768. * src/FtpNegotiationCommand.cc
  9769. * src/FtpNegotiationCommand.h
  9770. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9771. Supported FTP server which don't recognize SIZE raw command.
  9772. If SIZE raw command is failed, aria2 will try to get file size
  9773. from the response of RETR raw command. If both attempts are failed,
  9774. then resuming and segmented downloading are disabled.
  9775. * src/FtpConnection.cc
  9776. * src/FtpConnection.h
  9777. * src/FtpNegotiationCommand.cc
  9778. * src/FtpNegotiationCommand.h
  9779. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9780. * Release 0.14.0+1
  9781. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Bump up version number to 0.14.0+1
  9783. * src/configure.ac
  9784. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Fixed the code that refers static member variable from non-static
  9786. context.
  9787. * src/DefaultPeerStorage.cc
  9788. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. * Release 0.14.0
  9790. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Added build test script
  9792. * build_test.sh
  9793. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Updated ja.po
  9795. * src/ja.po
  9796. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Bump up version number to 0.14.0
  9798. * src/configure.ac
  9799. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Updated ja.po and fr.po. Great thanks for french translators and
  9801. Sebastien WILLEMIJNS.
  9802. * po/fr.po
  9803. * po/ja.po
  9804. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Added configure option to enable/disable epoll support.
  9806. * configure.ac
  9807. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Updated man page.
  9809. * doc/aria2c.1.txt
  9810. * doc/aria2c.1
  9811. * doc/aria2c.1.html
  9812. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Added missing default value '5' to the usage of --split option.
  9814. * src/HelpItemFactory.cc
  9815. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Filled up pieces based on the number of missing blocks, rather than
  9817. simplay the number of piece * block length.
  9818. * src/BtRequestFactory.h
  9819. * src/DefaultBtInteractive.cc
  9820. * src/DefaultBtInteractive.h
  9821. * src/DefaultBtRequestFactory.cc
  9822. * src/DefaultBtRequestFactory.h
  9823. * src/Piece.cc
  9824. * src/Piece.h
  9825. * test/BitfieldManTest.cc
  9826. * test/DefaultBtRequestFactoryTest.cc
  9827. * test/MockBtRequestFactory.h
  9828. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Made _epEvents a member variable.
  9830. * src/DownloadEngine.cc
  9831. * src/DownloadEngine.h
  9832. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. Cancel download if http redirect is bounded more than 20 times.
  9834. * src/AbstractCommand.cc
  9835. * src/HttpSkipResponseCommand.cc
  9836. * src/Request.cc
  9837. * src/Request.h
  9838. * test/RequestTest.cc
  9839. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Fixed unhandled exception(removed keyword `new').
  9841. * src/SocketCore.cc (initEPOLL)
  9842. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Removed visit(const MetaEntry*)
  9844. * src/MetaEntryVisitor.h:
  9845. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9846. and made them virtual.
  9847. * src/BencodeVisitor.h
  9848. * src/BencodeVisitor.cc
  9849. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Updated po files.
  9851. * po/aria2c.pot
  9852. * po/*.po
  9853. * po/*.gmo
  9854. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9856. the number of socket to watch out.
  9857. * src/PeerInteractionCommand.cc
  9858. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. When there is not enough space in disk when writing a chunk of data,
  9860. aria2 now prints the message to the console to warn user and aborts
  9861. its download. Not all downloads are canceled because some downloads
  9862. may use another disk or partition. BUG#1640332
  9863. * src/AbstractDiskWriter.cc
  9864. * src/PeerAbstractCommand.cc
  9865. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9866. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9867. setHaltRequested(true) to cancel download.
  9868. * src/PeerInteractionCommand.h
  9869. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9871. socket from int to sock_t as sockets are unsigned in Windows.
  9872. For AsyncNameResolver, DownloadEngine, I did additional modification
  9873. for the portion of the code changed according to epoll support.
  9874. I defined sock_t in a2netcompat.h to use sock_t without including
  9875. SocketCore.h.
  9876. * src/AsyncNameResolver.cc
  9877. * src/AsyncNameResolver.h
  9878. * src/DownloadEngine.cc
  9879. * src/DownloadEngine.h
  9880. * src/SocketCore.cc
  9881. * src/SocketCore.h
  9882. * src/a2netcompat.h
  9883. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9885. changes in the patch were applied.
  9886. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9887. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9888. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9889. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9891. a2io.h and common.h were modified.
  9892. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9893. MinGW.
  9894. * src/common.h: Changed off_t to 64 bit in MinGW.
  9895. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9897. only a2netcompat.h is modified.
  9898. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9899. directives.
  9900. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9902. only gai_strerror.h is modified.
  9903. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9904. winsock errors in MinGW.
  9905. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9907. follow sources are applied.
  9908. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9909. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9910. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9911. I included locale.h from Platform.cc.
  9912. * src/main.cc: Moved common setup/teardown code to Platform class.
  9913. * test/AllTest.cc: Use Platform class.
  9914. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9915. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9917. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9918. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9919. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9921. aria2-0.13.2+1-mingw-2.patch.
  9922. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9923. systems which don't have termious.h. I moved the directive inside of
  9924. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9925. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9926. anyway.
  9927. * src/asctime_r.h
  9928. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9929. I added 2nd argument to the prototype declaration.
  9930. * src/StringFormat.cc: Get rid of vasprintf.
  9931. * src/getaddrinfo.h: Fixed constants.
  9932. * configure.ac: Added the check for asctime_r function.
  9933. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9934. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Added writable test for Socket when the sending message is in progress.
  9936. Usually the sending message is piece message. Without wriable check,
  9937. upload latency is dropped to more than 1sec.
  9938. * src/PeerInteractionCommand.cc
  9939. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Create only requested files and files which shares a piece with
  9941. requested file in multi-torrent downloads. Directory structures are
  9942. also created in the same rule.
  9943. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9944. DiskWriterEntry as in the previous implementation.
  9945. * src/MultiDiskWriter.cc
  9946. * src/MultiFileAllocationIterator.cc
  9947. * src/MultiFileAllocationIterator.h
  9948. * test/MultiFileAllocationIteratorTest.cc
  9949. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Commented out -lprofiler
  9951. * src/Makefile.am
  9952. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Bump up version number to 0.14.0b.
  9954. * src/configure.ac
  9955. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9956. Actively establish connection to peers in seeding, when peer cache
  9957. is not full and max upload speed limit is not reached.
  9958. * src/ActivePeerConnectionCommand.cc
  9959. * src/ActivePeerConnectionCommand.h
  9960. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9961. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9962. to make room more fleshy, recently found peers.
  9963. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9964. it.
  9965. * src/DefaultPeerStorage.cc
  9966. * test/DefaultPeerStorageTest.cc
  9967. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Returns cached data only when the previous receiveHandshake() is called
  9969. with peek = true.
  9970. * src/PeerConnection.cc (receiveHandshake)
  9971. * src/PeerConnection.h (receiveHandshake)
  9972. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Changed default value of -s option from 1 to 5.
  9974. Also max value of -s option is changed from 5 to 16.
  9975. * src/HelpItemFactory.cc
  9976. * src/OptionHandlerFactory.cc
  9977. * src/option_processing.cc
  9978. * src/usage_text.h
  9979. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Changed -s options behavior. Now it means the number of connections
  9981. made simultaneously in each http/ftp download.
  9982. If 1 URL is specified, the behavior is the same with old implementation.
  9983. If -s N is given and more than N URLs are specified, first N URLs are
  9984. used and remaining URLs are used for backup. If less than N URLs are
  9985. specified, some of URLs are used more than once so that totally N
  9986. connections are made simultaneously.
  9987. * src/main.cc
  9988. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Included missing iosfwd or ostream header.
  9990. * src/RequestGroupMan.cc
  9991. * src/TaggedItem.cc
  9992. * src/TaggedItem.h
  9993. * src/Util.cc
  9994. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9996. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9997. * src/HttpConnection.cc: Included missing sstream.
  9998. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Added --bt-max-open-files option.
  10000. * src/DefaultPieceStorage.cc
  10001. * src/HelpItemFactory.cc
  10002. * src/MultiDiskAdaptor.cc
  10003. * src/MultiDiskAdaptor.h
  10004. * src/OptionHandlerFactory.cc
  10005. * src/option_processing.cc
  10006. * src/prefs.cc
  10007. * src/prefs.h
  10008. * src/usage_text.h
  10009. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Fixed the bug that aria2 aborts when a path to a directory is given
  10011. in command-line.
  10012. * src/ProtocolDetector.cc
  10013. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Limited the number files opened in each BitTorrent download. The default
  10015. value is 100. The option to change this value will be added.
  10016. * src/MultiDiskAdaptor.cc
  10017. * src/MultiDiskAdaptor.h
  10018. * src/MultiFileAllocationIterator.cc
  10019. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Fixed the bug that HTTP downloads don't start with old libraries.
  10021. * src/HttpHeaderProcessor.cc
  10022. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Use empty() instead of size() > 0.
  10024. * src/HttpConnection.cc
  10025. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Drop connection if the incoming peer ID is the same with localhost's
  10027. one. The previous implementation drops connection when incoming peer's
  10028. IP address is the same with localhost's one.
  10029. * src/PeerListenCommand.cc
  10030. * src/DefaultBtInteractive.cc
  10031. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Returns cached data without checking whether socket is readable
  10033. if the cache is available.
  10034. * src/PeerConnection.cc (receiveHandshake)
  10035. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Included stdint.h
  10037. * src/common.h
  10038. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10039. Removed duplicate HAVE_GETTIMEOFDAY
  10040. * src/Makefile.am
  10041. * src/Makefile.in
  10042. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Use interval as a minInterval when minInterval is not supplied.
  10044. * src/DefaultBtAnnounce.cc
  10045. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10047. attempt is failed, then 2nd attempt get kicked out more quickly.
  10048. And it is now static const member of DefaultBtAnnounce.
  10049. * src/DefaultBtAnnounce.h
  10050. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10051. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10052. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10053. * src/ActivePeerConnectionCommand.cc
  10054. * src/BtConstants.h
  10055. * src/BtRuntime.h
  10056. * src/DHTGetPeersCommand.cc
  10057. * src/DefaultBtAnnounce.cc
  10058. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10059. BtRuntime::MAX_PEERS.
  10060. * src/DefaultPeerStorage.h
  10061. * src/InitiatorMSEHandshakeCommand.cc
  10062. * src/PeerInitiateConnectionCommand.cc
  10063. * src/PeerInteractionCommand.cc
  10064. * src/PeerReceiveHandshakeCommand.cc
  10065. * src/TrackerWatcherCommand.cc
  10066. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Always Connect to _numNewConnection
  10068. * src/ActivePeerConnectionCommand.cc
  10069. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Made `begin' unsigned int.
  10071. * src/GrowSegment.h
  10072. * src/Piece.cc
  10073. * src/Piece.h
  10074. * src/PiecedSegment.cc
  10075. * src/PiecedSegment.h
  10076. * src/Segment.h
  10077. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Calculate piece hash when data is arrived if the data is arrived in
  10079. order. This removes additional read operation for hash calculation.
  10080. If the data is arrived in out of order, the hash is calucated when the
  10081. piece is completed. This is the same behavior as the old implementation.
  10082. * src/BtPieceMessage.cc
  10083. * src/DefaultBtProgressInfoFile.cc
  10084. * src/DefaultPieceStorage.cc
  10085. * src/DownloadCommand.cc
  10086. * src/DownloadCommand.h
  10087. * src/DownloadEngine.cc
  10088. * src/GrowSegment.cc
  10089. * src/GrowSegment.h
  10090. * src/Piece.cc
  10091. * src/Piece.h
  10092. * src/PiecedSegment.cc
  10093. * src/PiecedSegment.h
  10094. * src/Segment.h
  10095. * test/PieceTest.cc
  10096. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10097. Try to keep the ordering of outgoing piece message.
  10098. * src/DefaultBtMessageDispatcher.cc
  10099. (DefaultBtMessageDispatcher::sendMessages)
  10100. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Fixed busy loop when error/hup epoll events occur.
  10102. * src/AbstractCommand.cc
  10103. * src/PeerAbstractCommand.cc
  10104. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Added --bt-request-peer-speed-limit option, which was a constant
  10106. SLOW_SPEED_THRESHOLD.
  10107. * src/ActivePeerConnectionCommand.cc
  10108. * src/ActivePeerConnectionCommand.h
  10109. * src/BtConstants.h
  10110. * src/HelpItemFactory.cc
  10111. * src/OptionHandlerFactory.cc
  10112. * src/PeerReceiveHandshakeCommand.cc
  10113. * src/option_processing.cc
  10114. * src/prefs.cc
  10115. * src/prefs.h
  10116. * src/usage_text.h
  10117. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10118. Removed repeated call of getTopDirPath(). Instead, call it once and
  10119. cache the result.
  10120. * src/MultiDiskAdaptor.cc
  10121. * src/MultiDiskAdaptor.h
  10122. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10123. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Fixed compile error on debian etch.
  10125. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10126. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10127. it is undefined.
  10128. * src/Util.cc (ULLONG_MAX)
  10129. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10130. Added epoll support. Use epoll if it is available. If not, use select.
  10131. When async dns is enabled in compile time, epoll support is enabled
  10132. only when aria2 is built with c-ares. This condition statement is
  10133. defined in a2io.h.
  10134. Currently aria2 supports both c-ares and ares, but ares is maintained
  10135. for quite a while and debian already has c-ares package, ares support
  10136. will be dropped in the future version.
  10137. * configure.ac
  10138. * src/AbstractCommand.cc
  10139. * src/AsyncNameResolver.cc
  10140. * src/AsyncNameResolver.h
  10141. * src/Command.cc
  10142. * src/Command.h
  10143. * src/DownloadEngine.cc
  10144. * src/DownloadEngine.h
  10145. * src/PeerAbstractCommand.cc
  10146. * src/SocketCore.cc
  10147. * src/SocketCore.h
  10148. * src/a2io.h
  10149. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10151. directive.
  10152. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Do not do write operation to /dev/null file.
  10154. * src/LogFactory.cc
  10155. * src/SimpleLogger.cc
  10156. Replaced vasprintf with vsnprintf
  10157. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10158. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. * src/BtRequestMessage.cc
  10160. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10161. for segmentation fault caused by previous commit.
  10162. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Reduced the usage of gettimeofday().
  10164. * src/DefaultBtMessageDispatcher.cc
  10165. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10166. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10167. * src/RequestSlot.cc
  10168. * src/RequestSlot.h
  10169. (RequestSlot::isTimeout)
  10170. Made RequestSlot have a reference to Piece object to avoid find
  10171. Piece repeatedly.
  10172. * src/DefaultBtMessageDispatcher.cc
  10173. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10174. * src/RequestSlot.cc
  10175. * src/RequestSlot.h
  10176. (RequestSlot::getPiece)
  10177. * test/DefaultBtMessageDispatcherTest.cc
  10178. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. * src/TimeA2.cc
  10180. * src/TimeA2.h
  10181. (Time::difference): New function.
  10182. (Time::elapsed): Done optimization.
  10183. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10185. directive.
  10186. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. * src/option_processing.cc: Added missing `defined' keyword to #if
  10188. directive.
  10189. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. Bump up version number to 0.13.2+1
  10191. * src/configure.ac
  10192. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Refactored broken outstanding piece handling.
  10194. * src/DefaultPieceStorage.cc
  10195. * src/DefaultPieceStorage.h
  10196. * src/Piece.cc
  10197. * src/Piece.h
  10198. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10200. name collision of static variable and predefined macro.
  10201. * src/BtContext.cc
  10202. * src/BtContext.h
  10203. * src/CookieBoxFactory.cc
  10204. * src/CookieBoxFactory.h
  10205. * src/CookieParser.cc
  10206. * src/CookieParser.h
  10207. * src/DefaultBtContext.cc
  10208. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. * src/RequestGroup.cc
  10210. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10211. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. * Release 0.13.2
  10213. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10215. * po/fr.po
  10216. * po/ja.po
  10217. * po/aria2c.pot
  10218. * po/*.po
  10219. * po/*.gmo
  10220. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Bump up version number to 0.13.2
  10222. * src/configure.ac
  10223. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10224. Refactord.
  10225. * src/RequestGroupMan.cc
  10226. (removeStoppedGroup)
  10227. (fillRequestGroupFromReserver)
  10228. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. Fixed compile error on Ubuntu.
  10230. * src/BtPieceMessage.cc
  10231. * src/MessageDigestHelper.cc
  10232. * src/Util.cc
  10233. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10234. Fixed compile error when configured with --disable-bittorrent
  10235. * test/DownloadHandlerFactoryTest.cc
  10236. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Done make update-po
  10238. * po/aria2c.pot
  10239. * po/*.po
  10240. * po/*.gmo
  10241. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Bump up version number to 0.13.2rc.
  10243. * src/configure.ac
  10244. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Made option name bold. Updated SYNOPSIS to make it more readable.
  10246. * doc/aria2c.1.txt
  10247. * doc/aria2c.1
  10248. * doc/aria2c.1.html
  10249. * src/version_usage.cc
  10250. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Refactored. Use std::string instead of size and char*.
  10252. * Data.cc
  10253. * Data.h
  10254. * test/Data.cc
  10255. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Added trimSelf(). Rewritten trim() to use trimSelf().
  10257. * Util.cc
  10258. * Util.h
  10259. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10261. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Fixed compile error when configured with --disable-metalink.
  10263. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10264. * test/FeatureConfigTest.cc
  10265. * test/DownloadHandlerFactoryTest.cc
  10266. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Fixed compile error when configured with --without-gnutls
  10268. --without-openssl
  10269. * src/main.cc
  10270. * test/DefaultBtProgressInfoFileTest.cc
  10271. * test/SegmentManTest.cc
  10272. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Fixed compile error with OpenSSL.
  10274. * src/IteratableChunkChecksumValidator.cc
  10275. * src/LibsslDHKeyExchange.h
  10276. * src/MessageDigestHelper.cc
  10277. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Revert the default value of --max-concurrent-downloads to 5.
  10279. Revert the default value of --metalink-servers to 5.
  10280. Man pages was also updated.
  10281. * src/option_processing.cc
  10282. * doc/aria2c.1.txt
  10283. * doc/aria2c.1.html
  10284. * doc/aria2c.1
  10285. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Returns const reference:
  10287. DownloadContext::getPieceHash, DownloadContext::getName,
  10288. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10289. BtContext::getInfoHashAsString,
  10290. * src/BtContext.h
  10291. * src/DefaultBtContext.cc
  10292. * src/DefaultBtContext.h
  10293. * src/DownloadContext.h
  10294. * src/SingleFileDownloadContext.h
  10295. * test/MockBtContext.h
  10296. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. * src/RequestGroup.h (getDir): Removed.
  10298. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. Returns const reference. The internal urlencode function was optimized
  10300. a little bit.
  10301. * src/Request.cc
  10302. * src/Request.h
  10303. * src/HttpRequest.cc
  10304. * src/HttpRequest.h
  10305. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Defined option name and possible values as std::string to reduce
  10307. temporary string object creation in runtime.
  10308. * src/HelpItemFactory.cc
  10309. * src/LogFactory.cc
  10310. * src/Option.cc
  10311. * src/OptionHandlerFactory.cc
  10312. * src/option_processing.cc
  10313. * src/prefs.cc
  10314. * src/prefs.h
  10315. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. Return const reference.
  10317. * src/DownloadHandlerConstants.cc
  10318. * src/DownloadHandlerConstants.h
  10319. (getMetalinkExtensions)
  10320. (getMetalinkContentTypes)
  10321. (getBtExtensions)
  10322. (getBtContentTypes)
  10323. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. * src/HttpHeader.cc (get): Rewritten.
  10325. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Make HttpHeader::getFirst(...) return const reference.
  10327. * src/HttpHeader.cc
  10328. * src/HttpHeader.h
  10329. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10331. it with V_TRUE.
  10332. * src/DefaultPieceStorage.cc
  10333. * src/DownloadCommand.cc
  10334. * src/FtpNegotiationCommand.cc
  10335. * src/HttpRequest.cc
  10336. * src/InitiateConnectionCommand.cc
  10337. * src/RequestGroup.cc
  10338. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Made Option::get(...) return const reference of std::string.
  10340. * src/Option.cc
  10341. * src/Option.h
  10342. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Replaced std:copy with insert.
  10344. * src/DefaultBtMessageDispatcher.cc
  10345. * src/DefaultPieceStorage.cc
  10346. * src/DownloadEngineFactory.cc
  10347. * src/RequestGroup.cc
  10348. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Included SocketCore.h to fix compiler warning.
  10350. * src/InitiateConnectionCommand.cc
  10351. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Put piece selection strategy algorithm to RarestPieceSelector class,
  10353. Added a switch to choose whether randomized selection so that unit
  10354. tests emit same results in, possibly, win32.
  10355. * src/DefaultPieceStorage.cc
  10356. * src/DefaultPieceStorage.h
  10357. * src/RarestPieceSelector.cc
  10358. * src/RarestPieceSelector.h
  10359. * test/DefaultPieceStorageTest.cc
  10360. * test/RarestPieceSelectorTest.cc
  10361. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. Don't pool connection if HTTP proxy is enabled.
  10363. * src/FtpFinishDownloadCommand.cc
  10364. * src/FtpNegotiationCommand.cc
  10365. * src/HttpSkipResponseCommand.cc
  10366. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10368. * src/AbstractCommand.cc
  10369. * src/AbstractCommand.h
  10370. * src/ActivePeerConnectionCommand.cc
  10371. * src/FtpInitiateConnectionCommand.cc
  10372. * src/HttpInitiateConnectionCommand.cc
  10373. * src/InitiateConnectionCommandFactory.cc
  10374. * src/PeerAbstractCommand.cc
  10375. * src/PeerAbstractCommand.h
  10376. * src/PeerInitiateConnectionCommand.cc
  10377. * src/TrackerWatcherCommand.cc
  10378. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Sort RequestSlot in ascending order and manipulate them using
  10380. lower_bound.
  10381. * src/DefaultBtMessageDispatcher.cc
  10382. * src/DefaultBtMessageDispatcher.h
  10383. (getMessageQueue): Added const qualifier.
  10384. (getRequestSlots): Added const qualifier.
  10385. (sendMessages): Use empty() instead of size().
  10386. (doCancelSendingPieceAction): Use HandleEvent object.
  10387. (doAbortOutstandingRequestAction): Rewritten.
  10388. (doChokedAction): Rewritten.
  10389. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10390. (isOutstandingRequest): Rewritten.
  10391. (getOutstandingRequest): Rewritten.
  10392. (removeOutstandingRequest): Rewritten.
  10393. (addOutstandingRequest): Rewritten.
  10394. * src/RequestSlot.cc
  10395. * src/RequestSlot.h
  10396. (operator=): Rewritten.
  10397. (operator!=): New function.
  10398. (operator<): New function.
  10399. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. * src/DefaultBtRequestFactory.cc
  10401. (doChokedAction): Rewritten.
  10402. (removeCompletedPiece): Rewritten.
  10403. (removeTargetPiece): Rewritten.
  10404. (createRequestMessages): Added the debug log.
  10405. (createRequestMessagesOnEndGame: Added the debug log.
  10406. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Added the debug log message.
  10408. * src/BtPieceMessage.cc (doReceivedAction)
  10409. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10411. used lower_bound to process them rather than linear search.
  10412. * src/DHTPeerAnnounceStorage.cc
  10413. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10415. peer has at least one completed piece.
  10416. * src/Peer.cc
  10417. * src/Peer.h
  10418. * src/PeerInteractionCommand.cc
  10419. * src/PeerSessionResource.cc
  10420. * src/PeerSessionResource.h
  10421. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Removed unnecessary sorting
  10423. * src/DefaultPieceStorage (DefaultPieceStorage)
  10424. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Rewritten the portion of the code that mangaes allowed fast indexes.
  10426. * src/PeerSessionResource.cc
  10427. * src/PeerSessionResource.h
  10428. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Removed the invalid string including '\r' from ru.po and
  10430. did make update-po.
  10431. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Added --log-level and --summary-interval to man page.
  10433. * doc/aria2c.1.txt
  10434. * doc/aria2c.1.html
  10435. * doc/aria2c.1
  10436. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Added --log-level option to specify log level. Log messages under
  10438. the specified level are not output. Default value is `debug'.
  10439. * src/HelpItemFactory.cc
  10440. * src/LogFactory.cc
  10441. * src/LogFactory.h
  10442. * src/Logger.h
  10443. * src/OptionHandlerFactory.cc
  10444. * src/SimpleLogger.cc
  10445. * src/SimpleLogger.h
  10446. * src/main.cc
  10447. * src/option_processing.cc
  10448. * src/prefs.h
  10449. * src/usage_text.h
  10450. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Print download progress summary of all parallel downloads in specified
  10452. interval, default 60 secs. While aria2 could download several files
  10453. in parallel (see -j option), it displayed just first download progress,
  10454. and the other downloads are hidden from the users. This new feature
  10455. prints all downloads currently in-progress to the console so that you
  10456. can check the status of all downloads. The interval can be adjusted
  10457. by --summary-interval option.
  10458. The progress readout is now cut so that all fits in the one line of
  10459. console.
  10460. * src/ConsoleStatCalc.cc
  10461. * src/ConsoleStatCalc.h
  10462. * src/HelpItemFactory.cc
  10463. * src/OptionHandlerFactory.cc
  10464. * src/RequestGroupMan.cc
  10465. * src/RequestGroupMan.h
  10466. * src/main.cc
  10467. * src/option_processing.cc
  10468. * src/prefs.h
  10469. * src/usage_text.h
  10470. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10472. * src/DownloadEngine.cc (DownloadEngine)
  10473. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10474. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10475. defined.
  10476. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10477. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Use erase+lower_bound+insert instead of sort.
  10479. * src/DefaultPieceStorage.cc (addPieceStats)
  10480. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10481. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10482. * src/A2STR.cc
  10483. * src/A2STR.h
  10484. * src/OptionParser.cc (parse)
  10485. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Defined fake filename `[tracker.announce]' as static const std::string.
  10487. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10488. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Defined default filename `index.html' as static const std::string
  10490. * src/SingleFileDownloadContext.cc
  10491. * src/SingleFileDownloadContext.h
  10492. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Defined "[MEMORY]" as static const std::string.
  10494. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10495. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. Defined control file's version number as static const std::string.
  10497. * src/DefaultBtProgressInfoFile.cc
  10498. * src/DefaultBtProgressInfoFile.h
  10499. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Use Request::METHOD_GET
  10501. * src/RequestGroup.cc (createNextCommandWithAdj)
  10502. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Defined "OK", "ERR", "INPR" as static const std::string
  10504. * src/RequestGroupMan.cc (showDownloadResults)
  10505. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Defined default client used in extended handshake as static const
  10507. std::string
  10508. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10509. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10511. * src/HttpConnection.cc (eraseConfidentialInfo)
  10512. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10513. Defined default ftp user and password as static const std::string
  10514. * src/AuthConfigFactory.cc
  10515. * src/AuthConfigFactory.h
  10516. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Defined strings used in netrc as static const std::string
  10518. * src/Netrc.cc
  10519. * src/Netrc.h
  10520. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Defined HTTP status as static const std::string
  10522. * src/AbstractProxyResponseCommand.cc
  10523. * src/HttpHeader.cc
  10524. * src/HttpHeader.h
  10525. * src/HttpResponse.cc
  10526. * src/HttpResponseCommand.cc
  10527. * src/HttpSkipResponseCommand.cc
  10528. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Defined "\r\n", "A", "I" as static const std::string
  10530. * src/A2STR.cc
  10531. * src/A2STR.h
  10532. * src/FtpConnection.cc
  10533. * src/FtpConnection.h
  10534. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Added COLON_C(".") and used it in Request::parseUrl()
  10536. * src/A2STR.cc
  10537. * src/A2STR.h
  10538. * src/Request.cc (parseUrl)
  10539. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. Changed the type of padName from `const std::string&' to `const char*'.
  10541. * src/MSEHandshake.cc (verifyPadLength)
  10542. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Defined "sha1" as static const std::string.
  10544. * src/MetalinkParserController.cc
  10545. * src/MetalinkParserController.h
  10546. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10547. Defined message digest algorithm name as static const std::string
  10548. * src/DHTTokenTracker.cc
  10549. * src/DHTUtil.cc
  10550. * src/DefaultBtContext.cc
  10551. * src/MSEHandshake.cc
  10552. * src/MessageDigestHelper.cc
  10553. * src/Peer.cc
  10554. * src/messageDigest.cc
  10555. * src/messageDigest.h
  10556. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Made string literals used in SAX parser static const std::string.
  10558. * src/FileMetalinkParserState.cc
  10559. * src/FileMetalinkParserState.h
  10560. * src/FilesMetalinkParserState.cc
  10561. * src/FilesMetalinkParserState.h
  10562. * src/InitialMetalinkParserState.cc
  10563. * src/InitialMetalinkParserState.h
  10564. * src/MetalinkMetalinkParserState.cc
  10565. * src/MetalinkMetalinkParserState.h
  10566. * src/PiecesMetalinkParserState.cc
  10567. * src/PiecesMetalinkParserState.h
  10568. * src/ResourcesMetalinkParserState.cc
  10569. * src/ResourcesMetalinkParserState.h
  10570. * src/VerificationMetalinkParserState.cc
  10571. * src/VerificationMetalinkParserState.h
  10572. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10574. * src/A2STR.cc
  10575. * src/A2STR.h
  10576. * src/File.cc
  10577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. Defined static const std::string IP("ip"), PORT("port") and use them
  10579. instead of string literals.
  10580. * src/DefaultPeerListProcessor.cc
  10581. * src/DefaultPeerListProcessor.h
  10582. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Made string literals for torrent file processing static const
  10584. std::string.
  10585. * src/BtContext.cc
  10586. * src/BtContext.h
  10587. * src/DefaultBtContext.cc
  10588. * src/DefaultBtContext.h
  10589. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10590. Made string literal for tracker response static const std::string
  10591. * src/BtAnnounce.cc
  10592. * src/BtAnnounce.h
  10593. * src/DefaultBtAnnounce.cc
  10594. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Use DHTMessage::T instead of "t".
  10596. * src/DHTMessageTracker.cc (messageArrived)
  10597. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Made keyName static const. Made trimmed charset static const
  10599. std::string.
  10600. * src/Util.cc (getContentDispositionFilename)
  10601. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. Made USER_AGENT const. Made "/" static const std::string.
  10603. * src/A2STR.cc
  10604. * src/A2STR.h
  10605. * src/HttpRequest.cc
  10606. * src/HttpRequest.h
  10607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Made string listeral to static const std::string:
  10609. "Content-Range", "Content-Length"
  10610. * src/HttpHeader.cc
  10611. * src/HttpHeader.h
  10612. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Made string listeral to static const std::string.
  10614. * src/HttpConnection.cc
  10615. * src/HttpHeader.cc
  10616. * src/HttpHeader.h
  10617. * src/HttpResponse.cc
  10618. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. Made string listeral to static const std::string.
  10620. * src/A2STR.cc
  10621. * src/A2STR.h
  10622. * src/SimpleLogger.cc
  10623. * src/SimpleLogger.h
  10624. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Made string literal to static const std::string.
  10626. Rewritten CookieParser::setField.
  10627. * src/A2STR.cc
  10628. * src/A2STR.h
  10629. * src/CookieBoxFactory.cc
  10630. * src/CookieBoxFactory.h
  10631. * src/CookieParser.cc
  10632. * src/CookieParser.h
  10633. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Made string literal to static const std::string
  10635. * src/DHTAbstractMessage.cc
  10636. * src/DHTAnnouncePeerMessage.cc
  10637. * src/DHTAnnouncePeerMessage.h
  10638. * src/DHTAnnouncePeerReplyMessage.cc
  10639. * src/DHTAnnouncePeerReplyMessage.h
  10640. * src/DHTFindNodeMessage.cc
  10641. * src/DHTFindNodeMessage.h
  10642. * src/DHTFindNodeReplyMessage.cc
  10643. * src/DHTFindNodeReplyMessage.h
  10644. * src/DHTGetPeersMessage.cc
  10645. * src/DHTGetPeersMessage.h
  10646. * src/DHTGetPeersReplyMessage.cc
  10647. * src/DHTGetPeersReplyMessage.h
  10648. * src/DHTMessage.cc
  10649. * src/DHTMessage.h
  10650. * src/DHTMessageFactoryImpl.cc
  10651. * src/DHTMessageReceiver.cc
  10652. * src/DHTPingMessage.cc
  10653. * src/DHTPingMessage.h
  10654. * src/DHTPingReplyMessage.cc
  10655. * src/DHTPingReplyMessage.h
  10656. * src/DHTQueryMessage.cc
  10657. * src/DHTQueryMessage.h
  10658. * src/DHTResponseMessage.cc
  10659. * src/DHTResponseMessage.h
  10660. * src/DHTUnknownMessage.cc
  10661. * src/DHTUnknownMessage.h
  10662. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Made string literal to static const std::string
  10664. * src/BtChokeMessage.cc (toString)
  10665. * src/BtHaveAllMessage.cc (toString)
  10666. * src/BtHaveNoneMessage.cc (toString)
  10667. * src/BtInterestedMessage.cc (toString)
  10668. * src/BtNotInterestedMessage.cc (toString)
  10669. * src/BtUnchokeMessage.cc (toString)
  10670. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Replaced "" with static const variable A2STR::NIL.
  10672. Replaced string comparison against "" with std::string::empty().
  10673. Added PROTO_* to Request class and use them as a protocol string
  10674. constant.
  10675. Made "started", "stopped", "completed" static const variable in
  10676. AnnounceList class.
  10677. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Updated translations. Great thanks to translators.
  10679. * po/ca.po
  10680. * po/de.po
  10681. * po/fr.po
  10682. * po/it.po
  10683. * po/ja.po
  10684. * po/ru.po
  10685. * po/zh_CN.po
  10686. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Updated man page; categorized options and fixed typo.
  10688. * doc/aria2c.1.txt
  10689. * doc/aria2c.1.html
  10690. * doc/aria2c.1
  10691. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Removed const ref
  10693. * src/MetalinkEntry.cc (AddProtocolPreference)
  10694. * src/RequestGroup.cc (FindServerHostByHostname)
  10695. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Rewritten Accept-Features handling.
  10697. * src/HttpRequestCommand.cc (createHttpRequest)
  10698. * src/a2functional.h
  10699. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Changed method signature:
  10701. DHTAbstractNodeLookupTask::toEntries
  10702. * src/DHTAbstractNodeLookupTask.cc
  10703. * src/DHTAbstractNodeLookupTask.h
  10704. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Changed method signature:
  10706. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10707. * src/BtContext.h
  10708. * src/DefaultBtContext.cc
  10709. * src/DefaultBtContext.h
  10710. * src/DefaultBtInteractive.cc
  10711. * test/DefaultBtContextTest.cc
  10712. * test/MockBtContext.h
  10713. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Changed method signature:
  10715. MultiFileAllocationIterator::makeDiskWriterEntries
  10716. * src/MultiFileAllocationIterator.cc
  10717. * src/MultiFileAllocationIterator.h
  10718. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. Changed method sinature:
  10720. MetalinkEntry::toFileEntry,
  10721. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10722. Metalinker::queryEntry
  10723. * src/Metalink2RequestGroup.cc
  10724. * src/MetalinkEntry.cc
  10725. * src/MetalinkEntry.h
  10726. * src/MetalinkHelper.cc
  10727. * src/MetalinkHelper.h
  10728. * src/Metalinker.cc
  10729. * src/Metalinker.h
  10730. * src/main.cc
  10731. * test/MetalinkHelperTest.cc
  10732. * test/MetalinkerTest.cc
  10733. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Changed method sinature:
  10735. RequestGroup::getURIs
  10736. * src/RequestGroup.cc
  10737. * src/RequestGroup.h
  10738. * test/Metalink2RequestGroupTest.cc
  10739. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Changed method signature:
  10741. PeerListProcessor::extractPeer
  10742. * src/CompactPeerListProcessor.cc
  10743. * src/CompactPeerListProcessor.h
  10744. * src/DefaultBtAnnounce.cc
  10745. * src/DefaultPeerListProcessor.cc
  10746. * src/DefaultPeerListProcessor.h
  10747. * src/DelegatingPeerListProcessor.cc
  10748. * src/DelegatingPeerListProcessor.h
  10749. * src/PeerListProcessor.h
  10750. * src/UTPexExtensionMessage.cc
  10751. * test/DefaultPeerListProcessorTest.cc
  10752. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Changed method signature:
  10754. BtRequestFactory::createRequestMessages,
  10755. BtRequestFactory::createRequestMessagesOnEndGame
  10756. * src/BtRequestFactory.h
  10757. * src/DefaultBtInteractive.cc
  10758. * src/DefaultBtRequestFactory.cc
  10759. * src/DefaultBtRequestFactory.h
  10760. * test/DefaultBtRequestFactoryTest.cc
  10761. * test/MockBtRequestFactory.h
  10762. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10763. Changed method signature:
  10764. PieceStorage::getInFlightPieces
  10765. * src/DefaultBtProgressInfoFile.cc
  10766. * src/DefaultPieceStorage.cc
  10767. * src/DefaultPieceStorage.h
  10768. * src/PieceStorage.h
  10769. * src/UnknownLengthPieceStorage.cc
  10770. * src/UnknownLengthPieceStorage.h
  10771. * test/DefaultBtProgressInfoFileTest.cc
  10772. * test/MockPieceStorage.h
  10773. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. Changed method signature:
  10775. PostDownloadHandler::getNextRequestGroups
  10776. Metalink2RequestGroup::generate
  10777. RequestGroup::postDownloadProcessing
  10778. * src/BtPostDownloadHandler.cc
  10779. * src/BtPostDownloadHandler.h
  10780. * src/Metalink2RequestGroup.cc
  10781. * src/Metalink2RequestGroup.h
  10782. * src/MetalinkPostDownloadHandler.cc
  10783. * src/MetalinkPostDownloadHandler.h
  10784. * src/PostDownloadHandler.h
  10785. * src/RequestGroup.cc
  10786. * src/RequestGroup.h
  10787. * src/RequestGroupMan.cc
  10788. * src/main.cc
  10789. * test/BtPostDownloadHandlerTest.cc
  10790. * test/Metalink2RequestGroupTest.cc
  10791. * test/MetalinkPostDownloadHandlerTest.cc
  10792. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10793. Rewritten AccRequestGroup
  10794. * src/main.cc
  10795. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10796. Rewritten.
  10797. * src/TaggedItem.cc (toTagString)
  10798. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. Rewritten Accept-Features handling.
  10800. * src/HttpRequestCommand.cc (createHttpRequest)
  10801. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Rewritten accept types handling.
  10803. * HttpRequest.cc (createRequest)
  10804. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Rewritten
  10806. * src/FeatureConfig.cc (featureSummary)
  10807. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Changed method signature:
  10809. PeerStorage::getActivePeers
  10810. * src/DHTPeerAnnounceEntry.cc
  10811. * src/DefaultPeerStorage.cc
  10812. * src/DefaultPeerStorage.h
  10813. * src/PeerStorage.h
  10814. * test/DefaultPeerStorageTest.cc
  10815. * test/MockPeerStorage.h
  10816. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Changed method signature:
  10818. DHTPeerAnnounceStorage::getPeers,
  10819. DHTPeerAnnounceEntry::getPeers
  10820. * src/DHTGetPeersMessage.cc
  10821. * src/DHTPeerAnnounceEntry.cc
  10822. * src/DHTPeerAnnounceEntry.h
  10823. * src/DHTPeerAnnounceStorage.cc
  10824. * src/DHTPeerAnnounceStorage.h
  10825. * test/DHTAnnouncePeerMessageTest.cc
  10826. * test/DHTPeerAnnounceEntryTest.cc
  10827. * test/DHTPeerAnnounceStorageTest.cc
  10828. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. Changed method signature:
  10830. NameResolver::resolve
  10831. * src/DHTEntryPointNameResolveCommand.cc
  10832. * src/InitiateConnectionCommand.cc
  10833. * src/NameResolver.cc
  10834. * src/NameResolver.h
  10835. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Changed method signature:
  10837. PieceStorage::getAdvertisedPieceIndexes
  10838. * src/DefaultBtInteractive.cc
  10839. * src/DefaultPieceStorage.cc
  10840. * src/DefaultPieceStorage.h
  10841. * src/PieceStorage.h
  10842. * src/UnknownLengthPieceStorage.h
  10843. * test/MockPieceStorage.h
  10844. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. Changed method signature:
  10846. SegmentMan::getInFlightSegment
  10847. * src/AbstractCommand.cc
  10848. * src/SegmentMan.cc
  10849. * src/SegmentMan.h
  10850. * test/SegmentManTest.cc
  10851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Changed method signature:
  10853. DHTAbstractNodeLookupTask::getNodesFromMessage
  10854. * src/DHTAbstractNodeLookupTask.cc
  10855. * src/DHTAbstractNodeLookupTask.h
  10856. * src/DHTNodeLookupTask.cc
  10857. * src/DHTNodeLookupTask.h
  10858. * src/DHTPeerLookupTask.cc
  10859. * src/DHTPeerLookupTask.h
  10860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10862. * src/AbstractCommand.cc
  10863. * src/BtCheckIntegrityEntry.cc
  10864. * src/BtCheckIntegrityEntry.h
  10865. * src/BtFileAllocationEntry.cc
  10866. * src/BtFileAllocationEntry.h
  10867. * src/BtSetup.cc
  10868. * src/BtSetup.h
  10869. * src/CheckIntegrityCommand.cc
  10870. * src/CheckIntegrityEntry.h
  10871. * src/ChecksumCheckIntegrityEntry.cc
  10872. * src/ChecksumCheckIntegrityEntry.h
  10873. * src/DHTSetup.cc
  10874. * src/DHTSetup.h
  10875. * src/DownloadEngine.cc
  10876. * src/FileAllocationCommand.cc
  10877. * src/FileAllocationEntry.h
  10878. * src/RequestGroup.cc
  10879. * src/RequestGroup.h
  10880. * src/RequestGroupMan.cc
  10881. * src/RequestGroupMan.h
  10882. * src/StreamCheckIntegrityEntry.cc
  10883. * src/StreamCheckIntegrityEntry.h
  10884. * src/StreamFileAllocationEntry.cc
  10885. * src/StreamFileAllocationEntry.h
  10886. * src/TrackerWatcherCommand.cc
  10887. * src/a2functional.h
  10888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Changed method signature:
  10890. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10891. DHTBucket::getGoodNodes,
  10892. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10893. * src/BNode.cc
  10894. * src/BNode.h
  10895. * src/DHTAbstractNodeLookupTask.cc
  10896. * src/DHTAutoSaveCommand.cc
  10897. * src/DHTBucket.cc
  10898. * src/DHTBucket.h
  10899. * src/DHTBucketRefreshTask.cc
  10900. * src/DHTFindNodeMessage.cc
  10901. * src/DHTGetPeersMessage.cc
  10902. * src/DHTRoutingTable.cc
  10903. * src/DHTRoutingTable.h
  10904. * test/BNodeTest.cc
  10905. * test/DHTBucketTest.cc
  10906. * test/DHTRoutingTableTest.cc
  10907. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10908. In piece selection functions, Pass std::deque<...> by reference rather
  10909. than returning it.
  10910. * src/BitfieldMan.cc
  10911. * src/BitfieldMan.h
  10912. * src/DefaultBtRequestFactory.cc
  10913. * src/DefaultPieceStorage.cc
  10914. * src/Piece.cc
  10915. * src/Piece.h
  10916. * test/BitfieldManTest.cc
  10917. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Implemented rarest piece first piece selection strategy.
  10919. * src/AbstractBtMessage.cc
  10920. * src/AbstractBtMessage.h
  10921. * src/BitfieldMan.cc
  10922. * src/BitfieldMan.h
  10923. * src/BtBitfieldMessage.cc
  10924. * src/BtHaveAllMessage.cc
  10925. * src/BtHaveMessage.cc
  10926. * src/DefaultPieceStorage.cc
  10927. * src/DefaultPieceStorage.h
  10928. * src/PeerInteractionCommand.cc
  10929. * src/PieceStorage.h
  10930. * src/UnknownLengthPieceStorage.h
  10931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. Rewritten readData and writeData.
  10933. * src/MultiDiskAdaptor.cc
  10934. * src/MultiDiskAdaptor.h
  10935. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. Move \n out of the message "Usage: ...".
  10937. * src/version_usage.cc
  10938. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Bump up version number to 0.13.2b.
  10940. * configure.ac
  10941. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Added const qualifier to argument Exception& e.
  10943. * src/Logger.h
  10944. * src/SimpleLogger.cc
  10945. * src/SimpleLogger.h
  10946. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Pool connection when CWD, SIZE command fails.
  10948. * src/FtpNegotiationCommand.cc
  10949. * src/FtpNegotiationCommand.h
  10950. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10952. * src/HttpResponseCommand.cc
  10953. * src/HttpSkipResponseCommand.cc
  10954. * src/HttpSkipResponseCommand.h
  10955. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Pool connection when a server returns 4xx, 5xx responses.
  10957. * src/HttpNullDownloadCommand.cc
  10958. * src/HttpNullDownloadCommand.h
  10959. * src/HttpResponse.cc
  10960. * src/HttpResponse.h
  10961. * src/HttpResponseCommand.cc
  10962. * src/HttpResponseCommand.h
  10963. * test/HttpResponseTest.cc
  10964. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Print usage when no URL is specifed or bad command-line option is
  10966. specified.
  10967. * src/HelpItemFactory.cc
  10968. * src/help_tags.h
  10969. * src/option_processing.cc
  10970. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10971. Removed duplicate log message.
  10972. * src/AbstractCommand.cc (asyncResolveHostname)
  10973. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10975. Changed -j option's default value from 5 to 1.
  10976. Added new examples using protocol auto detection feature.
  10977. Removed -T, -M usage where it can be omitted.
  10978. * doc/aria2c.1.txt
  10979. * doc/aria2c.1.html
  10980. * doc/aria2c.1.txt
  10981. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10982. Updated command-line usage text, so that it tells users that they
  10983. can specify any number of torrent files and metalink files in
  10984. command-line.
  10985. * src/version_usage.cc
  10986. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Changed the default value of -j option to 1.
  10988. * src/HelpItemFactory.cc
  10989. * src/option_processing.cc
  10990. * src/usage_text.h
  10991. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. Added the ability to reuse connection in FTP and it is enabled by
  10993. default. It can be disabled by --ftp-reuse-connection=false option.
  10994. * src/Command.cc
  10995. * src/DownloadCommand.cc
  10996. * src/FtpDownloadCommand.cc
  10997. * src/FtpDownloadCommand.h
  10998. * src/FtpFinishDownloadCommand.cc
  10999. * src/FtpFinishDownloadCommand.h
  11000. * src/FtpInitiateConnectionCommand.cc
  11001. * src/FtpNegotiationCommand.cc
  11002. * src/FtpNegotiationCommand.h
  11003. * src/HelpItemFactory.cc
  11004. * src/Makefile.am
  11005. * src/Makefile.in
  11006. * src/OptionHandlerFactory.cc
  11007. * src/option_processing.cc
  11008. * src/prefs.h
  11009. * src/usage_text.h
  11010. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. Call Command::transitStatus() before calling Command::execute(),
  11012. so that the status change made in execute() is not cleared.
  11013. * src/DownloadEngine.cc
  11014. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Removed forward declaration of SocketCore class.
  11016. * src/HttpDownloadCommand.h
  11017. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11018. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11019. in InitiateConnectionCommandFactory. They should be set only when
  11020. the protocol is HTTP or HTTPS.
  11021. * src/InitiateConnectionCommandFactory.cc
  11022. * src/RequestGroup.cc
  11023. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Fixed infinite loop in checksum checking.
  11025. * src/IteratableChecksumValidator.cc
  11026. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11027. Set _supportsPersistentConnection to true by default.
  11028. * src/Request.cc
  11029. * src/RequestGroup.cc
  11030. * test/HttpRequestTest.cc
  11031. * test/RequestTest.cc
  11032. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. Added timeout to socket pool. The default timeout is 15 seconds,
  11034. which is the same value Apache uses.
  11035. * src/DownloadEngine.cc
  11036. * src/DownloadEngine.h
  11037. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. Fixed misuse of multimap::find()
  11039. * src/HttpHeader.cc
  11040. * test/HttpHeaderTest.cc
  11041. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11043. option.
  11044. The asynchronous DNS is not capable of IPv6 yet.
  11045. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11046. least for HTTP download.
  11047. * src/AbstractCommand.cc
  11048. * src/AbstractCommand.h
  11049. * src/AsyncNameResolver.cc
  11050. * src/AsyncNameResolver.h
  11051. * src/DHTEntryPointNameResolveCommand.cc
  11052. * src/DHTEntryPointNameResolveCommand.h
  11053. * src/DownloadEngine.cc
  11054. * src/DownloadEngine.h
  11055. * src/FtpInitiateConnectionCommand.cc
  11056. * src/FtpInitiateConnectionCommand.h
  11057. * src/HelpItemFactory.cc
  11058. * src/HttpInitiateConnectionCommand.cc
  11059. * src/HttpInitiateConnectionCommand.h
  11060. * src/InitiateConnectionCommand.cc
  11061. * src/InitiateConnectionCommand.h
  11062. * src/Makefile.am
  11063. * src/Makefile.in
  11064. * src/NameResolver.cc
  11065. * src/NameResolver.h
  11066. * src/OptionHandlerFactory.cc
  11067. * src/SocketCore.cc
  11068. * src/SocketCore.h
  11069. * src/Util.cc
  11070. * src/Util.h
  11071. * src/option_processing.cc
  11072. * src/prefs.h
  11073. * src/usage_text.h
  11074. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Updated man page: --quiet, --header were added.
  11076. --metalink-servers and --enable-http-keep-alive option were updated.
  11077. * doc/aria2c.1
  11078. * doc/aria2c.1.html
  11079. * doc/aria2c.1.txt
  11080. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Enable HTTP keep-alive by default.
  11082. * src/HelpItemFactory.cc
  11083. * src/option_processing.cc
  11084. * src/usage_text.h
  11085. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Disable http keep-alive if the remote server is not HTTP/1.1.
  11087. * src/HttpConnection.cc
  11088. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Receive content body of 302 response so that the connection can be
  11090. reused later when http keep-alive is enabled.
  11091. * src/HttpNullDownloadCommand.cc
  11092. * src/HttpNullDownloadCommand.h
  11093. * src/HttpResponseCommand.cc
  11094. * src/HttpResponseCommand.h
  11095. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11096. const SharedHandle<Request> -> const SharedHandle<Request>&
  11097. * src/FtpDowndloadCommand.cc
  11098. * src/FtpDowndloadCommand.h
  11099. * src/HttpDownloadCommand.cc
  11100. * src/HttpDownloadCommand.h
  11101. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. Fixed the bug that the control file(.aria2 file) is not renamed
  11103. according to tryAutoFileRenaming().
  11104. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11105. its control file exist, use them and continue download.
  11106. The old implementation didn't take into account of control file's
  11107. existence, so basically you couldn't continue download of renamed file.
  11108. * src/BtProgressInfoFile.h
  11109. * src/DefaultBtProgressInfoFile.cc
  11110. * src/DefaultBtProgressInfoFile.h
  11111. * src/NullProgressInfoFile.h
  11112. * src/RequestGroup.cc
  11113. * test/DefaultBtProgressInfoFileTest.cc
  11114. * test/MockBtProgressInfoFile.h
  11115. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Change the default value of --metalink-servers option from `5' to `1'.
  11117. * src/HelpItemFactory.cc
  11118. * src/option_processing.cc
  11119. * src/usage_text.h
  11120. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Reimplemented transparent metalink using Accept request header.
  11122. * src/HttpRequest.cc
  11123. * src/HttpRequest.h
  11124. * src/HttpRequestCommand.cc
  11125. * src/Metalink2RequestGroup.cc
  11126. * src/RequestGroup.cc
  11127. * src/RequestGroup.h
  11128. * test/HttpRequestTest.cc
  11129. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Bump up version number to 0.13.2a
  11131. * configure.ac
  11132. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Updated configure.ac using the result of autoscan.
  11134. * configure.ac
  11135. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Fixed compilation error without gcrypt/openssl.
  11137. * src/DownloadCommand.cc
  11138. * src/DownloadCommand.h
  11139. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. Reorganized version information so that it can be displayed in a
  11141. standard terminal screen without scrolling.
  11142. Removed http, ftp from Configuration section, because they are always
  11143. enabled.
  11144. * src/FeatureConfig.cc
  11145. * src/FeatureConfig.h
  11146. * src/main.cc
  11147. * src/messageDigest.cc
  11148. * src/messageDigest.h
  11149. * src/version_usage.cc
  11150. * test/FeatureConfigTest.cc
  11151. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. Masked user ID in log.
  11153. * src/FtpConnection.cc (sendUser)
  11154. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Removed query part from filename in HTTP download. The query part means
  11156. the substring after "?" in URL. Firefox seems do the same thing.
  11157. A query part is sometimes very long and not suitable to filename,
  11158. so I think it is better to remove it from filename.
  11159. * src/HttpRequest.cc
  11160. * src/HttpRequest.h
  11161. * src/Request.cc
  11162. * src/Request.h
  11163. * test/HttpRequestTest.cc
  11164. * test/RequestTest.cc
  11165. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Rewritten Exception class. Throw exception object, not its pointer and
  11167. catch by reference, so that remove problematic delete operator for
  11168. catched exception.
  11169. * src/Exception.cc
  11170. * src/Exception.h
  11171. * test/ExceptionTest.cc
  11172. * src/*: All files throwing/catching exception.
  11173. * test/*: All files throwing/catching exception.
  11174. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11175. Now auto protocol detection is enabled without -Z option.
  11176. But there is a important difference between with/without -Z optoin.
  11177. For example, if you type:
  11178. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11179. then, aria2 interprets there are 3 request groups:
  11180. (1) http://host/file, http://mirror/file <-- multi-source download
  11181. (2) file1.torrent
  11182. (3) file2.metalink
  11183. On the other hand, if you invoke above command with -Z option, it is
  11184. interpreted as 4 request groups:
  11185. (1) http://host/file
  11186. (2) file1.torrent
  11187. (3) file2.metalink
  11188. (4) http://mirror/file
  11189. I think usually user don't mix multi-source URLs and torrent files, so
  11190. there is no big problem here.
  11191. * src/main.cc
  11192. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Fixed the bug that causes segmentaion fault when reading XML containing
  11194. unescapsed character like '&'.
  11195. Also a modification was made which avoids adding unnecessary
  11196. characters stack and appending unused string.
  11197. * src/ExpatMetalinkProcessor.cc
  11198. * src/FileMetalinkParserState.h
  11199. * src/FilesMetalinkParserState.h
  11200. * src/FinMetalinkParserState.h
  11201. * src/HashMetalinkParserState.h
  11202. * src/InitialMetalinkParserState.h
  11203. * src/LanguageMetalinkParserState.h
  11204. * src/MetalinkMetalinkParserState.h
  11205. * src/MetalinkParserState.h
  11206. * src/MetalinkParserStateMachine.cc
  11207. * src/MetalinkParserStateMachine.h
  11208. * src/OSMetalinkParserState.h
  11209. * src/PieceHashMetalinkParserState.h
  11210. * src/PiecesMetalinkParserState.h
  11211. * src/ResourcesMetalinkParserState.h
  11212. * src/SizeMetalinkParserState.h
  11213. * src/SkipTagMetalinkParserState.h
  11214. * src/URLMetalinkParserState.h
  11215. * src/VerificationMetalinkParserState.h
  11216. * src/VersionMetalinkParserState.h
  11217. * src/XML2SAXMetalinkProcessor.cc
  11218. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Added StringFormat class, which internally calls vasprintf.
  11220. operator<< is defined for this class, so it can be used with iostream
  11221. classes nicely. SimpleLogger and following functions are rewritten
  11222. using StringFormat class.
  11223. Besides, now Logger class's methods are non-const, many classes
  11224. that has a const Logger* as a member variable are modified to remove
  11225. const qualifier from the variable declaration.
  11226. * src/HelpItemFactory.cc
  11227. * src/Request.cc
  11228. * src/SimpleLogger.cc
  11229. * src/StringFormat.cc
  11230. * src/StringFormat.h
  11231. * src/Util.cc
  11232. * src/option_processing.cc
  11233. * src/version_usage.cc
  11234. * test/StringFormatTest.cc
  11235. * src/*.h: The classes that has const Logger* as a member variable.
  11236. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11238. failed. Also fixed memory link when exception is thrown there.
  11239. * src/main.cc (AccRequestGroup)
  11240. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Added build-in "Accept-Features" support. For now only "metalink" is
  11242. used in this header field.
  11243. This "metalink" value is removed from the list when connecting URLs
  11244. fed by metalink file to avoid loop in "transparent" metlaink.
  11245. * src/HttpRequest.cc
  11246. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11247. header is also held in this variable. Also renamed setUserHeaders as
  11248. addHeader and it was rewritten to add header not just to clear the old
  11249. value.
  11250. * src/HttpRequestCommand.cc
  11251. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11252. from "Accept-Features" list.
  11253. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11254. default.
  11255. * src/RequestGroup.h
  11256. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11257. * src/a2functional.h: Included <string> because Concat class depends on
  11258. it.
  11259. * test/HttpRequestTest.cc
  11260. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Added comment
  11262. * src/RequestGroup.cc (createNextCommand)
  11263. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Capitalized METHOD_GET and METHOD_HEAD
  11265. * src/Request.cc
  11266. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11267. Added getDownloadResults() method
  11268. * src/RequestGroupMan.cc
  11269. * src/RequestGroupMan.h
  11270. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11271. Fixed the bug that aria2 exits when commands is empty() but
  11272. _routineCommands are not.
  11273. * src/DownloadEngine.cc
  11274. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Use the default value pulled from Option object in HelpItemFactory.
  11276. except options whose defualt value is embedded in a usage text.
  11277. * src/HelpItemFactory.cc
  11278. * src/HelpItemFactory.h
  11279. * src/option_processing.cc
  11280. * src/version_usage.cc
  11281. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. Added --quiet option to make aria2 quiet (no console output).
  11283. --quiet option is tagged with ADVANCED.
  11284. * src/HelpItemFactory.cc
  11285. * src/LogFactory.cc
  11286. * src/LogFactory.h
  11287. * src/MultiUrlRequestInfo.cc
  11288. * src/MultiUrlRequestInfo.h
  11289. * src/NullStatCalc.h: New class. This class prints nothing.
  11290. * src/OptionHandlerFactory.cc
  11291. * src/main.cc
  11292. * src/option_processing.cc
  11293. * src/prefs.h
  11294. * src/usage_text.h
  11295. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11297. * src/HelpItemFactory.cc (createHelpItems):
  11298. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. Fixed compilation error in ExpatMetalinkProcessor.cc
  11300. * src/ExpatMetalinkProcessor.cc
  11301. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Reuse socket if the origin server supports HTTP keep-alive and
  11303. --enable-http-keep-alive or --enable-http-pipelining is given.
  11304. The current implementation doesn't reuse the connections established
  11305. against proxy server.
  11306. * src/AbstractCommand.cc
  11307. * src/DownloadEngine.cc
  11308. * src/DownloadEngine.h
  11309. * src/HttpDownloadCommand.cc
  11310. * src/HttpInitiateConnectionCommand.cc
  11311. * src/HttpResponseCommand.cc
  11312. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. Rewritten HTTP keep-alive and pipelining routine.
  11314. * src/AbstractCommand.cc
  11315. * src/HttpConnection.cc
  11316. * src/HttpDownloadCommand.cc
  11317. * src/HttpRequest.cc
  11318. * src/HttpRequestCommand.cc
  11319. * src/HttpResponseCommand.cc
  11320. * src/Request.cc
  11321. * src/Request.h
  11322. * src/RequestGroup.cc
  11323. * test/HttpRequestTest.cc
  11324. * test/HttpResponseTest.cc
  11325. * test/RequestTest.cc
  11326. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. Added missing setUserHeaders call
  11328. * src/HttpRequestCommand.cc
  11329. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11331. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11332. waste of time because it is more likey false.
  11333. * src/FileAllocationDispatcherCommand.cc (execute)
  11334. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11335. Now HTTP status and version are a member variable of HttpHeader.
  11336. HTTP status is processed as a string, not integer.
  11337. * src/AbstractProxyResponseCommand.cc
  11338. * src/HttpConnection.cc
  11339. * src/HttpHeader.cc
  11340. * src/HttpHeader.h
  11341. * src/HttpHeaderProcessor.cc
  11342. * src/HttpHeaderProcessor.h
  11343. * src/HttpResponse.cc
  11344. * src/HttpResponse.h
  11345. * test/HttpHeaderProcessorTest.cc
  11346. * test/HttpResponseTest.cc
  11347. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. Added --header option. You can specify any number of additional HTTP headers
  11349. like:
  11350. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11351. Unlike other commad-line option, you can use --header option multiple times.
  11352. * src/HelpItemFactory.cc
  11353. * src/HttpRequest.{cc, h}
  11354. * src/HttpRequestCommand.cc
  11355. * src/OptionHandlerFactory.cc
  11356. * src/OptionHandlerImpl.h
  11357. * src/option_processing.cc
  11358. * src/prefs.h
  11359. * src/usage_text.h
  11360. * test/HttpRequestTest.cc (testUserHeaders)
  11361. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. Eliminates the time lag between sequential downloads and commands in
  11363. the same RequestGroup.
  11364. In old implementation, aria2 occasionally waits 1 seconds before
  11365. executing next command or RequestGroup.
  11366. This is really a waste of time, and new implementation eliminates
  11367. this unnecessary time lag.
  11368. * src/AbstractCommand.cc
  11369. * src/AutoSaveCommand.cc
  11370. * src/CheckIntegrityCommand.cc
  11371. * src/Command.{cc, h}
  11372. * src/DownloadEngine.{cc, h}
  11373. * src/DownloadEngineFactory.cc
  11374. * src/FileAllocationCommand.cc
  11375. * src/FileAllocationDispatcherCommand.cc
  11376. * src/FillRequestGroupCommand.cc
  11377. * src/FtpInitiateConnectionCommand.cc
  11378. * src/HaveEraseCommand.cc
  11379. * src/HttpInitiateConnectionCommand.cc
  11380. * src/HttpResponseCommand.cc
  11381. * src/RealtimeCommand.cc
  11382. * src/RequestGroup.cc
  11383. * src/RequestGroupMan.cc
  11384. * src/StreamFileAllocationEntry.cc
  11385. * src/TimeBasedCommand.{cc, h}
  11386. * src/TimedHaltCommand.cc
  11387. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11389. keyword explicit and SharedHandle's default constructor initializes
  11390. its internal obj to null, old implementation initializes it using
  11391. obj's default constructor.
  11392. To assign null, write SharedHandle<T> x(...); x.reset();
  11393. TODO: test/SharedHandleTest.cc needs more tests.
  11394. * src/SharedHandle.h
  11395. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Fixed type in man page.
  11397. * doc/aria2c.1.txt
  11398. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11399. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11400. * src/SimpleLogger.{cc, h}
  11401. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. Implemented auto protocol detection.
  11403. Now you can do:
  11404. aria2c -Z http://host/file file1.torrent file2.metalink
  11405. (Note: -Z option is required for auto protcol detection.)
  11406. Then aria2c downloads 3 files simultaneously:
  11407. 1. http://host/file
  11408. 2. file1.torrent <-- read local torrent file
  11409. 3. file2.metalink <-- read local Metalink file.
  11410. Same thing goes with -i option. Assume your uris.txt contans:
  11411. http://host/file
  11412. file1.torrent
  11413. file2.metalink
  11414. Then you can do: aria2c -i uris.txt
  11415. (Note: -Z option is not needed if -i option is given.)
  11416. * src/main.cc
  11417. * src/ProtocolDetector.{cc, h}
  11418. * test/ProtocolDetectorTest.cc
  11419. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11421. installed
  11422. * src/ARC4Encryptor.h
  11423. * src/ARC4Decryptor.h
  11424. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11425. Renamed argument from 'errno' to 'err', since errno is confused with
  11426. errno defined in errno.h.
  11427. * src/LibgcryptARC4Decryptor.h
  11428. * src/LibgcryptARC4Context.h
  11429. * src/LibgcryptDHKeyExchange.h
  11430. * src/LibgcryptARC4Encryptor.h
  11431. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Rewritten choking algorithm.
  11433. * src/PeerChokeCommand.{cc, h}
  11434. * src/BtInterestedMessage.cc
  11435. * src/PeerSessionResource.{cc, h}
  11436. * src/DefaultPeerStorage.{cc, h}
  11437. * src/BtNotInterestedMessage.cc
  11438. * src/DefaultBtMessageDispatcher.{cc, h}
  11439. * src/BtMessageDispatcher.h
  11440. * src/Peer.{cc, h}
  11441. * src/BtLeecherStateChoke.{cc, h}
  11442. * src/BtSetup.cc
  11443. * src/BtSeederStateChoke.{cc, h}
  11444. * src/PeerStorage.h
  11445. * test/MockPeerStorage.h
  11446. * test/MockBtMessageDispatcher.h
  11447. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11448. Fixed compilation error on x84-64 platform.
  11449. * src/AuthConfig.cc: Included ostream.
  11450. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. Rewritten getBasename() and getDirname(), without standard library
  11452. basename(), dirname().
  11453. * src/File.cc
  11454. * test/FileTest.cc
  11455. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Added Simplified Chinese translation. Also updated the following
  11457. translations: Polish, Dutch, German. Great thanks to all translators.
  11458. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11459. Suppress content-range error when 'Content-Range' response header
  11460. doesn't contains bytes-unit specifier 'bytes'
  11461. * src/HttpHeader.cc (getRange)
  11462. * test/HttpHeaderTest.cc
  11463. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Fixed compilation error with g++-4.3
  11465. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11466. Added missing include files for MinGW
  11467. * test/HttpHeaderProcessorTest.cc
  11468. * test/DHTRoutingTableSerializerTest.cc
  11469. * test/DHTRoutingTableDeserializerTest.cc
  11470. * test/UriListParserTest.cc
  11471. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. Now download line is printed nicely with no garbage at the end of
  11473. line. I use ioctl to get the columns of terminal.
  11474. If stdout is redirected to another device, instead of carriage return,
  11475. end of line '\n' character is used. This is feature request#1909659
  11476. * src/ConsoleStatCalc.cc (calculateStat)
  11477. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11478. Included a2time.h
  11479. * src/DHTMessageDispatcher.h
  11480. * src/DHTMessageEntry.h
  11481. * src/DHTReplaceNodeTask.h
  11482. * src/DHTMessageTracker.h
  11483. * src/Util.h
  11484. * src/CookieBox.h
  11485. * src/SocketCore.h
  11486. * src/DefaultBtMessageDispatcher.h
  11487. * src/SocketCore.cc
  11488. * src/Util.cc
  11489. * src/DHTPingTask.h
  11490. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. Fixed high memory footprint when DHT is enabled.
  11492. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11493. queued than it is processed and the queue is getting longer. As a
  11494. consequence, momory usage is increased.
  11495. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11496. replacement cache in DHTBucket which is described in Kademlia paper.
  11497. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11498. DHTReplaceNodeTask.
  11499. * src/DHTBucket.{h, cc}
  11500. (cacheNode): New function.
  11501. (getCachedNodes): New function.
  11502. (dropNode): Push back cached node to _nodes.
  11503. * test/DHTBucketTest.cc
  11504. (testCacheNode): New test
  11505. (testDropNode): New test
  11506. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11507. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11508. the unused 4KB memory when ssl is not used.
  11509. * src/SocketCore.cc
  11510. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11511. Added summary log for peer announce storage.
  11512. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11513. Removed cast
  11514. * src/DefaultPeerStorage.cc (addPeer)
  11515. Log exception message
  11516. * src/DHTMessageTracker.cc (handleTimeout)
  11517. Fixed casting
  11518. * test/HttpRequestTest.cc
  11519. * test/MetalinkProcessorTest.cc
  11520. * test/PieceTest.cc
  11521. * test/MetalinkEntryTest.cc
  11522. * test/SequenceTest.cc
  11523. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. * src/ParameterizedStringParser.cc (createLoop):
  11525. Removed unused variable sstep.
  11526. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11527. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. * src/Util.{h, cc}
  11529. (parseUInt): New function.
  11530. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11531. The actual range is uint32_t.
  11532. * test/UtilTest.cc
  11533. * src/ParameterizedStringParser.cc:
  11534. Use Util::parseUInt() for loop variables.
  11535. * test/ParameterizedStringParserTest.cc
  11536. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11537. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Rewritten the functions for binding port.
  11539. * src/DHTConnectionImpl.{h, cc}
  11540. * src/PeerListenCommand.{h, cc}
  11541. * src/DHTSetup.cc
  11542. * src/BtSetup.cc
  11543. * test/DHTConnectionImplTest.cc
  11544. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. type cleanup for allmost all remaining files.
  11546. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11547. Type clarification
  11548. * src/PeerSessionResource.{h, cc}
  11549. * src/DefaultPieceStorage.{h, cc}
  11550. * src/Peer.{h, cc}
  11551. * test/PeerSessionResourceTest.cc
  11552. Use div function
  11553. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11554. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11555. Type clarification
  11556. * src/DefaultPeerStorage.{h, cc}
  11557. * test/DefaultPeerStorageTest.cc
  11558. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11559. Type clarification: size_t for length or size, uint64_t for file
  11560. length, off_t for file offset.
  11561. * src/DefaultBtProgressInfoFile.cc
  11562. * src/DefaultBtContext.{h, cc}
  11563. * src/DefaultBtInteractive.cc
  11564. * src/DownloadCommand.{h, cc}
  11565. * src/IteratableChunkChecksumValidator.{h, cc}
  11566. * src/SegmentMan.{h, cc}
  11567. * src/SingleFileDownloadContext.{h, cc}
  11568. * src/IteratableChecksumValidator.{h, cc}
  11569. * src/BtContext.h
  11570. * src/IteratableValidator.h
  11571. * src/DownloadContext.h
  11572. * test/SingleFileDownloadContextTest.cc
  11573. * test/DefaultBtContextTest.cc
  11574. * test/MockBtContext.h
  11575. * test/Metalink2RequestGroupTest.cc
  11576. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Type clarification: size_t for length or size, uint64_t for file
  11578. length, off_t for file offset.
  11579. * src/PiecedSegment.cc
  11580. * src/GrowSegment.h
  11581. * src/DefaultBtRequestFactory.h
  11582. * src/DefaultBtProgressInfoFile.cc
  11583. * src/UnknownLengthPieceStorage.h
  11584. * src/DefaultPieceStorage.cc
  11585. * src/UnknownLengthPieceStorage.cc
  11586. * src/DefaultBtInteractive.cc
  11587. * src/GrowSegment.cc
  11588. * src/BitfieldMan.h
  11589. * src/DownloadCommand.cc
  11590. * src/BtRequestFactory.h
  11591. * src/PiecedSegment.h
  11592. * src/DefaultPieceStorage.h
  11593. * src/Piece.cc
  11594. * src/DefaultBtRequestFactory.cc
  11595. * src/PieceStorage.h
  11596. * src/Segment.h
  11597. * src/Piece.h
  11598. * src/BitfieldMan.cc
  11599. * src/Util.cc
  11600. * test/DefaultBtProgressInfoFileTest.cc
  11601. * test/DefaultPieceStorageTest.cc
  11602. * test/MockPieceStorage.h
  11603. * test/BtRequestMessageTest.cc
  11604. * test/DefaultBtMessageDispatcherTest.cc
  11605. * test/BitfieldManTest.cc
  11606. * test/GrowSegmentTest.cc
  11607. * test/PieceTest.cc
  11608. * test/SegmentTest.cc
  11609. * test/SegmentManTest.cc
  11610. * test/DefaultBtRequestFactoryTest.cc
  11611. * test/MockBtRequestFactory.h
  11612. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11613. Fixed compilation error with --disable-nls
  11614. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11615. in gettext.h causes the problem.
  11616. * src/common.h
  11617. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. Removed subPiece related functions.
  11619. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11620. * src/DefaultPieceStorage.{h, cc}
  11621. * test/PieceTest.cc
  11622. * test/DefaultPieceStorageTest.cc
  11623. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11624. Use unsigned char for data store.
  11625. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11626. Bump up version number to 0.13.0+1
  11627. * configure.ac
  11628. * Release 0.13.0+1
  11629. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Changed inactive connection timeout to 120.
  11631. To accept more mulually interested peers, disconnect peer when there
  11632. is no interest between us after certain time passed.
  11633. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11634. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11636. when compiled with async DNS support.
  11637. * src/DownloadEngine.cc
  11638. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11639. value '10' will be a little bit short when some DNS servers are
  11640. offline and several DNS servers are tried. It should be configured
  11641. by command-line option.
  11642. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Merged Ross's mingw patch.
  11644. * src/DHTRoutingTableDeserializer.cc
  11645. * src/DHTRoutingTableSerializer.cc
  11646. * src/Platform.{h, cc}
  11647. * src/timegm.h
  11648. * src/gettimeofday.h
  11649. * src/getaddrinfo.h
  11650. * src/SocketCore.h
  11651. * src/common.h
  11652. * src/inet_aton.h
  11653. * src/DownloadEngine.h
  11654. * src/gai_strerror.h
  11655. * src/a2netcompat.h
  11656. * configure.ac
  11657. * configure
  11658. * aclocal.m4
  11659. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. Included missing iostream.
  11661. * test/AllTest.cc
  11662. * test/BtDependencyTest.cc
  11663. * test/BtExtendedMessageTest.cc
  11664. * test/DHTConnectionImplTest.cc
  11665. * test/DHTMessageFactoryImplTest.cc
  11666. * test/DHTMessageTrackerEntryTest.cc
  11667. * test/DHTNodeTest.cc
  11668. * test/DHTRoutingTableSerializerTest.cc
  11669. * test/DefaultBtAnnounceTest.cc
  11670. * test/DefaultBtContextTest.cc
  11671. * test/DefaultBtMessageFactoryTest.cc
  11672. * test/DefaultExtensionMessageFactoryTest.cc
  11673. * test/HandshakeExtensionMessageTest.cc
  11674. * test/HttpResponseTest.cc
  11675. * test/MetalinkProcessorTest.cc
  11676. * test/MultiFileAllocationIteratorTest.cc
  11677. * test/SocketCoreTest.cc
  11678. * test/UTPexExtensionMessageTest.cc
  11679. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11680. Reorganized includes.
  11681. * src/NameResolver.cc
  11682. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Fixed compilation error without ares/c-ares
  11684. * src/NameResolver.h:
  11685. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11686. Added a test for large file.
  11687. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11688. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. Fixed the bug that file size is ignored if size > INT32_MAX
  11690. * src/SizeMetalinkParserState.cc (endElement):
  11691. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. Bump up version number to 0.13.0
  11693. * configure.ac
  11694. * Release 0.13.0
  11695. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Updated Makfefile.am to make 'make dist' work.
  11697. Now packaged filename is aria2c-VERSION.tar.bz2.
  11698. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11699. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11700. Large file support is now configured by configure script.
  11701. * configure.ac
  11702. Removed unsused source files
  11703. * src/
  11704. * test/
  11705. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11706. Peer.h and BtContext.h respectively.
  11707. * src/Peer.h
  11708. * src/BtContext.h
  11709. Updated translations.
  11710. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11711. translations. Great thanks to all translators!;)
  11712. * po/*.{po, gmo}
  11713. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11714. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11715. statically declared sha1 MessageDigestContext.
  11716. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11717. initialization of short-lived MessageDigestContext.
  11718. * src/MessageDigestHelper.{h, cc}
  11719. * src/main.cc
  11720. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11721. the initialization of MessageDigestContext every time in validating
  11722. chunk checksum.
  11723. * src/DownloadCommand.{h, cc}
  11724. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. Add a file descriptor which connected to fast peer(latency<1500) to
  11726. select(). This change reduced CPU load.
  11727. * src/PeerInteractionCommand.cc
  11728. * src/DefaultBtInteractive.{h, cc}
  11729. * src/BtInteractive.h
  11730. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11731. Fixed the previous insufficient fix for possible busy loop.
  11732. * src/MSEHandshake.cc (identifyHandshakeType)
  11733. Removed unused functions.
  11734. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11735. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11736. Fixed possible busy loop if first 20 bytes are not received for a few
  11737. minutes.
  11738. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11739. * src/ReceiverMSEHandshakeCommand.cc
  11740. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11741. Fixed compilation error
  11742. * src/ExpatMetalinkProcessor.cc
  11743. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11745. * src/DHTBucket.cc
  11746. Removed unnecessary cast.
  11747. * src/HandshakeExtensionMessage.cc
  11748. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11750. is missing.
  11751. * src/OptionHandlerFactory.cc
  11752. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Fixed the bug that HAVE message is not sent for a piece they are
  11754. downloaded fom http/ftp server before any BitTorrent handshake is done
  11755. with peers.
  11756. * src/DefaultBtInteractive.cc
  11757. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11759. * src/Makefile.am
  11760. * src/Makefile.in
  11761. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11762. Updated README. Added html version of README and man page.
  11763. * README
  11764. * README.html
  11765. * readme2html: Shell script to generate README.html from README using
  11766. asciidoc.
  11767. * doc/aria2c.1.html
  11768. * doc/makeman: Added the line to generate aria2c.1.html
  11769. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11770. Fixed offset calculation.
  11771. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11772. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11773. Rewritten itos and uitos using template. llitos and ullitos are
  11774. replaced with itos and uitos respectively.
  11775. * src/Util.{h, cc}
  11776. * test/UtilTest.cc
  11777. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11778. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11779. of the number of bytes required for storing public key and shared
  11780. secret.
  11781. * src/LibgcryptDHKeyExchange.h
  11782. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11783. * src/MSEHandshake.cc
  11784. * test/DHKeyExchangeTest.cc
  11785. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. Removed since they are not used.
  11787. * src/Xml2MetalinkProcessor.{h, cc}
  11788. * src/Socket.cc
  11789. * src/SegmentSplitter.{h, cc}
  11790. * test/Xml2MetalinkProcessorTest.cc
  11791. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11792. Fixed the bug that prevents aria2 from stopping other than by pressing
  11793. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11794. option. aria2 doesn't stop even after --seed-time is satisfied and
  11795. continues to output blank lines in the console.
  11796. * src/ReceiverMSEHandshakeCommand.cc
  11797. * src/PeerReceiveHandshakeCommand.cc
  11798. * src/PeerListenCommand.cc
  11799. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. Bump up version number to 0.13.0rc
  11801. * configure.ac
  11802. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11803. Updated man page and some usage text.
  11804. * doc/aria2c.1.txt
  11805. * src/usage_text.h
  11806. * po/*.{po, gmo}
  11807. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Updated translations. Added Finnish and Hebrew translations.
  11809. Great thanks to all translators!
  11810. * po/*.{po, gmo}
  11811. * po/LINGUAS
  11812. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Log more detailed information about each message.
  11814. * src/DHTQueryMessage.{h, cc}
  11815. * src/DHTGetPeersMessage.{h, cc}
  11816. * src/DHTFindNodeReplyMessage.{h, cc}
  11817. * src/DHTGetPeersReplyMessage.{h, cc}
  11818. * src/DHTAnnouncePeerMessage.{h, cc}
  11819. * src/DHTResponseMessage.{h, cc}
  11820. * src/DHTFindNodeMessage.{h, cc}
  11821. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. Use constants defined in prefs.h
  11823. * src/option_processing.cc
  11824. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11825. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11826. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11827. Make room for future enchancements for IPv6 addresses.
  11828. Bump up version number of dht.dat file format to 2.
  11829. Not compatible with previous version.
  11830. * src/DHTRoutingTableSerializer.cc
  11831. * src/DHTRoutingTableDeserializer.cc
  11832. * test/DHTRoutingTableSerializerTest.cc
  11833. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11834. Added handling for the return values from
  11835. PeerMessageUtil::createcompact().
  11836. * src/DefaultBtContext.cc (computeFastSet):
  11837. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Fixed abort when peer's ip address is IPv4-mapped address.
  11839. * src/DefaultBtContext.cc (computeFastSet)
  11840. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11841. cannot handle IPv4-mapped addresses.
  11842. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11843. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Proper return value handling for OpenSSL functions.
  11845. * src/LibsslDHKeyExchange.h
  11846. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. Random bytes generation using libgcrypt and OpenSSL.
  11848. * src/DHTUtil.{h, cc}
  11849. * test/DHTUtilTest.cc
  11850. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11852. received.
  11853. * src/DHTMessageReceiver.cc (receiveMessage)
  11854. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11855. Fixed the bug that a return code is always 0. BUG#1897704
  11856. If error occurred during the download or there exist unfinished
  11857. downloads, aria2 returns with code 1.
  11858. * src/RequestGroupMan.{h, cc}
  11859. * src/MultiUrlRequestInfo.{h, cc}
  11860. * src/main.cc
  11861. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11862. IPv6 support for SocketCore class.
  11863. TODO: In SocketCore::establishConnection(), this is insufficient to
  11864. determin the failure of connect() here because the socket is
  11865. non-blocking state. The next addresses should be tried after select().
  11866. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11867. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11868. instead which address family independent.
  11869. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11870. information in a compact peer format which is for IPv4 only.
  11871. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11872. this is a spec of BitTorrent protocol.
  11873. * src/SocketCore.{h, cc}
  11874. * src/PeerMessageUtil.cc
  11875. * test/SocketCoreTest.cc
  11876. * test/PeerMessageUtilTest.cc
  11877. * test/DHTConnectionImplTest.cc
  11878. Handle IPv4-mapped addresses.
  11879. * src/DHTNode.cc: Now identity is determined by node id.
  11880. * src/DHTMessageTrackerEntry.cc
  11881. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11882. should handle it.
  11883. * src/DHTRoutingTableDeserializer.cc
  11884. * src/DHTMessageFactoryImpl.cc
  11885. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. Change the unit of --stop option from a minute to a second.
  11887. * src/usage_text.h
  11888. * src/DownloadEngineFactory.cc
  11889. * src/OptionHandlerFactory.cc
  11890. * src/message.h
  11891. * src/TimedHaltCommand.cc
  11892. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Make listening socket non-block mode.
  11894. * src/FtpConnection.cc
  11895. * src/FtpNegotiationCommand.{h, cc}
  11896. * src/PeerListenCommand.cc
  11897. Fixed the bug that cause slow ftp negotiation.
  11898. * src/FtpNegotiationCommand.{h, cc}
  11899. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Added basic tag to --enable-dht, --dht-listen-port option.
  11901. * src/HelpItemFactory.cc (createHelpItems)
  11902. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11903. Updated text.
  11904. * src/usage_text.h
  11905. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11907. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11908. Determin _threadtholdSpeed in each constructor for
  11909. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11910. * src/ActivePeerConnectionCommand.{h, cc}
  11911. * src/PeerReceiveHandshakeCommand.{h, cc}
  11912. * src/BtSetup.cc
  11913. * src/BtConstants.h
  11914. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Added --bt-min-crypto-level and --bt-require-crypto options.
  11916. * src/OptionHandlerFactory.cc
  11917. * src/MSEHandshake.cc
  11918. * src/HelpItemFactory.cc
  11919. * src/option_processing.cc
  11920. * src/ReceiverMSEHandshakeCommand.cc
  11921. * src/prefs.h
  11922. * src/DefaultBtAnnounce.cc
  11923. * src/InitiatorMSEHandshakeCommand.cc
  11924. * src/usage_text.h
  11925. * test/MSEHandshakeTest.cc
  11926. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11927. Bump version number to 0.13.0b
  11928. * configure.ac
  11929. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. Updated doc.
  11931. * src/MessageDigestHelper.h:
  11932. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Use raw message digest as a token instead of its hexadecimal
  11934. representation.
  11935. * src/DHTTokenTracker.cc (generateToken)
  11936. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. Added Message Stream Encryption(MSE) support.
  11938. Currently, aria2 accepts incoming connections with Obfuscation Header
  11939. and legacy BitTorrent Header and establishes connections with
  11940. Obfuscation Header first and if failed then retry with legacy
  11941. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11942. choose ARC4. The new option to change the default behavior is planned.
  11943. For tracker extension, "supportcrypto=1" is added statically.
  11944. * src/PeerInitiateConnectionCommand.{h, cc}
  11945. * src/PeerConnection.{h, cc}
  11946. * src/HandleRegistry.h
  11947. * src/SocketCore.h
  11948. * src/PeerReceiveHandshakeCommand.{h, cc}
  11949. * src/BtRegistry.{h, cc}
  11950. * src/PeerListenCommand.cc
  11951. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11952. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11953. * src/MSEHandshake.{h, cc}
  11954. * src/ARC4Encryptor.h
  11955. * src/ARC4Decryptor.h
  11956. * src/LibgcryptARC4Encryptor.h
  11957. * src/LibgcryptARC4Decryptor.h
  11958. * src/LibgcryptARC4Context.h
  11959. * src/LibsslARC4Encryptor.h
  11960. * src/LibsslARC4Decryptor.h
  11961. * src/LibsslARC4Context.h
  11962. * src/DHKeyExchange.h
  11963. * src/LibgcryptDHKeyExchange.h
  11964. * src/LibsslDHKeyExchange.h
  11965. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11966. * test/DefaultBtAnnounceTest.cc
  11967. * test/ARC4Test.cc
  11968. * test/DHKeyExchangeTest.cc
  11969. Removed prepareForRetry() because it is not used.
  11970. * src/PeerAbstractCommand.{h, cc}
  11971. * src/PeerInteractionCommand.{h, cc}
  11972. * src/PeerInitiateConnectionCommand.{h, cc}
  11973. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11974. Added the ability to load nodes from torrent file. These nodes are
  11975. added to the routing table when downloading that torrent.
  11976. * src/BtContext.h
  11977. * src/DefaultBtContext.{h, cc}
  11978. * src/DHTSetup.cc
  11979. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11980. hostname and port pair, and resolves all of them.
  11981. * src/NameResolver.{h, cc}: Added reset().
  11982. * src/RequestGroup.cc
  11983. * test/DefaultBtContextTest.cc
  11984. * test/MockBtContext.h
  11985. Removed assert() from DefaultBtContext and throw exception instead.
  11986. * src/DefaultBtContext.cc
  11987. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11988. Fixed segmentation fault bug when exiting if dht is disabled.
  11989. * src/RequestGroup.cc
  11990. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Fixed typo in log message and define the message in message.h
  11992. * src/TimedHaltCommand.cc
  11993. * src/message.h
  11994. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Included RecoverableException.h to fix compilation error.
  11996. * test/DHTMessageFactoryImplTest.cc
  11997. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11998. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11999. * test/DHTPingMessageTest.cc
  12000. * test/DHTGetPeersMessageTest.cc
  12001. * test/DHTFindNodeMessageTest.cc
  12002. * test/DHTAnnouncePeerMessageTest.cc
  12003. * test/MockDHTMessage.h
  12004. * test/MockDHTMessageFactory.h
  12005. * test/MockDHTMessageDispatcher.h: New class.
  12006. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12008. virtual.
  12009. * src/DHTMessageDispatcher.h
  12010. * src/DHTMessageDispatcherImpl.{h, cc}
  12011. * src/DHTSetup.cc
  12012. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. Adding handling of DHT error message. Just log error message and
  12014. throw exception.
  12015. * src/DHTMessageFactoryImpl.cc
  12016. * test/DHTMessageFactoryImplTest.cc
  12017. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12018. Added handling of dynamic cast failure.
  12019. * src/DHTNodeLookupTask.cc
  12020. * src/DHTPeerLookupTask.cc
  12021. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12022. Added the ability to stop aria2 itself when given time has passed
  12023. from start. Use --stop option to specify time in minutes.
  12024. When 0 is given, this feature is disabled.
  12025. * src/OptionHandlerFactory.cc
  12026. * src/TimeBasedCommand.h: Make _interval protected scope.
  12027. * src/HelpItemFactory.cc
  12028. * src/option_processing.cc
  12029. * src/prefs.h
  12030. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12031. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12032. Without this modification, the result list shows "ERR" when aria2 is
  12033. stopped by --stop option. It should be "INPR".
  12034. * src/DownloadEngine.{h, cc}
  12035. * src/DownloadEngineFactory.cc
  12036. * src/usage_text.h
  12037. * src/TimedHaltCommand.{h, cc}: New class.
  12038. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12039. Bootstrap through node added by port message.
  12040. Currently bootstrap is executed if the number of buckets in routing
  12041. table is 1.
  12042. * src/BtPortMessage.{h, cc}
  12043. * src/DefaultBtMessageFactory.{h, cc}
  12044. * src/PeerInteractionCommand.cc
  12045. * test/BtPortMessageTest.cc
  12046. * test/MockDHTTask.h
  12047. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12048. Extract the Peer class's member variables, which are only needed after
  12049. PeerInteractionCommand, into PeerSessionResource class.
  12050. This class is instantiated in PeerInteractionCommand class's ctor and
  12051. released in its dtor.
  12052. This will make Peer class lightweight and uses less memory for peers
  12053. which are not connected and wait in the queue.
  12054. * src/PeerChokeCommand.cc
  12055. * src/PeerSessionResource.{h, cc}
  12056. * src/PeerInteractionCommand.cc
  12057. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12058. * src/DefaultBtInteractive.cc
  12059. * src/BtPieceMessage.cc
  12060. * src/BtInterestedMessage.cc
  12061. * src/BtUnchokeMessage.cc
  12062. * src/DefaultPeerStorage.{h, cc}
  12063. * src/PeerInitiateConnectionCommand.cc
  12064. * src/ActivePeerConnectionCommand.cc
  12065. * src/BtNotInterestedMessage.cc
  12066. * src/DefaultBtMessageDispatcher.cc
  12067. * src/BtChokeMessage.cc
  12068. * src/BtRequestMessage.cc
  12069. * src/Peer.{h, cc}
  12070. * src/BtRegistry.h
  12071. * src/TrackerWatcherCommand.cc
  12072. * src/PeerReceiveHandshakeCommand.cc
  12073. * test/BtExtendedMessageTest.cc
  12074. * test/BtAllowedFastMessageTest.cc
  12075. * test/BtCancelMessageTest.cc
  12076. * test/DefaultPieceStorageTest.cc
  12077. * test/BtBitfieldMessageTest.cc
  12078. * test/BtHaveMessageTest.cc
  12079. * test/BtNotInterestedMessageTest.cc
  12080. * test/BtRequestMessageTest.cc
  12081. * test/PeerSessionResourceTest.cc
  12082. * test/DefaultBtMessageDispatcherTest.cc
  12083. * test/PeerTest.cc
  12084. * test/BtInterestedMessageTest.cc
  12085. * test/BtRejectMessageTest.cc
  12086. * test/BtChokeMessageTest.cc
  12087. * test/DefaultPeerStorageTest.cc
  12088. * test/BtHaveNoneMessageTest.cc
  12089. * test/BtHaveAllMessageTest.cc
  12090. * test/DefaultExtensionMessageFactoryTest.cc
  12091. * test/BtUnchokeMessageTest.cc
  12092. * test/DefaultBtMessageFactoryTest.cc
  12093. * test/HandshakeExtensionMessageTest.cc
  12094. * test/UTPexExtensionMessageTest.cc
  12095. * test/DefaultBtRequestFactoryTest.cc
  12096. * test/BtPieceMessageTest.cc
  12097. Removed typedef PeerStats.
  12098. * src/PeerStat.h
  12099. * src/SegmentMan.cc
  12100. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12101. Added std namespace to copy, remove_copy, back_inserter,
  12102. front_inserter.
  12103. * src/RequestGroupMan.cc
  12104. * src/DefaultPieceStorage.cc
  12105. * src/StreamFileAllocationEntry.cc
  12106. * src/BtFileAllocationEntry.cc
  12107. * src/RequestGroup.cc
  12108. * src/MetalinkEntry.cc
  12109. * src/DelegatingPeerListProcessor.cc
  12110. * src/DefaultBtRequestFactory.cc
  12111. * src/DefaultBtMessageDispatcher.cc
  12112. * src/version_usage.cc: Included <algorithm>
  12113. * src/main.cc
  12114. * src/MetalinkParserController.cc
  12115. * src/DefaultBtContext.cc
  12116. * src/DownloadEngineFactory.cc
  12117. * src/a2algo.h
  12118. Removed.
  12119. * test/StreamUriListParserTest.cc
  12120. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12121. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12122. ActivePeerConnectionCommand when it is given and
  12123. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12124. * src/ActivePeerConnectionCommand.{h, cc}
  12125. * src/BtSetup.cc
  12126. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12127. Only add socket to DownloadEngine's select routine when peer or
  12128. localhost is unchoked and interested. This lowers CPU usage a
  12129. little bit.
  12130. * src/PeerInteractionCommand.cc
  12131. * src/PeerAbstractCommand.{h, cc}
  12132. * src/BtInteractive.h
  12133. * src/DefaultBtInteractive.{h, cc}
  12134. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12135. Revert previous change because get_peers message is needed for
  12136. announce_peer anyway.
  12137. * src/DHTGetPeersCommand.cc
  12138. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. Request peers thought DHT only when download hasn't finished.
  12140. * src/DHTGetPeersCommand.cc
  12141. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12143. * src/DHTBucketRefreshTask.{h, cc}
  12144. * src/DHTSetup.cc
  12145. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12146. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12147. standard classes.
  12148. Included string.h where mem* function are used.
  12149. Added namespace aria2.
  12150. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Create directory before saving DHT routing table.
  12152. Now ios::failure is now handled properly.
  12153. * src/DHTAutoSaveCommand.cc
  12154. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12155. Removed unnecessary cerr.
  12156. * src/DownloadEngine.cc
  12157. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12158. Catch exception inside DHTMessageReceiver::receiveMessage().
  12159. Log unknown message.
  12160. * src/DHTMessageReceiver.{h, cc}
  12161. * src/DHTMessageFactory.h
  12162. * src/DHTMessageFactoryImpl.{h, cc}
  12163. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12164. * src/DHTInteractionCommand.cc
  12165. * src/DHTUnknownMessage.{h, cc}
  12166. * test/DHTUnknownMessageTest.cc
  12167. * test/MockDHTMessageFactory.h
  12168. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. Commented out ip address comparison because a host can have multiple
  12170. ip addresses and it is hard to predict the hostname is resolved into
  12171. which one.
  12172. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12173. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12174. * po/Makefile.in: Removed since this is generated by configure.
  12175. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12176. Fixed compiler warning about redefinition of SIZE_MAX.
  12177. Use common.h instead of config.h directly here.
  12178. * src/Platform.{h, cc}
  12179. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12180. here.
  12181. * common.h
  12182. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12183. Updated gettext related files.
  12184. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12185. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12186. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Added DHT functionality, compatible with mainline.
  12188. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12189. You may need to specify entry point to DHT network using
  12190. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12191. Use --dht-listen-port to specify port number. Make sure that your
  12192. firewall configuration can pass through UDP traffic to the port.
  12193. The routing table is saved in $HOME/.aria2/dht.dat.
  12194. * src/DHT*
  12195. * src/BNode.{h, cc}
  12196. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12197. particular torrent.
  12198. * src/Data.cc: Rewritten ctor.
  12199. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12200. --dht-entry-point.
  12201. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12202. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12203. ends, remove BtContext from DHTPeerAnnounceStorage.
  12204. * src/BtPortMessage.{h, cc}: Rewritten.
  12205. * src/message.h
  12206. * src/OptionHandlerImpl.cc
  12207. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12208. --dht-entry-point.
  12209. * src/Dictionary.{h, cc} (remove): New function.
  12210. * src/prefs.h
  12211. * src/DefaultBtMessageFactory.h
  12212. * src/BtHandshakeMessage.cc
  12213. * src/ActivePeerConnectionCommand.cc
  12214. * src/SocketCore.{h, cc}: Added datagram socket support.
  12215. * src/DefaultBtMessageFactory.cc
  12216. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12217. Create DHT commands.
  12218. * src/BtMessageFactory.h
  12219. * src/PeerMessageUtil.{h, cc}
  12220. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12221. Fixed the bug that log file is not written when configuration file doesn't exist.
  12222. This is caused by using Logger class before LogFactory is not configured.
  12223. BUG #1875079
  12224. * src/option_processing.cc
  12225. Warning message "configuration doesn't exist" is only printed when --conf is
  12226. given.
  12227. * src/option_processing.cc
  12228. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12229. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12230. ShaVisitor is now deprecated and slated to be removed.
  12231. * src/DefaultBtContext.cc
  12232. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. Externalize message to message.h
  12234. * src/Platform.cc
  12235. * src/message.h
  12236. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. Set default domain and default path to cookie.
  12238. * src/HttpResponse.cc
  12239. * src/CookieBox.{h, cc}
  12240. * src/CookieParser.{h, cc}
  12241. * test/CookieParserTest.cc
  12242. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Added --no-conf and --conf-path command-line option.
  12244. --no-conf option disables loading aria2.conf file.
  12245. --conf-path option changes the configuration file path. The default
  12246. file path is $HOME/.aria2/aria2.conf
  12247. Added a warning message when the configuration file is not found.
  12248. * src/HelpItemFactory.cc
  12249. * src/option_processing.cc
  12250. * src/prefs.h
  12251. * src/usage_text.h
  12252. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. Added the message to inform users that other help categories are
  12254. available in -h option.
  12255. * src/version_usage.cc
  12256. * src/TagContainer.{h, cc}
  12257. * test/TagContainerTest.cc
  12258. * src/TaggedItem.{h, cc}
  12259. * test/TaggedItemTest.cc
  12260. * src/HelpItem.h
  12261. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12262. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12263. from PiecedSegment's ctor.
  12264. Previously Piece::getAllMissingBlockIndexes() is called from
  12265. PiecedSegment() but it is rather expensive since only first element is
  12266. used.
  12267. * src/PiecedSegment.cc
  12268. * src/Piece.{h, cc}
  12269. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12270. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12271. each time these functions are called.
  12272. * src/BitfieldMan.{h, cc}
  12273. * test/BitfieldManTest.cc
  12274. * src/array_fun.h
  12275. * test/array_funTest.cc
  12276. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12277. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12278. filtered. Removed unnecessary cast to int32_t.
  12279. * src/BitfieldMan.{h, cc}
  12280. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12281. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12282. payload length(4bytes) are received. This happens because lenbufLength
  12283. is not updated in this particular case and successive call of
  12284. receiveMessage() overwrites payload length with bytes recieved which
  12285. are payload body.
  12286. * src/PeerConnection.{h, cc}
  12287. * src/message.h
  12288. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12289. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12290. peer if there are peers that have same ipaddr and port.
  12291. I've experiened segmentation fault and "pure virtual function was
  12292. called" error.
  12293. * src/Peer.h
  12294. * test/PeerTest.cc
  12295. * src/DefaultPeerStorage.cc
  12296. * test/DefaultPeerStorageTest.cc
  12297. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12298. Removed a call to isPowerOf() because it is no longer necessary here
  12299. and a request block is not always power of 2.
  12300. BUG#1866924
  12301. * src/PeerMessageUtil.cc (checkLength)
  12302. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12303. Fixed the bug that always first found Segment is removed from
  12304. usedSegmentEntries. Removed unused functions.
  12305. * src/SegmentMan.{h, cc}
  12306. * test/SegmentManTest.cc
  12307. Fixed the bug that ServerHost is not removed.
  12308. * src/RequestGroup.cc
  12309. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12310. Fixed the bug that SegmentMan::completeSegment() is not called
  12311. even if Segment is complete when --lowest-speed-limit is enabled.
  12312. BUG#1864525
  12313. * src/DownloadCommand.{h, cc}
  12314. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Fixed: hash algorithm 'sha1' is always used.
  12316. * src/DownloadCommand.cc (validatePieceHash)
  12317. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12318. Added --enable-peer-exchange command-line option.
  12319. * src/OptionHandlerFactory.cc
  12320. * src/HelpItemFactory.cc
  12321. * src/option_processing.cc
  12322. * src/usage_text.h
  12323. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12324. Move extension from BtRuntime to ExtensionMessageFactory, because
  12325. extension can be specified per peer, not per torrent.
  12326. * src/DefaultBtInteractive.cc
  12327. * src/BtRuntime.h
  12328. * src/ExtendedMessagingAware.h
  12329. * src/ExtensionMessageFactory.h
  12330. * src/DefaultExtensionMessageFactory.cc
  12331. * test/DefaultExtensionMessageFactoryTest.cc
  12332. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12333. Added categorized option help. Specify category using --help option.
  12334. Also added the ability to search options in forward match.
  12335. * src/HelpItem.{h, cc}
  12336. * test/HelpItemTest.cc
  12337. * src/HelpItemFactory.{h, cc}
  12338. * src/TagContainer.{h, cc}
  12339. * test/TagContainerTest.cc
  12340. * src/option_processing.cc
  12341. * src/prefs.h
  12342. * src/TaggedItem.{h, cc}
  12343. * test/TaggedItemTest.cc
  12344. * src/version_usage.cc
  12345. * src/help_tags.h
  12346. * src/usage_text.h
  12347. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12348. Fixed segmentation fault when bad torrent metainfo is parsed.
  12349. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12350. and then throw exception or skip it.
  12351. * src/DefaultBtContext.{h, cc}
  12352. * test/DefaultBtContextTest.cc
  12353. * src/AnnounceList.cc
  12354. * src/CompactPeerListProcessor.cc
  12355. * src/message.h
  12356. * src/DefaultBtAnnounce.{h, cc}
  12357. * test/DefaultBtAnnounceTest.cc
  12358. * src/BencodeVisitor.cc
  12359. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12360. Added missing "B"(=Byte). So now the message looks like this:
  12361. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12362. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12363. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12364. Show the seed ratio after torrent downloads.
  12365. For example, after torrent download completed and --seed-time and
  12366. --seed-ratio conditions are fulfilled, following message is printed
  12367. right after "Download complete: .....":
  12368. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12369. * src/RequestGroupMan.cc
  12370. * src/RequestGroup.{h, cc}
  12371. * src/message.h
  12372. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Remove a defunct control file. A defunct control file means that while
  12374. it exists, but the corresponding download file is missing.
  12375. After its removal, a download restarts from the beginning.
  12376. * src/RequestGroup.cc
  12377. * src/message.h
  12378. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. Allocate bitfield in Peer when it is really used. More specifically,
  12380. bitfield in Peer is allocated after the connection is established and
  12381. deallocated when the connection is dropped.
  12382. Since 2 parameters(piece length and total length) was removed from the
  12383. constructor of Peer class, many test classes were modified accordingly.
  12384. See svn log for more detailed information.
  12385. * src/PeerInteractionCommand.cc
  12386. * src/CompactPeerListProcessor.cc
  12387. * src/Peer.cc
  12388. * src/DefaultPeerListProcessor.cc
  12389. * src/PeerListenCommand.cc
  12390. * src/PeerReceiveHandshakeCommand.cc
  12391. Fixed memory leak
  12392. * src/Piece.cc
  12393. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12394. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12395. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12396. command-line options.
  12397. * src/option_processing.cc
  12398. * src/ActivePeerConnectionCommand.cc
  12399. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. Send have message to peer if it already has the piece.
  12401. * src/BtHaveMessage.{h, cc}
  12402. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12404. port.
  12405. * src/DefaultPeerStorage.{h, cc}
  12406. * test/DefaultPeerStorageTest.cc
  12407. * src/HandshakeExtensionMessage.cc
  12408. * test/HandshakeExtensionMessageTest.cc
  12409. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12410. * src/PeerStorage.h
  12411. * test/MockPeerStorage.h
  12412. * src/PeerListenCommand.cc
  12413. * src/PeerReceiveHandshakeCommand.cc
  12414. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12415. Added --metalink-enable-unique-protocol option.
  12416. * src/Metalink2RequestGroup.cc
  12417. * src/option_processing.cc
  12418. * src/prefs.h
  12419. * src/version_usage.cc
  12420. * doc/aria2c.1.txt
  12421. * doc/aria2c.1
  12422. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12423. Allow a peer in incomingPeer to be added peers.
  12424. * src/DefaultPeerStorage.cc
  12425. * test/DefaultPeerStorageTest.cc
  12426. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12427. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12428. I could reproduce this bug in following procedure:
  12429. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12430. 2. Restart aria2.
  12431. 3. You see the download stopped around 99%.
  12432. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12433. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12434. If timeout is reached, then _nextCommand is unused and it may contains
  12435. segments and they won't be canceled. Actually, timeout is not needed
  12436. here because if the server dropped connection, then retry is made.
  12437. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12438. Added uTorrent compatible Peer Exchange.
  12439. * src/BencodeVisitor.{h, cc}
  12440. * test/BencodeVisitorTest.cc
  12441. * src/BtConstants.h
  12442. * src/BtContext.h: Added 'private' flag.
  12443. * src/BtExtendedMessage.{h, cc}
  12444. * test/BtExtendedMessageTest.cc
  12445. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12446. reserved field.
  12447. * test/BtHandshakeMessageTest.cc
  12448. * src/BtMessageFactory.h
  12449. * src/BtRegistry.h
  12450. * src/BtRuntime.h: This class holds default extension message IDs for
  12451. aria2. By default, aria2 uses ID 8 for ut_pex.
  12452. * src/DefaultBtContext.cc
  12453. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12454. When it is true, aria2 enables ut_pex. This value is set by
  12455. PeerInteractionCommand.
  12456. * src/DefaultBtMessageFactory.{h, cc}
  12457. * test/DefaultBtMessageFactoryTest.cc
  12458. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12459. handling to DefaultBtInteractive class.
  12460. * src/DefaultExtensionMessageFactory.{h, cc}
  12461. * test/DefaultExtensionMessageFactoryTest.cc
  12462. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12463. the container(peers and incomingPeers. The equality is determined by
  12464. Peer::id).
  12465. * test/DefaultPeerStorageTest.cc
  12466. * src/ExtensionMessage.h
  12467. * test/MockExtensionMessage.h
  12468. * src/ExtensionMessageFactory.h
  12469. * test/MockExtensionMessageFactory.h
  12470. * src/HandshakeExtensionMessage.{h, cc}
  12471. * test/HandshakeExtensionMessageTest.cc
  12472. * src/MetaEntry.h
  12473. * src/Peer.{h, cc}
  12474. * src/PeerInteractionCommand.cc
  12475. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12476. addIncomingPeer.
  12477. * src/PeerMessageUtil.{h, cc}
  12478. * src/PeerObject.h
  12479. * src/UTPexExtensionMessage.{h, cc}
  12480. * test/UTPexExtensionMessageTest.cc
  12481. * src/message.h
  12482. * src/prefs.h
  12483. Fixed the bug that returns incomplete data when it contains null
  12484. character. A convenient constructor was also added.
  12485. * src/Data.{h, cc}
  12486. Rewritten.
  12487. * src/CompactPeerListProcessor.cc
  12488. Fixed typos.
  12489. * src/message.h
  12490. * src/MetaFileUtil.cc
  12491. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12492. Added "Status Legend" label to the explanation text of 'stat' in
  12493. download result and moved it to the last. BUG#1848214
  12494. * src/RequestGroupMan.cc
  12495. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12496. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12497. * src/Makefie.am
  12498. * test/Makefile.am
  12499. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12500. Fixed the bug that prevents aria2 from loading cookie file when expire
  12501. value is greater than 2^31-1. BUG#1851066
  12502. * src/CookieBoxFactory.cc
  12503. * test/CookieBoxFactoryTest.cc
  12504. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12505. Fixed possible memory leak when an exception is thrown.
  12506. * src/XML2SAXMetalinkProcessor.cc
  12507. Added Expat support. If both libxml2 and Expat are installed, then
  12508. libxml2 is used by default.
  12509. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12510. ExpatMetalinkProcessor according to the configuration.
  12511. * src/ExpatMetalinkProcessor.{h, cc}
  12512. * src/main.cc: Removed libxml2 specific header and init/free function.
  12513. * src/MetalinkProcessorFactory.{h, cc}
  12514. * src/MetalinkHelper.cc
  12515. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12516. * src/MetalinkProcessor.h
  12517. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12518. MetalinkProcessorTest is used instead.
  12519. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12520. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12521. MetalinkProcessorFactory::newInstance().
  12522. * m4/libexpat.m4
  12523. * configure.ac: Added configuration options for libexpat.
  12524. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. Disabled -s option in metalink download.
  12526. * src/Metalink2RequestGroup.cc
  12527. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12528. If several protocols are available for a mirror in metalink file,
  12529. aria2 now use one of them. --metalink-preferred-protocol option was
  12530. added to specify the preference of protocol.
  12531. * src/AbstractCommand.cc
  12532. * src/OptionHandlerFactory.cc
  12533. * src/ServerHost.{h, cc}
  12534. * src/Metalink2RequestGroup.cc
  12535. * src/RequestGroup.{h, cc}
  12536. * test/RequestGroupTest.cc
  12537. * src/option_processing.cc
  12538. * src/prefs.h
  12539. * src/HttpResponseCommand.cc
  12540. * src/MetalinkResource.{h, cc}
  12541. * src/FtpNegotiationCommand.cc
  12542. * src/MetalinkEntry.{h, cc}
  12543. * src/MetalinkEntryTest.cc
  12544. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12545. Code cleanup and added debug log.
  12546. * src/PeerConnection.cc
  12547. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. Compiler error fix: applied the patch by Tiziano Mueller
  12549. * src/RequestGroup.cc
  12550. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12551. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12552. in stopped and completed event.
  12553. * src/AnnounceList.{h, cc}
  12554. * test/AnnounceListTest.cc
  12555. * src/DefaultBtAnnounce.cc
  12556. * test/DefaultBtAnnounceTest.cc
  12557. Sorted URLs.
  12558. * test/Metalink2RequestGroupTest.cc
  12559. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12560. Removed unnecessary string copy. Updated doc and corrected indentation.
  12561. * src/Base64.cc
  12562. Fixed compilation warnings
  12563. * test/DataTest.cc
  12564. * test/HttpRequestTest.cc
  12565. * test/MetaFileUtilTest.cc
  12566. * test/RequestTest.cc
  12567. * Release 0.12.0
  12568. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12569. Updated translations
  12570. * po/{de,fr,ja,nl,ru}.po
  12571. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12572. translations. Many thanks to translators.
  12573. * po/{ca,es,it,pt_BR,sv}.po
  12574. * po/LINGUAS
  12575. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12576. Added a notice about URL
  12577. * src/version_usage.cc
  12578. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12579. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12580. aria2 repeatedly sends stopped request when tracker returns error code.
  12581. * src/AnnounceList.cc
  12582. * test/AnnounceListTest.cc
  12583. * src/AnnounceTier.h
  12584. Added a message when ctrl-c is hit.
  12585. Now second ctrl-c is also handled in signal handler.
  12586. * src/RequestGroupMan.{h, cc}
  12587. * src/RequestGroup.{h, cc}
  12588. * src/MultiUrlRequestInfo.cc
  12589. * src/DownloadEngine.cc
  12590. * src/TrackerWatcherCommand.cc
  12591. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12592. Code cleanup
  12593. * src/Base64.cc (encode)
  12594. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. Changed Direct/IO enable/disable procesure in file allocation routine.
  12596. * src/SingleFileAllocationIterator.cc
  12597. (SingleFileAllocationIterator):
  12598. Disable directIO if offset is not multiple of 512.
  12599. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12600. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12601. Enable created SingleFileAllocationIterator's directIO.
  12602. * src/FileAllocationEntry.cc
  12603. (FileAllocationEntry): Enable directIO here.
  12604. (~FileAllocationEntry): Disable directIO here.
  12605. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12607. * src/Peer.{h, cc}
  12608. * src/DefaultPieceStorage.cc
  12609. * test/DefaultPieceStorageTest.cc
  12610. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12611. Rewritten direct I/O support routine
  12612. * src/SingleFileAllocationIterator.cc
  12613. * src/MultiDiskAdaptor.{h, cc}
  12614. * src/ByteArrayDiskWriter.h
  12615. * src/AbstractSingleDiskAdaptor.h
  12616. * src/AbstractDiskWriter.cc
  12617. * src/DefaultPieceStorage.cc
  12618. * src/DiskWriter.h
  12619. * src/BinaryStream.h
  12620. * src/IteratableChunkChecksumValidator.cc
  12621. * src/IteratableChecksumValidator.cc
  12622. * src/CheckIntegrityEntry.cc
  12623. * src/FileAllocationEntry.cc
  12624. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. Fixed typo
  12626. * src/version_usage.cc
  12627. Updated doc
  12628. * doc/aria2c.1.txt
  12629. * doc/aria2c.1
  12630. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. Fixed compile error without message digest support.
  12632. * src/FileMetalinkParserState.cc
  12633. * src/MetalinkParserController.{h, cc}
  12634. * test/XML2SAXMetalinkProcessorTest.cc
  12635. * test/MetalinkParserControllerTest.cc
  12636. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12637. Enable direct I/O support in checksum checking.
  12638. * src/IteratableChunkChecksumValidator.{h, cc}
  12639. * test/IteratableChunkChecksumValidatorTest.cc
  12640. * src/CheckIntegrityEntry.cc
  12641. * src/PieceHashCheckIntegrityEntry.cc
  12642. * src/IteratableChecksumValidator.{h, cc}
  12643. * src/BtCheckIntegrityEntry.cc: Added doc.
  12644. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. Added --allow-piece-length-change option.
  12646. * src/DefaultBtProgressInfoFile.cc
  12647. * test/DefaultBtProgressInfoFileTest.cc
  12648. * src/OptionHandlerFactory.cc
  12649. * src/option_processing.cc
  12650. * src/prefs.h
  12651. * src/version_usage.cc
  12652. * doc/aria2c.1.txt
  12653. * doc/aria2c.1
  12654. Fixed: duplicated result entry appears when exception is thrown in
  12655. RequestGroup::createInitiateConnectionCommand().
  12656. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12657. Add RequestGroup to _requestGroup after RequetGroup::
  12658. createInitiateConnectionCommand() succeeds.
  12659. Externalized message
  12660. * src/XML2SAXMetalinkProcessor.cc
  12661. * src/message.h
  12662. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. Forced download abort when received negative response from http/ftp
  12664. server.
  12665. * src/HttpResponseCommand.cc
  12666. * src/FtpNegotiationCommand.cc
  12667. * src/HttpResponse.cc
  12668. * src/FtpConnection.cc
  12669. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12671. the predecessor, Xml2MetalinkParser class.
  12672. I tested them against 94KB metalink file with 1234 chunk checksums.
  12673. The new one parsed it in 22msec, while it took 6000msec with old one.
  12674. * src/XML2SAXMetalinkProcessor.{h, cc}
  12675. * test/XML2SAXMetalinkProcessorTest.cc
  12676. * src/MetalinkParserController.{h, cc}
  12677. * test/MetalinkParserControllerTest.cc
  12678. * src/MetalinkParserState.h: Also added 16 subclasses.
  12679. * src/main.cc
  12680. * src/Metalink2RequestGroup.cc
  12681. * src/MetalinkHelper.cc
  12682. * src/MetalinkEntry.cc
  12683. * src/ChunkChecksum.h
  12684. Rewritten Base64 class for better performance.
  12685. * src/Base64.{h, cc}
  12686. * test/Base64Test.cc
  12687. * src/HttpRequest.cc
  12688. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12689. Fixed the bug#1841757: aria2 will connect to server to only get
  12690. file size.
  12691. * src/StreamFileAllocationEntry.cc
  12692. * src/option_processing.cc
  12693. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12694. downloads.
  12695. * src/FtpNegotiationCommand.cc
  12696. Suppressed wrong message when finding PreDownloadHandler
  12697. * src/RequestGroup.cc
  12698. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. Updated usage
  12700. * src/version_usage.cc
  12701. Updated man page
  12702. * doc/aria2c.1.txt
  12703. * doc/aria2c.1
  12704. Updated po files
  12705. * po/aria2c.pot
  12706. * po/*.po
  12707. * po/*.gmo
  12708. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. Eliminated g++-4.2 warning
  12710. * src/DownloadHandlerConstants.{h, cc}
  12711. * src/Util.cc
  12712. * test/MetaFileUtilTest.cc
  12713. * test/PStringBuildVisitorTest.cc
  12714. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12715. * src/RequestGroup.cc
  12716. * src/BtCheckIntegrityEntry.cc
  12717. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Fixed a2io.h
  12719. * src/a2io.h
  12720. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. Added direct I/O support. The current implementation uses O_DIRECT,
  12722. which is not posix standard and is tested on linux 2.6.21.
  12723. Currently only file allocation uses direct I/O.
  12724. * src/SingleFileAllocationIterator.{h, cc}
  12725. * test/SingleFileAllocationIteratorTest.cc
  12726. * src/MultiFileAllocationIterator.{h, cc}
  12727. * test/MultiFileAllocationIteratorTest.cc
  12728. * src/BinaryStream.h
  12729. * src/DiskWriter.h
  12730. * src/AbstractDiskWriter.{h, cc}
  12731. * src/ByteArrayDiskWriter.h
  12732. * src/DiskAdaptor.h
  12733. * src/AbstractSingleDiskAdaptor.{h, cc}
  12734. * src/MultiDiskAdaptor.{h, cc}
  12735. * src/FileAllocationEntry.cc
  12736. * src/Util.{h, cc}
  12737. * src/OptionHandlerFactory.cc
  12738. * src/prefs.h
  12739. * src/version_usage.cc
  12740. * src/option_processing.cc
  12741. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12742. handleException.
  12743. * src/MultiFileAllocationIterator.cc
  12744. Added EINTR handling
  12745. * src/SocketCore.cc
  12746. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. Updated usage
  12748. * src/version_usage.cc
  12749. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12750. Applied Ross's patch for MinGW port.
  12751. * src/DownloadEngine.h
  12752. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12753. Set Content-Type to SingleFileDownloadContext when http response is
  12754. received.
  12755. * src/HttpResponseCommand.cc
  12756. * src/HttpResponse.{h, cc}
  12757. * test/HttpResponseTest.cc
  12758. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Rewritten to add content-type support.
  12760. * src/DownloadHandler.{h, cc}
  12761. * src/BtPostDownloadHandler.{h, cc}
  12762. * test/BtPostDownloadHandlerTest.cc
  12763. * src/MetalinkPostDownloadHandler.{h, cc}
  12764. * test/MetalinkPostDownloadHandlerTest.cc
  12765. * src/PostDownloadHandler.{h, cc}
  12766. * src/DownloadHandlerConstants.{h, cc}
  12767. * src/RequestGroup.cc
  12768. * src/HttpResponseCommand.cc
  12769. * src/FtpNegotiationCommand.cc
  12770. * src/SingleFileDownloadContext.{h, cc}
  12771. * src/RequestGroup.h
  12772. * src/RequestGroupCriteria.h
  12773. * src/ContentTypeRequestGroupCriteria.h
  12774. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12775. If it is give, metalink/torrent file is not written to the disk, but
  12776. just is kept in memory. Parsing is occurred on memory.
  12777. * src/MetalinkHelper.{h, cc}
  12778. * src/MetalinkProcessor.h
  12779. * src/Xml2MetalinkProcessor.{h, cc}
  12780. * test/Xml2MetalinkProcessorTest.cc
  12781. * src/DownloadHandlerFactory.{h, cc}
  12782. * test/DownloadHandlerFactoryTest.cc
  12783. * src/PreDownloadHandler.{h, cc}
  12784. * src/OptionHandlerFactory.cc
  12785. * src/DefaultBtContext.{h, cc}
  12786. * test/DefaultBtContextTest.cc
  12787. * src/version_usage.cc
  12788. * src/Metalink2RequestGroup.{h, cc}
  12789. * src/RequestGroup.{h, cc}
  12790. * src/a2functional.h
  12791. * test/a2functionalTest.cc
  12792. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12793. * src/OptionHandlerImpl.h
  12794. * src/prefs.h
  12795. * src/Util.{h, cc}
  12796. * test/UtilTest.cc
  12797. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12798. memory usage.
  12799. * src/RequestGroupMan.{h, cc}
  12800. * src/DownloadEngine.cc
  12801. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12802. WeakHandle to SharedHandle because WeakHandle could be null.
  12803. * src/RequestGroup.{h, cc}
  12804. * src/DownloadEngineFactory.cc
  12805. * src/DownloadResult.h
  12806. Set totalLength after download finished
  12807. * src/UnknownLengthPieceStorage.{h, cc}
  12808. Keep torrent file specified in metalink in memory.
  12809. * src/Metalink2RequestGroup.cc
  12810. * src/BtDependency.cc
  12811. * src/TrueRequestGroupCriteria.h
  12812. Fixed the bug: seekg is used where seekp should be used.
  12813. * src/ByteArrayDiskWriter.cc
  12814. * test/ByteArraydiskWriterTest.cc
  12815. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12816. Fixed syntax error
  12817. * test/SequenceTest.cc
  12818. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12820. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12821. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12822. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12823. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12824. Added the check to see whether ares_host_callback accepts timeouts
  12825. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12826. * src/NameResolver.{h, cc}
  12827. * m4/libcares.m4
  12828. * configure.ac: Set C++ for language choice.
  12829. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12830. Fixed: compilation fails without c-ares/ares
  12831. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12832. Generate http/ftp commands only when download is incomplete.
  12833. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12834. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12835. Corrected typo. Examples are removed since they are available in man
  12836. page.
  12837. * src/version_usage.cc
  12838. Updated man page.
  12839. * doc/aria2c.1
  12840. * doc/aria2c.1.txt
  12841. * doc/makeman: Commented out sed command.
  12842. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. Throw DlAbortEx when a remote file is not found.
  12844. * src/HttpResponse.cc
  12845. * src/FtpNegotiationCommand.cc
  12846. * src/message.h
  12847. Overwrite an existing file if --allow-overwrite=true is given.
  12848. * src/RequestGroup.cc
  12849. Removed unused functions
  12850. * src/AbstractCommand.h
  12851. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12852. Removed 'extern' from 'extern typedef ...' in src/*.h
  12853. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. Updated usage
  12855. * src/version_usage.cc
  12856. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12857. Trim announce URL
  12858. * src/DefaultBtContext.cc
  12859. * test/ShaVisitorTest.cc
  12860. Trim argument s. Give trimed s to exception constructor.
  12861. * src/Util.cc (parseInt)(parseLLInt)
  12862. * test/UtilTest.cc
  12863. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12864. Set precision back to 1.
  12865. * src/ConsoleStatCalc.cc (calculateStat)
  12866. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12867. Replaced strtol with Util::parseInt
  12868. * src/ChunkedEncoding.cc
  12869. * src/HttpConnection.cc
  12870. * src/CookieBoxFactory.cc
  12871. * src/ParameterizedStringParser.cc
  12872. * src/Util.cc
  12873. * test/UtilTest.cc
  12874. * test/OptionHandlerTest.cc
  12875. * src/Request.cc
  12876. Throw exception when empty string is given. The message for exception
  12877. changed.
  12878. * src/Util.cc (parseInt)(parseLLInt)
  12879. * src/message.h
  12880. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12881. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12882. set to 1.
  12883. * src/ConsoleStatCalc.cc (calculateStat)
  12884. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12885. Preallocate non-requested file which is adjacent forward to requested
  12886. file('requested' files means the files given in --select-file option)
  12887. if they share a same piece.
  12888. This fixes long pause in the file system which doesn't support sparse
  12889. files like FAT32 while downloading.
  12890. * src/MultiFileAllocationIterator.{h, cc}
  12891. * test/MultiFileAllocationIteratorTest.cc
  12892. * src/FileEntry.{h, cc}
  12893. Removed unused _option.
  12894. * src/MultiDiskAdaptor.h
  12895. * test/MultiDiskAdaptorTest.cc
  12896. * src/DefaultPieceStorage.cc
  12897. Set the default value of --seed-ratio to 1.0.
  12898. If 0.0 is given, then seeding continues regardless of share ratio.
  12899. * src/version_usage.cc
  12900. * src/option_processing.cc
  12901. * src/BtSetup.cc
  12902. * doc/aria2c.1.txt
  12903. * doc/aria2c.1
  12904. Fixed: Selective download is not working in BitTorrent
  12905. * src/RequestGroup.cc
  12906. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12907. * src/PieceStorage.h
  12908. * test/MockPieceStorage.h
  12909. * src/UnknownLengthPieceStorage.h
  12910. * src/DefaultPieceStorage.{h, cc}
  12911. * src/Metalink2RequestGroup.cc
  12912. * src/RequestGroup.cc
  12913. * src/Sequence.h
  12914. * test/SequenceTest.cc
  12915. * src/IntSequence.h
  12916. * src/message.h
  12917. * src/Util.{h, cc}
  12918. * test/UtilTest.cc
  12919. Added new function 'parse' to catch exception thrown by subclass's
  12920. parseArg
  12921. * src/OptionHandler.h
  12922. * src/OptionParser.cc
  12923. * src/NameMatchOptionHandler.h
  12924. * src/OptionHandlerImpl.h
  12925. * test/OptionHandlerTest.cc
  12926. Added IntegerRangeOptionHandler. Used for --listen-port and
  12927. --select-file. Now --listen-port accepts range of port.
  12928. * src/OptionHandlerFactory.cc
  12929. * src/version_usage.cc
  12930. * src/OptionHandlerImpl.h
  12931. * src/option_processing.cc
  12932. * src/BtSetup.cc
  12933. * src/PeerListenCommand.{h, cc}
  12934. * doc/aria2c.1.txt
  12935. * doc/aria2c.1
  12936. Implemented operator< for Exception class to provide easy way to print
  12937. exception stack trace.
  12938. * src/Exception.{h, cc}
  12939. * src/main.cc
  12940. * src/option_processing.cc
  12941. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12942. * src/version_usage.cc
  12943. (showVersion): Reworked.
  12944. (showUsage): Added examples.
  12945. Removed Hint for total length and file name.
  12946. * src/Metalink2RequestGroup.cc
  12947. * src/RequestGroup.{h, cc}
  12948. * src/HttpResponseCommand.cc
  12949. * src/FtpNegotiationCommand.cc
  12950. Now --follow-torrent and --follow-metalink option work properly.
  12951. * src/RequestGroup.cc
  12952. Updated man page
  12953. * doc/aria2c.1.txt
  12954. * doc/aria2c.1
  12955. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. Removed.
  12957. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12958. Use Segment::operator==()
  12959. * src/HttpConnection.cc
  12960. * src/Segment.h
  12961. Updated usage
  12962. * src/version_usage.cc
  12963. Added EINTR treatment.
  12964. * src/SocketCore.cc
  12965. * src/AbstractDiskWriter.cc
  12966. Rewritten.
  12967. * src/Util.cc (rangedFileCopy)
  12968. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12969. Fixed typo.
  12970. * src/version_usage.cc
  12971. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12972. Implemented. Now -c option works fine.
  12973. * src/DefaultPieceStorage.cc (markPiecesDone)
  12974. * test/DefaultPieceStorageTest.cc
  12975. Removed.
  12976. * src/SegmentMan.{h, cc}
  12977. (markAllPiecesDone)
  12978. (markPieceDone)
  12979. Synchronized po files with
  12980. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12981. * src/fr.po
  12982. * src/ru.po
  12983. * src/de.po
  12984. * src/ja.po
  12985. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12986. Added ifdef and some modifications to compile without BitTorrent,
  12987. Metalink, MessageDigest
  12988. support.
  12989. * src/PieceHashCheckIntegrityEntry.cc
  12990. * src/MetalinkEntry.h
  12991. * src/version_usage.cc
  12992. * src/main.cc
  12993. * src/DownloadEngine.{h, cc}
  12994. * src/Metalink2RequestGroup.cc
  12995. * src/Peer.cc
  12996. * src/RequestGroup.cc
  12997. * src/MetalinkHelper.cc
  12998. * test/DefaultPieceStorageTest.cc
  12999. * test/MetalinkPostDownloadHandlerTest.cc
  13000. * test/Metalink2RequestGroupTest.cc
  13001. Hide TOTAL SPD when all downloads complete.
  13002. * src/ConsoleStatCalc.cc
  13003. Log target system information.
  13004. * src/main.cc
  13005. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13006. Now --metalink-location accepts a comma-deliminated list of locations.
  13007. * src/MetalinkEntry.{h, cc}
  13008. * test/MetalinkEntryTest.cc
  13009. * src/version_usage.cc
  13010. * src/Metalink2RequestGroup.cc
  13011. * src/Xml2MetalinkProcessor.cc
  13012. * test/Xml2MetalinkProcessorTest.cc
  13013. * doc/aria2c.1.txt
  13014. * doc/aria2c.1
  13015. * src/Util.cc (toUpper)(toLower): Rewritten.
  13016. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13017. Added the ability to detect duplicate download entry which is about to
  13018. download the same file other RequestGroup is downloading.
  13019. * src/RequestGroup.cc
  13020. * src/HttpResponseCommand.cc
  13021. * src/FtpNegotiationCommand.cc
  13022. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13023. Recalculates download progress when loading a control file,
  13024. if the piece length of DownloadContext is different from the one saved
  13025. in the control file. Currently in-flight pieces are ignored.
  13026. * src/DefaultBtProgressInfoFile.cc
  13027. * test/DefaultBtProgressInfoFileTest.cc
  13028. * src/Util.{h, cc}
  13029. * test/UtilTest.cc
  13030. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13031. Do not rotate tiers in announce-list.
  13032. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13033. AnnounceList::allTiersFailed() used instead to detect whether all
  13034. tiers are tried and failed.
  13035. * test/DefaultBtAnnounceTest.cc
  13036. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13037. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13038. * test/AnnounceListTest.cc
  13039. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13040. clause. Catch RecoverableException instead of DlRetryEx instead.
  13041. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. Implemented checksum validation feature(1 checksum for each file)
  13043. The validation takes place after the download.
  13044. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13045. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13046. * src/CheckIntegrityCommand.cc: Changed log message.
  13047. * src/Metalink2RequestGroup.cc: Set checksum to
  13048. SingleFileDownloadContext.
  13049. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13050. PieceHashCheckIntegrity class.
  13051. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13052. PieceHashCheckIntegrity class.
  13053. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13054. * src/IteratableValidator.h: New class.
  13055. * src/message.h
  13056. * src/CheckIntegrityEntry.{h, cc}
  13057. * src/IteratableChunkChecksumValidator.{h, cc}
  13058. * src/SingleFileDownloadContext.h
  13059. * src/DownloadCommand.cc
  13060. --allow-overwrite=true is no longer needed to check file integrity
  13061. before download in BitTorrent download.
  13062. * src/RequestGroup.cc (getInitialCommand)
  13063. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13064. throws exception.
  13065. * src/RequestGroupMan.cc (getInitialCommands)
  13066. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. urlencode the given url inside Request::parseUrl(...)
  13068. * src/Request.{h, cc}
  13069. * src/Util.{h, cc}
  13070. * test/RequestTest.cc
  13071. Removed #!metalink3! notation support because it is deleted from
  13072. the metalink specification.
  13073. * src/Request.{h, cc}
  13074. * test/RequestTest.cc
  13075. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13076. Don't connect server before checking file integrity at startup, if
  13077. filesize and output file path are known.
  13078. * src/AbstractCommand.cc
  13079. * src/StreamFileAllocationEntry.cc
  13080. * src/Metalink2RequestGroup.cc
  13081. * src/RequestGroup.{h, cc}
  13082. * src/HttpResponseCommand.cc
  13083. * src/FtpNegotiationCommand.cc
  13084. Added DownloadFailureException. If it is thrown, RequestGroup should
  13085. halt.
  13086. * src/AbstractCommand.cc
  13087. * src/DownloadFailureException.h
  13088. * src/RequestGroup.cc
  13089. Catch RecoverableException, instead of DlAbortEx.
  13090. * src/RequestGroupMan.cc
  13091. * src/FillRequestGroupCommand.cc
  13092. * src/MetaFileUtil.cc
  13093. * src/IteratableChunkChecksumValidator.cc
  13094. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13095. getGID())
  13096. * src/CheckIntegrityCommand.cc
  13097. * src/message.h
  13098. Print gid instead of idx.
  13099. * src/RequestGroupMan.cc
  13100. Removed exception throwers declaration.
  13101. * src/DirectDiskAdaptor.{h, cc}
  13102. * src/SocketCore.{h, cc}
  13103. * src/MultiDiskAdaptor.{h, cc}
  13104. * src/HttpConnection.{h, cc}
  13105. * src/HttpResponse.{h, cc}
  13106. * src/DiskAdaptor.{h, cc}
  13107. * src/CopyDiskAdaptor.{h, cc}
  13108. * src/MultiDiskAdaptor.{h, cc}
  13109. * src/HttpHeaderProcessor.{h, cc}
  13110. * src/AbstractSingleDiskAdaptor.{h, cc}
  13111. * src/Util.{h, cc}
  13112. * test/UtilTest.cc
  13113. * src/DefaultDiskWriter.{h, cc}
  13114. * src/FtpConnection.{h, cc}
  13115. * src/AbstractDiskWriter.{h, cc}
  13116. Removed duplicate code.
  13117. * src/StreamCheckIntegrityEntry.cc
  13118. Removed unnecessary include.
  13119. * src/DiskWriter.h
  13120. Included Exception.h
  13121. * src/option_processing.cc
  13122. Included 2 files and added doc
  13123. * src/TrackerWatcherCommand.cc
  13124. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13125. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. Changed CheckIntegrityEntry interface so that it can define
  13127. the action when all the chunk checksums are valid.
  13128. * src/CheckIntegrityEntry.h
  13129. * src/StreamCheckIntegrityEntry.{h, cc}
  13130. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13131. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13132. to exit rather than doing seeding. So, it would be good to toggle this
  13133. behavior.
  13134. * src/CheckIntegrityCommand.cc
  13135. * src/AbstractCommand.cc
  13136. * src/RequestGroup.cc
  13137. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13138. Reflect the download length of in-flight pieces.
  13139. It makes the download length readout more precise.
  13140. * src/DefaultPieceStorage.{h, cc}
  13141. * test/DefaultPieceStorageTest.cc
  13142. * src/a2functional.h
  13143. * test/a2functionalTest.cc
  13144. Lower CPU load when --max-download-limit is used.
  13145. There is up and down in speed indicator when enabling
  13146. http-pipelining but a download goes well. I think the problem is that
  13147. because http-pipelining is enabled, DownloadCommand is created for
  13148. each segment and in its constructor, PeerStat::downloadStart() is
  13149. called. In PeerStat::downloadStart(), speed calculation object is
  13150. reseted, which makes download speed zero.
  13151. * src/DownloadCommand.cc
  13152. Rewritten using accumulate.
  13153. * src/RequestGroupMan.cc (calculateStat)
  13154. Code clearnup.
  13155. * src/FtpNegotiationCommand.cc
  13156. * src/HttpResponseCommand.cc
  13157. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13158. Fixed: Can not resume: aria2 reports download already finished.
  13159. * src/AbstractCommand.{h, cc}
  13160. * src/HttpResponseCommand.cc
  13161. * src/FtpNegotiateCommand.cc
  13162. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13163. Now a file is stored in the directory specified in .metalnk file
  13164. (file[@name]).
  13165. * src/Metalink2RequestGroup.cc
  13166. Create the directory structure when opening the file if it doesn't
  13167. exist.
  13168. * src/AbstractDiskWriter.cc
  13169. * src/Util.{h, cc}
  13170. * src/File.h
  13171. * test/UtilTest.cc
  13172. Removed file name comparison
  13173. * src/Metalink2RequestGroup.cc
  13174. * src/HttpResponseCommand.cc
  13175. Rewritten using Util::mkdirs()
  13176. * src/FileEntry.cc (setupDir)
  13177. * test/FileEntryTest.cc
  13178. Updated doc
  13179. * src/SingleFileDownloadContext.h
  13180. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13181. Now SleepCommand dispatches nextCommand when halt is requested.
  13182. It avoids a possible long wait after hitting CTRL-C.
  13183. * src/SleepCommand.{h, cc}
  13184. * src/RequestGroupAware.{h, cc}
  13185. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13187. to open listen port, then remove the port number from the tracker
  13188. request.
  13189. * src/DefaultBtAnnounce.cc
  13190. * test/DefaultBtAnnounceTest.cc
  13191. * test/MockPieceStorage.h
  13192. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13193. them more testable.
  13194. * src/DefaultBtAnnounce.{h, cc}
  13195. * src/DefaultBtContext.{h, cc}
  13196. * src/Util.{h, cc}
  13197. * test/DefaultBtAnnounceTest.cc
  13198. * test/DefaultBtContextTest.cc
  13199. * test/UtilTest.cc
  13200. Added 'B' to upload bytes readout.
  13201. * src/ConsoleStatCalc.cc
  13202. Now the listen port for BitTorrent download is opened when it is
  13203. needed.
  13204. * src/DownloadEngineFactory.cc
  13205. * src/BtSetup.{h, cc}
  13206. * src/PeerListenCommand.{h, cc}
  13207. Now an exception thrown while parsing tracker response is now logged.
  13208. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13209. called, which means no retry is made in this case, assuming a tracker
  13210. has a problem.
  13211. * src/TrackerWatcherCommand.cc
  13212. Fixed: downloading a file whose length is unkown fails.
  13213. * src/DownloadCommand.cc
  13214. Simplified prepareForNextSegment()
  13215. * src/DownloadCommand.cc
  13216. Updated
  13217. * po/POTFILES.in
  13218. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13219. Re-implemented a file listing for Metalink, which was dropped while
  13220. http/ftp/torrent integration was being implemented.
  13221. * src/MetalinkHelper.{h, cc}: New class.
  13222. * test/MetalinkHelperTest.cc
  13223. * src/main.cc
  13224. * src/Metalink2RequestGroup.cc
  13225. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13226. Added the ability to display the detailed torrent file information.
  13227. Now -S option gives not only a file listing, but also total download
  13228. length, info hash, announce URI, piece length, the number of pieces,
  13229. and mode(single or multi-torrent).
  13230. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13231. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13232. KiB)
  13233. * test/UtilTest.cc
  13234. * src/main.cc
  13235. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13236. Added ftp://USER:PASSWD@Servername automatic parsing.
  13237. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13238. _password. Recognize username and password in URI.
  13239. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13240. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13241. * src/RequestFactory.{h, cc}: Removed.
  13242. * src/AuthConfigFactory.{h, cc}: New class.
  13243. * src/FtpConnection.cc: Use AuthConfigFactory.
  13244. * src/HttpRequest.cc: Use AuthConfigFactory.
  13245. * test/HttpRequestTest.cc: Updated.
  13246. * test/RequestTest.cc: Updated.
  13247. * test/AuthConfigFactoryTest.cc: New class.
  13248. * test/RequestFactoryTest.cc: Removed.
  13249. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13250. Use RequestGroup::allDownloadFinished() to decide whether the control
  13251. file should be removed or saved.
  13252. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13253. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13254. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13255. Use File::renameTo()
  13256. * src/DefaultBtProgressInfoFile.cc
  13257. Added --no-file-allocation-limit command-line option.
  13258. * src/version_usage.cc
  13259. * src/option_processing.cc
  13260. * src/OptionHandlerFactory.cc
  13261. * src/RequestGroup.{h, cc}
  13262. * src/BtCheckIntegrityEntry.cc
  13263. * src/StreamCheckIntegrityEntry.cc
  13264. * src/prefs.h
  13265. * doc/aria2c.1.txt
  13266. * doc/aria2c.1
  13267. Now prealloc is the default value for --file-allocation option.
  13268. * src/version_usage.cc
  13269. * src/option_processing.cc
  13270. * doc/aria2c.1.txt
  13271. * doc/aria2c.1
  13272. Don't URL-encode user-agent.
  13273. * src/HttpRequest.cc
  13274. Updated translations
  13275. * po/LINGUAS: Added nl for Dutch translation.
  13276. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13277. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13278. * po/POTFILES.in: Updated.
  13279. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13280. Added the ability to recognize url-list in a torrent file.
  13281. The retrieved URLs are attached to the corresponding FileEntry.
  13282. * src/DefaultBtContext.{h, cc}
  13283. * src/FileEntry.{h, cc}
  13284. * test/DefaultBtContextTest.cc
  13285. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13286. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13287. after the download finishes.
  13288. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13289. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13290. the data smaller than block length.
  13291. A block length can be specified by constructor's argument.
  13292. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13293. Get a missing piece in the range of given FileEntry. This function is
  13294. not used in the program yet.
  13295. * src/Util.h: Added some macros.
  13296. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13297. Added HTTP/1.1 keep alive and pipelining support.
  13298. See --enable-http-keep-alive and --enable-http-pipelining option.
  13299. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13300. Segment.
  13301. * src/HttpDownloadCommand.{h, cc}
  13302. * src/OptionHandlerFactory.cc
  13303. * src/HttpConnection.{h, cc}
  13304. * src/version_usage.cc
  13305. * src/HttpInitiateConnectionCommand.cc
  13306. * src/FtpInitiateConnectionCommand.cc
  13307. * src/Segment.h
  13308. * src/HttpRequestCommand.{h, cc}
  13309. * src/option_processing.cc
  13310. * src/prefs.h
  13311. * src/HttpResponseCommand.cc
  13312. * src/SegmentMan.{h, cc}
  13313. * src/FtpNegotiateCommand.cc
  13314. * src/HttpProxyResponseCommand.cc
  13315. * src/Request.cc
  13316. * src/HttpRequest.cc
  13317. * src/DownloadCommand.cc
  13318. * test/HttpRequestTest.cc
  13319. * test/RequestTest.cc
  13320. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13321. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13322. finished.
  13323. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13324. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13325. catching it inside the method.
  13326. When no file entry is found in a metalink without querying user
  13327. preferences, throw the exception with the error message that suggests
  13328. metalink file is probably broken.
  13329. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13330. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13331. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13332. processed.
  13333. * src/RequestGroupMan.cc (removeStoppedGroup)
  13334. Added debug message.
  13335. * src/BtPostDownloadHandler.cc
  13336. * src/MetalinkPostDownloadHandler.cc
  13337. * src/PostDownloadHandler.{h, cc}
  13338. * src/RequestGroup.cc
  13339. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13340. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13341. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13342. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13343. stops and there are any unfinished or in-progress downloads.
  13344. Added the legend of "stat".
  13345. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13346. Throw exception when chunck checksum verification fails.
  13347. * src/DownloadCommand.cc (validatePieceHash): New function.
  13348. * src/PiecedSegment.{h, cc} (clear): New function.
  13349. * src/GrowSegment.{h, cc} (clear): New function.
  13350. * src/Segment.h (clear): New function.
  13351. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13352. * test/SegmentTest.cc
  13353. * test/GrowSegmentTest.cc
  13354. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13355. Do not send referer when redirected.
  13356. * src/Request.cc (redirectUrl)
  13357. * test/RequestTest.cc
  13358. * test/HttpRequestTest.cc
  13359. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13360. Implemented BitTorrent/http/ftp integrated download.
  13361. I've rewritten lots of files and now some headers have forward
  13362. class declarations to reduce compile time.
  13363. The implementation is extremely alpha stage, I recommend to use this
  13364. for testing purpose only.
  13365. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13366. Fixed the compilation error on 64bit platform.
  13367. * test/HttpHeaderProcessorTest.cc
  13368. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13369. Merged Ross's patch that fixes compilation problem in MinGW
  13370. * test/DefaultBtProgressInfoFileTest.cc
  13371. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13372. Updated fr.po by sebone
  13373. * po/fr.po
  13374. Updated man page.
  13375. * doc/aria2c.1.txt
  13376. * Release 0.11.3
  13377. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13378. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13379. failure in Metalink.
  13380. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. Automatically save *.aria2 control file of http/ftp download in every
  13382. 60 seconds.
  13383. * src/AutoSaveCommand.{h, cc}: New class.
  13384. * src/TimeBasedCommand.{h, cc}: New class.
  13385. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13386. Disable parameterized URI support by default. Added -P option to
  13387. enable the feature.
  13388. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13389. * src/OptionHandlerFactory.cc
  13390. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13391. Updated Japanese translation.
  13392. * po/ja.po
  13393. Updated man page.
  13394. * doc/aria2c.1.txt
  13395. * Release 0.11.3-rc
  13396. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13397. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13398. it is successful, then renamed to *.aria2.
  13399. This prevents *.aria2 file from being truncated or corrupted when
  13400. file system becomes out of space.
  13401. * src/DefaultBtProgressInfoFile.cc (save)
  13402. * src/SegmentMan.cc (save)
  13403. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13404. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13405. Reduced the fragmentation of bitfield in http/ftp download.
  13406. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13407. * test/BitfieldManTest.cc
  13408. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13409. Added the ability to disable segmented download in .metalink.
  13410. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13411. 'url' tag.
  13412. * src/MetalinkEntry.{h, cc}
  13413. * src/RequestResource.{h, cc}
  13414. * src/MetalinkRequestInfo.cc
  13415. * src/Xml2MetalinkProcessor.cc
  13416. * test/Xml2MetalinkProcessorTest.cc
  13417. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13418. Added parameterized URI support.
  13419. * src/main.cc: -Z option added.
  13420. * src/OptionHandlerFactory.cc
  13421. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13422. * src/PStringDatum.h: New class.
  13423. * src/PStringSegment.{h,cc}: New class.
  13424. * src/PStringNumLoop.h: New class.
  13425. * src/PStringSelect.h: New class.
  13426. * src/NumberDecorator.h: New class.
  13427. * src/FixedWidthNumberDecorator.h: New class.
  13428. * src/AlphaNumberDecorator.h: New class.
  13429. * src/PStringVisitor.h: New class.
  13430. * src/PStringBuildVisitor.{h,cc}: New class.
  13431. * src/ParameterizedStringParser.{h,cc}: New class.
  13432. * src/Util.{h,cc}
  13433. (isNumber): New function.
  13434. (isLowercase): New function.
  13435. (isUppercase): New function.
  13436. (alphaToNum): New function.
  13437. * test/ParameterizedStringParserTest.cc: New class.
  13438. * test/AlphaNumberDecoratorTest.cc: New class.
  13439. * test/PStringBuildVisitorTest.cc: New class.
  13440. * test/UtilTest.cc
  13441. (testIsNumber): New function.
  13442. (testIsLowercase): New function.
  13443. (testIsUppercase): New function.
  13444. (testAlphaToNum): New function.
  13445. Added '\n' after the error message
  13446. * src/RequestInfo.h (printDownloadAbortMessage)
  13447. Added auto file renaming feature in http(s)/ftp download.
  13448. * src/main.cc: Added --auto-file-renaming command-line option.
  13449. * src/OptionHandlerFactory.cc
  13450. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13451. * src/RequestGroup.{h, cc}
  13452. (shouldCancelDownloadForSafety): Rewritten
  13453. (tryAutoFileRenaming): New function.
  13454. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13455. * src/HttpResponseCommand.cc
  13456. (executeInternal): Removed the call to RequestGroupMan::
  13457. isSameFileBeingDownloaded()
  13458. * src/FtpNegotiateCommand.cc
  13459. (recvSize): Removed the call to RequestGroupMan::
  13460. isSameFileBeingDownloaded()
  13461. * test/RequestGroupTest.cc: New class.
  13462. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13463. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13464. IO.
  13465. * src/DefaultBtProgressInfoFile.cc
  13466. * src/MetaFileUtil.cc
  13467. * src/SimpleLogger.cc
  13468. * src/SegmentMan.cc
  13469. * src/Util.cc
  13470. * src/Platform.cc
  13471. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13472. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13473. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13474. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13475. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13476. Fixed the bug that prevents file allocation is not done when
  13477. dowloading multi-torrent file.
  13478. * src/AbstractDiskWriter.cc (openFile)
  13479. Increase the maximum number of -j option from 15 to 45.
  13480. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13481. Added fr.po, thanks to Charles Landemaine.
  13482. * po/fr.po
  13483. * po/LINGUAS
  13484. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13485. gcc 3.4.4 support:
  13486. * src/DefaultBtContext.cc: int32_t -> int
  13487. * src/main.cc: int -> int32_t, int32_t -> int
  13488. * src/messageDigest.h: uint32_t -> unsigned int
  13489. * src/NameResolver.h: int32_t -> int
  13490. * src/PeerConnection.cc: int -> int32_t
  13491. * src/SpeedCalc.cc: int32_t -> int
  13492. * src/TrackerUpdateCommand.h: int -> int32_t
  13493. * src/Util.cc: int32_t -> int
  13494. * src/Util.h: int32_t -> int
  13495. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13496. * test/AnnounceListTest.cc: int -> int32_t
  13497. * test/ChunkedEncodingTest.cc: int -> int32_t
  13498. * test/DataTest.cc: int -> int32_t
  13499. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13500. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13501. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13502. * test/FeatureConfigTest.cc: int -> int32_t
  13503. * test/MetalinkEntryTest.cc: int -> int32_t
  13504. * test/MockBtRequestFactory.h: int -> int32_t
  13505. * test/MockPieceStorage.h: int -> int32_t
  13506. * test/OptionTest.cc: int -> int32_t
  13507. * test/RequestTest.cc: int -> int32_t
  13508. * test/SegmentManTest.cc: int -> int32_t
  13509. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13510. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13511. Move sleep functions to Util class:
  13512. * src/Util.cc
  13513. (sleep): New function.
  13514. (usleep): New function.
  13515. * src/DownloadCommand.cc: sleep -> Util::sleep
  13516. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13517. MinGW build enhancements. The following files are added:
  13518. * src/timegm.{c,h}
  13519. Changes to support the above new files:
  13520. * configure.ac
  13521. * src/Makefile.am
  13522. * src/a2time.h
  13523. * src/Util.cc:
  13524. * src/strptime.c: Added support for %Z option.
  13525. Fixed MinGW non-blocking bug.
  13526. * src/SocketCore.cc
  13527. * src/HttpRequestCommand.cc
  13528. Miscellenous build fixes/enhancements.
  13529. * configure.ac: Added summary report.
  13530. * src/Platform.h: Tweaked #include's.
  13531. * src/a2netcompat.h: Tweaked #include's.
  13532. * src/strptime.h: Tweaked #include's.
  13533. * src/gai_strerror.c: Tweaked #include's.
  13534. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13535. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13536. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13537. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13538. Increased the initial connection size in BitTorrent download to 40.
  13539. * src/BtRuntime.h
  13540. Added the usage message of --peer-id-prefix option.
  13541. * src/main.cc
  13542. * Release 0.11.2
  13543. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13544. MessageDigestHelper is introduced in order to simplify the use
  13545. of message digest. Removed repeated code.
  13546. The message digest algorithm is now specified by string, like "sha1",
  13547. "md5".
  13548. * src/messageDigest.{h, cc}
  13549. * src/MessageDigestHelper.{h, cc}: New class.
  13550. * src/DefaultPieceStorage.cc
  13551. * src/DefaultBtContext.{h, cc}
  13552. (computeFastSet): New function.
  13553. (setInfoHash): Added for unit testing.
  13554. (setNumPieces): Added for unit testing.
  13555. * src/DefaultBtInteractive.cc
  13556. * src/BtPieceMessage.cc
  13557. * src/Peer.cc
  13558. * src/Checksum.h
  13559. * src/message.h
  13560. * src/IteratableChecksumValidator.h
  13561. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13562. inside it.
  13563. * src/SegmentMan.{h, cc}
  13564. (checkIntegrity): Removed.
  13565. * src/IteratableChunkChecksumValidator.{h, cc}
  13566. * src/Util.h
  13567. (sha1Sum): Removed.
  13568. (simpleMessageDigest): Removed.
  13569. (fileChecksum): Removed.
  13570. (computeFastSet): Removed.
  13571. * src/ShaVisitor.cc
  13572. * src/ChunkChecksum.h
  13573. * src/DownloadCommand.cc
  13574. Removed messageDigest virtual functions.
  13575. * src/MultiDiskAdaptor.{h, cc}
  13576. * src/DiskAdaptor.h
  13577. * src/ByteArrayDiskWriter.h
  13578. * src/DiskWriter.h
  13579. * src/DiskAdaptorWriter.h
  13580. * src/AbstractSingleDiskAdaptor.{h, cc}
  13581. * src/AbstractDiskWriter.{h, cc}
  13582. Fixed comilation error when message digest is disabled.
  13583. * src/MetalinkEntry.{h, cc}
  13584. * src/MetalinkRequestInfo.cc
  13585. Removed srandom and random.
  13586. * src/SimpleRandomizer.h
  13587. Added size() virtual function to DiskAdaptor
  13588. * src/MultiDiskAdaptor.h
  13589. Fixed the bug that causes that files are not opened correctly in
  13590. multi-file torrent.
  13591. * src/TorrentRequestInfo.cc
  13592. * src/MultiDiskAdaptor.cc
  13593. Added SHA256 support
  13594. * src/messageDigest.cc
  13595. * src/Xml2MetalinkProcessor.cc
  13596. Show supported message digest algorithms
  13597. * src/main.cc
  13598. Updated contact info.
  13599. * src/main.cc
  13600. Applied Ross's patch
  13601. * src/a2netcompat.h
  13602. * src/main.cc
  13603. Fixed the bug that prevents a remote metalink from not being processed
  13604. even if '-o foo.metalink' is specified.
  13605. * src/MetalinkRequestInfo.cc
  13606. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13607. Merged Dan's patch:
  13608. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13609. Use va_copy to avoid core dump on amd64:
  13610. * src/SimpleLogger.cc
  13611. Updated contact info.
  13612. * src/main.cc
  13613. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13614. digest is not available.
  13615. * src/MetalinkEntry.h
  13616. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13617. Make a2netcompat.h include a2io.h to fix compilation error:
  13618. * src/a2netcompat.h
  13619. * src/SocketCore.cc: Removed include of a2io.h
  13620. * src/Util.cc: Removed include of a2io.h
  13621. Gather time related functions to a2time.h:
  13622. * src/a2time.h: New file.
  13623. * src/DefaultPeerStorage.cc
  13624. * src/SimpleLogger.cc
  13625. * src/Util.{h, cc}
  13626. * src/SimpleRandomizer.h
  13627. * src/TimeA2.{h,cc}
  13628. * src/DownloadCommand.cc
  13629. * src/main.cc
  13630. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13631. a2netcompat.h:
  13632. * src/NameResolver.cc
  13633. Fixed compilation error without openssl:
  13634. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13635. Added default block to suppress compiler warnings:
  13636. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13637. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13638. MinGW build enhancements. The following files are added:
  13639. * src/gai_strerror.{c,h}
  13640. * src/gettimeofday.{c,h}
  13641. Changes to support the above new files:
  13642. * configure.ac
  13643. * src/Makefile.am
  13644. * src/a2netcompat.h
  13645. * src/TimeA2.cc
  13646. * src/DefaultPeerStorage.cc
  13647. * src/NameResolver.cc: removed mingw_strerror() function.
  13648. * src/SocketCore.cc: removed mingw_strerror() function.
  13649. Miscellaneous MinGW build fixes.
  13650. * src/a2io.h: Use _lseeki64() instead of lseek()
  13651. * src/common.h
  13652. * src/DefaultFileAllocator.cc
  13653. * src/GlowFileAllocator.cc
  13654. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13655. * src/NameResolver.cc
  13656. (callback): Changed int32_t to int.
  13657. (resolve): Changed int32_t to int.
  13658. * src/Platform.cc
  13659. * src/Platform.h
  13660. * test/MultiDiskWriterTest.cc
  13661. * test/PeerMessageUtilTest.cc
  13662. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13663. Other enhancements and fixes.
  13664. * src/HttpRequestCommand.cc
  13665. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13666. * src/SocketCore.cc:
  13667. (error): New function to abstract errno/WSAGetLastError().
  13668. (errorMsg): New function to abstract errno/WSAGetLastError().
  13669. (initiateSecureConnection): Added more detailed error reporting.
  13670. * src/SocketCore.h: Added private variable blocking, to allow
  13671. proper handling of OpenSSL psuedo-errors.
  13672. * src/message.h
  13673. (EX_SSL_INIT_FAILURE)
  13674. (EX_SSL_IO_ERROR)
  13675. (EX_SSL_PROTOCOL_ERROR)
  13676. (EX_SSL_UNKNOWN_ERROR)
  13677. (EX_SSL_CONNECT_ERROR)
  13678. (EX_SOCKET_BLOCKING)
  13679. (EX_SOCKET_NONBLOCKING)
  13680. (EX_SOCKET_UNKNOWN_ERROR)
  13681. * src/Util.cc
  13682. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13683. reserved name.
  13684. (httpGMT): Fixed typo.
  13685. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13686. Merged Ross's win32 patch(manually)
  13687. In the course of merging, following files are added.
  13688. * src/strptime.{h,c}
  13689. * src/libgen.{h,c}
  13690. * src/inet_aton.{h,c}
  13691. * src/Platform.{h,cc}
  13692. * src/localtime_r.{h,c}
  13693. * src/getaddrinfo.{h,c}
  13694. I've gethered network related things, and put them to following file:
  13695. * src/a2netcompat.h
  13696. Also io related things are put to following file:
  13697. * src/a2io.h
  13698. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13699. * src/message.h
  13700. (MSG_ALLOCATION_COMPLETED)
  13701. (EX_TOO_LARGE_FILE)
  13702. (EX_SIZE_MISMATCH)
  13703. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13704. (EX_INVALID_CHUNK_CHECKSUM)
  13705. (EX_INVALID_RANGE_HEADER)
  13706. * src/FileAllocationCommand.cc
  13707. * src/HttpResponse.cc
  13708. * src/RequestGroup.cc
  13709. * src/MultiDiskAdaptor.cc
  13710. * src/OptionHandlerImpl.h
  13711. * src/HttpResponseCommand.cc
  13712. * src/FtpNegotiateCommand.cc
  13713. * src/IteratableChecksumValidator.cc
  13714. * src/SegmentMan.cc
  13715. * src/ChunkChecksumValidator.cc
  13716. Added Randomizer::getRandomNumber(long int)
  13717. * src/Randomizer.h (getRandomNumber)
  13718. * src/SimpleRandomizer.h (getRandomNumber)
  13719. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13720. * src/Util.cc (randomAlpha): Use this new function.
  13721. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13722. Converted int's to in32_t. long long int's are also converted to
  13723. int64_t
  13724. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13725. Fixed the bug that prevents cookies from being sent to the server
  13726. if the domain of cookie is FQDN and starts with ".".
  13727. * src/Cookie.cc (match)
  13728. To add the ability to change peer id.
  13729. * src/DefaultBtContext.h
  13730. (_peerIdPrefix): New variable
  13731. (setPeerIdPrefix): New function.
  13732. * src/torrentRequestInfo.cc
  13733. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13734. DefaultBtContext.
  13735. * src/main.cc (main): Added peer-id-prefix command-line option.
  13736. The usage message is not added yet.
  13737. * src/DefaultBtContext.cc
  13738. (generatePeerId): Use _peerIdPrefix.
  13739. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13740. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13741. Fixed the bug that prevents filename in content-disposition from
  13742. being retrieved when filename is not quoted.
  13743. * src/Util.cc (getContentDispositionFilename)
  13744. Fixed the bug that causes infinate loop and memory leak when file open
  13745. operation failed.
  13746. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13747. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13748. Fixed the bug that causes segfault when all URIs specified are
  13749. unsupported.
  13750. * src/RequestGroupMan.cc (getInitialCommands)
  13751. Check if RequestGroup::createNextCommand() returns empty list of
  13752. commands.
  13753. * src/RequestGroup.cc (createNextCommand)
  13754. Change log level from info to error so that users can notice that
  13755. an error occurred.
  13756. Fixed the bug that causes segfault when a zero-sized file is
  13757. downloaded.
  13758. * src/BitfieldMan.cc (isAllBitSet)
  13759. Return true if bitfieldLength is 0.
  13760. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13761. * src/main.cc
  13762. (showUsage): Added 3 usage examples for metalink download.
  13763. Replace MetalinkChunkChecksum with ChunkChecksum.
  13764. * src/MetalinkChunkChecksum.h: Removed.
  13765. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13766. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13767. * src/Xml2MetalinkProcessor.cc
  13768. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13769. * src/MetalinkRequestInfo.cc (execute)
  13770. * Release 0.11.1
  13771. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13772. Reads URIs from stdin when "-i -" is specified.
  13773. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13774. * src/UriListParser.h, src/UriListParser.cc: New class.
  13775. * src/StreamUriListParser.h: New class.
  13776. * src/FileUriListParser.h: New class.
  13777. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13778. instead of UriFileListParser.
  13779. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13780. Made console readout more readable.
  13781. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13782. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13783. Fix the bug that causes -s option not to work.
  13784. * src/main.cc (main)
  13785. * src/a2algo.h: New file.
  13786. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13787. Create directory structure specified in metalink file.
  13788. * src/RequestGroup.h, src/RequestGroup.cc
  13789. (initAndOpenFile): Create a directory to store files if it does not
  13790. exist.
  13791. (getDir): New function.
  13792. Added ETA and download speed for an individual file to readout.
  13793. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13794. * src/RequestGroup.h
  13795. (calculateDownloadSpeed): New function.
  13796. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13797. Made -S option work with metalink file and provided selective download
  13798. to metalink.
  13799. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13800. (filename): Removed.
  13801. (file): New variable.
  13802. (size): Removed.
  13803. (operator=): Updated.
  13804. (getPath): New function.
  13805. (getLength): New function.
  13806. (toFileEntry): New function.
  13807. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13808. (execute): Use toStream.
  13809. (showFileEntry): Removed.
  13810. * src/MetalinkRequestInfo.h
  13811. (targetFiles): New variable.
  13812. (setTargetFiles): New variable.
  13813. * src/MetalinkRequestInfo.cc
  13814. (execute): Added the ability to print file information included in
  13815. a metalink file.
  13816. Added selective download mode to metalink.
  13817. * src/main.cc
  13818. (showUsage): Updated to denote that -S and --select-file options are
  13819. applicable to metalink.
  13820. * src/FileEntry.h
  13821. (operator=): New function.
  13822. (getBasename): New function.
  13823. (getDirname): New function.
  13824. * src/Util.h, src/Util.cc
  13825. (toStream): New function.
  13826. * src/Xml2MetalinkProcessor.cc: Updated.
  13827. Made aria2 work with metalink with directory structure.
  13828. * src/File.h, src/File.cc
  13829. (getBasename): New function.
  13830. (getDirname): New function.
  13831. * src/RequestGroup.h, src/RequestGroup.cc
  13832. (_topDir): New variable.
  13833. (setTopDir): New function.
  13834. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13835. Rewrote HTTP header parsing with stringstream.
  13836. * src/HttpConnection.h, src/HttpConnection.cc
  13837. (HttpRequestEntry): New class.
  13838. (headerBuf): Removed.
  13839. (headerBufLength): Removed.
  13840. (outstandingHttpRequests): Now its element type is
  13841. HttpRequestEntryHandle.
  13842. (findEndOfHeader): Removed.
  13843. (receiveResponse): Rewritten.
  13844. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13845. Updated doc for -j option to notice that it should be used with -i
  13846. option.
  13847. * src/main.cc (showUsage)
  13848. Removed unused classes.
  13849. * src/RequestInfo.h
  13850. (FileInfo): Removed.
  13851. (checksum): Removed.
  13852. (fileInfo): Removed.
  13853. (setChecksum): Removed.
  13854. (getChecksum): Removed.
  13855. (getFileInfo): Removed.
  13856. Use ISO units.
  13857. * src/ConsoleDownloadEngine.cc
  13858. * src/TorrentConsoleDownloadEngine.cc
  13859. * src/Util.cc (abbrevSize)
  13860. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. Added the default listening ports to the help message.
  13862. * src/main.cc (showUsage)
  13863. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13864. Reduce the number of calls to gettimeofday to lower CPU load.
  13865. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13866. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13867. * src/Peer.h (calculateUploadSpeed): New function.
  13868. (calculateDownloadSpeed): New function.
  13869. * src/DefaultPeerStorage.cc
  13870. (CalculateStat): Added _now variable.
  13871. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13872. and Peer::calculateUploadSpeed(const struct timeval&)
  13873. Drop connection if no request or piece message is exchanged in
  13874. a certain interval.
  13875. * src/DefaultBtInteractive.h
  13876. (btRuntime): New variable.
  13877. (inactiveCheckPoint): New variable.
  13878. (checkActiveInteraction): New function.
  13879. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13880. request or piece message is received.
  13881. (checkActiveInteraction): New function.
  13882. (doInteractionProcessing): Call checkActiveInteraction.
  13883. Fixed the bug that causes remote Metalink and Torrent files are not
  13884. processed.
  13885. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13886. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13887. Changed format of log file.
  13888. * src/SimpleLogger.cc
  13889. * Release 0.11.0
  13890. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13891. * src/AbstractCommand.cc
  13892. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13893. MSG_MAX_TRY from error to info.
  13894. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13895. * src/message.h
  13896. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13897. (MSG_DOWNLOAD_ABORTED): Added %s.
  13898. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13899. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13900. * src/PeerAbstractCommand.cc
  13901. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13902. * src/Request.h
  13903. (cookieBox): Made ShardHandle.
  13904. * src/RequestGroup.h, src/RequestGroup.cc
  13905. (createNextCommandWithAdj): New function.
  13906. * src/FileAllocationCommand.cc
  13907. (executeInternal): Use createNextCommandWithAdj().
  13908. * src/CheckIntegrityCommand.cc
  13909. (executeInternal): Use createNextCommandWithAdj().
  13910. Added --load-cookies command-option.
  13911. * src/OptionHandlerFactory.cc
  13912. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13913. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13914. Now aria2 can handle cookie's expiration date.
  13915. * src/Cookie.h (expires): Changed its type to time_t.
  13916. * src/main.cc: Added --load-cookies command-line option.
  13917. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13918. * src/Util.h, src/Util.cc (httpGMT): New function.
  13919. * src/Request.cc (Request): Initialize cookieBox using
  13920. CookieBoxFactory.
  13921. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13922. * src/CookieParser.h, src/CookieParser.cc: New class.
  13923. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13924. * src/HttpResponseCommand.cc
  13925. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13926. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13927. download.
  13928. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. Added -j command-line option.
  13930. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13931. * src/main.cc
  13932. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13933. Rewritten using stringstream.
  13934. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13935. Rewritten using stringstream.
  13936. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13937. Make download size shown in MB, KB.
  13938. * src/ConsoleDownloadEngine.h (sendStatistics)
  13939. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13940. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13941. Accept incoming connections if download rate is low.
  13942. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13943. (_lowestSpeedLimit): New variable.
  13944. (setLowestSpeedLimit): New function.
  13945. (execute): Accept incoming connections if download rate is low.
  13946. MAX_PEERS is ignored in this case.
  13947. Disable PREF_OUT in multiple concurrent download:
  13948. * src/RequestGroup.h, src/RequestGroup.cc
  13949. (setUserDefinedFilename): New function.
  13950. * src/DownloadEngineFactory.cc
  13951. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13952. concurrent download.
  13953. * src/DefaultSegmentManFactory.cc
  13954. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13955. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13956. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13957. Added its overloaded method.
  13958. * src/RequestGroup.h
  13959. (_numConcurrentCommand): New variable.
  13960. (setNumConcurrentCommand): New function.
  13961. * src/RequestGroup.cc
  13962. Abort download if same file is being downloaded concurrently.
  13963. * src/RequestGroup.h, src/RequestGroupMan.cc
  13964. (isSameFileBeingDownloaded): New function.
  13965. * src/HttpResponseCommand.cc (executeInternal)
  13966. * src/FtpNegotiateCommand.cc (recvSize)
  13967. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13968. * main.cc: Added help message for -i option.
  13969. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13970. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13971. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13972. * src/MetalinkEntry.h
  13973. (checksum): Changed to ChecksumHandle
  13974. * src/MetalinkRequestInfo.cc
  13975. (checksum): Changed to ChecksumHandle
  13976. * src/File.cc
  13977. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13978. * src/common.h
  13979. (DIR_OPEN_MODE): New definition
  13980. * src/RequestGroup.cc
  13981. (prepareForNextAction): Added an argument.
  13982. * src/message.h
  13983. (MSG_GOOD_CHECKSUM): New definition
  13984. (MSG_BAD_CHECKSUM): New definition
  13985. * src/HttpResponseCommand.cc
  13986. (handleDefaultEncoding): Continue download sequence in new
  13987. non-segmented download.
  13988. * src/FileAllocationEntry.h
  13989. (_nextDownloadCommand): New variable.
  13990. * src/DownloadCommand.cc
  13991. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13992. available.
  13993. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13994. * src/IteratableChecksumValidator.h,
  13995. src/IteratableChecksumValidator.cc: New class.
  13996. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13997. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13998. Change file mode to 666:
  13999. * src/common.h (OPEN_MODE): New definition.
  14000. * src/File.cc
  14001. * src/Util.cc
  14002. * src/Directry.cc
  14003. * src/AbstractDiskWriter.cc
  14004. Change the level of log message "download aborted" to debug:
  14005. * src/PeerAbstractCommand.cc (execute)
  14006. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14007. * src/TrackerWatcherCommand.cc
  14008. (createCommand): Sleep some seconds after request failed.
  14009. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14010. then abort tracker request.
  14011. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14012. * Added the simultaneous download feature.
  14013. * src/main.cc: Print "Exception caught: " when exception is caught.
  14014. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14015. * src/ActivePeerConnectionCommand.cc
  14016. * src/PeerInteractionCommand.cc
  14017. * src/BtRuntime.h
  14018. (cuidCounter): Removed.
  14019. (getNewCuid): Removed.
  14020. * src/DownloadEngineFactory.cc
  14021. * src/PeerListenCommand.cc
  14022. * src/TrackerUpdateCommand.cc
  14023. * src/PeerInitiateConnectionCommand.cc
  14024. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14025. * src/PeerAbstractCommand.cc
  14026. (onAbort): Call PeerStorage::returnPeer()
  14027. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14028. (incomingPeers): New variable.
  14029. (addIncomingPeer): New function.
  14030. (returnPeer): New function.
  14031. (onErasingPeer): New function.
  14032. (addPeer): push_back -> push_front
  14033. (getActivePeers): Rewritten.
  14034. (calculateStat): Rewritten.
  14035. * src/PeerStorage.h
  14036. (TransferStat::copy): New function.
  14037. (TransferStat::TransferStat): New function.
  14038. (TransferStat::operator=): New function.
  14039. (addIncomingPeer): New function.
  14040. (returnPeer): New function.
  14041. * src/PeerListenCommand.cc
  14042. (execute): Use PeerStorage::addIncomingPeer() instead of
  14043. Peer::addPeer().
  14044. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14045. Connect to a peer actively when download speed is lower than specified
  14046. speed in torrent download:
  14047. * src/ActivePeerConnectionCommand.h: New class.
  14048. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14049. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14050. * src/main.cc: Fixed the bug that prevents download if .netrc
  14051. doesn't exist.
  14052. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14053. To cache resolved hostname:
  14054. * src/AbstractCommand.h, src/AbstractCommand.cc
  14055. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14056. Added dns cache.
  14057. * src/FtpInitiateConnectionCommand.cc
  14058. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14059. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14060. NameResolver working without ares.
  14061. * src/TorrentRequestInfo.cc
  14062. (execute): Don't cache dns in torrent download.
  14063. * src/HttpInitiateConnectionCommand.cc
  14064. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14065. * src/DNSCache.h: New class.
  14066. * src/UrlRequestInfo.cc
  14067. (execute): Use dns cache.
  14068. In http request, suppress port number in http request header if port
  14069. is 80 or 443:
  14070. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14071. request header if port is 80 or 443.
  14072. (createProxyRequest): Allways send port number.
  14073. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14074. To add the command-line option which disables netrc support:
  14075. * src/OptionHandlerFactory.cc
  14076. (createOptionHandlers): Added PREF_NO_NETRC.
  14077. * src/main.cc: Added -n option.
  14078. * src/prefs.h (PREF_NO_NETRC): New definition.
  14079. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14080. V_TRUE.
  14081. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14082. is V_FALSE. This may get configurable in the future release.
  14083. To clear peer's error status by time basis:
  14084. * src/PeerAbstractCommand.cc
  14085. (onAbort): Call Peer::startBadCondition().
  14086. * src/Peer.h, src/Peer.cc
  14087. (error): Removed.
  14088. (_badConditionStartTime): New variable.
  14089. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14090. (startBadCondition): New function.
  14091. (isGood): New function.
  14092. * src/DefaultPeerStorage.cc
  14093. (addPeer): Use Peer::isGood().
  14094. (FindFinePeer): Use Peer::isGood().
  14095. Always include port number in http request header:
  14096. * src/HttpRequest.cc (getHostText): Always include port number in
  14097. http request header.
  14098. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14099. To the ability to read options from a config file:
  14100. * src/main.cc: Command-line parameter validation is delegated to
  14101. OptionHandler class.
  14102. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14103. * src/Option.h, src/Option.cc (clear): New function.
  14104. * src/OptionParser.h, src/OptionParser.cc: New class.
  14105. * src/OptionHandler.h: New class.
  14106. * src/NameMatchOptionHandler.h: New class.
  14107. * src/OptionHandlerImpl.h: New classes.
  14108. * src/prefs.h: '_' -> '-'
  14109. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14110. (FTP_PASV): New definition.
  14111. * src/Util.h, src/Util.cc (getRealSize): New function.
  14112. To disable netrc support if .netrc file does not have correct
  14113. permissions:
  14114. * src/File.h, src/File.cc (mode): New function.
  14115. To prevent confidential information to be logged:
  14116. * src/HttpConnection.h, src/HttpConnection.cc
  14117. (eraseConfidentialInfo): New function.
  14118. (sendRequest): Call eraseConfidentialInfo().
  14119. (sendProxyRequest): Call eraseConfidentialInfo().
  14120. * src/main.cc: Validate permissions of .netrc file.
  14121. To add --user-agent command-line option:
  14122. * src/main.cc: Added new command line option: --user-agent
  14123. * src/prefs.h (PREF_USER_AGENT): New definition.
  14124. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14125. parameter to HttpRequest object.
  14126. * src/AbstractProxyRequestCommand.cc
  14127. (executeInternal): Set user-agent option parameter to HttpRequest
  14128. object.
  14129. Marged the patches from Dan Fandrich.
  14130. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14131. Use filename and size from Metalink file instead of sending HEAD
  14132. request:
  14133. * src/UrlRequestInfo.h
  14134. (_filename): New variable.
  14135. (_totalLength): New variable.
  14136. (setTotalLength): New variable.
  14137. (setFilename): New variable.
  14138. * src/MetalinkRequestInfo.cc
  14139. (execute): Set filename and size to UrlRequestInfo
  14140. * src/UrlRequestInfo.cc
  14141. (execute): Use filename and size from Metalink instead of seding
  14142. HEAD request to servers.
  14143. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14144. To add the ability to resume downloading a partially downloaded file
  14145. which is downloaded from the beginning:
  14146. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14147. takes this role.
  14148. * src/main.cc: Added -c option.
  14149. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14150. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14151. * src/prefs.h (PREF_CONTINUE): New definition.
  14152. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14153. * src/DefaultDiskWriter.cc
  14154. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14155. * src/AbstractDiskWriter.h
  14156. (glowFileAllocator): New variable.
  14157. * src/AbstractDiskWriter.cc
  14158. (openExistingFile): Now preallocate file space from the end of the
  14159. existing file if totalLength argument is specified and grater than 0.
  14160. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14161. to download exists in local, continue the download of the file.
  14162. --allow-overwrite=true is assumed in this context.
  14163. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14164. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14165. Throw exception if --check-integrity=true is specified but chunk
  14166. checksums are not provided:
  14167. * src/UrlRequestInfo.cc
  14168. Do not print URLs to stdout:
  14169. * src/UrlRequestInfo.cc
  14170. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14171. * src/Request.h: Use AuthResolver to get authentication information.
  14172. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14173. set to RequestFactory object.
  14174. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14175. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14176. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14177. create Request object.
  14178. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14179. To integrate Netrc into exsiting classes:
  14180. * src/Request.h
  14181. (_userDefinedAuthConfig): New variable.
  14182. (findNetrcAuthenticator): New function.
  14183. (segment): Removed.
  14184. (setUserDefinedAuthConfig): New function.
  14185. (resolveHttpAuthConfigItem): New function.
  14186. (resolveFtpAuthConfigItem): New function.
  14187. (resolveHttpProxyAuthConfigItem): New function.
  14188. * src/HttpRequest.h
  14189. (authConfig): Removed.
  14190. (proxyAuthConfig): Removed.
  14191. (setAuthConfig): Removed.
  14192. (setProxyAuthConfig): Removed.
  14193. * src/UrlRequest.h
  14194. (getHeadResult): Added a parameter: authConfigHandle
  14195. * src/common.h
  14196. (SingletonHolder.h): New include.
  14197. * src/main.cc
  14198. (Netrc.h): New include.
  14199. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14200. Added initial value of PREF_NETRC_PATH.
  14201. Added the initialization of netrc.
  14202. * src/AuthConfig.h: New class.
  14203. * src/prefs.h
  14204. (PREF_NETRC_PATH): New definition.
  14205. * src/HttpAuthConfig.h: Removed.
  14206. * src/Netrc.cc
  14207. (getRequiredNextToken): New function.
  14208. (skipMacdef): New function.
  14209. (parse): Rewritten.
  14210. * src/Netrc.h
  14211. (getRequiredNextToken): New function.
  14212. (skipMacdef): New function.
  14213. * src/Util.h, src/Util.cc
  14214. (getHomeDir): New function.
  14215. * src/TrackerWatcherComand.cc
  14216. (createRequestCommand): Use AuthConfig.
  14217. * src/FtpConnection.cc
  14218. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14219. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14220. * src/Request.cc
  14221. (findNetrcAuthenticator): New function.
  14222. (resolveHttpAuthConfigItem): New function.
  14223. (resolveFtpAuthConfigItem): New function.
  14224. (resolveHttpProxyAuthConfigItem): New function.
  14225. * src/UrlRequestInfo.cc: Use AuthConfig.
  14226. * src/HttpRequest.cc
  14227. (createRequest): Use authConfig.
  14228. (getProxyAuthString): Use authConfig.
  14229. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14230. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14231. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14232. To reduce overhead to find commands whose socket is either
  14233. readable or writable in the download engine loop:
  14234. * src/Command.h, src/Command.cc
  14235. (STATUS): New enum.
  14236. (status): New variable.
  14237. (statusMatch): New function.
  14238. (setStatusActive): New function.
  14239. (setStatusInactive): New function.
  14240. * src/DownloadEngine.h, src/DownloadEngine.cc
  14241. (executeCommand): New function.
  14242. (run): Simplified.
  14243. (waitData): Call Command::setStatusActive() when command's socket is
  14244. readable or writable.
  14245. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14246. To handle Segment as SegmentHandle:
  14247. * src/AbstractCommand.cc (execute): Rewritten.
  14248. * src/SegmentMan.h: Segment -> SegmentHandle
  14249. Introducded HttpResponse class, HttpRequest class to improve code
  14250. extensiveness and make it clear:
  14251. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14252. HttpResponse class.
  14253. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14254. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14255. * src/HttpConnection.cc: Contruction of http request were moved to
  14256. HttpRequest class.
  14257. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14258. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14259. * src/HttpAuthConfig.h: New class.
  14260. * src/Range.h: New class.
  14261. To make FtpTunnel{Request, Response}Command and
  14262. HttpProxy{Request, Response}Command derived from
  14263. AbstractProxy{Request, Response}Command:
  14264. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14265. Derived from AbstractProxyRequestCommand class.
  14266. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14267. Derived from AbstractProxyResponseCommand class.
  14268. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14269. Derived from AbstractProxyRequestCommand class.
  14270. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14271. Derived from AbstractProxyResponseCommand class.
  14272. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14273. : New class.
  14274. * src/AbstractProxyResponseCommand.h,
  14275. src/AbstractProxyResponseCommand.cc: New class.
  14276. To add netrc support:
  14277. * src/Netrc.h, src/Netrc.cc: New class.
  14278. * src/Util.h, src/Util.cc (split): New function.
  14279. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14280. "Content-Range" header instead of "Range" header.
  14281. * src/HttpHeader.h
  14282. (getStatus): Removed.
  14283. (setStatus): Removed.
  14284. * src/Segment.h
  14285. (getPositionToWrite): New function.
  14286. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14287. * src/HttpHeader.h
  14288. (Range.h): New include.
  14289. (status): New variable.
  14290. (HttpHeader): Initialized status with 0.
  14291. (getStatus): New function.
  14292. (setStatus): New function.
  14293. (getRange): New function.
  14294. (HttpHeaderHandle): New function.
  14295. * src/HttpHeader.cc
  14296. (getRange): New function.
  14297. * src/Request.h
  14298. (RequestWeakHandle): New definition.
  14299. * src/HttpConnection.h
  14300. (HttpConnectionHandle): New type definition.
  14301. * src/HttpConnection.cc
  14302. (receiveResponse): Set HTTP status to headers.
  14303. * src/main.cc
  14304. (showUsage): Fixed typo.
  14305. * src/Segment.h
  14306. (SegmentHandle): New type definition.
  14307. * src/BitfieldMan.h
  14308. (getMissingUnusedLength): New function.
  14309. * src/BitfieldMan.cc
  14310. (getMissingUnusedLength): New function.
  14311. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14312. To fix static initialization order problem:
  14313. * src/BitfieldManFactory.h
  14314. (defaultRandomizer): Removed.
  14315. (factory): New variable.
  14316. (getNewFactory): Removed.
  14317. (getFactoryInstance): New function.
  14318. (setDefaultRandomizer): Rewritten.
  14319. (getDefaultRandomizer): Rewritten.
  14320. * src/BitfieldManFactory.cc
  14321. (defaultRandomizer): Removed.
  14322. (factory): Initialized to 0.
  14323. (BitfieldManFactory): Initialized randomizer to 0.
  14324. * src/DefaultPieceStorage.cc
  14325. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14326. * src/Peer.cc
  14327. (Peer): getNewFactory() -> getFactoryInstance()
  14328. * src/SegmentMan.cc
  14329. (initBitfield): getNewFactory() -> getFactoryInstance()
  14330. * src/Piece.cc
  14331. (Piece): getNewFactory() -> getFactoryInstance()
  14332. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14333. To fix the bug that causes crash on Max OS X:
  14334. * src/SimpleRandomizer.h
  14335. (getInstance): Create new instance if the static variable is null.
  14336. * src/SimpleRandomizer.cc
  14337. (randomizer): Initialized to 0.
  14338. * src/BitfieldManFactory.h
  14339. (getNewFactory): Removed the call to setRandomizer().
  14340. To fix the miscalculation of the range of checksum:
  14341. * src/BitfieldMan.h
  14342. (isBitSetOffsetRange): New function.
  14343. * src/BitfieldMan.cc
  14344. (isBitSetOffsetRange): New function.
  14345. * src/SegmentMan.cc
  14346. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14347. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14348. * Release 0.10.1
  14349. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14350. To lower CPU usage in BitTorrent download when --max-upload-limit
  14351. command-line option specified:
  14352. * src/DefaultBtMessageDispatcher.cc
  14353. (sendMessages): Calculate uploading speed only when current message
  14354. is uploading data and is not sent yet.
  14355. * src/DefaultPeerStorage.h
  14356. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14357. * src/HttpResponseCommand.cc
  14358. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14359. This fixes compile error in Soralis 10.
  14360. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14361. To fix segfault in Metalink download:
  14362. * src/UrlRequestInfo.h
  14363. (filename): Removed.
  14364. (totalLength): Removed.
  14365. (setTotalLength): Removed.
  14366. (setFilename): Removed.
  14367. * src/MetalinkRequestInfo.cc
  14368. (execute): Do not set filename and totalLength to reqInfo.
  14369. Set chunk checksum to reqInfo if it is not null.
  14370. * src/HttpResponseCommand.cc
  14371. (executeInternal): Fixed filename in log.
  14372. (handleDefaultEncoding): Removed the call to initBitfield() and
  14373. markAllPiecesDone().
  14374. (handleOtherEncoding): Added HEAD method handling.
  14375. * src/FtpNegotiateCommand.cc
  14376. (executeInternal): Added SEQ_HEAD_OK handling.
  14377. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14378. return false.
  14379. * src/FtpNegotiateCommand.h
  14380. (SEQ_HEAD_OK): New definition.
  14381. * src/SegmentMan.cc
  14382. (initBitfield): Delete bitfield.
  14383. (isChunkChecksumValidationReady): Fixed the condition.
  14384. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14385. works fine.
  14386. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14387. * src/Xml2MetalinkProcessor.h
  14388. (xpathExists): New function.
  14389. * src/Xml2MetalinkProcessor.cc
  14390. (xpathExists): New function.
  14391. Not to send HEAD request if filename and size are available in Metalink
  14392. file:
  14393. * src/UrlRequestInfo.h
  14394. (filename): New variable.
  14395. (totalLength): New variable.
  14396. (setTotalLength): New function.
  14397. (setFilename): New function.
  14398. * src/MetalinkRequestInfo.cc
  14399. (execute): Set filename and size to UrlRequestInfo.
  14400. * src/MetalinkEntry.cc
  14401. (MetalinkEntry): Initialize size with 0.
  14402. * src/UrlRequestInfo.cc
  14403. (execute): Set filename and size to SegmentMan.
  14404. Not to download rest of the files after selected files are downloaded
  14405. in BitTorrent:
  14406. * src/PieceStorage.h
  14407. (allDownloadFinished): New function.
  14408. * src/DefaultBtAnnounce.cc
  14409. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14410. downloadFinished.
  14411. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14412. * src/DefaultPieceStorage.cc
  14413. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14414. Commented out the call to finishSelectiveDownloadingMode().
  14415. (downloadFinished): Call isFilteredAllBitSet() instead of
  14416. isAllBitSet().
  14417. (allDownloadFinished): New function.
  14418. * src/DefaultBtInteractive.cc
  14419. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14420. downloadFinished().
  14421. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14422. * src/TorrentDownloadEngine.cc
  14423. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14424. * src/BitfieldMan.h
  14425. (isFilteredAllBitSet): New function.
  14426. * src/ShareRatioSeedCriteria.h
  14427. (PieceStorage.h): New include.
  14428. (pieceStorage): New variable.
  14429. (evaluate):
  14430. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14431. * src/BitfieldMan.cc
  14432. (isFilteredAllBitSet): New function.
  14433. (isAllBitSet): Filter is not took into account.
  14434. Rename --force-truncate as --allow-overwrite:
  14435. * src/TorrentRequestInfo.cc
  14436. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14437. * src/main.cc
  14438. (showUsage): --force-truncate -> --allow-overwrite
  14439. * src/message.h
  14440. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14441. * src/prefs.h
  14442. (PREF_FORCE_TRUNCATE): Removed.
  14443. (PREF_ALLOW_OVERWRITE): New definition.
  14444. * src/SegmentMan.cc
  14445. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14446. * src/MetalinkRequestInfo.cc
  14447. (execute): Queueing message are now logged in info level.
  14448. * src/common.h
  14449. (LONG_LONG_MAX): Removed.
  14450. (LONG_LONG_MIN): Removed.
  14451. * src/HttpResponseCommand.cc
  14452. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14453. * src/FtpNegotiateCommand.cc
  14454. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14455. * src/main.cc
  14456. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14457. command-line option.
  14458. (main): Added --check-integriy and --realtime-chunk-checksum
  14459. command-line option.
  14460. --force-truncate -> --allow-overwrite
  14461. Set initial value of --check-integrity option to false.
  14462. Don't show usage when error occurs while persing command-line options.
  14463. Removed deprecated --upload-limit option.
  14464. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14465. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14466. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14467. * src/BtAllowedFastMessage.cc:
  14468. * src/BtBitfieldMessage.cc
  14469. * src/BtCancelMessage.cc
  14470. * src/BtChokeMessage.cc
  14471. * src/BtHaveAllMessage.cc
  14472. * src/BtHaveMessage.cc
  14473. * src/BtHaveNoneMessage.cc
  14474. * src/BtInterestedMessage.cc
  14475. * src/BtNotInterestedMessage.cc
  14476. * src/BtPieceMessage.cc
  14477. * src/BtPortMessage.cc
  14478. * src/BtRejectMessage.cc
  14479. * src/BtRequestMessage.cc
  14480. * src/BtSuggestPieceMessage.cc
  14481. * src/BtUnchokeMessage.cc
  14482. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14483. files are affected.
  14484. * src/ChunkChecksumValidator.cc
  14485. * src/SegmentMan.cc
  14486. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14487. To add chunk checksum validation:
  14488. * src/MetalinkEntry.h
  14489. (MetalinkChunkChecksum.h): New include.
  14490. (chunkChecksum): New variable.
  14491. * src/Request.h
  14492. (method): New variable.
  14493. (setMethod): New function.
  14494. (getMethod): New function.
  14495. (METHOD_GET): New static constant.
  14496. (METHOD_HEAD): New static constant.
  14497. * src/Xml2MetalinkProcessor.h
  14498. (getPieceHash): New function.
  14499. * src/PieceStorage.h
  14500. (markAllPiecesDone): New function.
  14501. (checkIntegrity): New function.
  14502. * src/FileAllocator.h
  14503. (NullFileAllocationMonitor.h): New include.
  14504. (FileAllocator): Initialize fileAllocationMonitor with new
  14505. NullFileAllocationMonitor().
  14506. * src/MultiDiskAdaptor.h
  14507. (messageDigest.h): Remove include.
  14508. (ctx): Removed.
  14509. (hashUpdate): Added ctx.
  14510. (MultiDiskAdaptor): Removed ctx.
  14511. (sha1Sum): Renamed as messageDigest.
  14512. (messageDigest): New function.
  14513. * src/UrlRequestInfo.h
  14514. (HeadResult): New class.
  14515. (digestAlgo): New variable.
  14516. (chunkChecksumLength): New variable.
  14517. (chunkChecksums): New variable.
  14518. (getHeadResult): New function.
  14519. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14520. (setDigestAlgo): New function.
  14521. (setChunkChecksumLength): New function.
  14522. (setChunkChecksums): New function.
  14523. * src/DefaultPieceStorage.cc
  14524. (DiskAdaptorWriter.h): New include.
  14525. (ChunkChecksumValidator.h): New include.
  14526. (markAllPiecesDone): New function.
  14527. (checkIntegrity): New function.
  14528. * src/DefaultBtContext.h
  14529. (getPieceHashes): New function.
  14530. * src/TorrentRequestInfo.cc
  14531. (execute): Try to validate chunk checksum if file already exists and
  14532. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14533. * src/messageDigest.h
  14534. (~MessageDigestContext): Added digestFree().
  14535. * src/MetalinkRequestInfo.cc
  14536. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14537. * src/DiskAdaptor.h
  14538. (messageDigest.h): New include.
  14539. (sha1Sum): Renamed as messageDigest.
  14540. (messageDigest): New function.
  14541. * src/DownloadCommand.h
  14542. (PeerStat.h): New include.
  14543. (maxDownloadSpeedLimit): New variable.
  14544. (startupIdleTime): New variable.
  14545. (lowestDownloadSpeedLimit): New variable.
  14546. (peerStat): New variable.
  14547. (setMaxDownloadSpeedLimit): New function.
  14548. (setStartupIdleTime): New function.
  14549. (setLowestDownloadSPeedLimit): New function.
  14550. * src/BtContext.h
  14551. (getPieceHashes): New function.
  14552. * src/main.cc
  14553. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14554. option to true for testing purpose.
  14555. * src/BtPieceMessage.cc
  14556. (checkPieceHash): Use messageDigest
  14557. * src/DownloadEngine.cc
  14558. (SetDescriptor): Removed.
  14559. (AccumulateActiveCommand): Removed.
  14560. (waitData): Rewritten.
  14561. (updateFdSet): Rewritten.
  14562. * src/MultiDiskAdaptor.cc
  14563. (hashUpdate): Added ctx.
  14564. (sha1Sum): Renamed as messageDigest.
  14565. (messageDigest): New function.
  14566. * src/BitfieldMan.h
  14567. (isBitRangeSet): New function.
  14568. (unsetBitRange): New function.
  14569. * src/ByteArrayDiskWriter.h
  14570. (sha1Sum): Renamed as messageDigest.
  14571. (messageDigest): New function.
  14572. * src/ConsoleDownloadEngine.cc
  14573. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14574. * src/DiskWriter.h
  14575. (messageDigest.h): New include.
  14576. (sha1Sum): Renamed as messageDigest.
  14577. (messageDigest): New function.
  14578. * src/ChunkChecksumValidator.h: New class.
  14579. * src/DiskAdaptorWriter.h: New class.
  14580. * src/prefs.h
  14581. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14582. (PREF_CHECK_INTEGRITY): New definition.
  14583. * src/HttpResponseCommand.cc
  14584. (handleDefaultEncoding): Added method "HEAD" handling.
  14585. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14586. (handleOtherEncoding):
  14587. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14588. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14589. startupIdleTime, lowestDownloadSpeedLimit to command.
  14590. * src/SegmentMan.h
  14591. (getSegmentEntryByIndex): New function.
  14592. (getSegmentEntryByCuid): New function.
  14593. (getSegmentEntryIteratorByCuid): New function.
  14594. (diskWriter): DiskWriter -> DiskWriterHandle
  14595. (pieceHashes): New variable.
  14596. (chunkHashLength): New variable.
  14597. (digestAlgo): New variable.
  14598. (FindPeerStat): Removed.
  14599. (getPeerStat): Rewritten.
  14600. (markAllPiecesDone): New function.
  14601. (checkIntegrity): New function.
  14602. (tryChunkChecksumValidation): New function.
  14603. (isChunkChecksumValidationReady): New function.
  14604. * src/BitfieldMan.cc
  14605. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14606. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14607. blocks to 0.
  14608. (isBitRangeSet): New function.
  14609. (unsetBitRange): New function.
  14610. * src/FtpNegotiateCommand.cc
  14611. (executeInternal): Set maxDownloadSpeedLimit,
  14612. startupIdleTime, lowestDownloadSpeedLimit to command.
  14613. (recvSize): Added method "HEAD" handling.
  14614. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14615. * src/AbstractSingleDiskAdaptor.cc
  14616. (sha1Sum): Renamed as messageDigest.
  14617. (messageDigest): New function.
  14618. * src/AbstractSingleDiskAdaptor.h
  14619. (sha1Sum): Renamed as messageDigest.
  14620. (messageDigest): New function.
  14621. * src/Util.h
  14622. (indexRange): New function.
  14623. * src/MetalinkEntry.cc
  14624. (MetalinkEntry): Initialized chunkChecksum to 0.
  14625. * src/ShaVisitor.cc
  14626. (~ShaVisitor): Removed the call to ctx.digestFree().
  14627. * src/SegmentMan.cc
  14628. (ChunkChecksumValidator.h): New include.
  14629. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14630. to DIGEST_ALGO_SHA1.
  14631. (~SegmentMan): Removed diskWriter.
  14632. (FindSegmentEntryByIndex): Removed.
  14633. (FindSegmentEntryByCuid): Removed.
  14634. (checkoutSegment): Rewritten.
  14635. (findSlowerSegmentEntry): Rewritten.
  14636. (getSegment): Rewritten.
  14637. (updateSegment): Rewritten.
  14638. (completeSegment): Rewritten.
  14639. (markAllPiecesDone): New function.
  14640. (checkIntegrity): New function.
  14641. (isChunkChecksumValidationReady): New function.
  14642. (tryChunkChecksumValidation): New function.
  14643. * src/Xml2MetalinkProcessor.cc
  14644. (getEntry): Get size and set it to entry.
  14645. Get chunk checksum and set it to entry.
  14646. (getPieceHash): New function.
  14647. * src/Util.cc
  14648. (sha1Sum): Removed ctx.digestFree()
  14649. (fileChecksum): Removed ctx.digestFree()
  14650. (indexRange): New function.
  14651. * src/Request.cc
  14652. (METHOD_GET): New variable.
  14653. (METHOD_HEAD): New variable.
  14654. (Request): Added method.
  14655. * src/UrlRequestInfo.cc
  14656. (FatalException.h): New include.
  14657. (message.h): New include.
  14658. (operator<<): Added operator<< for class HeadResult.
  14659. (getHeadResult): New function.
  14660. (execute): Get filename and size in separate download engine.
  14661. * src/ChunkChecksumValidator.cc: New class.
  14662. * src/DownloadCommand.cc:
  14663. (DownloadCommand): Added peerStat.
  14664. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14665. the value from Option.
  14666. The buffer size is now 16KB.
  14667. Use peerStat member instead of getting it from SegmentMan.
  14668. Use startupIdleTime member instead of gettingit from Option.
  14669. Added chunk checksum validation.
  14670. * src/AbstractDiskWriter.cc
  14671. (AbstractDiskWriter): Removed ctx.
  14672. (~AbstractDiskWriter): Removed ctx.digestFree()
  14673. (writeDataInternal): Returns the return value of write.
  14674. (readDataInternal): Returns the return value of read.
  14675. (sha1Sum): Renamed as messageDigest
  14676. (messageDigest): New function.
  14677. * src/AbstractDiwkWriter.h
  14678. (messageDigest.h): Removed include.
  14679. (ctx): Removed.
  14680. (sha1Sum): Renamed as messageDigest
  14681. (messageDigest): New function.
  14682. * src/DefaultPieceStorage.h
  14683. (markAllPiecesDone): New function.
  14684. (checkIntegrity): New function.
  14685. * src/NullFileAllocationMonitor.h: New class.
  14686. * src/MetalinkChunkChecksum.h: New class.
  14687. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14688. To decrease CPU usage in bittorrent download, calculation results in
  14689. BitfieldMan were cached and realtime fetching PeerObject was removed
  14690. with WeakHandle introduced. Option values are set to the objects
  14691. by setter before download begins.
  14692. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14693. * src/DefaultBtRequestFactory.h
  14694. (dispatcher): BtMessageDispatcherHandle ->
  14695. BtMessageDispatcherWeakHandle.
  14696. (messageFactory): New variable.
  14697. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14698. BtMessageDispatcherWeakHandle.
  14699. (setBtMessageFactory): New function.
  14700. * src/DefaultBtMessageDispatcher.cc:
  14701. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14702. from Option.
  14703. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14704. feating the value from Option.
  14705. Use messageFactory member.
  14706. * src/PeerInteractionCommand.cc
  14707. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14708. Add reverse dependencies to factory object.
  14709. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14710. dispatcher.
  14711. Set messageFactory to receiver.
  14712. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14713. btInteractive.
  14714. Set receiver to peerObject.
  14715. Set maxDownloadSpeedLimit to this.
  14716. (executeInternal): Use maxDownloadSpeedLimit member.
  14717. * src/BtChokeMessage.cc
  14718. (doReceivedAction): Use dispatcher, requestFactory member.
  14719. (onSendComplete): Use dispatcher member.
  14720. * src/PeerInteractionCommand.h
  14721. (maxDownloadSpeedLimit): New variable.
  14722. * src/DefaultBtMessageReceiver.h
  14723. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14724. (dispatcher):
  14725. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14726. (messageFactory): New variable.
  14727. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14728. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14729. (setDispatcher):
  14730. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14731. (setBtMessageFactory): New function.
  14732. * src/DefaultBtInteractive.cc
  14733. (initiateHandshake): Use messageFactory member.
  14734. (addBitfieldMessageToQueue): Use messageFactory member.
  14735. (addAllowedFastMessageToQueue): Use messageFactory member.
  14736. (decideChoking): Use messageFactory member.
  14737. (checkHave): Use messageFactory member.
  14738. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14739. (receiveMessages): Use maxDownloadSpeedLimit member.
  14740. (decideInterest): Use messageFactory member.
  14741. * src/BtRequestMessage.cc
  14742. (doReceivedAction): Use messageFactory, dispatcher member.
  14743. (onQueued): Use dispatcher member.
  14744. * src/BtPieceMessage.cc
  14745. (doReceivedAction): Use dispatcher member.
  14746. (send): Use peerConnection member.
  14747. (onWrongPiece): Use requestFactory member.
  14748. (handleChokingEvent): Use messageFactory, dispatcher member.
  14749. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14750. * src/BtMessageDispatcher.h
  14751. (BtMessageDispatcherWeakHandle): New type definition.
  14752. * src/SimpleBtMessage.cc
  14753. (send): Use peerConnection member.
  14754. * src/BtRejectMessage.cc
  14755. (doReceivedAction): Use dispatcher member.
  14756. * src/DefaultBtMessageDispatcher.h
  14757. (Option.h): Removed include.
  14758. (messageFactory): New variable.
  14759. (option): Removed.
  14760. (maxUploadSpeedLimit): New variable.
  14761. (requestTimeout): New variable.
  14762. (DefaultBtMessageDispatcher): Removed option.
  14763. Added maxUploadSpeedLimit, requestTimeout.
  14764. (setOption): Removed.
  14765. (getOption): Removed.
  14766. (setMaxUploadSpeedLimit): New function.
  14767. (setRequestTimeout): New function.
  14768. (setBtMessageFactory): New function.
  14769. * src/DefaultBtInteractive.h
  14770. (btMessageReceiver):
  14771. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14772. (dispatcher):
  14773. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14774. (btRequestFactory):
  14775. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14776. (peerConnection):
  14777. PeerConnectionHandle -> PeerConnectionWeakHandle
  14778. (messageFactory): New variable.
  14779. (option): Removed.
  14780. (keepAliveInterval): New variable.
  14781. (maxDownloadSpeedLimit): New variable.
  14782. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14783. (setBtMessageReceiver):
  14784. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14785. (setDispatcher):
  14786. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14787. (setBtRequestFactory):
  14788. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14789. (setPeerConnection):
  14790. PeerConnectionHandle -> PeerConnectionWeakHandle
  14791. (setOption): Removed.
  14792. (setKeepAliveInterval): New function.
  14793. (setMaxDownloadSpeedLimit): New function.
  14794. (setBtMessageFactory): New function.
  14795. * src/BitfieldMan.h
  14796. (cachedNumMissingBlock): New variable.
  14797. (cachedNumFilteredBlock): New variable.
  14798. (cachedCompletedLength): New variable.
  14799. (cachedFilteredComletedLength): New variable.
  14800. (cachedFilteredTotalLength): New variable.
  14801. (countMissingBlockNow): New function.
  14802. (countFilteredBlockNow): New function.
  14803. (getFilteredTotalLengthNow): New function.
  14804. (getCompletedLengthNow): New function.
  14805. (getFilteredCompletedLengthNow): New function.
  14806. (updateCache): New function.
  14807. * src/AbstractBtMessage.h
  14808. (BtMessageDispatcher.h): New include.
  14809. (PeerConnection.h): New include.
  14810. (BtRequestFactory.h): New include
  14811. (BtMessageFactory.h): New include.
  14812. (dispatcher): New variable.
  14813. (messageFactory): New variable.
  14814. (peerConnection: New variable.
  14815. (setBtMessageDispatcher): New function.
  14816. (setPeerConnection): New function.
  14817. (setBtMessageFactory): New function.
  14818. (setBtRequestFactory): New function.
  14819. * src/DefaultBtMessageFactory.cc
  14820. (setCommonProperty): Set dispatcher, requestFactory, this,
  14821. peerConnection to msg.
  14822. * src/BtRegistry.h
  14823. (BT_MESSAGE_RECEIVER): New macro.
  14824. * src/PeerConnection.h
  14825. (PeerConnectionWeakHandle): New type definition.
  14826. * src/BtMessageFactory.h
  14827. (BtMessageFactoryWeakHandle): New type definition.
  14828. * src/BitfieldMan.cc
  14829. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14830. cachedCompletedLength, cachedFilteredComletedLength,
  14831. cachedFilteredTotalLength.
  14832. Call updateCache().
  14833. (countMissingBlock): Return cachedNumMissingBlock.
  14834. (countMissingBlockNow): New function.
  14835. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14836. (countFilteredBlockNow): New function.
  14837. (setBit): Call updateCache().
  14838. (unsetBit): Call updateCache().
  14839. (setBitfield): Call updateCache().
  14840. (clearAllBit): Call updateCache().
  14841. (setAllBit): Use setBitInternal instead of setBit.
  14842. Call updateCache().
  14843. (addFilter): Call updateCache().
  14844. (enableFilter): Call updateCache().
  14845. (disableFilter): Call updateCache().
  14846. (clearFilter): Call updateCache().
  14847. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14848. (getFilteredTotalLengthNow): New function.
  14849. (getCompletedLength): Return cachedCompletedLength.
  14850. (getCompletedLengthNow): New function.
  14851. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14852. (getFilteredCompletedLengthNow): New function.
  14853. (updateCache): New function.
  14854. * src/BtMessageReceiver.h
  14855. (BtMessageReceiverWeakHandle): New type definition.
  14856. * src/DefaultBtMessageReceiver.cc
  14857. (receiveHandshake): Use messageFactory member.
  14858. (sendHandshake): Use messageFactory member.
  14859. (receiveMessage): Use messageFactory member.
  14860. * src/DefaultBtMessageFactory.h
  14861. (dispatcher): New variable.
  14862. (requestFactory): New variable.
  14863. (peerConnection): New variablle.
  14864. (setBtMessageDispatcher): New function.
  14865. (setBtRequestFactory): New function.
  14866. (setPeerConnection): New function.
  14867. * src/SharedHandle.h
  14868. (RefCount): New class.
  14869. (WeakHandle): New class.
  14870. * src/PeerObject.h
  14871. (BtMessageReceiver.h): New include.
  14872. (PeerObject): Added btMessageReceiver.
  14873. (btMessageReceiver): New variable.
  14874. * src/Util.cc
  14875. (countBit): Simplified.
  14876. * src/BtCancelMessage.cc
  14877. (doReceivedAction): Use dispatcher member.
  14878. * src/BtRequestFactory.h
  14879. (BtRequestFactoryWeakHandle): New type definition.
  14880. * src/PeerStorage.h
  14881. (downloadSpeed): int -> uint32_t
  14882. (uploadSpeed): int -> uint32_t
  14883. (sessionDownloadLength): long long int -> uint64_t
  14884. (sessionUploadLength): long long int -> uint64_t
  14885. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14886. To add RecoverableException, FatalException:
  14887. * src/AbstractCommand.cc
  14888. (onAbort): Exception -> RecoverableException
  14889. * src/PeerAbstractCommand.h
  14890. (RecoverableException.h): New include.
  14891. (onAbort): Exception -> RecoverableException.
  14892. * src/PeerInteractionCommand.cc
  14893. (onAbort): Exception -> RecoverableException.
  14894. * src/PeerAbstractCommand.cc
  14895. (execute): Exception -> RecoverableException.
  14896. (onAbort): Exception -> RecoverableException.
  14897. * src/TorrentRequestInfo.cc
  14898. (execute): Exception -> RecoverableException.
  14899. * src/MetalinkRequestInfo.cc
  14900. (execute): Exception -> RecoverableException.
  14901. * src/MetaFileUtil.cc: RecoverableException.
  14902. * src/AbstractCommand.h
  14903. (onAbort): Exception -> RecoverableException.
  14904. * src/DlRetryEx.h: Exception -> RecoverableException.
  14905. * src/DlAbortEx.h: Exception -> RecoverableException.
  14906. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14907. * src/Util.cc: Exception -> RecoverableException.
  14908. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14909. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14910. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14911. To make ID static const int
  14912. * src/BtInterestedMessage.h
  14913. (ID_t): Removed.
  14914. (ID): New variable.
  14915. (getId): Made non-const.
  14916. * src/BtPieceMessage.h
  14917. (ID_t): Removed.
  14918. (ID): New variable.
  14919. (getId): Made non-const.
  14920. * src/BtChokeMessage.h
  14921. (ID_t): Removed.
  14922. (ID): New variable.
  14923. (getId): Made non-const.
  14924. * src/BtHaveAllMessage.h
  14925. (ID_t): Removed.
  14926. (ID): New variable.
  14927. (getId): Made non-const.
  14928. * src/BtKeepAliveMessage.h
  14929. (ID_t): Removed.
  14930. (ID): New variable.
  14931. (getId): Made non-const.
  14932. * src/BtHandshakeMessage.h
  14933. (ID): New variable.
  14934. (getId): Made non-const.
  14935. * src/BtSuggestPieceMessage.h
  14936. (ID_t): Removed.
  14937. (ID): New variable.
  14938. (getId): Made non-const.
  14939. * src/BtPortMessage.h
  14940. (ID_t): Removed.
  14941. (ID): New variable.
  14942. (getId): Made non-const.
  14943. * src/AbstractBtMessage.h
  14944. (id): Removed.
  14945. (AbstractBtMessage): Removed id.
  14946. (getId): Removed.
  14947. * src/BtHaveMessage.h
  14948. (ID_t): Removed.
  14949. (ID): New variable.
  14950. (getId): Made non-const.
  14951. * src/BtAllowedFastMessage.h
  14952. (ID_t): Removed.
  14953. (ID): New variable.
  14954. (getId): Made non-const.
  14955. * src/BtCancelMessage.h
  14956. (ID_t): Removed.
  14957. (ID): New variable.
  14958. (getId): Made non-const.
  14959. * src/BtNotInterestedMessage.h
  14960. (ID_t): Removed.
  14961. (ID): New variable.
  14962. (getId): Made non-const.
  14963. * src/BtChokeMessage.h
  14964. (ID_t): Removed.
  14965. (ID): New variable.
  14966. (getId): Made non-const.
  14967. * src/BtRejectMessage.h
  14968. (ID_t): Removed.
  14969. (ID): New variable.
  14970. (getId): Made non-const.
  14971. * src/BtBitfieldMessage.h
  14972. (ID_t): Removed.
  14973. (ID): New variable.
  14974. (getId): Made non-const.
  14975. * src/BtUnchokeMessage.h
  14976. (ID_t): Removed.
  14977. (ID): New variable.
  14978. (getId): Made non-const.
  14979. * src/BtRequestMessage.h
  14980. (ID_t): Removed.
  14981. (ID): New variable.
  14982. (getId): Made non-const.
  14983. * src/BtHaveMessage.h
  14984. (ID_t): Removed.
  14985. (ID): New variable.
  14986. (getId): Made non-const.
  14987. To add --force-truncate command-line option and a check whether
  14988. the file already exists:
  14989. * src/DirectDiskAdaptor.h
  14990. (getFilePath): Made virtual public.
  14991. * src/MultiDiskAdaptor.h
  14992. (File.h): New include.
  14993. (DiskWriterEntry::fileEntry): Made private.
  14994. (DiskWriterEntry::fileExists): New function.
  14995. (DiskWriterEntry::getFileEntry): New function.
  14996. (fileExists): New function.
  14997. (getFilePath): New function.
  14998. * src/TorrentRequestInfo.cc
  14999. (FatalException.h): New include.
  15000. (message.h): New include.
  15001. (RecoverableException.h): New include.
  15002. (execute): Added a check whether file is already exists or not.
  15003. * src/DiskAdaptor.h
  15004. (fileExists): New function.
  15005. (getFilePath): New function.
  15006. * src/main.cc
  15007. (showUsage): Added an explanation of --force-truncate command-line
  15008. option.
  15009. (main): Added --force-truncate command-line option.
  15010. * src/Exception.h
  15011. (setMsg): buf[256] -> buf[1024]
  15012. * src/CopyDiskWriter.h
  15013. (getFilePath): Made public virtual.
  15014. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15015. (fileExists): New function.
  15016. * src/DownloadEngineFactory.cc
  15017. (newTorrentConsoleEngine): Don't open file here.
  15018. * src/message.h
  15019. (EX_FILE_ALREADY_EXISTS): New definition.
  15020. * src/prefs.h
  15021. (PREF_FOECE_TRUNCATE): New definition.
  15022. * src/HttpResponseCommand.cc
  15023. (handleDefaultEncoding): Added a check whether the file already exists.
  15024. * src/SegmentMan.h
  15025. (fileExists): New function.
  15026. (shouldCancelDownloadForSafety): New function.
  15027. * src/FtpNegotiateCommand.cc
  15028. (recvSize): Added a check whether the file already exists.
  15029. * src/AbstractSingleDiskAdaptor.cc
  15030. (File.h): New include.
  15031. (fileExists): New function.
  15032. * src/AbstractSingleDiskAdaptor.h
  15033. (getFilePath): Removed.
  15034. (fileExists): New function.
  15035. * src/SegmentMan.cc
  15036. (fileExists): New function.
  15037. (shouldCancelDownloadForSafety): New function.
  15038. To fix regression bug in torrent downloading:
  15039. * src/DefaultBtRequestFactory.cc
  15040. (doChokedAction): New function.
  15041. * src/DefaultBtRequestFactory.h
  15042. (doChokedAction): New function.
  15043. * src/DefaultBtMessageDispatcher.cc
  15044. (doChokedAction): Do not delete request if its target is in allowed
  15045. fast set.
  15046. * src/DefaultBtInteractive.cc
  15047. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15048. (sendKeepAlive): Send keep alive message even if the outgoing message
  15049. queue is not empty.
  15050. (decideInterest): Simplified the code.
  15051. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15052. it is already called when BtChokeMessage is received from a peer.
  15053. * src/BtRequestFactory.h
  15054. (doChokedAction): New function.
  15055. To clean up code:
  15056. * src/PeerInteractionCommand.h
  15057. (executeInternal): Added virtual keyword explicitly.
  15058. (prepareForRetry): Added virtual keyword explicitly.
  15059. (prepareForNextPeer): Added virtual keyword explicitly.
  15060. (onAbort): Added virtual keyword explicitly.
  15061. * src/RequestSlot.cc
  15062. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15063. * src/BtPieceMessage.cc
  15064. (doReceivedAction): Added a debug log of piece's bitfield.
  15065. * src/Piece.h
  15066. (getBitfieldLength): New function.
  15067. * src/ByteArrayDiskWriter.cc
  15068. (clear): Added buf = 0 to avoid double free corruption.
  15069. * src/FileAllocator.cc
  15070. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15071. Added cp.reset().
  15072. * src/BitfieldMan.h
  15073. (operator=): Rewritten.
  15074. * src/BitfieldMan.cc
  15075. (BitfieldMan): Initialized bitfield, useBitfield.
  15076. * src/PeerConnection.cc
  15077. (receiveMessage): Added a call to socket->readable() after getting
  15078. message length to avoid possible EOF.
  15079. * src/Util.cc
  15080. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15081. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15082. To add an ability to pre-allocate file space:
  15083. * src/DirectDiskAdaptor.h: Rewritten.
  15084. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15085. * src/MultiDiskAdaptor.h: Rewritten.
  15086. * src/DefaultPieceStorage.cc
  15087. (MultiDiskWriter.h): Removed include.
  15088. (PreAllocationDiskWriter.h): Removed include.
  15089. (FileAllocationMonitor.h): New include.
  15090. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15091. (initStorage): Rewritten.
  15092. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15093. * src/FileAllocator.h: New class.
  15094. * src/FileAllocator.cc: New class.
  15095. * src/FileAllocationMonitor.h: New class.
  15096. * src/FileAllocationMonitor.cc: New class.
  15097. * src/ConsoleFileAllocationMonitor.h: New class.
  15098. * src/ConsoleFileAllocationMonitor.cc: New class.
  15099. * src/AbstractSingleDiskAdaptor.h: New class.
  15100. * src/AbstractSingleDiskAdaptor.cc: New class.
  15101. * src/DiskAdaptor.h
  15102. (Directory.h): Removed include.
  15103. (DiskWriter.h): Removed include.
  15104. (FileEntry.h): Removed include.
  15105. (diskWriter): Removed.
  15106. (DiskAdaptor): Removed diskWriter.
  15107. (openFile): Made pure virtual.
  15108. (closeFile): Made pure virtual.
  15109. (openExistingFile): Made pure virtual.
  15110. (initAndOpenFile): Made pure virtual.
  15111. (writeData): Made pure virtual.
  15112. (readData): Made pure virtual.
  15113. (sha1Sum): Made pure virtual.
  15114. (getStoreDir): Returns const reference of storeDir.
  15115. (DiskAdaptorHandle): New type definition.
  15116. * src/main.cc
  15117. (ConsoleFileAllocationMonitor.h): New include.
  15118. (showUsage): Added default value description of -s option.
  15119. Added the description of --file-allocation option.
  15120. (main): Set default value of --file-allocation option to 'none'.
  15121. Added --file-allocation command-line option.
  15122. Setup FileAllocationMonitorFactory.
  15123. * src/FtpInitiateConnectionCommand.cc
  15124. (executeInternal): Removed diskWriter related processing, which was
  15125. moved to FtpNegotiationCommand.cc.
  15126. * src/DirectDiskAdaptor.cc
  15127. (getFilePath): Made non-const.
  15128. * src/CopyDiskAdaptor.h
  15129. (DiskAdaptor.h): Removed include.
  15130. (DiskWriter.h): Removed include.
  15131. (AbstractSingleDiskAdaptor.h): New include.
  15132. (getFilePath): Made non-const. Added virtual keyword.
  15133. (CopyDiskAdaptor): Removed diskWriter.
  15134. (getTempFile): Returns const reference.
  15135. (CopyDiskAdaptorHandle): New type definition.
  15136. * src/ByteArrayDiskWriter.cc
  15137. (clear): Simplified.
  15138. (initAndOpenFile): Rewritten.
  15139. (openFile): Call initAndOpenFile()
  15140. * src/MultiDiskAdaptor.cc: Rewritten.
  15141. * src/DownloadEngineFactory.cc
  15142. (FileAllocator.h): New include.
  15143. (FileAllocationMonitor.h): New include.
  15144. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15145. create DefaultDiskWriter with file allocator.
  15146. * src/DiskWriter.h
  15147. (initAndOpenFile): Added totalLength argument.
  15148. (openFile): Added totalLength argument.
  15149. * src/prefs.h
  15150. (PREF_FILE_ALLOCATION): New definition.
  15151. (V_PREALLOC): New definition.
  15152. (V_NONE): New definition.
  15153. * src/HttpResponseCommand.cc
  15154. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15155. size.
  15156. * src/FtpNegotiateCommand.cc
  15157. (Util.h): New include.
  15158. (recvSize): Open file here.
  15159. * src/Util.h
  15160. (ullitos): New function.
  15161. * src/CopyDiskWriter.h
  15162. (getFilePath): Made non-const.
  15163. * src/DefaultDiskWriter.h
  15164. (Option.h): New include.
  15165. (totalLength): Removed.
  15166. (DefaultDiskWriter): Removed totalLength.
  15167. (initAndOpenFile): Added totalLength argument.
  15168. (DefaultDiskWriterHandle): New type definition.
  15169. (createNewDiskWriter): New function.
  15170. * src/Util.cc
  15171. (ullitos): New function.
  15172. * src/DefaultDiskWriter.cc
  15173. (message.h): New include.
  15174. (FileAllocator.h): New include.
  15175. (prefs.h): New include.
  15176. (Util.h): New include.
  15177. (DefaultDiskWriter): Removed totalLength.
  15178. (initAndOpenFile): Added file allocation.
  15179. (createNewDiskWriter): New function. Just for temporary solution.
  15180. It will be rewritten later.
  15181. * src/DiskAdaptor.cc
  15182. (DiskAdaptor): Removed diskWriter.
  15183. * src/AbstractDiskWriter.cc
  15184. (LogFactory.h): New include.
  15185. (AbstractDiskWriter): Added fileAllocator, logger.
  15186. (openFile): Added totalLength argument.
  15187. * src/AbstractDiskWriter.h
  15188. (FileAllocator.h): New include.
  15189. (Logger.h): New include.
  15190. (fileAllocator): New variable.
  15191. (logger): New variable.
  15192. (openFile): Added totalLength argument. Added virtual keyword
  15193. explicitly.
  15194. (openExistingFile): Added totalLength argument. Added virtual keyword
  15195. explicitly.
  15196. (closeFile): Added virtual keyword explicitly.
  15197. (sha1Sum): Added virtual keyword explicitly.
  15198. (writeData): Added virtual keyword explicitly.
  15199. (readData): Added virtual keyword explicitly.
  15200. (setFileAllocator): New function.
  15201. * src/DefaultPieceStorage.h
  15202. (FileAllocator.h): New include.
  15203. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15204. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15205. * src/FileProgressMonitor.h: New class.
  15206. To compile aria2 on PC-BSD:
  15207. * src/DefaultBtContext.cc
  15208. (libgen.h): New include.
  15209. To fix memory leak:
  15210. * src/Exception.h
  15211. (~Exception): Delete cause. Fixed memory leak.
  15212. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15213. Rewritten a portion of bittorrent implementation:
  15214. * src/BtMessageValidator.h: New class.
  15215. * src/BtBitfieldMessageValidator.h: New class.
  15216. * src/BtHandshakeMessageValidator.h: New class.
  15217. * src/BtRequestMessageValidator.h: New class.
  15218. * src/BtSuggestPieceMessageValidator.h: New class.
  15219. * src/BtAllowedFastMessageValidator.h: New class.
  15220. * src/BtRejectMessageValidator.h: New class.
  15221. * src/BtCancelMessageValidator.h: New class.
  15222. * src/BtPieceMessageValidator.h: New class.
  15223. * src/BtHaveMessageValidator.h: New class.
  15224. * src/BtEventListener.h: New class.
  15225. * src/AbstractBtEventListener.h: New class.
  15226. * src/BtEvent.h: New class.
  15227. * src/BtChokingEvent.h: New class.
  15228. * src/BtChokedEvent.h: New class.
  15229. * src/BtCancelSendingPieceEvent.h: New class.
  15230. * src/BtAbortOutstandingRequestEvent.h: New class.
  15231. * src/Randomizer.h: New class.
  15232. * src/SimpleRandomizer.h: New class.
  15233. * src/BtMessage.h: New class.
  15234. * src/AbstractBtMessage.h: New class.
  15235. * src/SimpleBtMessage.h: New class.
  15236. * src/BtHaveMessage.h: New class.
  15237. * src/BtInterestedMessage.h: New class.
  15238. * src/BtAllowedFastMessage.h: New class.
  15239. * src/BtUnchokeMessage.h: New class.
  15240. * src/BtCancelMessage.h: New class.
  15241. * src/BtNotInterestedMessage.h: New class.
  15242. * src/BtChokeMessage.h: New class.
  15243. * src/BtHaveNoneMessage.h: New class.
  15244. * src/BtHandshakeMessage.h: New class.
  15245. * src/BtSuggestPieceMessage.h: New class.
  15246. * src/BtHaveMessage.h: New class.
  15247. * src/BtPieceMessage.h: New class.
  15248. * src/BtHaveAllMessage.h: New class.
  15249. * src/BtKeepAliveMessage.h: New class.
  15250. * src/BtPortMessage.h: New class.
  15251. * src/BtRejectMessage.h: New class.
  15252. * src/BtBitfieldMessage.h: New class.
  15253. * src/BtRequestMessage.h: New class.
  15254. * src/DefaultBtRequestFactory.h: New class.
  15255. * src/DefaultBtMessageReceiver.h: New class.
  15256. * src/BtInteractive.h: New class.
  15257. * src/BtMessageDispatcher.h: New class.
  15258. * src/DefaultBtMessageDispatcher.h: New class.
  15259. * src/DefaultBtInteractive.h: New class.
  15260. * src/BitfieldManFactory.h: New class.
  15261. * src/HandleRegistry.h: New class.
  15262. * src/BtMessageFactory.h: New class.
  15263. * src/BtMessageReceiver.h: New class.
  15264. * src/DefaultBtMessageFactory.h: New class.
  15265. * src/PeerObject.h: New class.
  15266. * src/BtRequestFactory.h: New class.
  15267. * src/SuggestPieceMessage.h: Removed.
  15268. * src/PortMessage.h: Removed.
  15269. * src/SuggestPieceMessage.h: Removed.
  15270. * src/KeepAliveMessage.h: Removed.
  15271. * src/HandshakeMessage.h: Removed.
  15272. * src/PeerInteraction.h: Removed.
  15273. * src/UnchokeMessage.h: Removed.
  15274. * src/PieceMessage.h: Removed.
  15275. * src/RequestMessage.h: Removed.
  15276. * src/InterestedMessage.h: Removed.
  15277. * src/HaveMessage.h: Removed.
  15278. * src/CancelMessage.h: Removed.
  15279. * src/RejectMessage.h: Removed.
  15280. * src/AllowedFastMessage.h: Removed.
  15281. * src/HaveNoneMessage.h: Removed.
  15282. * src/SimplePeerMessage.h: Removed.
  15283. * src/HaveAllMessage.h: Removed.
  15284. * src/BitfieldMessage.h: Removed.
  15285. * src/PeerMessageFactory.h: Removed.
  15286. * src/NotInterestedMessage.h: Removed.
  15287. * src/ChokeMessage.h: Removed.
  15288. * src/PeerMessage.h: Removed.
  15289. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15290. To know root cause of exception:
  15291. * src/Exception.h
  15292. (cause): New variable.
  15293. (Exception): Added a parameter.
  15294. (getMsg): Return const reference to msg.
  15295. (getCause): New function.
  15296. * src/DlRetryEx.h
  15297. (DlRetryEx): Added a parameter 'cause'.
  15298. Added an overloaded constructor.
  15299. (DlAbortEx): Added a parameter 'cause'.
  15300. Added an overloaded constructor.
  15301. * src/SimpleLogger.cc
  15302. (writeLog): Log nested exception messages recursively.
  15303. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15304. * src/DefaultBtProgressInfoFile.cc
  15305. (load): Fixed memory leak when the infohash doesn't match.
  15306. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15307. * src/DefaultPeerStorage.cc
  15308. (calculateStat): Simplified the code by combining 2 loops into 1.
  15309. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15310. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15311. for BitTorrent download:
  15312. * src/PeerAbstractCommand.cc
  15313. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15314. * src/main.cc:
  15315. (timeoutSpecified): Removed.
  15316. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15317. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15318. * src/TorrentRequestInfo.cc
  15319. (timeoutSpecified): Removed.
  15320. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15321. timeout value.
  15322. * src/prefs.h
  15323. (PREF_BT_TIMEOUT): New definition.
  15324. Delete unused variables:
  15325. * src/TorrentRequestInfo.cc
  15326. (requestInfo): Removed.
  15327. Move setSignalHander to Util::setGlobalSignalHandler:
  15328. * src/TorrentRequestInfo.cc:
  15329. setSignalHander -> Util::setGlobalSignalHandler
  15330. * src/main.cc
  15331. (setSignalHander): Removed.
  15332. (main): setSignalHander -> Util::setGlobalSignalHandler
  15333. * src/Util.h
  15334. (setGlobalSignalHandler): New function.
  15335. * src/Util.cc
  15336. (setGlobalSignalHandler): New function.
  15337. * src/UrlRequestInfo.cc:
  15338. setSignalHander -> Util::setGlobalSignalHandler
  15339. Reset peer status in order to exit gracefully:
  15340. * src/PeerAbstractCommand.cc
  15341. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15342. To fix the bug that causes the number of bytes uploaded is not saved
  15343. to .aria2 file:
  15344. * src/DefaultPeerStorage.h
  15345. (removedPeerSessionDownloadLength): New variable.
  15346. (removedPeerSessionUploadLength): New variable.
  15347. * src/DefaultPeerStorage.cc
  15348. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15349. removedPeerSessionUploadLength(0).
  15350. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15351. through all peers, and then add removedPeerSessionDownloadLength(
  15352. removedPeerSessionUploadLength) to it.
  15353. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15354. (to) the peer to removedPeerSessionDownloadLength
  15355. (removedPeerSessionUploadLength).
  15356. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15357. To add Metalink location option:
  15358. * src/MetalinkRequestInfo.cc
  15359. (execute): Call MetalinkEntry::setLocationPreference()
  15360. * src/main.cc
  15361. (showUsage): Added the help message for --metalink-location option.
  15362. (main): Added --metalink-location option.
  15363. * src/prefs.h
  15364. (PREF_METALINK_LOCATION): New definition.
  15365. * src/MetalinkEntry.cc
  15366. (AddLocationPreference): New function object.
  15367. (setLocationPreference): New function.
  15368. * src/Xml2MetalinkProcessor.cc
  15369. (getResource): Set location attribute to MetalinkResource
  15370. To show URLs to download
  15371. * src/UrlRequestInfo.h
  15372. (printUrls): New function.
  15373. To add multiple <file> Metalink support:
  15374. * src/MetalinkEntry.h
  15375. (MetalinkResources): Removed.
  15376. (setLocationPreference): New function.
  15377. (MetalinkEntryHandle): New type definition.
  15378. (MetalinkEntries): New type definition.
  15379. * src/Xml2MetalinkProcessor.h
  15380. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15381. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15382. (parseFile): Metalinker* -> MetalinkerHandle
  15383. * src/UrlRequestInfo.h
  15384. (execute): RequestInfo* -> RequestInfos
  15385. * src/MetalinkRequestInfo.cc
  15386. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15387. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15388. (execute): RequestInfo* -> RequestInfos
  15389. Added multiple <file> support. Print filename when it is queued.
  15390. * src/MetalinkRequestInfo.h
  15391. (execute): RequestInfo* -> RequestInfos
  15392. (getDownloadEngine): Removed.
  15393. * src/RequestInfo.h
  15394. (RequestInfoHandle): New type definition.
  15395. (RequestInfos): New type definition.
  15396. (execute): RequestInfo* -> RequestInfos
  15397. (getDownloadEngine): Removed.
  15398. * src/MetalinkResource.h
  15399. (MetalinkResourceHandle): New type definition.
  15400. (MetalinkResources): New type definition.
  15401. * src/MetalinkEntry.cc
  15402. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15403. because the element is now of type MetalinkResourceHandle.
  15404. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15405. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15406. (dropUnsupportedResource): Removed the deletion of the elements of
  15407. resources because the element is now of type MetalinkResourceHandle.
  15408. * src/Xml2MetalinkProcessor.cc
  15409. (parseFile): Metalinker* -> MetalinkerHandle
  15410. MetalinkEntry* -> MetalinkEntryHandle
  15411. Removed try-catch block.
  15412. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15413. MetalinkResource* -> MetalinkResourceHandle
  15414. Removed try-catch block.
  15415. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15416. Free result by using xmlXPathFreeObject()
  15417. * src/Metalinker.cc
  15418. (~Metalinker): Removed the deletion of entries.
  15419. MetalinkEntry* -> MetalinkEntryHandle
  15420. (queryEntry): Add multiple <file> Metalink support.
  15421. * src/Metalinker.h
  15422. (MetalinkEntries): Removed.
  15423. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15424. * src/MetalinkProcessor.h
  15425. (parseFile): Metalinker* -> MetalinkerHandle
  15426. Bug fixes:
  15427. * src/PeerChokeCommand.cc
  15428. (execute): cat01->cat02
  15429. * src/DefaultPieceStorage.cc
  15430. (DefaultPieceStorage): Added diskAdaptor(0)
  15431. * src/TrackerWatcherComand.cc:
  15432. (execute): Use btAnnounce->noMoreAnnounce()
  15433. to determin whether the function returns true or not.
  15434. * src/TrackerUpdateCommand.cc:
  15435. (execute): Use btAnnounce->noMoreAnnounce()
  15436. to determin whether the function returns true or not.
  15437. * src/FtpConnection.cc
  15438. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15439. This is the fix of the busy loop bug.
  15440. * src/DownloadCommand.cc
  15441. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15442. cached PeerStat.
  15443. The value of "name" entry in torrent file is now set by
  15444. *DiskAdaptor::setTopDir(...) methods.
  15445. * src/MultiDiskAdaptor.h
  15446. (topDir): New variable.
  15447. (setTopDir): New function.
  15448. (getTopDir): New function.
  15449. * src/MultiDiskAdaptor.cc
  15450. (getFilePath): Concat storDir, "/" and topDir.
  15451. (mkdir): Use getFilePath() to get the directory path for output.
  15452. * src/DefaultPieceStorage.cc
  15453. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15454. CopyDiskAdaptor.
  15455. * src/CopyDiskAdaptor.h
  15456. (topDir): New variable.
  15457. (setTopDir): New function.
  15458. (getTopDir): New function.
  15459. * src/CopyDiskAdaptor.cc
  15460. (fixFilename): Updated.
  15461. Misc
  15462. * src/UrlRequestInfo.h
  15463. (e): Removed.
  15464. (UrlRequestInfo): Removed e.
  15465. (getDownloadEngine): Removed.
  15466. * src/UrlRequestInfo.cc
  15467. (handler): Rewritten.
  15468. (printUrls): New function.
  15469. (execute): Call printUrls().
  15470. * src/HandshakeMessage.cc
  15471. (check): peerinteraction->getBtContext() -> btContext
  15472. * src/PeerInteraction.h
  15473. (getBtContext): Removed.
  15474. * src/TorrentRequestInfo.h
  15475. (execute): RequestInfo* -> RequestInfos
  15476. (getDownloadEngine): Removed.
  15477. * src/TorrentRequestInfo.cc
  15478. (haltRequested): Removed.
  15479. (btHaltRequested): New variable.
  15480. (torrentHandler): haltRequested -> btHaltRequested
  15481. (execute): RequestInfo* -> RequestInfos
  15482. * src/TorrentConsoleDownloadEngine.cc
  15483. (afterEachIteration): haltRequested -> btHaltRequested.
  15484. * src/ConsoleDownloadEngine.h
  15485. (initStatistics): Added virtual.
  15486. (calculateStatistics): Added virtual.
  15487. (onEndOfRun): Added virtual.
  15488. (afterEachIteration): Added virtual.
  15489. * src/ConsoleDownloadEngine.cc
  15490. (haltRequested): New variable.
  15491. (afterEachIteration): New function.
  15492. * src/main.cc
  15493. (requestInfo): Removed.
  15494. * src/SegmentMan.cc
  15495. (findSlowerSegmentEntry): Refactored.
  15496. * Release 0.9.0
  15497. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15498. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15499. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15500. * src/TorrentMan.h: Removed.
  15501. * src/TorrentMan.cc: Removed.
  15502. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15503. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15504. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15505. * src/PeerAbstractCommand.cc: Use btRuntime.
  15506. * src/BtContextAwareCommand.h: New class.
  15507. * src/FileEntry.h: Added accessor methods for following variables.
  15508. (path): Made private.
  15509. (length): Made private.
  15510. (offset): Made private.
  15511. (extracted): Made private.
  15512. (requested): Made private.
  15513. (FileEntries): New definition.
  15514. (FileEntryHandle): New definition.
  15515. * src/FileEntry.cc: New file.
  15516. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15517. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15518. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15519. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15520. * src/PieceStorage.h: New file.
  15521. * src/PeerInteractionCommand.h: Use btContext.
  15522. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15523. btRuntime.
  15524. * src/DefaultBtProgressInfoFile.h: New file.
  15525. * src/DefaultBtProgressInfoFile.cc: New file.
  15526. * src/File.cc
  15527. (Util.h): New include.
  15528. (mkdirs): New function.
  15529. * src/MultiDiskAdaptor.h
  15530. (mkdir): New function.
  15531. * src/PeerListProcessor.h
  15532. (Peers): Removed.
  15533. * src/PeerInteraction.h
  15534. (torrentMan): Removed.
  15535. (btContext): New variable.
  15536. (peerStorage): New variable.
  15537. (pieceStorage): New variable.
  15538. (btAnnounce): New variable.
  15539. (getTorrentMan): Removed.
  15540. (getBtContext): New function.
  15541. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15542. btAnnounce.
  15543. * src/HandshakeMessage.h
  15544. (TorrentMan.h): Removed.
  15545. * src/HandshakeMessage.cc: Use btContext.
  15546. * src/DefaultBtAnnounce.cc: New file.
  15547. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15548. * src/DefaultPieceStorage.cc: New file.
  15549. * src/DefaultBtContext.h: New file.
  15550. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15551. Use the accessor methods of FileEntry.
  15552. * src/CookieBox.cc: Updated to use Util::slice().
  15553. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15554. * src/common.h (SharedHandle.h): New include.
  15555. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15556. pieceStorage.
  15557. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15558. * src/DiskAdaptor.h
  15559. (topDir): Removed.
  15560. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15561. (setTopDir): Removed.
  15562. (getTopDir): Removed.
  15563. * src/BtContext.h: New file.
  15564. * src/DefaultPeerStorage.h: New file.
  15565. * src/PieceMessage.h (TorrentMan.h): Removed.
  15566. * src/RequestMessage.h (TorrentMan.h): Removed.
  15567. * src/TorrentDownloadEngine.h
  15568. (uploadLength): New variable.
  15569. (btContext): New variable.
  15570. (btRuntime): New variable.
  15571. (pieceStorage): New variable.
  15572. (peerStorage): New variable.
  15573. (btAnnounce): New variable.
  15574. (btProgressInfoFile): New variable.
  15575. (torrentMan): Removed.
  15576. (setBtContext): New function.
  15577. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15578. peerStorage, btAnnounce, btProgressInfoFile.
  15579. * src/Piece.h
  15580. (toString): New function.
  15581. (Pieces): New type definition.
  15582. * src/Peer.h
  15583. (active): New variable.
  15584. (Peer): Added active.
  15585. (activate): Set active to true.
  15586. (deactivate): Set active to false.
  15587. (isActive): New function.
  15588. (Peers): New type definition.
  15589. * src/DirectDiskAdaptor.cc
  15590. (getFilePath): Use the accessor methods of FileEntry.
  15591. * src/TorrentConsoleDownloadEngine.h
  15592. (afterEachIteration): New function.
  15593. * src/TorrentConsoleDownloadEngine.cc
  15594. (haltRequested): New variable.
  15595. (sendStatistics): Use pieceStorage, btRuntime.
  15596. (afterEachIteration): New function.
  15597. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15598. * src/Directry.h
  15599. (Directory): New function.
  15600. (DirectoryHandle): New type definition.
  15601. * src/BtProgressInfoFile.h: New file.
  15602. * src/RequestMessage.cc: Use pieceStorage.
  15603. * src/BtRuntime.h: New file.
  15604. * src/DefaultBtContext.cc: New file.
  15605. * src/BitfieldMan.h
  15606. (getCompletedLength): New function(private).
  15607. (getCompletedLength): New function.
  15608. (getFilteredCompletedLength): New function.
  15609. * src/BitfieldMan.h
  15610. (getCompletedLength): New function(private).
  15611. (getCompletedLength): New function.
  15612. (getFilteredCompletedLength): New function.
  15613. * src/MultiDiskAdaptor.cc
  15614. (mkdir): New function.
  15615. (openFile): Call mkdir().
  15616. (initAndOpenFile): Call mkdir().
  15617. * src/CancelMessage.h
  15618. (TorrentMan.h): Removed.
  15619. * src/RejectMessage.h
  15620. (TorrentMan.h): Removed.
  15621. * src/DownloadEngineFactory.cc
  15622. (DefaultPieceStorage.h): New include.
  15623. (DefaultPeerStorage.h): New include.
  15624. (DefaultBtAnnounce.h): New include.
  15625. (DefaultBtProgressInfoFile.h): New include.
  15626. (newTorrentConsoleEngine): Rewritten.
  15627. * src/ShareRatioSeedCriteria.h
  15628. (torrentMan): Removed.
  15629. (btContext): New variable.
  15630. (peerStorage): New variable.
  15631. (btRuntime): New variable.
  15632. (evaluate): Use btContext, btRuntime, peerStorage.
  15633. * src/AnnounceTier.h: New file.
  15634. * src/BtAnnounce.h: New file.
  15635. * src/BtRegistry.h: New file.
  15636. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15637. * src/PeerConnection.h (TorrentMan.h): Removed.
  15638. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15639. * src/Util.h
  15640. (slice): Added an argument.
  15641. * src/Util.cc
  15642. (slice): Added an argument to control whether trim is made or not.
  15643. * src/PeerStorage.h: New file.
  15644. * src/BtRegistry.cc: New file.
  15645. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15646. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15647. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15648. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15649. * src/TorrentRequestInfo.h
  15650. (e): Removed.
  15651. (showFileEntry): Added an argument.
  15652. (getDownloadEngine): Return 0.
  15653. * src/DefaultBtAnnounce.h: New file.
  15654. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15655. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15656. * src/PeerMessageFactory.h
  15657. (btContext): New variable.
  15658. (pieceStorage): New variable.
  15659. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15660. btAnnounce.
  15661. * src/DiskAdaptor.cc
  15662. (DiskAdaptor): Removed topDir.
  15663. (~DiskAdaptor): Removed topDir.
  15664. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15665. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15666. * src/File.h (mkdirs): New function.
  15667. * src/DefaultPeerStorage): New file.
  15668. * src/DownloadEngineFactory.h
  15669. (newTorrentConsoleEngine): Use btContext.
  15670. * src/BtContextAwareCommand.cc: New file.
  15671. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15672. * src/PeerMessage.h
  15673. (btContext): New variable.
  15674. (peerStorage): New variable.
  15675. (pieceStorage): New variable.
  15676. (setBtContext): New function.
  15677. * src/Directry.cc
  15678. (Directory): New function.
  15679. (createDir): Do nothing if name.size() == 0.
  15680. * src/AnnounceList.h
  15681. (AnnounceTier): Removed.
  15682. (AnnounceTiers): Removed.
  15683. * src/DefaultPieceStorage.h: New file.
  15684. * src/Piece.cc (toString): New function.
  15685. To fix typo:
  15686. * src/main.cc (showVersion): Fixed typo.
  15687. To fix compile warning:
  15688. * src/DelegatingPeerListProcessor.cc
  15689. (canHandle): Added "return false".
  15690. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15691. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15692. make the process of announce request testable.
  15693. * src/TrackerWatcherCommand.h
  15694. (TimeA2.h): Removed.
  15695. (interval): Removed.
  15696. (checkPoint): Removed.
  15697. (createRequestCommand): Added an argument 'url'.
  15698. (TrackerWatherCommand): Removed interval.
  15699. (createCommand): New function.
  15700. * src/DownloadEngineFactory.cc
  15701. (newTorrentConsoleEngine): Updated according to the changes in
  15702. TrackerWatherCommand.
  15703. * src/TorrentMan.cc
  15704. (DelegatingPeerListProcessor.h): New includes.
  15705. (TorrentMan): Added the initialization of announceInterval.
  15706. (isStoppedAnnounceReady): New function.
  15707. (isCompletedAnnounceReady): New function.
  15708. (isDefaultAnnounceReady): New function.
  15709. (isAnnounceReady): New function.
  15710. (getAnnounceUrl): New function.
  15711. (announceStart): New function.
  15712. (announceFailure): New function.
  15713. (announceSuccess): New function.
  15714. (isAllAnnounceFailed): New function.
  15715. (resetAnnounce): New function.
  15716. (processAnnounceResponse): New function.
  15717. (needMorePeerConnection): New function.
  15718. (noMoreAnnounce): New function.
  15719. * src/TrackerUpdateCommand.h
  15720. (getTrackerResponse): int->size_t
  15721. * src/TorrentMan.h
  15722. (isStoppedAnnounceReady): New function.
  15723. (isCompletedAnnounceReady): New function.
  15724. (isDefaultAnnounceReady): New function.
  15725. (announceInterval): New variable.
  15726. (isAnnounceReady): New function.
  15727. (getAnnounceUrl): New function.
  15728. (announceStart): New function.
  15729. (announceFailure): New function.
  15730. (announceSuccess): New function.
  15731. (isAllAnnounceFailed): New function.
  15732. (resetAnnounce): New function.
  15733. (processAnnounceResponse): New function.
  15734. (needMorePeerConnection): New function.
  15735. (noMoreAnnounce): New function.
  15736. * src/TrackerWatcherCommand.cc
  15737. (TrackerWatherCommand): Removed interval and checkPoint.
  15738. (execute): Rewritten.
  15739. (createCommand): New function.
  15740. (createRequestCommand): Rewritten.
  15741. * src/TrackerUpdateCommand.cc
  15742. (MetaFileUtil.h): Removed.
  15743. (DelegatingPeerListProcessor.h): Removed.
  15744. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15745. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15746. Request -> RequestHandle:
  15747. * src/HttpResponseCommand.h: Request->RequestHandle
  15748. * src/AbstractCommand.cc: Request->RequestHandle
  15749. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15750. * src/HttpRequestCommand.cc: Request->RequestHandle
  15751. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15752. * src/AbstractCommand.h: Request->RequestHandle
  15753. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15754. * src/HttpResponseCommand.cc: Request->RequestHandle
  15755. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15756. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15757. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15758. * src/HttpConnection.h: Request->RequestHandle
  15759. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15760. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15761. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15762. * src/DownloadCommand.h: Request->RequestHandle
  15763. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15764. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15765. * src/HttpRequestCommand.h: Request->RequestHandle
  15766. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15767. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15768. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15769. * src/HttpDownloadCommand.h: Request->RequestHandle
  15770. * src/FtpConnection.cc: Request->RequestHandle
  15771. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15772. * src/UrlRequestInfo.cc: Request->RequestHandle
  15773. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15774. * src/HttpConnection.h: Request->RequestHandle
  15775. * src/DownloadCommand.cc: Request->RequestHandle
  15776. * src/FtpConnection.h: Request->RequestHandle
  15777. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15778. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15779. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15780. * src/Request.h
  15781. (SharedHandle.h): New include.
  15782. (RequestHandle): New type definition.
  15783. (Requests): Redefined.
  15784. To add MULTITRACKER support:
  15785. * src/TrackerWatcherCommand.h
  15786. (createRequestCommand): New function.
  15787. * src/DownloadEngineFactory.cc
  15788. (newTorrentConsoleEngine): Removed req.
  15789. * src/prefs.h
  15790. (PREF_TRACKER_MAX_TRIES): New definition.
  15791. * src/TorrentMan.cc
  15792. (TorrentMan): Removed req. Added trackerNumTry.
  15793. (~TorrentMan): Removed req.
  15794. (setupInternal1): Added announceList.
  15795. * src/TorrentRequestInfo.cc
  15796. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15797. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15798. * src/main.cc
  15799. (main): Added PREF_TRACKER_MAX_TRIES.
  15800. * src/TorrentMan.h
  15801. (Request.h): Removed.
  15802. (AnnounceList.h): New include.
  15803. (trackerNumTry): New variable.
  15804. (req): Removed.
  15805. (announceList): New variable.
  15806. * src/TrackerWatcherCommand.cc
  15807. (execute): Rewritten.
  15808. (createRequestCommand): New function.
  15809. * src/TrackerUpdateCommand.cc
  15810. (execute): Updated with the use of AnnounceList.
  15811. * src/AnnounceList.cc: New class.
  15812. * src/AnnounceList.h: New class.
  15813. To fix typo:
  15814. * src/prefs.h
  15815. (PREF_MAX_TRIES): max_try->max_tries
  15816. To not to decode "+" as space in URL decode:
  15817. * src/Util.cc
  15818. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15819. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15820. To add timeout to async name resolution:
  15821. * src/AbstractCommand.h
  15822. (nameResolveFinished): New function. This is not elegant way. It needs
  15823. to be more refined.
  15824. (nameResolverCheck): New variable.
  15825. * src/AbstractCommand.cc
  15826. (AbstractCommand): Added nameResolverCheck.
  15827. (execute): Added the check whether the name resolution has finished.
  15828. (setNameResolverCheck): Set nameResolverCheck to true.
  15829. (disableNameResolverCheck): Set nameResolverCheck to false.
  15830. (nameResolverFinished): New function.
  15831. * src/FtpInitiateConnectionCommand.h
  15832. (nameResolverFinished): New function.
  15833. * src/FtpInitiateConnectionCommand.cc
  15834. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15835. * src/HttpInitiateConnectionCommand.h
  15836. (nameResolverFinished): New function.
  15837. * src/HttpInitiateConnectionCommand.cc
  15838. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15839. * src/prefs.h
  15840. (PREF_DNS_TIMEOUT): New definition.
  15841. * src/main.cc
  15842. (main): Added PREF_DNS_TIMEOUT.
  15843. To add the support for a non-compact response from a tracker:
  15844. * src/PeerListProcessor.h: New class.
  15845. * src/DefaultPeerListProcessor.h: New class.
  15846. * src/DefaultPeerListProcessor.cc: New class.
  15847. * src/CompactPeerListProcessor.h: New class.
  15848. * src/CompactPeerListProcessor.cc: New class.
  15849. * src/DelegatingPeerListProcessor.h: New class.
  15850. * src/DelegatingPeerListProcessor.cc: New class.
  15851. * src/TorrentMan.cc
  15852. (addPeer): New function(overload).
  15853. (addPeer): Delete unused peers only when new peer is added.
  15854. * src/TorrentMan.h
  15855. (PeerListProcessor.h): Included.
  15856. (Peers): Removed.
  15857. (addPeer): New function(overload).
  15858. * src/TrackerUpdateCommand.cc
  15859. (netinet/in.h): Removed.
  15860. (DelegatingPeerListProcessor.h): Included.
  15861. (execute): Updated to use DelegatingPeerListProcessor.
  15862. To fix the memory leak in TorrentMan::peers:
  15863. * src/PeerAbstractCommand.cc
  15864. (onAbort): Added peer->resetStatus().
  15865. * src/Peer.h
  15866. (resetStatus): Made public.
  15867. To improve the precision of the speed calculation:
  15868. * src/SpeedCalc.h
  15869. (nextInterval): New variable.
  15870. * src/SpeedCalc.cc
  15871. (reset): Added nextInterval.
  15872. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15873. (changeSw): Set nextInterval to 15 seconds relative to the current
  15874. instant time.
  15875. * src/main.cc
  15876. (showVersion): Updated.
  15877. (showUsage): Updated.
  15878. * Release 0.8.1
  15879. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15880. * src/main.cc
  15881. (showUsage): Commented out --min-segment-size option.
  15882. (main): Commented out --min-segment-size option.
  15883. * Release 0.8.0
  15884. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15885. * src/*.{h,cc}:
  15886. Added an exception to the license which allows linking with OpenSSL.
  15887. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15888. * src/AbstractCommand.cc
  15889. (execute): Check whether the download has finished before checking
  15890. socket status.
  15891. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15892. Do not exit even if no segment is available.
  15893. * src/prefs.h
  15894. (PREF_STARTUP_IDLE_TIME): New definition.
  15895. * src/PeerInteractionCommand.cc
  15896. (executeInternal): Removed max speed limit. Because it performs bad.
  15897. (receiveMessages): Added max speed limit. This was better than above,
  15898. but still a little bit to be desired. Sometimes the download speed
  15899. became much faster than I specified.
  15900. * src/SpeedCalc.h
  15901. (start): New variable.
  15902. (accumulatedLength): New variable.
  15903. (getAvgSpeed): New function.
  15904. * src/SpeedCalc.cc
  15905. (reset): Added start, accumulatedLength.
  15906. (update): Added calculation of an average speed.
  15907. (getAvgSpeed): New function.
  15908. * src/DownloadCommand.h
  15909. (sw): Removed.
  15910. * src/main.cc
  15911. (main): Added PREF_STARTUP_IDLE_TIME.
  15912. * src/PeerStat.h
  15913. (STATUS): Added REQUEST_IDLE.
  15914. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15915. (getAvgDownloadSpeed): New function
  15916. (requestIdle): New function.
  15917. * src/SegmentMan.h
  15918. (SegmentEntryHandle): New type definition.
  15919. (SegmentEntries): Now holds SegmentEntryHandle.
  15920. (findSlowerSegmentEntry): New funtion.
  15921. * src/SegmentMan.cc
  15922. (save): Updated according to the changes in SegmentEntries.
  15923. (read): Updated according to the changes in SegmentEntries.
  15924. (FindSegmentEntryByIndex): Updated according to the changes in
  15925. SegmentEntries.
  15926. (FindSegmentEntryByCuid): Updated according to the changes in
  15927. SegmentEntries.
  15928. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15929. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15930. Renamed uitr as itr.
  15931. (findSlowerSegmentEntry): New function.
  15932. (getSegment): Updated according to the changes in SegmentEntries.
  15933. Added the feature that cancels the segment with slow server and fast
  15934. one takes it over.
  15935. (cancelSegment): Updated according to the changes in SegmentEntries.
  15936. (getDownloadLength): Updated according to the changes in
  15937. SegmentEntries.
  15938. (init): Assigned 0 to bitfield after deleting it.
  15939. * src/DownloadCommand.cc
  15940. (STARTUP_IDLE_TIME): Removed.
  15941. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15942. * src/PeerChokeCommand.cc
  15943. (optUnchokingPeer): Updated according to the changes in Peer.
  15944. (ResetDelta): Removed.
  15945. (UploadFaster): Updated according to the changes in Peer.
  15946. (DownloadFaster): Updated according to the changes in Peer.
  15947. (execute): I clarify the meaning of "upload" and "download" here.
  15948. "upload" means the transfer from localhost to remote host.
  15949. "download" means the transfer from remote host to localhost.
  15950. Based on this rule, I swapped orderByUploadRate and
  15951. orderByDownloadRate.
  15952. * src/PeerInteractionCommand.cc
  15953. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15954. (executeInternal): Removed the argument of
  15955. peerInteraction->sendMessages().
  15956. (receiveMessages): Rewritten download speed limit.
  15957. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15958. * src/HttpResponseCommand.cc
  15959. (handleDefaultEncoding): If file size is unknown in torrent request,
  15960. do not call segmentMan->initBitfield() here.
  15961. Disabled persistent connection feature in torrent request.
  15962. * src/UrlRequestInfo.h
  15963. (UrlRequestInfo): Removed const qualifier from option.
  15964. * src/TorrentMan.h
  15965. (TransferStat): New class.
  15966. (deltaDownloadLength): Removed.
  15967. (deltaUploadLength): Removed.
  15968. (addDeltaDownloadLength): Removed.
  15969. (getDeltaDownloadLength): Removed.
  15970. (resetDeltaDownloadLength): Removed.
  15971. (addDeltaUploadLength): Removed.
  15972. (getDeltaUploadLength): Removed.
  15973. (resetDeltaUploadLength): Removed.
  15974. (addActivePeer): Added peer->activate().
  15975. (deleteActivePeer): Added peer->deactivate().
  15976. (calculateStat): New function.
  15977. * src/TorrentMan.cc
  15978. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15979. (calculateStat): New function.
  15980. * src/PeerInteraction.h
  15981. (uploadLimit): Removed.
  15982. (option): New variable.
  15983. (setUploadLimit): Removed.
  15984. (getUploadSpeed): Removed.
  15985. (sendMessages): Removed the argument "currentUploadSpeed".
  15986. * src/PeerInteraction.cc
  15987. (prefs.h): Included.
  15988. (PeerInteraction): Removed uploadLimit. Added option.
  15989. (sendMessages): Rewritten upload speed limit.
  15990. (sendHandshake): Removed the argument from sendMessages().
  15991. (sendBitfield): Removed the argument from sendMessages().
  15992. * src/PeerAbstractCommand.cc
  15993. (execute): Commented out the portion of upload limit.
  15994. (onAbort): Removed peer->resetStatus().
  15995. * src/TorrentRequestInfo.cc
  15996. (timeoutSpecified): Declared extern.
  15997. (execute): Set timeout to 180 if timeout is not specified by.
  15998. command-line.
  15999. * src/PieceMessage.cc
  16000. (receivedAction): Added peer->updateDownloadLength().
  16001. Removed peer->addPeerUpload().
  16002. Removed torrentMan->addDeltaDownloadLength().
  16003. (send): Added peer->updateUploadLength().
  16004. Removed peer->addPeerDownload().
  16005. Removed torrentMan->addDeltaUploadLength().
  16006. * src/main.cc
  16007. (timeoutSpecified): New variable.
  16008. (main): Set timeoutSpecified to false.
  16009. If the command-line option "--upload-limit" is specified, then
  16010. timeoutSpecified is set to true. This option will remain in the next
  16011. release, but be deprecated in the future release.
  16012. * src/TorrentRequestInfo.h
  16013. (TorrentRequestInfo): Removed const qualifier from op.
  16014. * src/PeerStat.h
  16015. (uploadSpeed): New variable.
  16016. (PeerStat): Added default value to cuid.
  16017. (calculateUploadSpeed): New function.
  16018. (updateUploadLength): New function.
  16019. (getMaxUploadSpeed): New function.
  16020. (getAvgUploadSpeed): New function.
  16021. (reset): Added uploadSpeed. Set status to IDLE.
  16022. * src/TorrentDownloadEngine.h
  16023. (cp): Declared as Time.
  16024. (sessionDownloadLengthArray): Removed.
  16025. (sessionUploadLengthArray): Removed.
  16026. (currentCp): Removed.
  16027. (lastCalcStat): New variable
  16028. (lastElapsed): Removed.
  16029. (sessionDownloadLength): Removed.
  16030. (calculateStat): New function.
  16031. * src/TorrentDownloadEngine.cc
  16032. (initStatistics): Removed lastElapsed, cp[],
  16033. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16034. currentCp, sessionDownloadLength.
  16035. Added cp.reset() and lastCalcStat.reset().
  16036. (calculateSpeed): Changed the name of the argument.
  16037. (calculateStatistics): Rewritten.
  16038. (calculateStat): New function.
  16039. * src/Peer.h
  16040. (PeerStat.h): Included.
  16041. (peerUpload): Removed.
  16042. (peerDownload): Removed.
  16043. (peerStat): New variable.
  16044. (sessionUploadLength): New variable.
  16045. (sessionDownloadLength): New variable.
  16046. (deltaUpload): Removed.
  16047. (deltaDownload): Removed.
  16048. (resetStatus): Made private.
  16049. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16050. Removed peerUpload, peerDownload.
  16051. (updateUploadLength): New function.
  16052. (addDeltaUpload): Removed.
  16053. (updateDownloadLength): New function.
  16054. (resetDeltaUpload): Removed.
  16055. (getDeltaUpload): Removed.
  16056. (addDeltaDownload): Removed.
  16057. (calculateUploadSpeed): New function.
  16058. (resetDeltaDownload): Removed.
  16059. (getDeltaDownload): Removed.
  16060. (calculateDownloadSpeed): New function.
  16061. (getSessionUploadLength): New function.
  16062. (getSessionDownloadLength): New function.
  16063. (activate): New function.
  16064. (deactivate): New function.
  16065. (addPeerUpload): Removed.
  16066. (setPeerUpload): Removed.
  16067. (getPeerUpload): Removed.
  16068. (addPeerDownload): Removed.
  16069. (setPeerDownload): Removed.
  16070. (getPeerDownload): Removed.
  16071. * src/Peer.cc
  16072. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16073. * src/MetalinkRequestInfo.h
  16074. (MetalinkRequestInfo): Removed const qualifier from op.
  16075. * src/RequestInfo.h
  16076. (op): Removed const qualifier.
  16077. (RequestInfo): Removed const qualifier from op.
  16078. * src/prefs.h
  16079. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16080. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16081. * src/PeerInteractionCommand.cc
  16082. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16083. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16084. * src/PeerInteraction.cc
  16085. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16086. * src/main.cc
  16087. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16088. Added the description of "--max-download-limit" option.
  16089. Removed the description of "--upload-limit" option.
  16090. Added the description of "--max-upload-limit" option.
  16091. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16092. Added "--max-download-limit" option and "--max-upload-limit" option.
  16093. Added the warning message if "--upload-limit" option is used.
  16094. * src/DownloadCommand.cc
  16095. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16096. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16097. To rewrite segment download mechanism for HTTP/FTP download.
  16098. Use BitfieldMan to manage segment download.
  16099. * src/HttpResponseCommand.h
  16100. (executeInternal): Pass the reference of segment.
  16101. * src/AbstractCommand.cc
  16102. (prepareForRetry): Call segmentMan->cancelSegment here.
  16103. (onAbort): Call segmentMan->cancelSegment here.
  16104. * src/HttpDownloadCommand.cc
  16105. (prepareForNextSegment): New function.
  16106. * src/DownloadEngineFactory.cc
  16107. (newConsoleEngine): Removed splitter.
  16108. (newTorrentConsoleEngine): Removed splitter.
  16109. * src/Request.h
  16110. (segment): Renamed from seg.
  16111. * src/FtpInitiateConnectionCommand.h
  16112. (executeInternal): Pass the reference of segment.
  16113. * src/AbstractCommand.h
  16114. (executeInternal): Pass the reference of segment.
  16115. * src/pref.h
  16116. (PREF_SEGMENT_SIZE): New definition.
  16117. * src/HttpProxyRequestCommand.h
  16118. (executeInternal): Pass the reference of segment.
  16119. * src/HttpResponseCommand.cc
  16120. (checkResponse): Allowed status 206 when a request range starts 0.
  16121. (handleDefaultEncoding): Rewritten the code related to Segment.
  16122. (handleOtherEncoding): Rewritten the code related to Segment.
  16123. * src/SegmentMan.h
  16124. (SegmentEntry): New class.
  16125. (SegmentEntries): New type definition.
  16126. (bitfield): New variable.
  16127. (usedSegmentEntries): New variable.
  16128. (onNullBitfield): New function.
  16129. (checkoutSegment): New function.
  16130. (segments): Removed.
  16131. (splitter): Removed.
  16132. (unregisterId): Removed.
  16133. (getSegment): New function(overload)
  16134. (getDownloadedSize): Removed.
  16135. (cancelSegment): New function.
  16136. (completeSegment): New function.
  16137. (initBitfield): New function.
  16138. (hasSegment): New function.
  16139. (getDownloadLength): New function.
  16140. * src/BitfieldMan.h
  16141. (getStartIndex): New function.
  16142. (getEndIndex): New function.
  16143. (getMissingUnusedIndex): New function(overload).
  16144. (getSparseMissingUnusedIndex): New function.
  16145. * src/BitfieldMan.cc
  16146. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16147. (getMissingUnusedIndex): New function(overload).
  16148. (Range): New class.
  16149. (getStartIndex): New function.
  16150. (getEndIndex): New function.
  16151. (getSparseMissingUnusedIndex): New function.
  16152. (isBitSetInternal): Return false if the given index is less than 0.
  16153. * src/HttpInitiateConnectionCommand.h
  16154. (executeInternal): Pass the reference of segment.
  16155. * src/FtpNegotiateCommand.h
  16156. (executeInternal): Pass the reference of segment.
  16157. * src/FtpNegotiateCommand.cc
  16158. (recvSize): Initialize bitfield here.
  16159. * src/FtpTunnelResponseCommand.h
  16160. (executeInternal): Pass the reference of segment.
  16161. * src/HttpConnection.cc
  16162. (createRequest): Rewritten range header processing.
  16163. * src/DownloadCommand.h
  16164. (executeInternal): Pass the reference of segment.
  16165. (prepareForRetry): Removed.
  16166. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16167. function.
  16168. * src/main.cc
  16169. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16170. * src/SegmentMan.cc
  16171. (SegmentMan): Added bitfield. Removed splitter.
  16172. (~SegmentMan): Added bitfield. Removed splitter.
  16173. (unregisterId): Removed.
  16174. (getSegment): Rewritten.
  16175. (updateSegment): Rewritten.
  16176. (save): Rewritten.
  16177. (read): Rewritten.
  16178. (finished): Rewritten.
  16179. (getDownloadedSize): Removed.
  16180. (initBitfield): New function.
  16181. (FindSegmentEntryByIndex): New function object.
  16182. (FindSegmentEntryByCuid): New function object.
  16183. (checkoutSegment): New function.
  16184. (onNullBitfield): New function.
  16185. (getSegment): New function(overload).
  16186. (CancelSegment): New function object.
  16187. (cancelSegment): New function.
  16188. (completeSegment): New function.
  16189. (hasSegment): New function.
  16190. (getDownloadLength): New function.
  16191. * src/FtpInitiateConnectionCommand.cc
  16192. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16193. * src/Segment.h: Rewritten.
  16194. * src/Segment.cc (operator<<): New function.
  16195. * src/HttpDownloadCommand.h
  16196. (prepareForNextSegment): New function.
  16197. * src/Request.cc
  16198. (resetUrl): Made segment null.
  16199. * src/DownloadEngine.cc
  16200. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16201. * src/HttpProxyRequestCommand.h
  16202. (executeInternal): Pass the reference of segment.
  16203. * src/DownloadCommand.cc
  16204. (executeInternal): Rewritten the code related to Segment.
  16205. (prepareForRetry): Removed.
  16206. (prepareForNextSegment): Rewritten.
  16207. * src/FtpTunnelResponseCommand.h
  16208. (executeInternal): Pass the reference of segment.
  16209. To add HTTP 1.1 persistent connection support(experimental)
  16210. * src/HttpRequestCommand.cc
  16211. (executeInternal): Disable keep alive if it is disabled by
  16212. configuration.
  16213. * src/Request.h
  16214. (keepAlive): New variable.
  16215. (isKeepAlive): New function.
  16216. (setKeepAlive): New function.
  16217. * src/pref.h
  16218. (PREF_HTTP_KEEP_ALIVE): New definition.
  16219. * src/HttpResponseCommand.cc
  16220. (executeInternal): Check the remote server supports keep alive.
  16221. * src/HttpConnection.cc
  16222. (createRequest): Send "Connection: close" only if keep alive is
  16223. disabled.
  16224. * src/main.cc
  16225. (main):
  16226. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16227. To add max download speed limit:
  16228. * src/pref.h
  16229. (PREF_MAX_SPEED_LIMIT): New definition.
  16230. * src/PeerInteractionCommand.cc
  16231. (executeInternal): Added max download speed limit. Not tested yet.
  16232. * src/SegmentMan.h
  16233. (PeerStats): New type definition.
  16234. (peerStats): New variable.
  16235. (registerPeerStat): New function.
  16236. (FindPeerStat): New function object.
  16237. (getPeerStat): New function.
  16238. (calculateDownloadSpeed): New function.
  16239. * src/SpeedCalc.h: New class.
  16240. * src/SpeedCalc.cc: New class.
  16241. * src/main.cc
  16242. (main):
  16243. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16244. download speed is not restricted).
  16245. * src/PeerStat.h: New class.
  16246. * src/SegmentMan.cc
  16247. (registerPeerStat): New function.
  16248. (calculateDownloadSpeed): New function.
  16249. * src/DownloadCommand.cc
  16250. (STARTUP_IDLE_TIME): New definition.
  16251. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16252. downloadStart.
  16253. (~DownloadCommand): Call peerStat->downloadStop.
  16254. (executeInternal): Added download speed limitter. Rewritten lowest
  16255. speed limitter.
  16256. * src/HttpConnection.cc
  16257. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16258. * src/AbstractCommand.cc
  16259. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16260. Added hostname to the error message.
  16261. * src/ConsoleDownloadEngine.cc
  16262. (calculateStatistics): Initialize psize with dlSize.
  16263. * src/PieceMessage.cc
  16264. (receivedAction): Do not call peerInteraction->abortPiece here.
  16265. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16266. * src/BitfieldMan.h
  16267. (clearAllUseBit): New function.
  16268. (setAllUseBit): New function.
  16269. * src/BitfieldMan.cc
  16270. (clearAllBit): Do not clear useBitfield here.
  16271. (clearAllUseBit): New function.
  16272. (setAllUseBit): New function.
  16273. * src/Piece.cc
  16274. (clearAllBlock): Call bitfield->clearAllUseBit().
  16275. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16276. To make filename URL-decoded:
  16277. * src/HttpResponseCommand.h: Updated doc.
  16278. * src/HttpResponseCommand.cc
  16279. (determinFilename): Made filename URL-decoded.
  16280. * src/FtpInitiateConnectionCommand.cc
  16281. (executeInternal): Made filename URL-decoded.
  16282. * src/Util.h (urldecode): New function.
  16283. * src/Util.cc (urldecode): New function.
  16284. To fix a bug that caused assertion failure in ares_strerror:
  16285. * src/NameResolver.cc (callback): Fixed the bug.
  16286. * Release 0.7.3
  16287. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16288. To add --seed-time and --seed-ratio command-line option:
  16289. * src/Option.h (getAsDouble): New function.
  16290. * src/Option.cc (getAsDouble): New function.
  16291. * src/SeedCheckCommand.h: New class.
  16292. * src/SeedCheckCommand.cc: New class.
  16293. * src/DownloadEngineFactory.cc
  16294. (SeedCheckCommand.h): Included.
  16295. (UnionSeedCriteria.h): Included.
  16296. (TimeSeedCriteria.h): Included.
  16297. (ShareRatioSeedCriteria.h): Included.
  16298. (newTorrentConsoleEngine): Added the processing of seed option.
  16299. * src/SeedCriteria.h: New class.
  16300. * src/ShareRatioSeedCriteria.h: New class.
  16301. * src/TimeSeedCriteria.h: New class.
  16302. * src/UnionSeedCriteria.h: New class.
  16303. * src/prefs.h
  16304. (PREF_SEED_TIME): New definition.
  16305. (PREF_SEED_RATIO): New definition.
  16306. * src/main.cc
  16307. (showUsage): Added --seed-time and --seed-ratio option.
  16308. (main): Added --seed-time and --seed-ratio option.
  16309. Made default log file name "/dev/null".
  16310. * src/SharedHandle.h
  16311. (SharedHandle): Copy constructor. Made it assignable from the
  16312. SharedHandle of the subclasses.
  16313. (operator=): Made it assignable from the SharedHandle of the
  16314. subclasses.
  16315. (getRefCount): New function.
  16316. To add notice log level and the switch to write log to stdout. This
  16317. switch is configurable per log level.
  16318. * src/Logger.h
  16319. (notice): New function.
  16320. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16321. constant.
  16322. * src/LogFactory.cc
  16323. (getInstance): The use of NullLogger was removed. A log message with
  16324. notice log level was made written to stdout along with log file.
  16325. * src/NullLogger.h
  16326. (notice): New function.
  16327. * src/SimpleLogger.h
  16328. (writeHeader): Added the 'file' argument.
  16329. (writeLog): Added the 'file' argument.
  16330. (writeFile): New function.
  16331. (stdoutField): New variable.
  16332. (SimpleLogger): Removed the default constructor.
  16333. (SimpleLogger): Made the default value of logfile 0.
  16334. (debug): Added 'virtual' keyword.
  16335. (info): Added 'virtual' keyword.
  16336. (warn): Added 'virtual' keyword.
  16337. (error): Added 'virtual' keyword.
  16338. (notice): New function.
  16339. (setStdout): New function.
  16340. * src/SimpleLogger.cc
  16341. (WRITE_LOG): Replaced writeLog with writeFile.
  16342. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16343. (SimpleLogger): Removed the default constructor.
  16344. (setStdout): New function.
  16345. (writeLog): Added the handling of NOTICE log level.
  16346. (writeFile): New function.
  16347. (notice): New function.
  16348. * src/TorrentMan.h: Updated doc.
  16349. * src/BitfieldMan.h: Updated doc.
  16350. * src/TrackerWatcherCommand.cc
  16351. (execute): Return true if error occurred in the request to the tracker
  16352. and halt is requested.
  16353. * src/TrackerUpdateCommand.cc
  16354. (execute): Return true if error occurred in the request to the tracker
  16355. and halt is requested.
  16356. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16357. DownloadEngine:
  16358. * src/TorrentConsoleDownloadEngine.h
  16359. (onSelectiveDownloadingCompletes): Removed.
  16360. * src/TorrentConsoleDownloadEngine.cc
  16361. (onSelectiveDownloadingCompletes): Removed.
  16362. * src/TorrentDownloadEngine.h
  16363. (onEndOfRun): Added 'virtual' keyword.
  16364. (afterEachIteration): Removed.
  16365. (onSelectiveDownloadingCompletes): Removed.
  16366. * src/TorrentDownloadEngine.cc
  16367. (onEndOfRun): Removed filenameFixed.
  16368. (afterEachIteration): Removed.
  16369. * src/TorrentMan.cc
  16370. (completePiece): Call onDownloadComplete here.
  16371. (onDownloadComplete): Added 2 log messages.
  16372. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16373. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16374. * src/NameResolver.h: Added the prototype declaration of callback().
  16375. To support c-ares library:
  16376. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16377. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16378. * src/FtpInitiateConnectionCommand.h:
  16379. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16380. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16381. * src/HttpInitiateConnectionCommand.h:
  16382. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16383. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16384. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16385. #1542285 by tizianomueller)
  16386. * src/HttpInitiateConnectionCommand.cc:
  16387. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16388. * src/FtpInitiateConnectionCommand.cc:
  16389. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16390. * src/DownloadEngine.h:
  16391. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16392. * src/DownloadEngine.cc:
  16393. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16394. To fix the bug that causes compilation failure with metalink-support
  16395. disabled(bug#1543587):
  16396. * src/main.cc: Fixed with the patch by tizianomueller.
  16397. * Release 0.7.2
  16398. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16399. * src/main.cc
  16400. (main): Added a message to inform users that aria2 is starting to
  16401. verify checksum.
  16402. * src/RequestInfo.cc
  16403. (printDownloadAbortMessage): Added a message to inform users that
  16404. transfer can be resumed.
  16405. * src/FeatureConfig.cc
  16406. (FEATURE_ASYNC_DNS): New definition.
  16407. (FeatureConfig): Added aysnc DNS entry.
  16408. To replace CommandUuid with Command* in SocketEntry and
  16409. NameResolverEntry:
  16410. * src/DownloadEngine.h
  16411. (CommandUuids): Removed.
  16412. (SocketEntry::commandUuid): Removed.
  16413. (SocketEntry::command): New variable.
  16414. (SocketEntry::SocketEntry): Updated.
  16415. (SocketEntry::operator==): Updated.
  16416. (NameResolverEntry::commandUuid): Removed.
  16417. (NameResolverEntry::command): New variable.
  16418. (NameResolverEntry::NameResolverEntry): Updated.
  16419. (NameResolverEntry::operator==): Updated.
  16420. (waitData): Changed the argument type.
  16421. (addSocketForReadCheck): Changed the argument type.
  16422. (deleteSocketForReadCheck): Changed the argument type.
  16423. (addSocketForWriteCheck): Changed the argument type.
  16424. (deleteSocketForWriteCheck): Changed the argument type.
  16425. (addNameResolverCheck): Changed the argument type.
  16426. (deleteNameResolverCheck): Changed the argument type.
  16427. * src/DownloadEngine.cc
  16428. (FindCommand): Removed.
  16429. (run): Removed activeUuid. Added activeCommands instead.
  16430. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16431. (AccumulateActiveCommand): New function object.
  16432. (waitData): Use AccumulateActiveCommand.
  16433. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16434. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16435. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16436. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16437. (addNameResolverCheck): Use Command instead of CommandUuid.
  16438. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16439. * src/AbstractCommand.cc
  16440. (disableReadCheckSocket): Updated according to the changes in
  16441. DownloadEngine.
  16442. (setReadCheckSocket): Updated according to the changes in
  16443. DownloadEngine.
  16444. (disableWriteCheckSocket): Updated according to the changes in
  16445. DownloadEngine.
  16446. (setWriteCheckSocket): Updated according to the changes in
  16447. DownloadEngine.
  16448. (setNameResolverCheck): Updated according to the changes in
  16449. DownloadEngine.
  16450. (disableNameResolverCheck): Updated according to the changes in
  16451. DownloadEngine.
  16452. * src/AbstractCommand.cc
  16453. (disableReadCheckSocket): Updated according to the changes in
  16454. DownloadEngine.
  16455. (setReadCheckSocket): Updated according to the changes in
  16456. DownloadEngine.
  16457. (disableWriteCheckSocket): Updated according to the changes in
  16458. DownloadEngine.
  16459. (setWriteCheckSocket): Updated according to the changes in
  16460. DownloadEngine.
  16461. * release 0.7.1
  16462. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16463. To handle the case where some BitTorrent tracker requires all letters
  16464. except for [A-Za-z0-9] is URL encoded.
  16465. * src/Util.h
  16466. (torrentUrlencode): New function.
  16467. * src/Util.cc
  16468. (ctype.h): Included.
  16469. (torrentUrlencode): New function.
  16470. * src/TrackerWatcherCommand.cc
  16471. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16472. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16473. To add asynchronous DNS support(libares):
  16474. * src/AbstractCommand.h
  16475. (setNameResolverCheck): New function.
  16476. (disableNameResolverCheck): New function
  16477. (resolveHostname): New function.
  16478. * src/AbstractCommand.cc
  16479. (setNameResolverCheck): New function.
  16480. (disableNameResolverCheck): New function
  16481. (resolveHostname): New function.
  16482. * src/FtpInitiateConnectionCommand.h
  16483. (nameResolver): New function.
  16484. * src/FtpInitiateConnectionCommand.cc
  16485. (Util.h): Included.
  16486. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16487. disableWriteCheckSocket.
  16488. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16489. (executeInternal): Added async DNS support.
  16490. * src/HttpInitiateConnectionCommand.h
  16491. (nameResolver): New function.
  16492. * src/HttpInitiateConnectionCommand.cc
  16493. (DlRetryEx.h): Included.
  16494. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16495. disableWriteCheckSocket.
  16496. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16497. (executeInternal): Added async DNS support.
  16498. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16499. by extern "C" declaration.
  16500. * src/NameResolver.cc: New class.
  16501. * src/Util.h:
  16502. (isNumberAndDotsNotation): New function
  16503. * src/Util.cc
  16504. (isNumberAndDotsNotation): New function.
  16505. * src/DownloadEngine.h
  16506. (NameResolver.h): Included.
  16507. (NameResolverEntry): New class.
  16508. (NameResolverEntries): New type definition.
  16509. (addNameResolverCheck): New function.
  16510. (deleteNameResolverCheck): New function.
  16511. * src/DownloadEngine.cc
  16512. (run): Initialize cp with 0.
  16513. (SetDescriptor::operator()): Added for NameResolverEntry.
  16514. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16515. (waitData): Check nameResolver entries.
  16516. (updateFdSet): Update fds in nameResolver entries.
  16517. (addNameResolverCheck): New function.
  16518. (deleteNameResolverCheck): new function.
  16519. * src/PeerInteractionCommand.cc
  16520. (executeInternal): Fixed wrong socket handling.
  16521. * src/main.cc
  16522. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16523. * src/Util.cc
  16524. (fileChecksum): Removed the call to ctx.digestReset().
  16525. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16526. * po/ru.po: Azamat sent me Russian translation.
  16527. * src/FtpNegotiateCommand.cc
  16528. (recvGreeting): Call disableWriteCheckSocket just after
  16529. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16530. (recvRetr): Recognized status code 125 as a acceptable response code.
  16531. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16532. case-insesitive filesystem(BUG#1531057).
  16533. * src/Time.h: Renamed as TimeA2.h.
  16534. * src/Time.cc: Renamed as TimeA2.cc.
  16535. * src/TimeA2.h: New class.
  16536. * src/TimeA2.cc: New class.
  16537. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16538. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16539. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16540. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16541. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16542. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16543. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16544. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16545. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16546. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16547. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16548. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16549. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16550. * release 0.7.0
  16551. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16552. * src/PeerChokeCommand.h
  16553. (PeerChokeCommand): Rearranged the arguments.
  16554. * src/PeerChokeCommand.cc
  16555. (PeerChokeCommand): Rearranged the arguments.
  16556. * src/MetalinkEntry.h
  16557. (Checksum.h): Included.
  16558. (md5): Removed.
  16559. (sha1): Removed.
  16560. (checksum): New variable.
  16561. (operator=): Updated.
  16562. (check): Removed.
  16563. * src/prefs.h
  16564. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16565. (PREF_FOLLOW_TORRENT): New definition.
  16566. (PREF_SELECT_FILE): New definition.
  16567. (PREF_FOLLOW_METALINK): New definition.
  16568. * src/MetalinkResource.h
  16569. (TYPE_HTTPS): Added to enum TYPE.
  16570. * src/TorrentMan.cc
  16571. (~TorrentMan): Rewritten.
  16572. * src/MultiDiskWriter.cc
  16573. (MultiDiskAdaptor): Updated according to the changes in
  16574. MessageDigestContext.
  16575. (~MultiDiskAdaptor): Updated according to the changes in
  16576. MessageDigestContext.
  16577. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16578. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16579. * src/Util.h
  16580. (fileChecksum): Updated according to the changes in
  16581. MessageDigestContext.
  16582. * src/Util.cc
  16583. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16584. (fileChecksum): Updated according to the changes in
  16585. MessageDigestContext.
  16586. * src/messageDigest.h: Rewritten.
  16587. * src/MetalinkEntry.cc
  16588. (check): Removed.
  16589. (Supported): Updated.
  16590. (dropUnsupportedResource): Fixed a memory leak.
  16591. * src/ShaVisitor.cc
  16592. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16593. (~ShaVisitor): Updated according to the changes in
  16594. MessageDigestContext.
  16595. (visit): Updated according to the changes in MessageDigestContext.
  16596. * src/main.cc
  16597. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16598. command-line option added.
  16599. * src/DownloadEngine.h
  16600. (SocketEntry): New class.
  16601. (SocketEntries): New definition.
  16602. (PairFind): Removed.
  16603. (SockCmdMap): Removed.
  16604. * src/DownloadEngine.cc
  16605. (DownloadEngine): Rewritten.
  16606. (~DownloadEngine): Rewritten.
  16607. (run): Renamed activeCommandUuids as activeUuids.
  16608. (SetDescriptor): Rewritten.
  16609. (AccumulateActiveCommandUuid): Removed.
  16610. (AccumulateActiveUuid): New function object.
  16611. (waitData): Rewritten.
  16612. (updateFdSet): Rewritten.
  16613. (addSocket): Rewritten.
  16614. (deleteSocket): Rewritten.
  16615. (addSocketForReadCheck): Rewritten.
  16616. (deleteSocketForReadCheck): Rewritten.
  16617. (addSocketForWriteCheck): Rewritten.
  16618. (deleteSocketForWriteCheck): Rewritten.
  16619. * src/Xml2MetalinkProcessor.cc
  16620. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16621. * src/DownloadCommand.cc
  16622. (executeInternal): Added the check routine for lowest speed limit.
  16623. * src/AbstractDiskWriter.cc
  16624. (AbstractDiskWriter): Updated according to the changes in
  16625. MessageDigestContext.
  16626. (~AbstractDiskWriter): Updated according to the changes in
  16627. MessageDigestContext.
  16628. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16629. * src/RequestInfo.h: New class.
  16630. * src/UrlRequestInfo.h: New class.
  16631. * src/UrlRequestInfo.cc: New class.
  16632. * src/TorrentRequestInfo.h: New class.
  16633. * src/TorrentRequestInfo.cc: New class.
  16634. * src/MetalinkRequestInfo.h: New class.
  16635. * src/MetalinkRequestInfo.cc: New class.
  16636. * src/Checksum.h: New class.
  16637. * src/DownloadEngineFactory.h: New class.
  16638. * src/DownloadEngineFactory.cc: New class.
  16639. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16640. * src/Option.h
  16641. (getAsBool): New function.
  16642. * src/Option.cc
  16643. (prefs.h): Included.
  16644. (defined): 0-length value is now recognized as undefined.
  16645. (getAsInt): Rewritten.
  16646. (getAsLLInt): Rewritten.
  16647. (getAsBool): New function.
  16648. * src/FeatureConfig.h: Rewritten.
  16649. * src/FeatureConfig.cc: Rewritten.
  16650. * src/prefs.h
  16651. (PREF_STDOUT_LOG): New definition.
  16652. (PREF_LOG): New definition.
  16653. (PREF_DIR): New definition.
  16654. (PREF_OUT): New definition.
  16655. (PREF_SPLIT): New definition.
  16656. (PREF_DAEMON): New definition.
  16657. (PREF_REFERER): New definition.
  16658. (PREF_TORRENT_FILE): New definition.
  16659. (PREF_LISTEN_PORT): New definition.
  16660. (PREF_METALINK_FILE): New definition.
  16661. (PREF_METALINK_VERSION): New definition.
  16662. (PREF_METALINK_LANGUAGE): New definition.
  16663. (PREF_METALINK_OS): New definition.
  16664. (PREF_METALINK_SERVERS): New definition.
  16665. * src/main.cc
  16666. (main): Following command-line parameters are now put into Option
  16667. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16668. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16669. metalinkLanguage, metalinkOs, metalinkServers
  16670. To fix the bug that aria2 can not handle http response header properly.
  16671. * src/HttpHeader.cc
  16672. (put): Made name lowercased.
  16673. (defined): Made name lowercased.
  16674. (getFirst): Made name lowercased.
  16675. (get): Made name lowercased.
  16676. (getFirstAsInt): Rewritten.
  16677. (getFirstAsLLInt): Rewritten.
  16678. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16679. * src/TorrentMan.h:
  16680. (advertisePiece): Updated doc.
  16681. (getAdvertisedPieceIndexes): Updated doc.
  16682. (removeAdvertisedPiece); New function.
  16683. * src/TorrentMan.cc
  16684. (FindElapsedHave): New function object.
  16685. (removeAdvertisedPiece): New function.
  16686. * src/HaveEraseCommand.h: New class.
  16687. * src/HaveEraseCommand.cc: New class.
  16688. * src/FeatureConfig.h: New class.
  16689. * src/FeatureConfig.cc: New class.
  16690. * src/Request.h
  16691. (defaultPorts): Removed.
  16692. * src/Request.cc
  16693. (FeatureConfig.h): Included.
  16694. (Request): Removed the statements related to defaultPorts.
  16695. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16696. A default port number is now retrieved from FeatureConfig.
  16697. * src/main.cc
  16698. (HaveEraseCommand.h): Included.
  16699. (showVersion): Added the output of feature list.
  16700. (main): Added HaveEraseCommand to command queue in BitTorrent
  16701. downloading.
  16702. * src/PeerInteractionCommand.h
  16703. (chokeCheckPoint): Commented out.
  16704. (periodicExecPoint): New variable.
  16705. * src/PeerInteractionCommand.cc
  16706. (executeInternal): Following methods are now called in at least every
  16707. 0.5 seconds to reduce CPU usage:
  16708. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16709. checkHave(), sendKeepAlive().
  16710. (checkLongTimePeerChoking): Commented out.
  16711. * src/BitfieldMan.h
  16712. (getNthBitIndex): Changed the method signature.
  16713. (getMissingIndexRandomly): Changed the method signature.
  16714. * src/BitfieldMan.cc
  16715. (getNthBitIndex): Rewritten
  16716. (getMissingIndexRandomly): Rewritten.
  16717. (hasMissingPiece): Rewritten.
  16718. (getMissingIndex): Refactored.
  16719. (getMissingUnusedIndex); Refactored.
  16720. (getMissingIndex): Refactored.
  16721. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16722. * src/PeerMessage.h
  16723. (Piece.h): Included.
  16724. (SharedHandle.h): Included.
  16725. (invalidate): New variable.
  16726. (uploading): New variable.
  16727. (isInvalidate): New function.
  16728. (isUploading): New function.
  16729. (onPush): New function.
  16730. (onChoked): New function.
  16731. (onCanceled): New function.
  16732. (onAbortPiece): New function.
  16733. (PeerMessageHandle): New type definition.
  16734. * src/PeerMessage.cc
  16735. (PeerMessage): Added the initialization for invalidate and uploading.
  16736. * src/CancelMessage.h
  16737. (CancelMessage): Rewritten.
  16738. * src/RejectMessage.h
  16739. (RejectMessage): Rewritten.
  16740. * src/Metalinker.h
  16741. (operator=): Defined.
  16742. * src/MetaEntry.h
  16743. (operator=): Defined.
  16744. * src/MetalinkResource.h
  16745. (operator=): Defined.
  16746. * src/AllowedFastMessage.h
  16747. (AllowedFastMessage): Rewritten.
  16748. * src/HandshakeMessage.h
  16749. (HandshakeMessage): New function(overload).
  16750. * src/HandshakeMessage.cc
  16751. (HandshakeMessage): Rewritten.
  16752. (init): New function.
  16753. * src/HaveMessage.h
  16754. (HaveMessage): Rewritten.
  16755. * src/Time.h
  16756. (operator=): Defined the function body here.
  16757. * src/Time.cc
  16758. (operator=): Removed.
  16759. * src/SocketCore.h
  16760. (operator==): Defined here.
  16761. (operator!=): Defined here.
  16762. (operator<): Defined here.
  16763. * src/SocketCore.cc
  16764. (operator==): Removed.
  16765. (operator<): Removed.
  16766. * src/BitfieldMan.h
  16767. (operator=): Defined the function body here.
  16768. * src/BitfieldMan.cc
  16769. (operator=): Removed.
  16770. * src/TorrentMan.h
  16771. (deleteErrorPeer): Removed.
  16772. (deleteUnusedPeer); New function.
  16773. * src/TorrentMan.cc
  16774. (addPeer): Call deleteUnusedPeer.
  16775. (deleteErrorPeer): Removed.
  16776. (deleteUnusedPeer): New function.
  16777. * src/PeerAbstractCommand.h
  16778. (setNoCheck): New function.
  16779. (noCheck): New variable.
  16780. * src/PeerAbstractCommand.cc
  16781. (PeerAbstractCommand): Added the initialization of noCheck.
  16782. (execute): Added a check for noCheck.
  16783. (setNoCheck): New function.
  16784. * src/Util.h
  16785. (stdio.h): Included.
  16786. * src/Util.cc
  16787. (unistd.h): Included.
  16788. * src/DefaultDiskWriter.cc
  16789. (unistd.h): Included.
  16790. * src/Peer.h
  16791. (operator==): Defined the function body here.
  16792. (operator!=): Defined the function body here.
  16793. * src/Peer.cc
  16794. (operator==): Removed.
  16795. (operator!=): Removed.
  16796. * src/Piece.h
  16797. (Piece): Defined the function body here(copy constructor).
  16798. (operator=): Defined the function body here.
  16799. (operator==): Defined the function body here.
  16800. * src/Piece.cc
  16801. (Piece): Removed(copy constructor).
  16802. (operator=): Removed.
  16803. (operator==): Removed.
  16804. * src/PeerMessageUtil.h
  16805. (ChokeMessage.h): Removed.
  16806. (UnchokeMessage.h): Removed.
  16807. (InterestedMessage.h): Removed.
  16808. (NotInterestedMessage.h): Removed.
  16809. (HaveMessage.h): Removed.
  16810. (BitfieldMessage.h): Removed.
  16811. (RequestMessage.h): Removed.
  16812. (CancelMessage.h): Removed.
  16813. (PieceMessage.h): Removed.
  16814. (HandshakeMessage.h): Removed.
  16815. (KeepAliveMessage.h): Removed.
  16816. (PortMessage.h): Removed.
  16817. (HaveAllMessage.h): Removed.
  16818. (HaveNoneMessage.h): Removed.
  16819. (PeerConnection.h): Removed.
  16820. (HandshakeMessage.h): Included.
  16821. * src/BitfieldMessage.h
  16822. (init): New function.
  16823. (BitfieldMessage): Rewritten.
  16824. (BitfieldMessage): New function(overload).
  16825. * src/RequestSlot.h
  16826. (operator=): Defined the function body here.
  16827. (operator==): Defined the function body here.
  16828. * src/RequestSlot.cc
  16829. (operator=): Removed.
  16830. (operator==): Removed.
  16831. To remove the dependency on the PeerMessage subclass from
  16832. PeerInteraction:
  16833. * src/PeerMessageFactory.h: New class.
  16834. * src/PeerMessageFactory.cc: New class.
  16835. * src/SimplePeerMessage.cc
  16836. (send): If invalidate is true then do nothing.
  16837. * src/PeerInteractionCommand.cc
  16838. (HandshakeMessage.h): Included.
  16839. (KeepAliveMessage.h): Included.
  16840. (ChokeMessage.h): Included.
  16841. (UnchokeMessage.h): Included.
  16842. (HaveMessage.h): Included.
  16843. (executeInternal): Call setNoCheck().
  16844. Removed setWriteCheckSocket(socket).
  16845. * src/PeerInteraction.h
  16846. (ChokeMessage.h): Removed.
  16847. (UnchokeMessage.h): Removed.
  16848. (InterestedMessage.h): Removed.
  16849. (NotInterestedMessage.h): Removed.
  16850. (HaveMessage.h): Removed.
  16851. (BitfieldMessage.h): Removed.
  16852. (RequestMessage.h): Removed.
  16853. (CancelMessage.h): Removed.
  16854. (PieceMessage.h): Removed.
  16855. (HandshakeMessage.h): Removed.
  16856. (KeepAliveMessage.h): Removed.
  16857. (PortMessage.h): Removed.
  16858. (HaveAllMessage.h): Removed.
  16859. (HaveNoneMessage.h): Removed.
  16860. (RejectMessage.h): Removed.
  16861. (AllowedFastMessage.h): Removed.
  16862. (SuggestPieceMessage.h): Removed.
  16863. (PeerMessageFactory.h): Included.
  16864. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16865. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16866. (PeerMessageFactory): New variable.
  16867. (createPeerMessage): Removed.
  16868. (createHandshakeMessage): Removed.
  16869. (setPeerMessageCommonProperty): Removed.
  16870. (addRequestSlot): New function.
  16871. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16872. (getPeerMessageFactory): New function.
  16873. (createRequestMessage): Removed.
  16874. (createCancelMessage): Removed.
  16875. (createPieceMessage): Removed.
  16876. (createHaveMessage): Removed.
  16877. (createChokeMessage): Removed.
  16878. (createUnchokeMessage): Removed.
  16879. (createInterestedMessage): Removed.
  16880. (createNotInterestedMessage): Removed.
  16881. (createBitfieldMessage): Removed.
  16882. (createKeepAliveMessage): Removed.
  16883. (createHaveAllMessage): Removed.
  16884. (createHaveNoneMessage): Removed.
  16885. (createRejectMessage): Removed.
  16886. (createAllowedFastMessage): Removed.
  16887. * src/PeerInteraction.cc
  16888. (PeerInteraction): Allocate PeerMessageFactory here.
  16889. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16890. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16891. PieceMessage::ID.
  16892. (addMessage): Simplified by using PeerMessage::onPush().
  16893. (addRequestSlot): New function.
  16894. (rejectAllPieceMessageInQueue): Simplified by using
  16895. PeerMessage::onChoked().
  16896. (rejectPieceMessageInQueue): Simplified by using
  16897. PeerMessage::onCanceled().
  16898. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16899. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16900. (createHandshakeMessage): Removed.
  16901. (createPeerMessage): Removed.
  16902. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16903. (setPeerMessageCommonProperty): Removed.
  16904. (createRequestMessage): Removed.
  16905. (createCancelMessage): Removed.
  16906. (createPieceMessage): Removed.
  16907. (createHaveMessage): Removed.
  16908. (createChokeMessage): Removed.
  16909. (createUnchokeMessage): Removed.
  16910. (createInterestedMessage): Removed.
  16911. (createNotInterestedMessage): Removed.
  16912. (createBitfieldMessage): Removed.
  16913. (createKeepAliveMessage): Removed.
  16914. (createHaveAllMessage): Removed.
  16915. (createHaveNoneMessage): Removed.
  16916. (createRejectMessage): Removed.
  16917. (createAllowedFastMessage): Removed.
  16918. * src/PieceMessage.h
  16919. (createRejectMessage): New function.
  16920. (PieceMessage): Rewritten.
  16921. (onChoked): New function.
  16922. (onCanceled): New function.
  16923. * src/PieceMessage.cc
  16924. (send): If invalidate is true then do nothing, just return.
  16925. (createRejectMessage): New function.
  16926. (onChoked): New function.
  16927. (onCanceled): New function.
  16928. * src/RequestMessage.h
  16929. (RequestMessage): Rewritten.
  16930. (onPush): New function.
  16931. (onAbortPiece): New function.
  16932. * src/RequestMessage.cc
  16933. (onPush): New function.
  16934. (onAbortPiece): New function.
  16935. Update fd_set when a socket is added or deleted in order to improve
  16936. performance:
  16937. * src/DownloadEngine.h
  16938. (rfdset): New variable.
  16939. (wfdset): New variable.
  16940. (updateFdSet): New function.
  16941. * src/DownloadEngine.cc
  16942. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16943. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16944. (waitData): Copy rfdset and wfdset.
  16945. (updateFdSet): New function.
  16946. (addSocket): Call updateFdSet.
  16947. (deleteSocket): Call updateFdSet.
  16948. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16949. To add the support for Metalink3.0 backward compatible links:
  16950. * src/Request.h
  16951. (SAFE_CHARS): Added '#'.
  16952. (METALINK_MARK): New definition.
  16953. * src/Request.cc
  16954. (parseUrl): Added the support for Metalink3.0 backward compatible
  16955. links.
  16956. etc
  16957. * src/PeerInteraction.cc
  16958. (MsgPushBack): Removed.
  16959. (sendMessages): Use STL copy and back_inserter.
  16960. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16961. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16962. * src/TorrentMan.h
  16963. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16964. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16965. * src/SharedHandle.h: New class.
  16966. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16967. * src/HttpResponseCommand.h
  16968. (HttpResponseCommand): Wrapped Socket.
  16969. * src/SocketCore.h
  16970. (operator==): New function.
  16971. (operator!=): New function.
  16972. (operator<): New function.
  16973. (getSockfd): New function.
  16974. (isOpen): New function.
  16975. (writeData): New function.
  16976. * src/SocketCore.cc
  16977. (operator==): New function.
  16978. (operator!=): New function.
  16979. (operator<): New function.
  16980. * src/AbstractCommand.h
  16981. (socket): Changed its type to SocketHandle.
  16982. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16983. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16984. (disableReadCheckSocket): New function.
  16985. (disableWriteCheckSocket): New function.
  16986. (readCheckTarget): Changed its type to SocketHandle.
  16987. (writeCheckTarget): Changed its type to SocketHandle.
  16988. (AbstractCommand): Replaced Socket with SocketHandle.
  16989. * src/AbstractCommand.cc
  16990. (AbstractCommand): Replaced Socket with SocketHandle.
  16991. (~AbstractCommand): Removed the deallocation for Socket object.
  16992. (disableReadCheckSocket): New function.
  16993. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16994. (disableWriteCheckSocket): New function.
  16995. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16996. * src/HttpDownloadCommand.cc
  16997. (DownloadCommand): Replaced Socket with SocketHandle.
  16998. * src/PeerAbstractCommand.h
  16999. (socket): Changed its type to SocketHandle.
  17000. (peer): Changed its type to PeerHandle.
  17001. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17002. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17003. (disableReadCheckSocket): New function.
  17004. (disableWriteCheckSocket): New function.
  17005. (readCheckTarget): Changed its type to SocketHandle.
  17006. (writeCheckTarget): Changed its type to SocketHandle.
  17007. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17008. Replaced Peer with PeerHandle.
  17009. * src/HttpRequestCommand.cc
  17010. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17011. Use disableReadCheckSocket.
  17012. * src/PeerInitiateConnectionCommand.h
  17013. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17014. * src/PeerChokeCommand.cc
  17015. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17016. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17017. (execute): Use PeerHandle.
  17018. * src/PeerConnection.h
  17019. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17020. (socket): Changed its type to SocketHandle.
  17021. (PeerConnection): Replaced Socket with SocketHandle.
  17022. * src/PeerConnection.cc
  17023. (PeerConnection): Replaced Socket with SocketHandle.
  17024. * src/PeerInteractionCommand.h
  17025. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17026. Replaced Peer with PeerHandle.
  17027. * src/PeerInteractionCommand.cc
  17028. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17029. Replaced Peer with PeerHandle.
  17030. (executeInternal): Use disableWriteCheckSocket.
  17031. Use HandshakeMessageHandle.
  17032. (receiveMessages): Use PeerMessageHandle.
  17033. (prepareForNextPeer): Use PeerHandle.
  17034. * src/HttpProxyRequestCommand.h
  17035. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17036. * src/HttpResponseCommand.cc
  17037. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17038. * src/TorrentMan.cc
  17039. (nullPeer): Added external reference.
  17040. (~TorrentMan): Removed the deallocation of the elements of peers.
  17041. (addPeer): Rewritten.
  17042. (isPeerAvailable): Use nullPeer.
  17043. (deleteOldpeers): Replaced with deleteErrorPeer.
  17044. (deleteErrorPeer): New function.
  17045. (getPeer): Use PeerHandle and nullPeer.
  17046. (hasMissingPiece): Replaced Peer with PeerHandle.
  17047. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17048. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17049. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17050. (getMissingPiece): Replaced Peer with PeerHandle.
  17051. * src/FtpNegotiateCommand.cc
  17052. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17053. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17054. (recvGreeting): Use disableWriteCheckSocket.
  17055. (recvPasv): Removed the allocation of Socket.
  17056. Use disableReadCheckSocket.
  17057. (sendRestPasv): Use disableWriteCheckSocket.
  17058. (recvRetr): Changed assertion.
  17059. * src/PeerInteraction.h
  17060. (SharedHandle.h): Included SharedHandle.h.
  17061. (PeerMessageHandle): New type definition.
  17062. (HandshakeMessageHandle): New type definition.
  17063. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17064. (peer): Changed its type to PeerHandle.
  17065. (createHandshakeMessage): Replaced HandshakeMessage with
  17066. HandshakeMessageHandle.
  17067. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17068. (PeerInteraction): Replaced Peer with PeerHandle.
  17069. Replaced Socket with SocketHandle.
  17070. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17071. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17072. (receiveHandshake): Replaced HandshakeMessage with
  17073. HandshakeMessageHandle.
  17074. * src/PeerInteraction.cc
  17075. (PeerInteraction): Replaced Peer with PeerHandle.
  17076. Replaced Socket with SocketHandle.
  17077. (~PeerInteraction): Removed the deallocation of the elements of
  17078. messageQueue.
  17079. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17080. (isSendingMessageInProgress): Replaced PeerMessage with
  17081. PeerMessageHandle.
  17082. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17083. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17084. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17085. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17086. (abortPiece): Use PeerMessageHandle.
  17087. (receiveHandshake): Replaced HandshakeMessage with
  17088. HandshakeMessageHandle. Removed try-catch block.
  17089. (createHandshakeMessage): Replaced HandshakeMessage with
  17090. HandshakeMessageHandle.
  17091. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17092. Removed try-catch block.
  17093. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17094. * src/HttpProxyResponseCommand.cc
  17095. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17096. * src/FtpTunnelResponseCommand.h
  17097. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17098. * src/HttpConnection.cc
  17099. (HttpConnection): Replaced Socket with SocketHandle.
  17100. * src/PeerAbstractCommand.cc
  17101. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17102. (~PeerAbstractCommand): Removed the deallocation of socket.
  17103. Use disableReadCheckSocket, disableWriteCheckSocket.
  17104. (disableReadCheckSocket): New function.
  17105. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17106. (disableWriteCheckSocket): New function.
  17107. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17108. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17109. * src/FtpTunnelRequestCommand.cc
  17110. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17111. (~FtpTunnelRequestCommand): Corrected indentation.
  17112. * src/DownloadCommand.h
  17113. (DownloadCommand): Replaced Socket with SocketHandle.
  17114. * src/PeerListenCommand.cc
  17115. (PeerListenCommand): Removed the initialization of socket.
  17116. (~PeerListenCommand): Removed the deallocation of socket.
  17117. (bindPort): Use SocketHandle.
  17118. (execute): Use SocketHandle and PeerHandle.
  17119. * src/FtpDowndloadCommand.cc
  17120. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17121. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17122. * src/main.cc
  17123. (main): Corrected indentation.
  17124. * src/HttpInitiateConnectionCommand.cc
  17125. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17126. (executeInternal): Removed the allocation of socket.
  17127. * src/HttpRequestCommand.h
  17128. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17129. * src/FtpNegotiationCommand.h
  17130. (dataSocket): Changed its type to SocketHandle.
  17131. (serverSocket): Changed its type to SocketHandle.
  17132. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17133. * src/TorrentMan.h
  17134. (MAX_PEER_UPDATE): Removed.
  17135. (MAX_PEERS): New definition.
  17136. (Peers): The element is now of type PeerHandle.
  17137. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17138. (getPeer): Replaced Peer with PeerHandle.
  17139. (deleteOldErrorPeers): Removed.
  17140. (deleteErrorPeer): New function.
  17141. (hasMissingPiece): Replaced Peer with PeerHandle.
  17142. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17143. (getMissingPiece): Replaced Peer with PeerHandle.
  17144. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17145. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17146. (addActivePeer): Replaced Peer with PeerHandle.
  17147. (deleteActivePeer): Replaced Peer with PeerHandle.
  17148. Added a check for the return value of find.
  17149. * src/FtpTunnelResponseCommand.cc
  17150. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17151. * src/FtpInitiateConnectionCommand.cc
  17152. (executeInternal): Removed the allocation of socket.
  17153. * src/DownloadEngine.h
  17154. (Sockets): An element is now of type SocketHandle.
  17155. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17156. (CommandUuids): New type definition.
  17157. (rsockets): Changed its type to SockCmdMap.
  17158. (wsockets): Changed its type to SockCmdMap.
  17159. (addSocket): Rewritten.
  17160. (deleteSocket): Rewritten.
  17161. (addSocketForReadCheck): Rewritten.
  17162. (deleteSocketForReadCheck): Rewritten.
  17163. (addSocketForWriteCheck): Rewritten.
  17164. (deleteSocketForWriteCheck): Rewritten.
  17165. (PairFind): New template class.
  17166. * src/HttpDownloadCommand.h
  17167. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17168. * src/FtpConnection.cc
  17169. (FtpConnection): Replaced Socket with SocketHandle.
  17170. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17171. block.
  17172. * src/InitiateConnectionCommandFactory.cc
  17173. (DlAbortEx.h): Included DlAbortEx.h.
  17174. (createInitiateConnectionCommand): Throw exception if the protocol of
  17175. requested URI is not supported.
  17176. * src/Peer.cc
  17177. (nullPeer): Changed its type to PeerHandle.
  17178. (operator==): New function.
  17179. (operator!=): New function.
  17180. * src/Peer.h
  17181. (SharedHandle.h): Included SharedHandle.h.
  17182. (operator==): New function.
  17183. (operator!=): New function.
  17184. (Peer): Added the default constructor.
  17185. Use resetStatus() to initialize member variables.
  17186. (nullPeer): Removed.
  17187. * src/TrackerUpdateCommand.cc
  17188. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17189. with MIN_PEERS.
  17190. * src/PeerListenCommand.h
  17191. (socket): Changed its type to SocketHandle.
  17192. * src/Command.h
  17193. (CommandUuid): New type definition.
  17194. (uuid): New variable.
  17195. (uuidGen): New variable.
  17196. (Command): Added the initialization of uuid.
  17197. (getUuid): New function.
  17198. * src/Socket.h
  17199. (Socket): Removed.
  17200. (SocketHandle): New type definition.
  17201. * src/DownloadEngine.h
  17202. (FindCommand): New function object.
  17203. (run): The portion of socket check was rewritten.
  17204. (SetDescriptor): New function object.
  17205. (AccumulateActiveCommandUuid): New function object.
  17206. (waitData): Rewritten.
  17207. (addSocket): Rewritten.
  17208. (deleteSocket): Rewritten.
  17209. (addSocketForReadCheck): Rewritten.
  17210. (addSocketForWriteCheck): Rewritten.
  17211. (deleteSocketForReadCheck): Rewritten.
  17212. (deleteSocketForWriteCheck): Rewritten.
  17213. * src/HttpProxyResponseCommand.h
  17214. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17215. * src/HttpConnection.h
  17216. (socket): Changed its type to SocketHandle.
  17217. (HttpConnection): Replaced Socket with SocketHandle.
  17218. * src/PeerInitiateConnectionCommand.cc
  17219. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17220. (executeInternal): Removed the allocation of socket.
  17221. (prepareForNextPeer): Use PeerHandle.
  17222. * src/PeerMessage.h
  17223. (peer): Changed its type to PeerHandle.
  17224. (getPeer): Replaced Peer with PeerHandle.
  17225. (setPeer): Replaced Peer with PeerHandle.
  17226. * src/DownloadCommand.cc
  17227. (DownloadCommand): Replaced Socket with SocketHandle.
  17228. * src/FtpConnection.h
  17229. (socket): Changed its type to SocketHandle.
  17230. (FtpConnection): Replaced Socket with SocketHandle.
  17231. (sendPort); Replaced Socket with SocketHandle.
  17232. * src/FtpDowndloadCommand.h
  17233. (ctrlSocket): Changed its type to SocketHandle.
  17234. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17235. * src/HttpProxyRequestCommand.cc
  17236. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17237. * src/FtpTunnelRequestCommand.h
  17238. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17239. etc
  17240. * src/PeerChokeCommand.h
  17241. (setAllPeerChoked): Removed.
  17242. (setAllPeerResetDelta): Removed.
  17243. * src/PeerChokeCommand.cc
  17244. (setAllPeerChoked): Removed.
  17245. (ChokePeer): New function object.
  17246. (setAllPeerResetDelta): Removed.
  17247. (ResetDelta): New function object.
  17248. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17249. (execute): Show download speed when the local node is a seeder.
  17250. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17251. using STL.
  17252. * src/TrackerWatcherCommand.h
  17253. (MIN_PEERS): Removed.
  17254. * src/TorrentMan.cc
  17255. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17256. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17257. To fix the bug that .aria2 file is not saved if downloading is stopped
  17258. by the errors:it results that aria2 can not resume downloading:
  17259. * src/main.cc
  17260. (normalDownload): Added the call to save().
  17261. (main): Added the deletion of the elements in 'reserved'.
  17262. To fix log:
  17263. * src/PeerInteraction.cc
  17264. (receiveHandshake): Fixed log.
  17265. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17266. To improve download performance in BitTorrent:
  17267. * src/TorrentMan.cc
  17268. (getPeer): Check the number of connections. Return nullPeer if
  17269. it is greater than MAX_PEER_UPDATE.
  17270. This code was originally here, but was removed in 0.5.1.
  17271. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17272. To improve the conditional compilation:
  17273. * src/MultiDiskWriter.h:
  17274. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17275. * src/MultiDiskWriter.cc:
  17276. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17277. * src/Util.h:
  17278. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17279. Added ENABLE_BITTORRENT around computeFastSet().
  17280. * src/Util.cc:
  17281. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17282. Added ENABLE_BITTORRENT around computeFastSet().
  17283. * src/messageDigest.h:
  17284. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17285. * src/ShaVisitor.h:
  17286. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17287. * src/ShaVisitor.cc:
  17288. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17289. * src/main.cc:
  17290. Added ENABLE_BITTORRENT around includes and blocks related to
  17291. BitTorrent.
  17292. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17293. digest support is not available.
  17294. * src/AbstractDiskWriter.h:
  17295. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17296. * src/AbstractDiskWriter.cc:
  17297. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17298. * src/MetalinkEntry.cc
  17299. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17300. support is not available.
  17301. To add command-line options for Metalink:
  17302. * src/main.cc:
  17303. Added metalink-version, metalink-language, metalink-os,
  17304. follow-metalink.
  17305. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17306. * src/main.cc: Use these definition.
  17307. * Release 0.6.0
  17308. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17309. To add Metalink support(http/ftp only):
  17310. * src/AbstractCommand.h
  17311. (tryReserved): New function.
  17312. * src/AbstractCommand.cc
  17313. (execute): Call tryReserved().
  17314. (tryReserved): New function.
  17315. * src/Request.h
  17316. (Requests): New type definition.
  17317. * src/SegmentMan.h
  17318. (reserved): New variable.
  17319. * src/Util.h
  17320. (fileChecksum): New function.
  17321. (toUpper): New function.
  17322. (toLower): New function.
  17323. * src/Util.cc
  17324. (messageDigest.h): Included.
  17325. (trim): Trim \r\n\t.
  17326. (fileChecksum): New function.
  17327. (toUpper): New function.
  17328. (toLower): New function.
  17329. * src/main.cc
  17330. (normalDownload): New function.
  17331. (main): Added 2 command-line options: metalink-file,
  17332. metalink-connection. Their usage has not been written yet.
  17333. * src/MetalinkProcessor.h: New class.
  17334. * src/Xml2MetalinkProcessor.h: New class.
  17335. * src/Xml2MetalinkProcessor.cc: New class.
  17336. * src/MetalinkEntry.h: New class.
  17337. * src/MetalinkEntry.cc: New class.
  17338. * src/MetalinkResource.h: New class.
  17339. * src/MetalinkResource.cc: New class.
  17340. To add md5 message digest checking:
  17341. * src/messageDigest.h: Rewritten.
  17342. * src/MultiDiskWriter.cc: Updated according to the changes in
  17343. messageDigest.h.
  17344. * src/ShaVisitor.cc: Updated according to the changes in
  17345. messageDigest.h.
  17346. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17347. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17348. messageDigest.h.
  17349. To fix a bug that causes segfault when the payload length in peer
  17350. message is less than 0:
  17351. * src/PeerConnection.cc:
  17352. (receiveMessage): Fixed the bug.
  17353. * src/PeerMessageUtil.cc
  17354. (checkLength): Throw an exception if length is less than or equals to
  17355. 0.
  17356. To add new interfaces to Base64 encoding/decoding:
  17357. * src/Base64.h
  17358. (part_encode): Changed the method signature.
  17359. (encode): New function(overload).
  17360. (decode): New function(overload).
  17361. * src/Base64.cc
  17362. (part_encode): Rewritten.
  17363. (encode): Rewritten.
  17364. (encode): New function(overload).
  17365. To prevent a peer to download same piece if there is an error in
  17366. checksum:
  17367. * src/PieceMessage.cc
  17368. (receivedAction): Call peerInteraction->abortPiece().
  17369. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17370. To fix the bug that causes same have message is sent many times to
  17371. a single peer.
  17372. * src/Time.cc
  17373. (isNewer): Use Util::difftv().
  17374. * src/Util.cc
  17375. (difftv): Added a cast to (long long int).
  17376. * src/TorrentMan.cc
  17377. (advertisePiece): Use push_front.
  17378. (getAdvertisedPieceIndexes): A performance improvement was made.
  17379. To fix the bug that sends tracker requests without a sleep interval
  17380. when the number of connections is less than 15.
  17381. * src/TrackerWatcherCommand.cc
  17382. (execute): Now the number of connections is not a factor to decide
  17383. whether or not a tracker request should be sent or not.
  17384. * src/Time.h
  17385. (setTimeInSec): New function.
  17386. * src/Time.cc
  17387. (setTimeInSec): New function.
  17388. etc.
  17389. * src/ChokeMessage.cc
  17390. (receivedAction): Removed peer->snubbing = false
  17391. * src/PeerConnection.h
  17392. (receiveHandshake): Updated doc.
  17393. * src/TorrentMan.h
  17394. (getAdvertisedPieceIndexes): Updated the method signature.
  17395. * src/TorrentMan.cc
  17396. (getAdvertisedPieceIndexes): Updated the method signature.
  17397. * src/Time.h
  17398. (getTimeInMicros): Added a cast to (long long int).
  17399. (getTimeInMillis): Added a cast to (long long int).
  17400. * Release 0.5.2
  17401. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17402. To make a listening socket non-block:
  17403. * src/SocketCore.h
  17404. (setNonBlockingMode): New function.
  17405. * src/SocketCore.cc
  17406. (setNonBlockingMode): New function.
  17407. (beginListen): Added a call to setNonBlockingMode().
  17408. (acceptConnection): Call setNonBlockingMode().
  17409. (setBlockingMode): Updated.
  17410. To handle tracker's NAT-checking:
  17411. * src/PeerConnection.cc
  17412. (receiveHandshake): 'msg' param is filled with received data and
  17413. its length is assigned to 'length' param, even if all handshake
  17414. message is not yet received.
  17415. * src/PeerInteractionCommand.cc
  17416. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17417. a new peer connects to localhost.
  17418. A call to peerInteraction->sendHandshake() was removed because
  17419. it is called from peerInteraction->receiveHandshake(true).
  17420. * src/PeerInteraction.h
  17421. (quickReplied): New variable.
  17422. (receiveHandshake): Added an argument.
  17423. * src/PeerInteraction.cc
  17424. (PeerInteraction): Added the initialization of quickReplied.
  17425. (receiveHandshake): Send handshake message as soon as the info hash
  17426. in a handshake message from a peer is correct.
  17427. To change the random part of peer id and key parameter:
  17428. * src/TorrentMan.h
  17429. (key): New variable.
  17430. * src/TorrentMan.cc
  17431. (setupInternal1): Use Util::randomAlpha() to generate random part
  17432. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17433. key is also generated by Util::randomAlpha() and it is now 8 character
  17434. long.
  17435. * src/Util.h
  17436. (randomAlpha): New function.
  17437. * src/Util.cc
  17438. (randomAlpha): New function.
  17439. * src/TrackerWatcherCommand.cc
  17440. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17441. Added no_peer_id=1.
  17442. Set snubbing flag to false when a choke message is received from a
  17443. snubbed peer.
  17444. * src/ChokeMessage.cc
  17445. (receivedAction): Set snubbing flag to false.
  17446. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17447. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17448. * src/SimpleLogger.h (writeHeader): New function.
  17449. * src/SimpleLogger.cc (writeHeader): New function.
  17450. (writeLog): Fixed the bug that causes segfaults if exception message
  17451. contains an unescaped "%" character.
  17452. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17453. when a tracker request fails.
  17454. * src/Request.cc (parseUrl): Query string is now handled properly.
  17455. * Release 0.5.1
  17456. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17457. To add Time class which represents a specific instant in time and
  17458. its precision is microseconds. Time checking procedures were rewritten
  17459. using this object.
  17460. * src/Time.h: New class.
  17461. * src/Time.cc: New class.
  17462. * src/AbstractCommand.h
  17463. (updateCheckPoint): Removed.
  17464. (isTimeoutDetected): Removed.
  17465. (checkPoint): Changed the type to Time.
  17466. (timeout): New variable.
  17467. (setTimeout): New function.
  17468. * src/AbstractCommand.cc
  17469. (AbstractCommand): Removed the initialization of checkPoint.
  17470. Added the initialization of timeout.
  17471. (updateCheckPoint): Removed.
  17472. (isTimeoutDetected): Removed.
  17473. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17474. * src/PeerChokeCommand.h
  17475. (checkPoint): Changed the type to Time.
  17476. * src/PeerChokeCommand.cc
  17477. (PeerChokeCommand): Removed the initialization of checkPoint.
  17478. (execute): Rewritten using Time object.
  17479. * src/TrackerWatcherCommand.h
  17480. (checkPoint): Changed the type to Time.
  17481. * src/TrackerWatcherCommand.cc
  17482. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17483. (execute): Rewritten.
  17484. * src/ConsoleDownloadEngine.h
  17485. (cp): Changed the type to Time.
  17486. (startup): Changed the type to Time.
  17487. * src/ConsoleDownloadEngine.cc
  17488. (initStatistics): Use cp.reset(), startup.reset().
  17489. (calculateStatistics): Rewritten using Time object.
  17490. * src/PeerAbstractCommand.h
  17491. (updateCheckPoint): Removed.
  17492. (isTimeoutDetected): Removed.
  17493. (checkPoint): Changed the type to Time.
  17494. * src/PeerAbstractCommand.cc
  17495. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17496. (updateCheckPoint): Removed.
  17497. (isTimeoutDetected): Removed.
  17498. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17499. * src/PeerInteractionCommand.cc
  17500. (PeerInteractionCommand): Removed the initializations of struct
  17501. timeval variables.
  17502. * src/PeerInteractionCommand.h
  17503. (keepAliveCheckPoint): Changed the type to Time.
  17504. (chokeCheckPoint): Changed the type to Time.
  17505. (freqCheckPoint): Changed the type to Time.
  17506. (haveCheckTime): Changed the type to Time.
  17507. * src/PeerInteractionCommand.cc
  17508. (executeInternal): Rewritten using Time object.
  17509. (detectMessageFlooding): Rewritten using Time object.
  17510. (checkLongTimePeerChoking): Rewritten using Time object.
  17511. (sendKeepAlive): Rewritten using Time object.
  17512. (checkHave): Rewritten using Time object.
  17513. * src/SleepCommand.h
  17514. (checkPoint): Changed the type to Time.
  17515. * src/SleepCommand.cc
  17516. (SleepCommand): Removed the initialization of checkPoint.
  17517. (execute): Rewritten using Time object.
  17518. * src/TorrentAutoSaveCommand.h
  17519. (checkPoint): Changed the type to Time.
  17520. * src/TorrentAutoSaveCommand.cc
  17521. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17522. (execute): Rewritten.
  17523. * src/DownloadCommand.h
  17524. (sw): Changed the type to Time.
  17525. * src/DownloadCommand.cc
  17526. (DownloadCommand): Removed the initialization of sw.
  17527. (executeInternal): Rewritten.
  17528. * src/RequestSlot.h
  17529. (dispatchedTime): Changed the type to Time.
  17530. * src/RequestSlot.cc
  17531. (RequestSlot): Removed the call to setDispatchedTime().
  17532. (setDispatchedTime): Rewirtten.
  17533. (isTimeout): Rewritten.
  17534. (getLatencyInMillis): Rewritten.
  17535. * src/TorrentDownloadEngine.h
  17536. (cp): Changed the type to Time[2].
  17537. (startup): Changed the type to Time.
  17538. * src/TorrentDownloadEngine.cc
  17539. (initStatistics): Rewritten.
  17540. (calculateStatistics): Rewritten.
  17541. * src/DownloadEngine.cc
  17542. (run): Rewritten.
  17543. To detect all attempts to connect to the tracker are failed:
  17544. * src/AbstractCommand.cc
  17545. (execute): Increment e->segmentMan->errors if a command aborted.
  17546. * src/SegmentMan.h
  17547. (errors): New variable.
  17548. * src/SegmentMan.cc
  17549. (SegmentMan): Added the initialization of errors.
  17550. (init): Added the initialization of errors.
  17551. * src/TrackerWatcherCommand.cc
  17552. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17553. request was failed.
  17554. To handle snubbed peers:
  17555. * src/PeerChokeCommand.cc
  17556. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17557. (execute): Snubbed peers don't get unchoked.
  17558. * src/PeerInteraction.h
  17559. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17560. * src/PeerInteraction.cc
  17561. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17562. back the requested 16k block in 60 seconds.
  17563. * src/PieceMessage.cc
  17564. (receivedAction): A peer's snubbed state is cleard if it sends
  17565. the requested 16k block in 60 seconds.
  17566. * src/Peer.h
  17567. (snubbing): New variable.
  17568. * src/Peer.cc
  17569. (resetStatus): Added snubbed = false.
  17570. To fix the bug that causes have message is not sent:
  17571. * src/PeerInteractionCommand.cc
  17572. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17573. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17574. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17575. * src/TorrentMan.h
  17576. (HaveEntry): New class.
  17577. (advertisePiece): Rewritten.
  17578. (getAdvertisedPieceIndexes): Rewritten.
  17579. (Haves): Changed the type.
  17580. (getAdvertisedPieceIndexes): Added an argument.
  17581. Others:
  17582. * src/TorrentMan.h
  17583. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17584. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17585. * src/TorrentMan.cc
  17586. (getPeer): Don't check the number of connections here.
  17587. (setupInternal1): Changed peerId.
  17588. * src/PeerInteractionCommand.h
  17589. (KEEP_ALIVE_INTERVAL): New definition.
  17590. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17591. * src/main.cc
  17592. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17593. * src/DownloadEngine.h: Removed unnecessary header includes.
  17594. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17595. To fix the bug that causes segfaults if a tracker returns a zero-length
  17596. list as "peers":
  17597. * src/TrackerUpdateCommand.cc
  17598. (execute): Added a check to see wether the type of peers is Data*.
  17599. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17600. * Release 0.5.0
  17601. To fix compile issue with gcc3:
  17602. * src/CancelMessage.h
  17603. (ID): Renamed as ID_t
  17604. (ID_t): New enum.
  17605. * src/RejectMessage.h
  17606. (ID): Renamed as ID_t
  17607. (ID_t): New enum.
  17608. * src/SuggestPieceMessage.h
  17609. (ID): Renamed as ID_t
  17610. (ID_t): New enum.
  17611. * src/AllowedFastMessage.h
  17612. (ID): Renamed as ID_t
  17613. (ID_t): New enum.
  17614. * src/PortMessage.h
  17615. (ID): Renamed as ID_t
  17616. (ID_t): New enum.
  17617. * src/HaveNoneMessage.h
  17618. (ID): Renamed as ID_t
  17619. (ID_t): New enum.
  17620. * src/KeepAliveMessage.h
  17621. (ID): Renamed as ID_t
  17622. (ID_t): New enum.
  17623. * src/HaveAllMessage.h
  17624. (ID): Renamed as ID_t
  17625. (ID_t): New enum.
  17626. * src/UnchokeMessage.h
  17627. (ID): Renamed as ID_t
  17628. (ID_t): New enum.
  17629. * src/BitfieldMessage.h
  17630. (ID): Renamed as ID_t
  17631. (ID_t): New enum.
  17632. * src/PieceMessage.h
  17633. (ID): Renamed as ID_t
  17634. (ID_t): New enum.
  17635. * src/RequestMessage.h
  17636. (ID): Renamed as ID_t
  17637. (ID_t): New enum.
  17638. * src/NotInterestedMessage.h
  17639. (ID): Renamed as ID_t
  17640. (ID_t): New enum.
  17641. * src/ChokeMessage.h
  17642. (ID): Renamed as ID_t
  17643. (ID_t): New enum.
  17644. * src/InterestedMessage.h
  17645. (ID): Renamed as ID_t
  17646. (ID_t): New enum.
  17647. * src/HaveMessage.h
  17648. (ID): Renamed as ID_t
  17649. (ID_t): New enum.
  17650. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17651. * src/PeerAbstractCommand.h
  17652. (beforeSocketCheck): Removed.
  17653. * src/PeerAbstractCommand.cc
  17654. Modified in order to call executeInternal() even if socket check
  17655. and upload limit check fail.
  17656. * src/PeerInteractionCommand.h
  17657. (keepAlive): Removed.
  17658. (sendKeepAlive): New function.
  17659. (checkHave): New function.
  17660. (beforeSocketCheck): Removed.
  17661. * src/PeerInteractionCommand.cc
  17662. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17663. calls to checkHave() and sendKeepAlive().
  17664. (keepAlive): Renamed to sendKeepAlive().
  17665. (sendKeepAlive): New function.
  17666. (beforeSocketCheck): Removed.
  17667. (checkHave): New function.
  17668. * src/BitfieldMan.cc
  17669. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17670. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17671. 0.
  17672. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17673. * src/TorrentMan.h
  17674. (UsedPieces): Removed.
  17675. (Pieces): New type definition.
  17676. * src/Piece.h: Updated doc.
  17677. * src/Peer.h
  17678. (totalLength): Removed.
  17679. * src/Peer.cc
  17680. (updateLatency): Fixed the latency calculation.
  17681. * src/TorrentMan.cc
  17682. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17683. than or equal to MAX_PEER_LIST_SIZE.
  17684. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17685. then return false.
  17686. (deleteOldErrorPeers): Rewritten.
  17687. (deleteUsedPiece): Fixed the miss use of STL remove.
  17688. * src/PeerInteraction.h
  17689. (Pieces): Removed.
  17690. (deleteTimeoutRequestSlot): Removed.
  17691. (deleteCompletedRequestSlot): Removed.
  17692. (checkRequestSlot): New function.
  17693. * src/PeerInteraction.cc
  17694. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17695. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17696. (checkRequestSlot): New function.
  17697. * src/DownloadEngine.cc
  17698. (run): Clear activeSockets before calling waitData().
  17699. (waitData): Removed a call to activeSockets.clear().
  17700. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17701. To attempt to handle EINTR:
  17702. * src/SocketCore.cc
  17703. (isReadable): Added EINTR handling.
  17704. (isWritable): Added EINTR handling.
  17705. To improve the performance:
  17706. * src/AbstractCommand.cc
  17707. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17708. * src/PeerInteractionCommand.h
  17709. (receiveMessage): Renamed as receiveMessages().
  17710. (receiveMessages): New function.
  17711. * src/PeerInteractionCommand.cc
  17712. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17713. () function. detectMessageFlooding() is moved here.
  17714. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17715. (). The flooding detection for have message is comment out.
  17716. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17717. Util::difftv().
  17718. (receiveMessage): Renamed as receiveMessages().
  17719. (receiveMessages): New function.
  17720. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17721. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17722. * src/SleepCommand.cc
  17723. (execute): Use Util::difftvsec() instead of Util::difftv().
  17724. * src/BitfieldMan.h
  17725. (getNthBitIndex): New function.
  17726. (hasMissingPiece): New function.
  17727. (getAllMissingIndexes): New function.
  17728. * src/BitfieldMan.cc
  17729. (countSetBit): Rewritten.
  17730. (getNthBitIndex): New function.
  17731. (getMissingIndexRandomly): Rewritten.
  17732. (hasMissingPiece): New function.
  17733. (getAllMissingIndexes): New function.
  17734. * src/TorrentMan.cc
  17735. (hasMissingPiece): New function.
  17736. (deleteUsedPiece): Rewritten using STL.
  17737. * src/PeerInteraction.cc
  17738. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17739. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17740. (addRequests): Updated the number of pending requests.
  17741. * src/PeerAbstractCommand.cc
  17742. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17743. (execute): Returns true if TorrentMan::isHalt() is true.
  17744. Corrected the condition of upload limit checking.
  17745. * src/Util.h
  17746. (countBit): New function.
  17747. * src/Util.cc
  17748. (nbits): New variable.
  17749. (countBit): New function.
  17750. * src/DownloadEngine.h
  17751. (SockCmdMap): New type definition.
  17752. (waitData): Added an argument.
  17753. (addSocket): Added an argument.
  17754. (addSocketForReadCheck): Added an argument.
  17755. (addSocketForWriteCheck): Added an argument.
  17756. * src/DownloadEngine.cc
  17757. (run): Executes only commands whose sockets are ready to read or write.
  17758. All commands are executed in every 1 second.
  17759. (waitData): Calls select() again if it returned
  17760. EINTR.
  17761. (addSocket): Saves socket and command object pair to the map.
  17762. (deleteSocket): Deletes socket and command object pair from the map.
  17763. (addSocketForReadCheck): Added an argument.
  17764. (addSocketForWriteCheck): Added an argument.
  17765. * src/DownloadCommand.cc
  17766. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17767. To send "event=stopped" to the tracker when the application finishes:
  17768. * src/PeerChokeCommand.h
  17769. (checkPoint): New variable.
  17770. * src/PeerChokeCommand.cc
  17771. (PeerChokeCommand): Added the initialization of checkPoint.
  17772. (execute): The interval check is now done by checkPoint, not
  17773. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17774. * src/TorrentMan.h
  17775. (halt): New function.
  17776. (hasMissingPiece): New function.
  17777. (isHalt): New function.
  17778. (setHalt): New function.
  17779. * src/TorrentMan.cc
  17780. (TorrentMan): Added the initialization of halt.
  17781. * src/TorrentAutoSaveCommand.h
  17782. (checkPoint): New variable.
  17783. * src/PeerListenCommand.cc
  17784. (execute): Returns true if TorrentMan::isHalt() is true.
  17785. * src/main.cc
  17786. (setSignalHander): Added flags argument.
  17787. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17788. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17789. Removed printDownloadAbortMessage() after torrent downloading loop.
  17790. * src/TorrentAutoSaveCommand.cc
  17791. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17792. (execute): Returns true if TorrentMan::isHalt() is true.
  17793. The interval check is now done by checkPoint, not SleepCommand.
  17794. * src/TrackerWatcherCommand.cc
  17795. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17796. event=stopped.
  17797. * src/TrackerUpdateCommand.cc
  17798. (prepareForRetry): Do not use SleepCommand here.
  17799. (execute): Returns true if TorrentMan::isHalt() is true.
  17800. Others:
  17801. * src/TorrentMan.cc
  17802. (getMissingPieceIndex): Updated log message.
  17803. * src/PeerInteraction.cc
  17804. (createPeerMessag): Updated log message.
  17805. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17806. To add the ability to download several pieces in mix in a command and
  17807. increase the number of request slots according to request-cancel
  17808. latency:
  17809. * src/PeerInteractionCommand.cc
  17810. (executeInternal): The number of messages to be received at a time
  17811. is increased from 10 to 50.
  17812. * src/LogFactory
  17813. (getInstance): Added NullLogger.
  17814. * src/NullLogger.h: New class.
  17815. * src/BitfieldMan.h
  17816. (getMissingIndex): New function.
  17817. * src/BitfieldMan.cc
  17818. (getMissingIndex): New function.
  17819. * src/TorrentMan.h
  17820. (checkOutPiece): New function.
  17821. (getMissingPieceIndex): New function.
  17822. (getMissingFastPieceIndex): New function.
  17823. (getMissingFastPiece): New function.
  17824. * src/TorrentMan.cc
  17825. (updatePiece): Rewritten using STL.
  17826. (syncPiece): Rewritten using STL.
  17827. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17828. checkOutPiece().
  17829. (getMissingPieceIndex): New function.
  17830. (getMissingFastPieceIndex): New function.
  17831. (getMissingFastPiece): New function.
  17832. (checkOutPiece): New function.
  17833. * src/PeerInteraction.h
  17834. (Pieces): New type definition.
  17835. (piece): Removed.
  17836. (pieces): New variable.
  17837. (getNewPieceAndSendInterest): Added the "piece" argument.
  17838. (abortPiece): Added the "piece" argument.
  17839. (abortAllPieces): New function.
  17840. (isInRequestSlot): New function.
  17841. (hasDownloadPiece): Added the "index" argument.
  17842. (setDownloadPiece): Removed.
  17843. (getDownloadPiece): Added the "index" argument.
  17844. (updatePiece): New function.
  17845. (createRequestMessage): Added the "index" argument.
  17846. * src/PeerInteraction.cc
  17847. (onChoked): Rewritten.
  17848. (abortPiece): Rewirtten.
  17849. (abortAllPieces): New function.
  17850. (deleteTimeoutRequestSlot): Rewritten.
  17851. Clarified code a little bit.
  17852. (deleteCompletedRequestSlot): Rewritten.
  17853. (isInRequestSlot): New function.
  17854. (syncPiece): Rewritten.
  17855. (updatePiece): New function.
  17856. (getNewPieceAndSendInterest): Rewritten.
  17857. (addRequests): Rewritten.
  17858. (getDownloadPiece): Rewritten.
  17859. (hasDownloadPiece): Rewritten.
  17860. (createRequestMessage): Added the "index" argument.
  17861. * src/common.h
  17862. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17863. (DIV_FLOOR): New definition.
  17864. * src/PieceMessage.cc
  17865. (receivedAction): Update request-piece latency here.
  17866. * src/RequestSlot.h
  17867. (getLatencyInMillis): New function.
  17868. * src/RequestSlot.cc
  17869. (isTimeout): Rewritten using getLatencyInMillis.
  17870. (getLatencyInMillis): New function.
  17871. * src/Piece.h
  17872. (operator==): New function.
  17873. (getMissingBlockIndex): New function.
  17874. * src/Piece.cc
  17875. (operator==): New function.
  17876. (getMissingBlockIndex): New function.
  17877. * src/Peer.h
  17878. (DEFAULT_LATENCY): New definition.
  17879. (latency): New variable.
  17880. (updateLatency): New function.
  17881. (getLatency): New function.
  17882. * src/Peer.cc
  17883. (resetStatus): Reset latecy.
  17884. (updateLatency): New function.
  17885. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17886. * src/SocketCore.cc
  17887. (isReadable): Added secure to the condition.
  17888. * src/HttpConnection.cc
  17889. (receiveResponse): Fixed a bug that causes no response header
  17890. exception.
  17891. * src/Peer.h
  17892. (getFastSet): Fixed the return value type.
  17893. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17894. To remove a wait from download loop:
  17895. * src/DownloadEngine.cc
  17896. (run): Comment out shortSleep.
  17897. To rewrite the message handling:
  17898. * src/SimplePeerMessage.h: New class.
  17899. * src/SimplePeerMessage.cc: New class.
  17900. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17901. (msg): New variable.
  17902. (create): New function.
  17903. (send): Removed.
  17904. (getMessage): New function.
  17905. (getMessageLength): New function.
  17906. * src/CancelMessage.cc
  17907. (create): New function.
  17908. (receivedAction): Replaced deleteRequestMessageInQueue with
  17909. rejectPieceMessageInQueue.
  17910. (send): Removed.
  17911. (getMessage): New function.
  17912. (getMessageLength): New function.
  17913. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17914. (msg): New variable.
  17915. (msgLength): New variable.
  17916. (~BitfieldMessage): Deleted msg.
  17917. (send): Removed.
  17918. (getMessage): New function.
  17919. (getMessageLength): New function.
  17920. * src/BitfieldMessage.cc
  17921. (create): New function.
  17922. (send): Removed.
  17923. (getMessage): New function.
  17924. (getMessageLength): New function.
  17925. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17926. (msg): New variable.
  17927. (sendPredicate): New function.
  17928. (onSendComplete): New function.
  17929. (send): Removed.
  17930. (getMessage): New function.
  17931. (getMessageLength): New function.
  17932. (create): New function.
  17933. * src/ChokeMessage.cc
  17934. (create): New function.
  17935. (send): Removed.
  17936. (sendPredicate): New function.
  17937. (getMessage): New function.
  17938. (getMessageLength): New function.
  17939. (onSendComplete): New function.
  17940. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17941. (msg): New variable.
  17942. (send): Removed.
  17943. (getMessage): New function.
  17944. (getMessageLength): New function.
  17945. * src/KeepAliveMessage.cc
  17946. (send): Removed.
  17947. (getMessage): New function.
  17948. (getMessageLength): New function.
  17949. * src/PortMessage.h
  17950. (create): New function.
  17951. (receivedAction): Updated log message.
  17952. * src/PortMessage.cc: New file.
  17953. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17954. (msg): New variable.
  17955. (sendPredicate): New function.
  17956. (onSendComplete): New function.
  17957. (create): New function.
  17958. (send): Removed.
  17959. (getMessage): New function.
  17960. (getMessageLength): New function.
  17961. * src/UnchokeMessage.cc
  17962. (create): New function.
  17963. (send): Removed.
  17964. (sendPredicate): New function.
  17965. (getMessage): New function.
  17966. (getMessageLength): New function.
  17967. (onSendComplete): New function.
  17968. * src/PieceMessage.h
  17969. (leftPieceDataLength): Removed.
  17970. (leftDataLength): New variable.
  17971. (headerSend): New variable.
  17972. (pendingCount): New variable.
  17973. (msgHeader): New variable.
  17974. (sendPieceData): New function.
  17975. (incrementPendingCount): New function.
  17976. (isPendingCountMax): New function.
  17977. (create): New function.
  17978. (getMessageHeader): New function.
  17979. (getMessageHeaderLength): New function.
  17980. * src/PieceMessage.cc
  17981. (create): New function.
  17982. (getMessageHeader): New function.
  17983. (getMessageHeaderLength): New function.
  17984. (send): Rewritten.
  17985. (sendPieceData): New function.
  17986. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17987. (msg): New variable.
  17988. (create): New function.
  17989. (getMessage): New function.
  17990. (getMessageLength): New function.
  17991. * src/HaveMessage.cc
  17992. (create): New function.
  17993. (send): Removed.
  17994. (sendPieceData): New function.
  17995. (getMessage): New function.
  17996. (getMessageLength): New function.
  17997. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17998. (msg): New variable.
  17999. (create): New function.
  18000. (send): Removed.
  18001. (getMessage): New function.
  18002. (getMessageLength): New function.
  18003. * src/RequestMessage.cc
  18004. (create): New function.
  18005. (receivedAction): Added the handling of fast extension.
  18006. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18007. (send): Removed.
  18008. (getMessage): New function.
  18009. (getMessageLength): New function.
  18010. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18011. (msg): New variable.
  18012. (sendPredicate): New function.
  18013. (onSendComplete): New function.
  18014. (create): New function.
  18015. (getMessage): New function.
  18016. (getMessageLength): New function.
  18017. * src/InterestedMessage.cc
  18018. (create): New function.
  18019. (send): Removed.
  18020. (sendPieceData): New function.
  18021. (getMessage): New function.
  18022. (getMessageLength): New function.
  18023. (onSendComplete): New function.
  18024. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18025. (msg): New variable.
  18026. (sendPieceData): New function.
  18027. (onSendComplete): New function.
  18028. (create): New function.
  18029. (send): Removed.
  18030. (getMessage): New function.
  18031. (getMessageLength): New function.
  18032. * src/NotInterestedMessage.cc
  18033. (create): New function.
  18034. (send): Removed.
  18035. (sendPredicate): New function.
  18036. (getMessage): New function.
  18037. (getMessageLength): New function.
  18038. (onSendComplete): New function.
  18039. * src/AllowedFastMessage.h: New class.
  18040. * src/AllowedFastMessage.cc: New class.
  18041. * src/RejectMessage.h: New class.
  18042. * src/RejectMessage.cc: New class.
  18043. * src/SuggestPieceMessage.h: New class.
  18044. * src/SuggestPieceMessage.cc: New class.
  18045. * src/HaveAllMessage.h: New class.
  18046. * src/HaveAllMessage.cc: New class.
  18047. * src/HaveNoneMessage.h: New class.
  18048. * src/HaveNoneMessage.cc: New class.
  18049. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18050. (msg): New variable.
  18051. (reserved): New variable.
  18052. (create): New function.
  18053. (getId): New function.
  18054. (receivedAction): New function.
  18055. (getMessage): New function.
  18056. (getMessageLength): New function.
  18057. (isFastExtensionSupported): New function.
  18058. * src/HandshakeMessage.cc
  18059. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18060. (create): New function.
  18061. (getMessage): New function.
  18062. (getMessageLength): New function.
  18063. (toString): Added the output of reserved field.
  18064. (check): Added const qualifier.
  18065. (isFastExtensionSupported): New function.
  18066. * src/PeerMessageUtil.h
  18067. (createChokeMessage): Removed.
  18068. (createUnchokeMessage): Removed.
  18069. (createInterestedMessage): Removed.
  18070. (createNotInterestedMessage): Removed.
  18071. (createHaveMessage): Removed.
  18072. (createBitfieldMessage): Removed.
  18073. (createRequestMessage): Removed.
  18074. (createCancelMessage): Removed.
  18075. (createPieceMessage): Removed.
  18076. (createPortMessage): Removed.
  18077. (createChokeMessage): Removed.
  18078. (createUnchokeMessage): Removed.
  18079. (createInterestedMessage): Removed.
  18080. (createNotInterestedMessage): Removed.
  18081. (createHaveMessage): Removed.
  18082. (createBitfieldMessage): Removed.
  18083. (createRequestMessage): Removed.
  18084. (createCancelMessage): Removed.
  18085. (createPieceMessage): Removed.
  18086. (createKeepAliveMessage): Removed.
  18087. (createHandshakeMessage): Removed.
  18088. (setIntParam): New function.
  18089. (createPeerMessageString): New function.
  18090. * src/PeerMessageUtil.cc
  18091. (createChokeMessage): Removed.
  18092. (createUnchokeMessage): Removed.
  18093. (createInterestedMessage): Removed.
  18094. (createNotInterestedMessage): Removed.
  18095. (createHaveMessage): Removed.
  18096. (createBitfieldMessage): Removed.
  18097. (createRequestMessage): Removed.
  18098. (createCancelMessage): Removed.
  18099. (createPieceMessage): Removed.
  18100. (createPortMessage): Removed.
  18101. (createRequestMessage): Removed.
  18102. (createCancelMessage): Removed.
  18103. (createPieceMessage): Removed.
  18104. (createHaveMessage): Removed.
  18105. (createChokeMessage): Removed.
  18106. (createUnchokeMessage): Removed.
  18107. (createInterestedMessage): Removed.
  18108. (createNotInterestedMessage): Removed.
  18109. (createBitfieldMessage): Removed.
  18110. (createKeepAliveMessage): Removed.
  18111. (createHandshakeMessage): Removed.
  18112. (setIntParam): New function.
  18113. (createPeerMessageString): New function.
  18114. * src/PeerConnection.h
  18115. (peer): Removed.
  18116. (torrentMan): Removed.
  18117. (createNLengthMessage): Removed.
  18118. (setIntParam): Removed.
  18119. (writeOutgoingMessageLog): Removed all overloaded functions.
  18120. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18121. (sendMessage): New function.
  18122. (sendHandshake): Removed.
  18123. (sendKeepAlive): Removed.
  18124. (sendChoke): Removed.
  18125. (sendUnchoke): Removed.
  18126. (sendInterested): Removed.
  18127. (sendNotInterested): Removed.
  18128. (sendHave): Removed.
  18129. (sendBitfield): Removed.
  18130. (sendRequest): Removed.
  18131. (sendPiece): Removed.
  18132. (sendPieceHeader): Removed.
  18133. (sendPieceData): Removed.
  18134. (sendCancel): Removed.
  18135. (getPeer): Removed.
  18136. * src/PeerConnection.cc
  18137. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18138. (sendHandshake): Removed.
  18139. (sendKeepAlive): Removed.
  18140. (createNLengthMessage): Removed.
  18141. (setIntParam): Removed.
  18142. (writeOutgoingMessageLog): Removed all overloaded functions.
  18143. (sendChoke): Removed.
  18144. (sendUnchoke): Removed.
  18145. (sendInterested): Removed.
  18146. (sendNotInterested): Removed.
  18147. (sendHave): Removed.
  18148. (sendBitfield): Removed.
  18149. (sendRequest): Removed.
  18150. (sendPiece): Removed.
  18151. (sendPieceHeader): Removed.
  18152. (sendPieceData): Removed.
  18153. (sendMessage): New function.
  18154. (sendCancel): Removed.
  18155. * src/PeerInteractionCommand.cc
  18156. (PeerInteractionCommand): Call setUploadLimit.
  18157. (executeInternal): Call setUploadLimit.
  18158. Added the handling of "inProgress" state of handshake message.
  18159. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18160. sendNow().
  18161. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18162. sendNow().
  18163. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18164. * src/TorrentMan.h
  18165. (PEER_ID_LENGTH): New definition.
  18166. (hasAllPieces): New function.
  18167. * src/TorrentMan.cc
  18168. (getMissingPiece): Added the handling of fast extension.
  18169. (cancelPiece): Call updatePiece().
  18170. (hasAllPieces): New function.
  18171. * src/PeerInteraction.h
  18172. (fastSet): New variable.
  18173. (getNewPieceAndSendInterest): Changed the return type to void.
  18174. (send): Renamed as sendMessages.
  18175. (deleteAllRequestSlot): Removed.
  18176. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18177. (cancelAllRequest): Removed all overloaded functions.
  18178. (deleteAllRequestSlot): Removed.
  18179. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18180. (rejectPieceMessageInQueue): New function.
  18181. (rejectAllPieceMessageInQueue): New function.
  18182. (onChoked): New function.
  18183. (isSendingMessageInProgress): New function.
  18184. (getCorrespondingRequestSlot): Changed its arguments.
  18185. (isInFastSet): New function.
  18186. (addFastSetIndex): New function.
  18187. (addRequests): New function.
  18188. (sendNow): Removed.
  18189. (trySendNow): Removed.
  18190. (sendBitfield): New function.
  18191. (sendAllowdFast): New function.
  18192. (createHaveAllMessage): New function.
  18193. (createHaveNoneMessage): New function.
  18194. (createRejectMessage): New function.
  18195. (createAllowedFastMessage): New function.
  18196. * src/PeerInteraction.cc
  18197. (send): Renamed as sendMessages.
  18198. (sendMessages): New function.
  18199. (MsgPushBack): New class.
  18200. (isSendingMessageInProgress): New function.
  18201. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18202. (rejectAllPieceMessageInQueue): New function.
  18203. Added the handling of fast extension.
  18204. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18205. (rejectPieceMessageInQueue): New function.
  18206. Added the handling of fast extension.
  18207. (deleteRequestSlot): Replaced for loop with std::find.
  18208. (onChoked): New function.
  18209. (deleteAllRequestSlot): Removed.
  18210. (abortPiece): Rewirtten.
  18211. (deleteTimeoutRequestSlot): Updated log messages.
  18212. (getCorrespondingRequestSlot): Changed its arguments.
  18213. (cancelAllRequest): Removed all overloaded functions.
  18214. (receiveHandshake): Added the check to see whether an incoming peer
  18215. supports fast extension.
  18216. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18217. PeerMessageUtil.
  18218. (createPeerMessage): Use create() of each message class instead of
  18219. PeerMessageUtil.
  18220. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18221. AllowedFastMessage were added.
  18222. (getNewPieceAndSendInterest): Changed its return value type to void.
  18223. Added the handling of fast extension.
  18224. (addRequests): New function.
  18225. (sendNow): Removed.
  18226. (sendHandshake): Rewritten.
  18227. (trySendNow): Removed.
  18228. (sendBitfield): New function.
  18229. (sendAllowdFast): New function.
  18230. (isInFastSet): New function.
  18231. (addFastSetIndex): New function.
  18232. (createRequestMessage): Use RequestMessage::create instead of
  18233. PeerMessageUtil.
  18234. (createCancelMessage): Use CancelMessage::create instead of
  18235. PeerMessageUtil.
  18236. (createPieceMessage): Use PieceMessage::create instead of
  18237. PeerMessageUtil.
  18238. (createHaveMessage): Use HaveMessage::create instead of
  18239. PeerMessageUtil.
  18240. (createChokeMessage): Use ChokeMessage::create instead of
  18241. PeerMessageUtil.
  18242. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18243. PeerMessageUtil.
  18244. (createInterestedMessage): Use InterestedMessage::create instead of
  18245. PeerMessageUtil.
  18246. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18247. of PeerMessageUtil.
  18248. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18249. PeerMessageUtil.
  18250. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18251. PeerMessageUtil.
  18252. (createHaveAllMessage): New function.
  18253. (createHaveNoneMessage): New function.
  18254. (createRejectMessage): New function.
  18255. (createAllowedFastMessage: New function.
  18256. * src/Util.h
  18257. (sha1Sum): New function.
  18258. (computeFastSet): New function.
  18259. * src/Util.cc
  18260. (sha1Sum): New function.
  18261. (computeFastSet): New function.
  18262. * src/Peer.h
  18263. (fastExtensionEnabled): New variable.
  18264. (fastSet): New variable.
  18265. (setAllBitfield): New function.
  18266. (setFastExtensionEnabled): New function.
  18267. (isFastExtensionEnabled): New function.
  18268. (addFastSetIndex): New function.
  18269. (getFastSet): New function.
  18270. (isInFastSet): New function.
  18271. (countFastSet): New function.
  18272. * src/Peer.cc
  18273. (isInFastSet): New function.
  18274. (addFastSetIndex): New function.
  18275. (setAllBitfield): New function.
  18276. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18277. sockets.
  18278. * src/PeerAbstractCommand.cc
  18279. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18280. and uploadLimit.
  18281. (execute): Changed the procedure of checking sockets. The upload speed
  18282. checking were added.
  18283. (setUploadLimit): New function.
  18284. (setUploadLimitCheck): New function.
  18285. * src/PeerAbstractCommand.h
  18286. (setUploadLimit): New function.
  18287. (setUploadLimitCheck): New function.
  18288. (uploadLimit): New variable.
  18289. (uploadLimitCheck): New variable.
  18290. To contact a tracker regularly:
  18291. * src/TrackerWatcherCommand.h (interval): New variable.
  18292. (checkPoint): New variable.
  18293. (TrackerWatcherCommand): Added interval argument.
  18294. * src/TrackerWatcherCommand.cc
  18295. (TrackerWatcherCommand): Initialized checkPoint.
  18296. (execute): Now a tracker is contacted in every specified period.
  18297. If peer list is not needed, send request with numwant=0.
  18298. * src/TrackerUpdateCommand.cc
  18299. (execute): Updated log messages.
  18300. * src/DownloadEngine.cc
  18301. (~DownloadEngine): Removed two asserts.
  18302. (waitData): Uncommented wfds. May be a bug fix.
  18303. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18304. * src/PeerInteractionCommand.h
  18305. (checkInactiveConnection): Removed.
  18306. * src/PeerInteractionCommand.cc
  18307. (executeInternal): Removed following function calls:
  18308. detectMessageFlooding(), checkLongTimePeerChoking and
  18309. checkInactiveConnection().
  18310. (checkInactiveConnection): Removed.
  18311. (detectMessageFlooding): Removed function call to
  18312. checkInactiveConnection().
  18313. * src/PeerMessageUtil.h
  18314. (createChokeMessage): New function. Overload.
  18315. (createUnchokeMessage): New function. Overload.
  18316. (createInterestedMessage): New function. Overload.
  18317. (createNotInterestedMessage): New function. Overload.
  18318. (createHaveMessage): New function. Overload.
  18319. (createBitfieldMessage): New function. Overload.
  18320. (createRequestMessage): New function. Overload.
  18321. (createCancelMessage): New function. Overload.
  18322. (createPieceMessage): New function. Overload.
  18323. (createKeepAliveMessage): New function. Overload.
  18324. * src/PeerMessageUtil.cc
  18325. (createChokeMessage): New function. Overload.
  18326. (createUnchokeMessage): New function. Overload.
  18327. (createInterestedMessage): New function. Overload.
  18328. (createNotInterestedMessage): New function. Overload.
  18329. (createHaveMessage): New function. Overload.
  18330. (createBitfieldMessage): New function. Overload.
  18331. (createRequestMessage): New function. Overload.
  18332. (createCancelMessage): New function. Overload.
  18333. (createPieceMessage): New function. Overload.
  18334. (createKeepAliveMessage): New function. Overload.
  18335. * src/SendMessageQueue.cc
  18336. (createRequestMessage): Use PeerMessageUtil.
  18337. (createCancelMessage): Use PeerMessageUtil.
  18338. (createPieceMessage): Use PeerMessageUtil.
  18339. (createHaveMessage): Use PeerMessageUtil.
  18340. (createChokeMessage): Use PeerMessageUtil.
  18341. (createUnchokeMessage): Use PeerMessageUtil.
  18342. (createInterestedMessage): Use PeerMessageUtil.
  18343. (createNotInterestedMessage): Use PeerMessageUtil.
  18344. (createBitfieldMessage): Use PeerMessageUtil.
  18345. (createKeepAliveMessage): Use PeerMessageUtil.
  18346. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18347. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18348. * src/PeerInteraction.h: New class.
  18349. * src/PeerInteraction.cc: New class.
  18350. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18351. Each peer message has its own class.
  18352. * src/PendingMessages.h: Removed.
  18353. * src/PendingMessages.cc: Removed. The sending process was moved to
  18354. each message class.
  18355. * src/RequestSlotMan.h: Removed.
  18356. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18357. SendMessageQueue.
  18358. * src/RequestMessage.h: New class.
  18359. * src/RequestMessage.cc: New class.
  18360. * src/CancelMessage.h: New class.
  18361. * src/CancelMessage.cc: New class.
  18362. * src/BitfieldMessage.h: New class.
  18363. * src/BitfieldMessage.cc: New class.
  18364. * src/ChokeMessage.h: New class.
  18365. * src/ChokeMessage.cc: New class.
  18366. * src/KeepAliveMessage.h: New class.
  18367. * src/KeepAliveMessage.cc: New class.
  18368. * src/PortMessage.h: New class.
  18369. * src/UnchokeMessage.h: New class.
  18370. * src/UnchokeMessage.cc: New class.
  18371. * src/PieceMessage.h: New class.
  18372. * src/PieceMessage.cc: New class.
  18373. * src/HaveMessage.h: New class.
  18374. * src/HaveMessage.cc: New class.
  18375. * src/BitfieldMessage.h: New class.
  18376. * src/BitfieldMessage.cc: New class.
  18377. * src/NotInterestedMessage.h: New class.
  18378. * src/NotInterestedMessage.cc: New class.
  18379. * src/InterestedMessage.h: New class.
  18380. * src/InterestedMessage.cc: New class.
  18381. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18382. (getSendMessageQueue): New function.
  18383. (setSendMessageQueue): New function.
  18384. * src/HandshakeMessage.cc: New class.
  18385. * src/PeerConnection.h (receiveMessage): Changed return value and
  18386. arguments.
  18387. (receiveHandshake): Changed return value and arguments.
  18388. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18389. here.
  18390. (receiveHandshake): Do not create handshake class here.
  18391. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18392. (piece): Removed.
  18393. (syncPiece): Removed.
  18394. (sendInterest): Removed.
  18395. (sendMessages): Removed.
  18396. (createRequestPendingMessage): Removed.
  18397. (checkPieceHash): Removed.
  18398. (erasePieceOnDisk): Removed.
  18399. (getNewPieceAndSendInterest): Removed.
  18400. (onGotNewPice): Removed.
  18401. (onGotWrongPiece): Removed.
  18402. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18403. Removed peerConnection, piece.
  18404. (~PeerInteractionCommand): Removed peerConnection.
  18405. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18406. (syncPiece): Moved to SendMessageQueue.
  18407. (decideChoking): Removed PendingMessage.
  18408. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18409. The action after receiving peer message was moved to each message
  18410. class.
  18411. (onGotNewPice): Moved to SendMessageQueue.
  18412. (onGotWrongPiece): Moved to SendMessageQueue.
  18413. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18414. (sendInterest): Moved to SendMessageQueue.
  18415. (createRequestPendingMessage): Removed.
  18416. (sendMessages): Moved to SendMessageQueue.
  18417. (onAbort): Use SendMessageQueue::abortPiece()
  18418. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18419. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18420. (checkPieceHash): Moved to SendMessageQueue.
  18421. (erasePieceOnDisk): Moved to SendMessageQueue.
  18422. * src/PeerMessageUtil.h
  18423. (createBitfieldMessage): Removed.
  18424. (createHaveMessage): Changed return value and arguments.
  18425. (createBitfieldMessage): Changed return value and arguments.
  18426. (createRequestCancelMessage): Removed.
  18427. (createPieceMessage): Changed return value and arguments.
  18428. (getShortIntParam): New function.
  18429. (checkIndex): Changed arguments.
  18430. (checkBegin): Changed arguments.
  18431. (checkLength): Changed arguments.
  18432. (checkPieceOffset): Removed.
  18433. (checkRange): New function.
  18434. (checkBitfield): Changed arguments.
  18435. (createPeerMessage): Removed.
  18436. (checkIntegrity): Removed.
  18437. (createHandshakeMessage): Changed arguments.
  18438. (createChokeMessage): New function.
  18439. (createUnchokeMessage): New function.
  18440. (createInterestedMessage): New function.
  18441. (createNotInterestedMessage): New function.
  18442. (createRequestMessage): New function.
  18443. (createCancelMessage): New function.
  18444. (createPortMessage): New function.
  18445. * src/PeerMessageUtil.cc
  18446. (createBitfieldMessage): Removed.
  18447. (createHaveMessage): Changed return value and arguments.
  18448. (createBitfieldMessage): Changed return value and arguments.
  18449. (createRequestCancelMessage): Removed.
  18450. (createPieceMessage): Changed return value and arguments.
  18451. (getShortIntParam): New function.
  18452. (checkIndex): Changed arguments.
  18453. (checkBegin): Changed arguments.
  18454. (checkLength): Changed arguments.
  18455. (checkPieceOffset): Removed.
  18456. (checkRange): New function.
  18457. (checkBitfield): Changed arguments.
  18458. (createPeerMessage): Removed.
  18459. (checkIntegrity): Removed.
  18460. (createHandshakeMessage): Changed arguments.
  18461. (createChokeMessage): New function.
  18462. (createUnchokeMessage): New function.
  18463. (createInterestedMessage): New function.
  18464. (createNotInterestedMessage): New function.
  18465. (createRequestMessage): New function.
  18466. (createCancelMessage): New function.
  18467. (createPortMessage): New function.
  18468. * src/PeerMessage.h
  18469. (id): Removed.
  18470. (index): Removed.
  18471. (begin): Removed.
  18472. (length): Removed.
  18473. (bitfield): Removed.
  18474. (bitfieldLength): Removed.
  18475. (block): Removed.
  18476. (blockLength): Removed.
  18477. (inProgress): New variable.
  18478. (cuid): New variable.
  18479. (peer): New variable.
  18480. (sendMessageQueue): New variable.
  18481. (logger): New variable.
  18482. (setBitfield): Removed.
  18483. (getBitfield): Removed.
  18484. (setBlock): Removed.
  18485. (getBlock): Removed.
  18486. (getBitfieldLength): Removed.
  18487. (getBlockLength): Removed.
  18488. (isInProgress): New function.
  18489. (toString): Made pure virtual.
  18490. (check): New function.
  18491. (send): New function.
  18492. (receivedAction): New function.
  18493. (getId): Made pure virtual.
  18494. (setId): Removed.
  18495. (getIndex): Removed.
  18496. (setIndex): Removed.
  18497. (getBegin): Removed.
  18498. (setBegin): Removed.
  18499. (getLength): Removed.
  18500. (setLength): Removed.
  18501. (getCuid): New function.
  18502. (setCuid): New function.
  18503. (getPeer): New function.
  18504. (setPeer): New function.
  18505. (getSendMessageQueue): New function.
  18506. (setSendMessageQueue): New function.
  18507. (ID): Removed.
  18508. * src/PeerMessage.cc
  18509. (setBitfield): Removed.
  18510. (setBlock): Removed.
  18511. (toString): Removed.
  18512. * src/TorrentMan.h
  18513. (getPieceLength): New function.
  18514. (getPieceLength): New function.
  18515. * src/SendMessageQueue.h
  18516. (REQUEST_TIME_OUT): New definition.
  18517. (RequestSlots): New definition.
  18518. (MessageQueue): New definition.
  18519. (requestSlotMan): Removed.
  18520. (pendingMessages): Removed.
  18521. (requestSlots): New variable.
  18522. (messageQueue): New variable.
  18523. (torrentMan): New variable.
  18524. (peerConnection): New variable.
  18525. (peer): New variable.
  18526. (piece): New variable.
  18527. (getNewPieceAndSendInterest): New function.
  18528. (createPeerMessage): New function.
  18529. (createHandshakeMessage): New function.
  18530. (send): Made private.
  18531. (setPeerMessageCommonProperty): New function.
  18532. (deleteAllRequestSlot): New function.
  18533. (deleteRequestMessageInQueue): New function.
  18534. (cancelAllRequest): Made private.
  18535. (cancelAllRequest): Made private.
  18536. (countRequestSlot): Made private.
  18537. (addPendingMessage): Removed.
  18538. (deletePendingPieceMessage): Removed.
  18539. (deletePendingRequestMessage): Removed.
  18540. (addMessage): New function.
  18541. (deletePieceMessageInQueue): New function.
  18542. (deleteTimeoutRequestSlot): Changed argument.
  18543. (deleteCompletedRequestSlot): Changed argument.
  18544. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18545. (getCorrespondingRequestSlot): New function.
  18546. (countPendingMessage): Removed.
  18547. (countMessageInQueue): New function.
  18548. (getTorrentMan): New function.
  18549. (getPeerConnection): New function.
  18550. (hasDownloadPiece): New function.
  18551. (getDownloadPiece): New function.
  18552. (setDownloadPiece): New function.
  18553. (syncPiece): New function.
  18554. (sendMessages): New function.
  18555. (sendNow): New function.
  18556. (trySendNow): New function.
  18557. (abortPiece): New function.
  18558. (sendHandshake): New function.
  18559. (receiveMessage): New function.
  18560. (receiveHandshake): New function.
  18561. (createRequestMessage): New function.
  18562. (createCancelMessage): New function.
  18563. (createPieceMessage): New function.
  18564. (createHaveMessage): New function.
  18565. (createChokeMessage): New function.
  18566. (createUnchokeMessage): New function.
  18567. (createInterestedMessage): New function.
  18568. (createNotInterestedMessage): New function.
  18569. (createBitfieldMessage): New function.
  18570. (createKeepAliveMessage): New function.
  18571. * src/SendMessageQueue.cc
  18572. (SendMessageQueue): Removed requestSlotMan.
  18573. Instantiated peerConnection here.
  18574. (~SendMessageQueue): Removed requestSlotMan.
  18575. Added deletion of peerConnection and the contents of messageQueue.
  18576. (send): Updated according to the change of messageQueue.
  18577. (addPendingMessage): Renamed to addMessage.
  18578. (addMessage): New function.
  18579. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18580. (deletePieceMessageInQueue): New function.
  18581. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18582. (deleteRequestMessageInQueue): New function.
  18583. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18584. here.
  18585. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18586. (...) was moved here.
  18587. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18588. moved here.
  18589. (deleteCompletedRequestSlot):
  18590. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18591. (getCorrespondingRequestSlot):
  18592. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18593. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18594. (countPendingMessage): Renamed to countMessageInQueue.
  18595. (countMessageInQueue): New function.
  18596. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18597. (receiveHandshake): New function.
  18598. (createHandshakeMessage): New function.
  18599. (receiveMessage): New function.
  18600. (createPeerMessage): New function.
  18601. (syncPiece): New function.
  18602. (getNewPieceAndSendInterest): New function.
  18603. (sendMessages): New function.
  18604. (sendNow): New function.
  18605. (trySendNow): New function.
  18606. (sendHandshake): New function.
  18607. (abortPiece): New function.
  18608. (getDownloadPiece): New function.
  18609. (getPeerMessageCommonProperty): New function.
  18610. (createRequestMessage): New function.
  18611. (createCancelMessage): New function.
  18612. (createPieceMessage): New function.
  18613. (createHaveMessage): New function.
  18614. (createChokeMessage): New function.
  18615. (createUnchokeMessage): New function.
  18616. (createInterestedMessage): New function.
  18617. (createNotInterestedMessage): New function.
  18618. (createBitfieldMessage): New function.
  18619. (createKeepAliveMessage): New function.
  18620. To add simple Content-Disposition support:
  18621. * src/HttpResponseCommand.h (determinFilename): New function.
  18622. * src/HttpResponseCommand.cc (executeInternal):
  18623. Use determinFilename(headers) instead of req->getFile() when comparing
  18624. filename.
  18625. (determinFilename): New function.
  18626. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18627. req->getFile().
  18628. (handleOtherEncoding): Use determinFilename(headers) instead of
  18629. req->getFile().
  18630. * src/Util.h (getContentDispositionFilename): New function.
  18631. * src/Util.cc (getContentDispositionFilename): New function.
  18632. * src/LogFactory.h (release): New function.
  18633. * src/LogFactory.cc (release): New function.
  18634. To fix a bug that causes out-of-bound exception when HTTP status
  18635. line is wrong:
  18636. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18637. size.
  18638. * src/common.h (Deleter): New class.
  18639. * src/SegmentMan.cc
  18640. (~SegmentMan): Added deletion of splitter and diskWriter.
  18641. * src/DownloadEngine.h
  18642. (Commands): Use deque.
  18643. (clearQueue): New function.
  18644. * src/DownloadEngine.cc
  18645. (~DownloadEngine): Added deletion of segmentMan.
  18646. (cleanQueue): New function.
  18647. * src/TorrentDownloadEngine.h
  18648. (TorrentDownloadEngine): The implementation was moved to
  18649. TorrentDownloadEngine.cc.
  18650. (~TorrentDownloadEngine): The implementation was moved to
  18651. TorrentDownloadEngine.cc.
  18652. * src/TorrentDownloadEngine.cc
  18653. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18654. * src/main.cc
  18655. (clearRequest): Removed.
  18656. (handler): Added deletion of e.
  18657. (torrentHandler): Added deletion of te.
  18658. (main): Do not share splitter.
  18659. Use Deleter instead of clearRequest.
  18660. Deletion of classes were updated.
  18661. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18662. * src/main.cc (main): Fixed typo.
  18663. * src/message.h: Fixed typo.
  18664. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18665. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18666. To add --select-file command-line option:
  18667. * src/Util.cc
  18668. (unfoldRange): New function.
  18669. (getNum): New function.
  18670. (unfoldSubRange): New function
  18671. * src/main.cc
  18672. (showUsage): Added help message.
  18673. (main): Added --select-file command-line option. Updated the layout of
  18674. file listing.
  18675. * src/common.h
  18676. (Integers): New definition.
  18677. * src/SocketCore.cc
  18678. (writeData): Removed timeout argument.
  18679. (readData): Removed timeout argument.
  18680. (peekData): Removed timeout argument.
  18681. * src/Socket.cc
  18682. (writeData): Removed timeout argument.
  18683. (readData): Removed timeout argument.
  18684. (peekData): Removed timeout argument.
  18685. * Release 0.4.1
  18686. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18687. To deploy upload rate based choking algorithm:
  18688. * src/PeerInteractionCommand.cc
  18689. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18690. peer currently used.
  18691. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18692. download completes. Simplified.
  18693. (receiveMessage): Updated.
  18694. * src/TorrentMan.h
  18695. (activePeers): New variable.
  18696. (addActivePeer): New function.
  18697. (getActivePeers): New function.
  18698. (deleteActivePeer): New function.
  18699. * src/TorrentMan.cc
  18700. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18701. * src/PeerAbstractCommand.cc
  18702. (onAbort): Use peer->resetStatus().
  18703. * src/main.cc
  18704. (PeerChokeCommand.h): Included.
  18705. (main): Added the instance of ChokingCommand to the command queue.
  18706. * src/Peer.h
  18707. (amChoking): Renamed from amChocking
  18708. (chokingRequired): New variable.
  18709. (optUnchoking): New variable.
  18710. (deltaUpload): New variable.
  18711. (deltaDownload): New variable.
  18712. (addDeltaUpload): New function.
  18713. (resetDeltaUpload): New function.
  18714. (addDeltaDownload): New function.
  18715. (resetDeltaDownload): New function.
  18716. (addPeerUpload): Added a call to addDeltaUpload.
  18717. (addPeerDownload): Added a call to addDeltaDownload.
  18718. * src/Peer.cc
  18719. (shouldBeChoking): Renamed from shouldChoke.
  18720. (resetStatus): New function.
  18721. * src/PeerChokeCommand.h: New class.
  18722. * src/PeerChokeCommand.cc: New class.
  18723. To add lazy upload speed limiter:
  18724. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18725. statistics calculation to TorrentDownloadEngine.
  18726. * src/TorrentConsoleDownloadEngine.cc
  18727. (sendStatistics): Renamed from printStatistics.
  18728. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18729. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18730. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18731. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18732. calculation.
  18733. (sendStatistics): New function as pure virtual function.
  18734. (getUploadSpeed): New function.
  18735. * src/TorrentDownloadEngine.cc
  18736. (initStatistics): New function.
  18737. (calculateSpeed): New function.
  18738. (calculateStatistics): New function.
  18739. * src/SendMessageQueue.h
  18740. (uploadLength): New variable.
  18741. (send): Added an argument.
  18742. (setUploadLimit): New function.
  18743. (getUploadLimit): New function.
  18744. * src/SendMessageQueue.cc
  18745. (send): Added upload speed limiter.
  18746. * src/prefs.h
  18747. (PREF_UPLOAD_LIMIT): New definition.
  18748. * src/PeerInteractionCommand.cc
  18749. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18750. * src/main.cc
  18751. (main): Added --upload-limit option
  18752. For bug fixes:
  18753. * src/main.cc
  18754. (showUsage): Corrected --listen-port help
  18755. Other changes:
  18756. * src/TorrentMan.cc
  18757. (getPeer): Return nullPeer if connection is grather than
  18758. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18759. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18760. To add some useful information to the exception message:
  18761. * src/SocketCore.cc : Updated messages.
  18762. * src/SegmentMan.cc :
  18763. * src/TorrentMan.cc : Updated messages.
  18764. * src/MultiDiskWriter.cc : Updated messages.
  18765. * src/Util.cc : Updated messages.
  18766. * src/AbstractDiskWriter.cc : Updated messages.
  18767. * src/PreAllocationDiskWriter.cc : Updated messages.
  18768. * src/message.cc : Added new messages. Updated some messages.
  18769. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18770. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18771. Updated threshold from 30 to 15.
  18772. * src/AbstractDiskWriter.h (filename): New variable.
  18773. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18774. (createFile): Assigned filename.
  18775. * src/main.cc: Updated the help message for http-auth-scheme.
  18776. * Release 0.4.0
  18777. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18778. To add TrackerUpdateCommand with which replaces
  18779. CompactTrackerResponseProcessor:
  18780. * src/TrackerWatcherCommand.h (req): Removed.
  18781. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18782. if the number of peer connections are less than 30.
  18783. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18784. * src/SegmentMan.h (diskWriter): New function.
  18785. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18786. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18787. (main): Use TrackerUpdateCommand.
  18788. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18789. (req): New variable.
  18790. (setTrackerResponseProcessor): Removed.
  18791. (getTrackerResponseProcessor): Removed.
  18792. (processTrackerResponse): Removed.
  18793. * src/DownloadEngine.h (diskWriter): Removed.
  18794. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18795. to torrentMan->processTrackerResponse().
  18796. To add Util::expandBuffer:
  18797. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18798. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18799. * src/Util.h (expandBuffer): New function.
  18800. To fix the bug that causes segmentation fault when "-l ." is specified
  18801. in command-line option:
  18802. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18803. (openFile): New function.
  18804. (closeFile): New function.
  18805. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18806. (~SimpleLogger): Call closeFile();
  18807. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18808. * src/main.cc (main): Added a check to see logger is configured
  18809. properly.
  18810. To enable HTTP authentication without specifying "--http-auth-scheme"
  18811. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18812. * src/HttpConnection.cc (createRequest): Send Authorization header
  18813. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18814. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18815. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18816. * src/Peer.cc (shouldChoke): Updated algorithm.
  18817. * src/message.h (EX_AUTH_FAILED): New definition.
  18818. (EX_FILE_OPEN): New definition.
  18819. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18820. if status == 401.
  18821. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18822. if req->isTorrent == true.
  18823. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18824. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18825. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18826. (createFile): Updated message.
  18827. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18828. To add a readout of estimated remaining time to normal HTTP/FTP
  18829. downloads:
  18830. * src/ConsoleDownloadEngine.h (startup): New variable.
  18831. (startupLength): New variable.
  18832. (isStartupLengthSet): New variable.
  18833. (avgSpeed): New variable.
  18834. (eta): New variable.
  18835. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18836. estimated remaining time.
  18837. (initStatistics): Initialized newly added variables.
  18838. (calculateStatistics): Calculate average speed and estimated remaining
  18839. time.
  18840. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18841. * src/TrackerDownloadCommand.h: Removed.
  18842. * src/TrackerDownloadCommand.cc: Removed.
  18843. * src/TrackerInitCommand.h: Removed.
  18844. * src/TrackerInitCommand.cc: Removed.
  18845. * src/TrackerUpdateCommand.h: Removed.
  18846. * src/TrackerUpdateCommand.cc: Removed.
  18847. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18848. url written in TrackerInitCommand was moved here. Do not create
  18849. tracker request command if torrentMan->trackers != 0.
  18850. * src/CompactTrackerResponseProcessor.h: New class.
  18851. * src/CompactTrackerResponseProcessor.cc: New class.
  18852. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18853. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18854. Decoupled TorrentDownloadEngine from this.
  18855. * src/SegmentMan.h (init): New function.
  18856. * src/SegmentMan.cc (init): New function.
  18857. * src/TorrentMan.h (responseProcessor): New variable.
  18858. (trackers): New variable.
  18859. (setTrackerResponseProcessor): New function.
  18860. (getTrackerResponseProcessor): New function.
  18861. (processTrackerResponse): New function.
  18862. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18863. (processTrackerResponse): New function.
  18864. * src/main.cc (main): Use ByteArrayDiskWriter and
  18865. CompactTrackerResponseProcessor.
  18866. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18867. processTrackerResponse().
  18868. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18869. readout.
  18870. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18871. which indicates download has completed.
  18872. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18873. (closeFile): fd >= 0, not fd > 0
  18874. * src/main.cc (main): Added short cut for show-files.
  18875. Added short cut for torrent-file.
  18876. Added new command-line option listen-port.
  18877. Updated i18n messages.
  18878. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18879. To add LogFactory which creates singleton logger:
  18880. * src/LogFactory.h: New class.
  18881. * src/LogFactory.cc: New class.
  18882. * src/Command.h (logger): New variable.
  18883. (Constructor): Use LogFactory.
  18884. * src/AbstractCommand.cc: Use Command::logger
  18885. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18886. Use LogFactory.
  18887. * src/SegmentSplitter.h : Made logger protected.
  18888. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18889. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18890. * src/DownloadEngine.h : Made logger protected.
  18891. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18892. * src/PeerInteractionCommand.cc : Use Command::logger.
  18893. * src/HttpResponseCommand.cc : Use Command::logger.
  18894. * src/SegmentMan.h : Made logger private.
  18895. * src/TorrentMan.h : Made logger private.
  18896. * src/TorrentMan.cc : Use LogFactory.
  18897. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18898. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18899. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18900. Use LogFactory.
  18901. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18902. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18903. Use LogFactory.
  18904. * src/DownloadCommand.cc : Use Command::logger.
  18905. * src/PeerAbstractCommand.cc : Use Command::logger.
  18906. * src/PeerListenCommand.cc : Use Command::logger.
  18907. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18908. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18909. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18910. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18911. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18912. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18913. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18914. Use LogFactory.
  18915. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18916. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18917. Use LogFactory.
  18918. * src/main.cc (main): Use LogFactory.
  18919. * src/DiskAdaptor.h (logger): New variable.
  18920. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18921. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18922. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18923. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18924. parameter to a tracker request.
  18925. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18926. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18927. * src/main.cc (setSignalHander): New function.
  18928. (main): Added a handler for SIGTERM.
  18929. (handler): Updated message.
  18930. (torrentHandler): Updated message.
  18931. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18932. * src/TorrentConsoleDownloadEngine.cc
  18933. (onPartialDownloadingCompletes): Renamed as
  18934. onSelectiveDownloadingCompletes.
  18935. (onSelectiveDownloadingCompletes): Updated message.
  18936. To add DiskAdaptor which abstract DiskWriter family:
  18937. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18938. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18939. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18940. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18941. MultiDiskAdaptor.h.
  18942. (readFileEntry): Changed its arguments.
  18943. (setup): setupDiskWriter is merged into this function.
  18944. (setupDiskWriter): Removed.
  18945. (setFileFilter): New function.
  18946. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18947. made in readFileEntry.
  18948. (getFilePath): Removed.
  18949. (getTempFilePath): Removed.
  18950. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18951. (fixFilename): Removed.
  18952. (copySingleFile): Removed.
  18953. (splitMultiFile): Removed.
  18954. (deleteTempFile): Removed.
  18955. (setFileEntriesToDownload): Removed.
  18956. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18957. (isSelectiveDownloadingMode): New function.
  18958. (setAllMultiFileRequestedState): Removed.
  18959. (finishPartialDownloadingMode): Renamed as
  18960. finishSelectiveDownloadingMode.
  18961. (finishSelectiveDownloadingMode): New function.
  18962. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18963. (getSelectedTotalLength): New function.
  18964. (onDownloadComplete): Use diskAdaptor.
  18965. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18966. (Range): Removed.
  18967. (setMultiFileEntries): Renamed as setFileEntries.
  18968. (setFileEntries): New function.
  18969. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18970. (pieceLength): New variable.
  18971. * src/main.cc (printDownloadCompeleteMessage): New function.
  18972. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18973. (main): Renamed torrent-show-files to show-files.
  18974. Rewritten file contents listing.
  18975. * src/TorrentMan.h (FileEntry): Removed.
  18976. (multiFileTopDir): Removed.
  18977. (multiFileEntries): Removed.
  18978. (diskWriter): Removed.
  18979. (diskAdaptor): New variable.
  18980. * src/DefaultDiskWriter.h (totalLength): New variable.
  18981. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18982. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18983. diskWriter.
  18984. * src/TorrentConsoleDownloadEngine.h
  18985. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18986. (partialTotalLength): Renamed as selectedTotalLength.
  18987. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18988. openExistingFile, otherwise call initAndOpenFile.
  18989. (closeFile): fd > 0, not fd != 0.
  18990. * src/DirectDiskAdaptor.h: New class.
  18991. * src/DirectDiskAdaptor.cc: New class.
  18992. * src/MultiDiskAdaptor.h: New class.
  18993. * src/MultiDiskAdaptor.cc: New class.
  18994. * src/CopyDiskAdaptor.h: New class.
  18995. * src/CopyDiskAdaptor.cc: New class.
  18996. * src/DiskAdaptor.h: New class.
  18997. * src/DiskAdaptor.cc: New class.
  18998. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18999. (PREF_SHOW_FILES): New definition.
  19000. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19001. To add the ability to download multi torrent into respective files
  19002. directly:
  19003. * src/DiskWriter.h (openFile): New function.
  19004. (seek): Removed.
  19005. * src/MultiDiskWriter.h: New class.
  19006. * src/MultiDiskWriter.cc: New class.
  19007. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19008. protected.
  19009. (openFile): New function.
  19010. * src/AbstractDiskWriter.cc (openFile): New function.
  19011. * src/prefs.h (V_FALSE): New definition.
  19012. (PREF_DIRECT_FILE_MAPPING): New definition.
  19013. * src/TorrentMan.h (setupDiskWriter): New function.
  19014. (setAllMultiFileRequestedState): New function.
  19015. (onDownloadComplete): New function.
  19016. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19017. (setupDiskWriter): New function.
  19018. (getFilePath): Updated.
  19019. (getTempFilePath): Updated.
  19020. (getSegmentFilePath): Updated.
  19021. (fixFilename): Updated.
  19022. (deleteTempFile): Updated.
  19023. (setAllMultiFileRequestedState): New function.
  19024. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19025. (finishPartialDownloadingMode): Reset requested flags.
  19026. (onDownloadComplete): New function.
  19027. * src/main.cc: Added --direct-file-mapping option.
  19028. Use TorrentMan::setupDiskWriter().
  19029. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19030. onDownloadComplete().
  19031. To fix ETA bug:
  19032. * src/Util.h (difftvsec): New function.
  19033. * src/Util.cc (difftvsec): New function.
  19034. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19035. type of "elapsed" instead of long long int.
  19036. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19037. The updates of statistics takes place every 1 seconds.
  19038. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19039. (calculateSpeed): Changed its argument signature.
  19040. * src/PeerMessage.cc (toString): Fixed message.
  19041. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19042. To print ETA:
  19043. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19044. completion handling when dealing with
  19045. TorrentMan::isPartialDownloadingMode() == true.
  19046. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19047. New function.
  19048. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19049. (sessionDownloadLength): New variable.
  19050. (avgSpeed): New variable.
  19051. (eta): New variable.
  19052. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19053. new variables: eta, avgSpeed, startup.
  19054. (calculateSpeed): Calculate average speed and ETA.
  19055. (printStatistics): Added ETA.
  19056. * src/Util.h (secfmt): New function.
  19057. * src/Util.cc (secfmt): New function.
  19058. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19059. To detect "keep alive" flooding:
  19060. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19061. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19062. variable: keepAliveCount.
  19063. (detectMessageFlooding): Added "keep alive" flooding detection.
  19064. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19065. received.
  19066. To add the ability to download only specified files in multi-file
  19067. torrent:
  19068. * src/BitfieldMan.h (filterBitfield): New variable.
  19069. (filterEnabled): New variable.
  19070. (setFilterBit): New function.
  19071. (enableFilter): New function.
  19072. (disableFilter): New function.
  19073. (isFilterEnabled): New function.
  19074. (getFilteredTotalLength): New function.
  19075. (getCompletedLength): New function.
  19076. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19077. filterBitfield, filterEnabled.
  19078. (CopyConstructor): Added filterBitfield and filterEnabled.
  19079. (operator==): Added filterBitfield and filterEnabled.
  19080. (Destructor): Added filterBitfield.
  19081. (getMissingIndex): Use filterBitfield.
  19082. (getMissingUnusedIndex): Use filterBitfield.
  19083. (getFirstMissingUnusedIndex): Use filterBitfield.
  19084. (getFirstMissingUnusedIndex): Use filterBitfield.
  19085. (getAllMissingIndexes): Use filterBitfield.
  19086. (countMissingBlock): Use filterBitfield.
  19087. (countBlock): Use filterBitfield.
  19088. (setBitInternal): Added new argument on.
  19089. (setUseBit): Use setBitInternal.
  19090. (unsetUseBit): Use setBitInternal.
  19091. (setBit): Use setBitInternal.
  19092. (unsetBit): Use setBitInternal.
  19093. (isAllBitSet): Use filterBitfield.
  19094. (setFilterBit): New function.
  19095. (addFilter): New function.
  19096. (enableFilter): New function.
  19097. (disableFilter): New function.
  19098. (clearFilter): New function.
  19099. (isFilterEnabled): New function.
  19100. (getFilteredTotalLength): New function.
  19101. (getCompletedLength): New function.
  19102. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19103. Initalized newly added variables.
  19104. [FileEntry](offset): New variable.
  19105. [FileEntry](extracted): New variable.
  19106. [FileEntry](requested): New variable.
  19107. (readFileEntry): New function.
  19108. (option): New variable.
  19109. (splitMultiFile): Removed const qualifier.
  19110. (fixFilename): Removed const qualifier.
  19111. (readFileEntryFromMetaInfoFile): New function.
  19112. (finishPartialDownloadingMode): New function.
  19113. (isPartialDownloadingMode): New function.
  19114. (setFileEntriesToDownload): New function.
  19115. (getCompletedLength): New function.
  19116. (getPartialTotalLength): New function.
  19117. * src/TorrentMan.cc (readFileEntry): New function.
  19118. (setup): Use readFileEntry. If no-preallocation option is specified,
  19119. use DefaultDiskWriter.
  19120. (readFileEntryFromMetaInfoFile): New function.
  19121. (fixFilename): Removed const qualifier.
  19122. (splitMultiFile): Removed const qualifier.
  19123. (setFileEntriesToDownload): New function.
  19124. (isPartialDownloadingMode): New function.
  19125. (finishPartialDownloadingMode): New function.
  19126. (getCompletedLength): New function.
  19127. (getPartialTotalLength): New function.
  19128. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19129. New variable.
  19130. (partialTotalLength): New variable.
  19131. (downloadLength): New variable.
  19132. (totalLength): New variable.
  19133. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19134. Added log.
  19135. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19136. partialTotalLength, downloadLength, totalLength.
  19137. (calculate): Calculate downloadLength and totalLength.
  19138. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19139. * src/main.cc (addCommand): Changed argument signature.
  19140. (main): Added new variable: args. Added new option "torrent-show-files"
  19141. "no-preallocation". Usage is not updated yet.
  19142. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19143. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19144. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19145. Attempt to add the ability to listing file entries in a .torrent file.
  19146. This feature is not yet complete.
  19147. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19148. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19149. (getName): New function.
  19150. * src/TorrentMan.h (getMultiFileEntries): New function.
  19151. (getName): New function.
  19152. * src/main.cc (main): Use above 2 funtion.
  19153. * Release 0.3.2
  19154. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19155. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19156. (detectMessageFlooding): Updated threshold value.
  19157. (checkLongTimePeerChoking): Updated timeout value.
  19158. (getNewPieceAndSendInterest): Added debug log.
  19159. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19160. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19161. (getPeer): Updated.
  19162. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19163. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19164. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19165. is localhost.
  19166. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19167. * src/PendingMessage.cc (processMessage): Not to send piece message
  19168. if peer is not interested in the pieces localhost has.
  19169. * src/Peer.cc (shouldChoke): Updated.
  19170. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19171. * src/Util.cc (isPowerOf): New function.
  19172. * src/Util.h (isPowerOf): New function.
  19173. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19174. whether or not it is power of 2.
  19175. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19176. Added new class SendMessageQueue that includes PendingMessages and
  19177. RequestSlotMan.
  19178. * src/SendMessageQueue.h: New class.
  19179. * src/SendMessageQueue.cc: New class.
  19180. * src/PendingMessage.h: Added new member variable blockIndex and its
  19181. accessors.
  19182. (createRequestMessage): Updated.
  19183. * src/PendingMessage.cc (createRequestMessage): Updated.
  19184. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19185. SendMessageQueue.
  19186. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19187. (receiveMessage): Updated with SendMessageQueue.
  19188. (deletePendingPieceMessage): Removed.
  19189. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19190. (sendInterest): Updated with SendMessageQueue.
  19191. (createRequestPendingMessage): Updated with SendMessageQueue.
  19192. (sendMessages): Updated with SendMessageQueue.
  19193. (onAbort): Updated with SendMessageQueue.
  19194. (keepAlive): Updated with SendMessageQueue.
  19195. (beforeSocketCheck): Updated SendMessageQueue.
  19196. * src/PeerInteractionCommand (sendMessages): Shuffle
  19197. missingBLockIndexes before using it.
  19198. Added its own timeout for peer connection.
  19199. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19200. setter.
  19201. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19202. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19203. Added setTimeout() call.
  19204. (executeInternal): Added setTimeout() call.
  19205. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19206. Added timeout.
  19207. (isTimeoutDetected): Updated.
  19208. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19209. option.
  19210. Added *simple* message flooding checker.
  19211. * src/PeerInteractionCommand.cc (executeInternal):
  19212. Added detectMessageFlooding() call.
  19213. (detectMessageFlooding): New function.
  19214. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19215. (beforeSocketCheck): Added detectMessageFlooding() call.
  19216. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19217. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19218. Removed deletePendingPieceMessage(), getRequestSlot(),
  19219. deleteRequestSlot(), deleteAllRequestSlot().
  19220. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19221. Added checkLongTimePeerChoking() call.
  19222. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19223. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19224. if duplicate == false.
  19225. The parameter "uploaded" and "downloaded" in the tracker request are
  19226. the size since the client sent the "started" event to the tracker.
  19227. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19228. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19229. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19230. getSessionDownloadedSize(), getSessionUploadedSize().
  19231. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19232. getSessionUploadedSize() instead of getDownloadedSize(),
  19233. getUploadedSize().
  19234. * src/PendingMessage.cc (processMessage): Do not send request message
  19235. if the peer is choking the client.
  19236. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19237. less than interval.
  19238. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19239. * configure.in: Added gnutls support. Added several CPP macros.
  19240. * m4/openssl.m4: Added.
  19241. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19242. readData(), peekData(). Added gnutls support.
  19243. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19244. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19245. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19246. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19247. Instead, added a check for whether setup method has executed
  19248. successfully.
  19249. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19250. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19251. * src/Makefile.am: Updated.
  19252. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19253. using whether OpenSSL or gcrypt, depending on the result of configure
  19254. script.
  19255. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19256. messageDigest.h.
  19257. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19258. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19259. Fixed memory leak.
  19260. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19261. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19262. Removed instantiation of TrackerInitCommand. Instead,
  19263. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19264. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19265. ENABLE_SSL.
  19266. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19267. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19268. If a piece is already acquired by another command, delete the request
  19269. slots for the piece.
  19270. * src/TrackerUpdateCommand.cc (execute):
  19271. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19272. Added a check whether peer list is null.
  19273. Fixed the bug that causes sending completed event to the tracker
  19274. several times.
  19275. * src/TrackerInitCommand.cc (execute):
  19276. Fixed the bug that causes sending completed event to the tracker
  19277. several times.
  19278. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19279. by using messageDigest.h.
  19280. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19281. * PeerConnection.cc: Replaced log message "keep-alive" with
  19282. "keep alive".
  19283. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19284. localhost long time.
  19285. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19286. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19287. at most 100 failure entry from the list. If with duplicate = false,
  19288. MAX_PEER_LIST is not checked.
  19289. * PeerListenCommand.cc: Fixed the argument order of log message.
  19290. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19291. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19292. Added warn().
  19293. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19294. Implemented warn().
  19295. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19296. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19297. * Request.h: Added AFTER_COMPLETED event.
  19298. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19299. instead of downloaded size and progress(%) after download completes.
  19300. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19301. message to the peer if it is interested in what localhost has
  19302. downloaded.
  19303. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19304. destination instead of just renaming it.
  19305. * TorrentMan.cc: Added deleteTempFile().
  19306. * PeerAbstractCommand.cc: do not stop execution after download
  19307. completes. This makes localhost a seeder.
  19308. * Util.{h,cc}: Added fileCopy().
  19309. * PeerListenCommand.cc: do not stop execution after download completes.
  19310. This makes localhost a seeder.
  19311. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19312. Added TorrentMan::deleteTempFile() to torrentHandler.
  19313. Initialized the variable dir as ".".
  19314. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19315. Deleted renameSingleFile().
  19316. Added copySingleFile(), deleteTempFile().
  19317. * DownloadEngine.h: Added virtual function afterEachIteration().
  19318. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19319. in onEndOfRun() to afterEachIteration().
  19320. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19321. true.
  19322. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19323. In rangedFileCopy(), added try-catch block to properly close file
  19324. descriptors.
  19325. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19326. Added afterEachIteration(), isFilenameFixed().
  19327. * Peer.cc: Changed choking strategy.
  19328. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19329. * TrackerInitCommand.cc: Send completed event only once.
  19330. * DownloadEngine.cc: Added a call to afterEachIteration().
  19331. * TrackerUpdateCommand.cc: Do not stop execution after download
  19332. completes.
  19333. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19334. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19335. received from a tracker.
  19336. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19337. Decreased the number of failure peers to delete to 0(just comment out
  19338. the line).
  19339. * Release 0.3.1
  19340. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19341. * PeerInteractionCommand.cc: added a call to
  19342. TorrentMan::unadvertisePiece in Destructor.
  19343. * PeerInteractionCommand.cc: make have message sent immediately
  19344. if the size of pending message queue is zero.
  19345. * TorrentMan.cc: set the maximum size of peer list to 250.
  19346. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19347. to deque.
  19348. * Util.cc: fixed rangedFileCopy.
  19349. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19350. to Constructor. Also, moved digest cleanup to Destructor.
  19351. * MetaFileUtil.cc: fixed memory leak
  19352. * replaced std::vector with std::deque.
  19353. * AbstractCommand.cc: casted timeout value to long long int.
  19354. * ChunkedEncoding.cc: fixed memory leak.
  19355. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19356. * SleepCommand.cc: casted timeout value to long long int.
  19357. * Data.cc: fixed memory leak.
  19358. * Data.cc: fixed toLLInt().
  19359. * BitfieldMan.cc: fixed memory leak.
  19360. * TorrentMan.cc: initialized storeDir to ".".
  19361. * TorrentMan.cc: fixed memory leak.
  19362. * TorrentMan.cc: corrected file paths of splitted files.
  19363. * PeerAbstractCommand.cc: casted timeout to long long int.
  19364. * main.cc: added delete(req) and delete(te->diskWriter).
  19365. * RequestSlot.cc: casted timeout value to long long int.
  19366. * Request.cc: fixed memory leak.
  19367. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19368. have the piece.
  19369. * Peer.{h,cc}: added hasPiece(int index).
  19370. * main.cc: corrected addCommand.
  19371. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19372. * BitTorrent protocol support added.
  19373. * Release 0.3.0
  19374. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19375. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19376. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19377. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19378. decoding did not work properly.
  19379. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19380. * DownloadEngine.h: included sys/time.h
  19381. * DownloadEngine.cc: remove sys/time.h
  19382. * Makefile.am (SUBDIRS): Add intl.
  19383. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19384. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19385. * main.cc: correct help message for --http-auth-scheme.
  19386. * main.cc: changed e-mail address for bug reports.
  19387. * ja.po: added japanese translation.
  19388. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19389. * SimpleLogger.cc: flush log file instead of stdout.
  19390. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19391. * main.cc: Fixed command-line option: max-tries
  19392. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19393. does not equal to seg.sp.
  19394. * DownloadCommand.cc: If EOF is got from the server and the total size
  19395. of file is not zero, then throw DlRetryEx.
  19396. * main.cc: Set the minium value of min-segment-size to 1024.
  19397. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19398. fails because of a regression since 0.2.0 release.
  19399. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19400. * HttpConnection.cc:
  19401. * common.h: defined the user agent name as macro
  19402. * DownloadEngine.{h, cc}:
  19403. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19404. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19405. * main.cc: Download complete/abort message is now generated by main.
  19406. * Makefile.am (SUBDIRS): Add m4.
  19407. (ACLOCAL_AMFLAGS): New variable.
  19408. (EXTRA_DIST): New variable.
  19409. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19410. * gettext: added gettext functionality
  19411. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19412. * AbstractCommand.cc:
  19413. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19414. unregister its cuid from SegmentMan.
  19415. * DownloadEngine.cc: .aria2 file was written when a downloading
  19416. failed with errors.
  19417. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19418. Added "User-Agent" header to CONNECT proxy request.
  19419. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19420. properly.
  19421. * Logger.h:
  19422. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19423. * ChunkedEncoding.cc: Added #include directive for strings.h
  19424. * Release 0.2.1
  19425. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19426. * Util.{h,cc}: added startsWith().
  19427. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19428. Util::endsWith().
  19429. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19430. * common.h: added #include directive of limit.h.
  19431. * DownloadEngine.cc: added #include directive of sys/time.h and
  19432. algorithm.
  19433. * Exception.h: added #include directive of stdio.h.
  19434. * AbstractCommand.h: added #include directive of sys/time.h.
  19435. * DownloadCommand.h: added #include directive of sys/time.h.
  19436. * *.h: added #include directive of common.h to all base classes.
  19437. subclasses' one was removed.
  19438. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19439. does not define these macros.
  19440. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19441. * Release 0.2.0
  19442. * main.cc:
  19443. * HttpInitiateConnectionCommand.{h,cc}:
  19444. * prefs.h:
  19445. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19446. We can now use GET command in http proxy.
  19447. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19448. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19449. that splits slowest segment of SegmentMan::commands vector.
  19450. This is the default split algorithm of aria2.
  19451. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19452. that splits first segment of SegmentMan::commands vector.
  19453. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19454. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19455. * Segment.h:
  19456. * SegmentMan.cc: Added speed field to Segment.h
  19457. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19458. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19459. * message.h: Change file size related %d to %lld.
  19460. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19461. * FtpInitiateConnectionCommand.{h,cc}:
  19462. * FtpNegotiationCommand.{h,cc}:
  19463. * FtpDownloadCommand.{h,cc}:
  19464. * FtpConnection.{h,cc}: Added FTP support
  19465. * SimpleLogger.cc: Log message now includes time information.
  19466. * main.cc: The value of --http-auth-scheme option is chagned from
  19467. 'BASIC' to 'basic'
  19468. * main.cc: Added --timeout command-line option.
  19469. * main.cc: Added --min-segment-size command-line option.
  19470. * main.cc: Added --max-retries command-line option.
  19471. * prefs.h: option string constants are now defined in prefs.h
  19472. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19473. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19474. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19475. with version 0.1.0's one.
  19476. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19477. * configure.in: Added --enable-ssl option to configure script.
  19478. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19479. cannot permit absoluteURI as Request-URI.
  19480. * HttpConnection.cc: Added Referer support.
  19481. * main.cc: Added referer command-line option.
  19482. * main.cc: Added rety-wait command-line option.
  19483. * Exception.h: Fixed formating bug in Exception::setMsg()
  19484. * SocketCore.{h,cc}:
  19485. * Socket.{h, cc}:
  19486. * Request.cc:
  19487. * InitiateConnectionCommandFactory.cc:
  19488. * HttpRequestCommand.cc: Added HTTPS support.
  19489. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19490. for SocketCore.
  19491. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19492. size is wrong
  19493. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19494. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19495. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19496. * Release 0.1.0