ChangeLog 715 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131
  1. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. For LPD sockets, bind IN_ADDRANY because binding multicast address
  3. fails under Windows.
  4. * src/LpdMessageReceiver.cc
  5. * test/LpdMessageDispatcherTest.cc
  6. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Fixed the bug that error message is not propagated to Exception.
  8. * src/SocketCore.cc
  9. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Documented --bt-lpd-interface option in man page.
  11. * doc/aria2c.1.txt
  12. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Bump up version number to 1.9.0
  14. * configure.ac
  15. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Fixed the bug that FillRequestGroupCommand is not invoked when
  17. RequestGroupMan::createInitialCommand() creates no Command object.
  18. * src/FillRequestGroupCommand.cc
  19. * src/RequestGroupMan.cc
  20. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added debug logs.
  22. * src/FileEntry.cc
  23. * src/SegmentMan.cc
  24. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Fixed unit test error with mingw32 build.
  26. * test/LpdMessageReceiverTest.cc
  27. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Updated automake-1.11.1
  29. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Fixed compile error and unit test error without openssl and
  31. gnutls.
  32. * src/MetalinkParserController.cc
  33. * test/MetalinkProcessorTest.cc
  34. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Fixed unitest fails if openssl doesn't support sha-256.
  36. * src/MetalinkParserStateV4Impl.cc
  37. * test/MetalinkProcessorTest.cc
  38. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Wait until message arrives(again)
  40. * test/LpdMessageReceiverTest.cc
  41. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Added missing wallclock.h to SRCS.
  43. * src/Makefile.am
  44. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Fixed compile error with --disable-bittorrent
  46. * test/Metalink2RequestGroupTest.cc
  47. * test/MetalinkParserControllerTest.cc
  48. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added --reuse-uri option. This option has existed quite long, but
  50. been hidden.
  51. * doc/aria2c.1.txt
  52. * src/OptionHandlerFactory.cc
  53. * src/usage_text.h
  54. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Ignore filename parameter if it contains directory traversal
  56. directives.
  57. * src/util.cc
  58. * test/UtilTest.cc
  59. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. urldecode -> percentDecode
  61. * src/FtpConnection.cc
  62. * src/FtpNegotiationCommand.cc
  63. * src/HttpResponse.cc
  64. * src/Request.cc
  65. * src/magnet.cc
  66. * src/util.cc
  67. * src/util.h
  68. * test/UtilTest.cc
  69. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. urlencode -> percentEncode,
  71. torrentUrlencode -> torrentPercentEncode
  72. * src/BtHandshakeMessage.cc
  73. * src/BtHandshakeMessageValidator.h
  74. * src/DHTMessageFactoryImpl.cc
  75. * src/DefaultBtAnnounce.cc
  76. * src/HandshakeExtensionMessage.cc
  77. * src/HttpRequest.cc
  78. * src/XmlRpcMethodImpl.cc
  79. * src/bittorrent_helper.cc
  80. * src/util.cc
  81. * src/util.h
  82. * test/DHTAnnouncePeerMessageTest.cc
  83. * test/DHTGetPeersMessageTest.cc
  84. * test/DHTGetPeersReplyMessageTest.cc
  85. * test/UTPexExtensionMessageTest.cc
  86. * test/UtilTest.cc
  87. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Fixed the bug that filename is percent encoded where it must be
  89. percent decoded in sendMdtm().
  90. * src/FtpConnection.cc
  91. * test/FtpConnectionTest.cc
  92. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. url -> uri in Request class.
  94. * src/AbstractCommand.cc
  95. * src/AdaptiveURISelector.cc
  96. * src/DefaultBtAnnounce.cc
  97. * src/FeedbackURISelector.cc
  98. * src/FileEntry.cc
  99. * src/FileEntry.h
  100. * src/HttpRequest.h
  101. * src/HttpResponse.cc
  102. * src/InitiateConnectionCommandFactory.cc
  103. * src/Metalink2RequestGroup.cc
  104. * src/OptionHandlerImpl.h
  105. * src/ProtocolDetector.cc
  106. * src/Request.cc
  107. * src/Request.h
  108. * src/XmlRpcMethodImpl.cc
  109. * test/AuthConfigFactoryTest.cc
  110. * test/FtpConnectionTest.cc
  111. * test/HttpRequestTest.cc
  112. * test/HttpResponseTest.cc
  113. * test/RequestTest.cc
  114. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Added getServers XML-RPC method.
  116. * doc/aria2c.1.txt
  117. * src/FileEntry.h
  118. * src/XmlRpcMethodFactory.cc
  119. * src/XmlRpcMethodImpl.cc
  120. * src/XmlRpcMethodImpl.h
  121. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Pool request when download finished.
  123. * src/DownloadCommand.cc
  124. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  126. 1-based.
  127. * doc/aria2c.1.txt
  128. * src/XmlRpcMethodImpl.cc
  129. * test/XmlRpcMethodTest.cc
  130. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Call RequestGroupMan::requestQueueCheck() when
  132. max-concurrent-downloads option is changed or new downloads are
  133. added/inserted into reserved list.
  134. * src/RequestGroupMan.cc
  135. * src/XmlRpcMethodImpl.cc
  136. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Added aria2.forceRemove XML-RPC method.
  138. * doc/aria2c.1.txt
  139. * src/XmlRpcMethodFactory.cc
  140. * src/XmlRpcMethodImpl.cc
  141. * src/XmlRpcMethodImpl.h
  142. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Added debug log.
  144. * src/AbstractCommand.cc
  145. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Create CreateRequestCommand to the number of -s/-C when URIs are
  147. added by XML-RPC.
  148. * src/RequestGroup.cc
  149. * src/RequestGroup.h
  150. * src/XmlRpcMethodImpl.cc
  151. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Added 'status' key to the response of getUri XML-RPC method.
  153. * doc/aria2c.1.txt
  154. * src/XmlRpcMethodImpl.cc
  155. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Replaced Time::reset() call with assigning of global::wallclock.
  157. * src/BtLeecherStateChoke.cc
  158. * src/BtSeederStateChoke.cc
  159. * src/PeerSessionResource.cc
  160. * src/RequestSlot.cc
  161. * src/ServerStat.cc
  162. * src/SpeedCalc.cc
  163. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Added changeUri XML-RPC method. This method removes/adds URIs
  165. dynamically.
  166. * doc/aria2c.1.txt
  167. * src/AbstractCommand.cc
  168. * src/DownloadContext.cc
  169. * src/DownloadContext.h
  170. * src/FileEntry.cc
  171. * src/FileEntry.h
  172. * src/Request.cc
  173. * src/Request.h
  174. * src/RequestGroup.cc
  175. * src/RequestGroupMan.cc
  176. * src/XmlRpcMethodFactory.cc
  177. * src/XmlRpcMethodImpl.cc
  178. * src/XmlRpcMethodImpl.h
  179. * test/FileEntryTest.cc
  180. * test/XmlRpcMethodTest.cc
  181. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Rewritten copy ctor of RequestSlot to use initialization list.
  183. * src/RequestSlot.h
  184. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Added Time global::wallclock to cache "current time" to reduce the
  186. call gettimeofday(). Global variables are now in namespace global.
  187. * src/AbstractCommand.cc
  188. * src/ActivePeerConnectionCommand.cc
  189. * src/AdaptiveURISelector.cc
  190. * src/BtLeecherStateChoke.cc
  191. * src/BtLeecherStateChoke.h
  192. * src/BtSeederStateChoke.cc
  193. * src/BtSeederStateChoke.h
  194. * src/BtStopDownloadCommand.cc
  195. * src/ConsoleStatCalc.cc
  196. * src/DHTBucket.cc
  197. * src/DHTGetPeersCommand.cc
  198. * src/DHTMessageTrackerEntry.cc
  199. * src/DHTNode.cc
  200. * src/DHTPeerAnnounceEntry.cc
  201. * src/DHTPeerAnnounceStorage.cc
  202. * src/DHTSetup.cc
  203. * src/DefaultBtAnnounce.cc
  204. * src/DefaultBtInteractive.cc
  205. * src/DefaultBtMessageDispatcher.cc
  206. * src/DefaultPeerStorage.cc
  207. * src/DefaultPieceStorage.cc
  208. * src/DownloadCommand.cc
  209. * src/DownloadEngine.cc
  210. * src/FileEntry.cc
  211. * src/HttpServerBodyCommand.cc
  212. * src/HttpServerCommand.cc
  213. * src/HttpServerResponseCommand.cc
  214. * src/LpdMessageDispatcher.cc
  215. * src/MultiUrlRequestInfo.cc
  216. * src/Peer.cc
  217. * src/Peer.h
  218. * src/PeerAbstractCommand.cc
  219. * src/PeerStat.h
  220. * src/RequestSlot.cc
  221. * src/RequestSlot.h
  222. * src/SegmentMan.cc
  223. * src/ServerStatMan.cc
  224. * src/SleepCommand.cc
  225. * src/SpeedCalc.cc
  226. * src/SpeedCalc.h
  227. * src/TimeA2.cc
  228. * src/TimeA2.h
  229. * src/TimeBasedCommand.cc
  230. * src/TimeSeedCriteria.h
  231. * src/UTMetadataRequestTracker.h
  232. * src/UTPexExtensionMessage.cc
  233. * src/wallclock.h
  234. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Fixed the bug that util::itos(INT64_MIN) fails.
  236. * src/util.cc
  237. * src/util.h
  238. * test/UtilTest.cc
  239. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Fixed memory leak in SocketBuffer when _bufq is not empty when
  241. SocketBuffer is deleted. Added BufEntry constructor and deleted
  242. static factory functions.
  243. * src/SocketBuffer.cc
  244. * src/SocketBuffer.h
  245. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  247. queue maintenance is requested by RequestGroup to avoid to call
  248. the function unnecessarily.
  249. * src/FillRequestGroupCommand.cc
  250. * src/RequestGroup.cc
  251. * src/RequestGroup.h
  252. * src/RequestGroupMan.cc
  253. * src/RequestGroupMan.h
  254. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Don't use hash for Peer::id. Simple concatenation of ip address
  256. and port is enough.
  257. * src/Peer.cc
  258. * test/PeerTest.cc
  259. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Enclosed log of DHTMessage::toString() with Logger::info().
  261. * src/DHTMessageDispatcherImpl.cc
  262. * src/DHTMessageReceiver.cc
  263. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Rewritten util::toHex().
  265. * src/util.cc
  266. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Removed SocketBuffer::feedAndSend(). Renamed
  268. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  269. * src/FtpConnection.cc
  270. * src/HttpConnection.cc
  271. * src/HttpServer.cc
  272. * src/MSEHandshake.cc
  273. * src/PeerConnection.cc
  274. * src/SocketBuffer.cc
  275. * src/SocketBuffer.h
  276. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Removed unused PeerConnection::sendMessage(). Updated doc.
  278. * src/PeerConnection.cc
  279. * src/PeerConnection.h
  280. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Reduced copying/std::string instantiation in sending/receiving
  282. BitTorrent messages.
  283. * src/BtBitfieldMessage.cc
  284. * src/BtBitfieldMessage.h
  285. * src/BtExtendedMessage.cc
  286. * src/BtExtendedMessage.h
  287. * src/BtHandshakeMessage.cc
  288. * src/BtHandshakeMessage.h
  289. * src/BtKeepAliveMessage.cc
  290. * src/BtKeepAliveMessage.h
  291. * src/BtPieceMessage.cc
  292. * src/BtPieceMessage.h
  293. * src/BtPortMessage.cc
  294. * src/BtPortMessage.h
  295. * src/BtUnchokeMessage.h
  296. * src/DefaultBtMessageReceiver.cc
  297. * src/IndexBtMessage.cc
  298. * src/IndexBtMessage.h
  299. * src/PeerConnection.cc
  300. * src/PeerConnection.h
  301. * src/RangeBtMessage.cc
  302. * src/RangeBtMessage.h
  303. * src/SimpleBtMessage.cc
  304. * src/SimpleBtMessage.h
  305. * src/SocketBuffer.cc
  306. * src/SocketBuffer.h
  307. * src/ZeroBtMessage.cc
  308. * src/ZeroBtMessage.h
  309. * test/BtAllowedFastMessageTest.cc
  310. * test/BtBitfieldMessageTest.cc
  311. * test/BtCancelMessageTest.cc
  312. * test/BtChokeMessageTest.cc
  313. * test/BtExtendedMessageTest.cc
  314. * test/BtHandshakeMessageTest.cc
  315. * test/BtHaveAllMessageTest.cc
  316. * test/BtHaveMessageTest.cc
  317. * test/BtHaveNoneMessageTest.cc
  318. * test/BtInterestedMessageTest.cc
  319. * test/BtKeepAliveMessageTest.cc
  320. * test/BtNotInterestedMessageTest.cc
  321. * test/BtPieceMessageTest.cc
  322. * test/BtPortMessageTest.cc
  323. * test/BtRejectMessageTest.cc
  324. * test/BtRequestMessageTest.cc
  325. * test/BtSuggestPieceMessageTest.cc
  326. * test/BtUnchokeMessageTest.cc
  327. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Rewritten SocketBuffer. Old implementation uses single std::string
  329. to store data and erase sent data, which is costly. New
  330. implementation uses deque to hold each data to avoid to mutate
  331. string.
  332. * src/SocketBuffer.cc
  333. * src/SocketBuffer.h
  334. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Removed unused FileEntry::extracted
  336. * src/FileEntry.cc
  337. * src/FileEntry.h
  338. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Wait until data arrives.
  340. * test/LpdMessageReceiverTest.cc
  341. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. In Metalink4, if size element contains invalid size, discard whole
  343. document. Added strict hash value check for metalink3/4.
  344. * src/MetalinkParserController.cc
  345. * src/MetalinkParserStateMachine.cc
  346. * src/MetalinkParserStateMachine.h
  347. * src/MetalinkParserStateV3Impl.cc
  348. * src/MetalinkParserStateV4Impl.cc
  349. * src/util.cc
  350. * src/util.h
  351. * test/MetalinkParserControllerTest.cc
  352. * test/MetalinkProcessorTest.cc
  353. * test/metalink4.xml
  354. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Added strict attribute validation for metalink4. When
  356. specification violation is found, discard the whole document.
  357. * src/ExpatMetalinkProcessor.cc
  358. * src/MetalinkParserStateMachine.cc
  359. * src/MetalinkParserStateMachine.h
  360. * src/MetalinkParserStateV4Impl.cc
  361. * src/XML2SAXMetalinkProcessor.cc
  362. * test/Makefile.am
  363. * test/MetalinkProcessorTest.cc
  364. * test/metalink4-attrs.xml: Removed
  365. * test/metalink4-dirtraversal.xml: Removed
  366. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added test for Metaurl transaction.
  368. * src/MetalinkParserController.cc
  369. * test/MetalinkParserControllerTest.cc
  370. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Avoid costly BtMessage::toString() if info level log is not
  372. required.
  373. * src/DefaultBtInteractive.cc
  374. * src/Logger.h
  375. * src/SimpleBtMessage.cc
  376. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Reserved vector elements based on profiler results.
  378. * src/DefaultBtInteractive.cc
  379. * src/DefaultBtProgressInfoFile.cc
  380. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Avoid to calculate end() iterator in each loop. std::deque is
  382. particularly slow. Make sure that recalculate end iterator if
  383. element is erased during loop.
  384. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Use vector instead of deque for containers which is used for
  386. mostly read-only purpose.
  387. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Fixed typo
  389. * test/Makefile.am
  390. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  392. * test/Makefile.am
  393. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Small optimization: In updateTransferStatFor(), don't search peer
  395. ID twice.
  396. * src/DefaultPeerStorage.cc
  397. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Use vector instead of deque for MetalinkEntry and MetalinkResource
  399. objects.
  400. * src/Metalink2RequestGroup.cc
  401. * src/Metalink2RequestGroup.h
  402. * src/MetalinkEntry.cc
  403. * src/MetalinkEntry.h
  404. * src/MetalinkHelper.cc
  405. * src/MetalinkHelper.h
  406. * src/Metalinker.cc
  407. * src/Metalinker.h
  408. * src/main.cc
  409. * test/MetalinkEntryTest.cc
  410. * test/MetalinkHelperTest.cc
  411. * test/MetalinkProcessorTest.cc
  412. * test/MetalinkerTest.cc
  413. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Fixed the bug that grouped FileEntry objects are not used but
  415. instead all FileEntry objects are used for each metaurl group.
  416. * src/Metalink2RequestGroup.cc
  417. * test/Metalink2RequestGroupTest.cc
  418. * test/metalink4-groupbymetaurl.xml
  419. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Use vector instead of deque for ChunkChecksum.
  421. * src/ChunkChecksum.h
  422. * src/MetalinkParserController.cc
  423. * src/MetalinkParserController.h
  424. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  426. algorithm in Metalink properly
  427. * src/MetalinkParserController.cc
  428. * src/MetalinkParserController.h
  429. * src/messageDigest.cc
  430. * src/messageDigest.h
  431. * test/MetalinkProcessorTest.cc
  432. * test/metalink4.xml
  433. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Replaced null or control characters in file path with '_'. For
  435. MinGW32 build, additional characters which is not allowed in
  436. Windows kernel are also replaced. util::detectDirTraversal() now
  437. returns true if given string contains null or control characters.
  438. * src/DownloadContext.cc
  439. * src/DownloadContext.h
  440. * src/Metalink2RequestGroup.cc
  441. * src/MetalinkParserController.cc
  442. * src/bittorrent_helper.cc
  443. * src/util.cc
  444. * src/util.h
  445. * test/UtilTest.cc
  446. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Discard metalink:file if its name attribute is empty string.
  448. Removed FileEntry instantiation in
  449. MetalinkParserController::setFileLengthOfEntry()
  450. * src/MetalinkParserController.cc
  451. * src/MetalinkParserStateV3Impl.cc
  452. * src/MetalinkParserStateV4Impl.cc
  453. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Discard torrent file if path data in it contains directory
  455. traversal directives. Discard metalink:file element in Metalink3
  456. format if its name attribute contains directory traversal
  457. directives. Ignore name attribute of metalink:signature element
  458. in Metalink3 format if it contains directory traversal directives.
  459. * src/MetalinkParserStateV3Impl.cc
  460. * src/bittorrent_helper.cc
  461. * src/message.h
  462. * test/BittorrentHelperTest.cc
  463. * test/Makefile.am
  464. * test/MetalinkProcessorTest.cc
  465. * test/metalink3-dirtraversal.xml
  466. * test/test.xml
  467. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Removed useless comment
  469. * src/MetalinkParserStateV4Impl.cc
  470. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Supported name attribute of metalink::metaurl element and
  472. multi-file torrent with Metalink4. Files with same metaurl are
  473. grouped and downloaded in one RequestGroup.
  474. * src/BtDependency.cc
  475. * src/FileEntry.h
  476. * src/Metalink2RequestGroup.cc
  477. * src/Metalink2RequestGroup.h
  478. * src/MetalinkEntry.cc
  479. * src/MetalinkEntry.h
  480. * src/MetalinkHelper.cc
  481. * src/MetalinkHelper.h
  482. * src/MetalinkMetaurl.cc
  483. * src/MetalinkMetaurl.h
  484. * src/MetalinkParserController.cc
  485. * src/RequestGroup.cc
  486. * src/RequestGroup.h
  487. * src/bittorrent_helper.cc
  488. * test/BittorrentHelperTest.cc
  489. * test/BtDependencyTest.cc
  490. * test/MetalinkHelperTest.cc
  491. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  493. * src/MetalinkMetaurl.h
  494. * src/MetalinkParserController.cc
  495. * src/MetalinkParserController.h
  496. * src/MetalinkParserStateMachine.cc
  497. * src/MetalinkParserStateMachine.h
  498. * src/MetalinkParserStateV4Impl.cc
  499. * test/MetalinkProcessorTest.cc
  500. * test/metalink4-dirtraversal.xml
  501. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  503. element.
  504. * src/Makefile.am
  505. * src/Metalink2RequestGroup.cc
  506. * src/MetalinkEntry.cc
  507. * src/MetalinkEntry.h
  508. * src/MetalinkMetaurl.cc
  509. * src/MetalinkMetaurl.h
  510. * src/MetalinkParserController.cc
  511. * src/MetalinkParserController.h
  512. * src/MetalinkParserStateMachine.cc
  513. * src/MetalinkParserStateMachine.h
  514. * src/MetalinkParserStateV4Impl.cc
  515. * src/MetalinkParserStateV4Impl.h
  516. * test/MetalinkProcessorTest.cc
  517. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added Metalink4 support. Currently, name attribute of
  519. metalink::metaurl is ignored and multi-file torrent cannot be used
  520. with Metalink4.
  521. * doc/aria2c.1.txt
  522. * src/DownloadHandlerConstants.cc
  523. * src/ExpatMetalinkProcessor.cc
  524. * src/Makefile.am
  525. * src/Metalink2RequestGroup.cc
  526. * src/MetalinkEntry.cc
  527. * src/MetalinkEntry.h
  528. * src/MetalinkParserController.cc
  529. * src/MetalinkParserController.h
  530. * src/MetalinkParserState.h
  531. * src/MetalinkParserStateImpl.cc
  532. * src/MetalinkParserStateImpl.h
  533. * src/MetalinkParserStateMachine.cc
  534. * src/MetalinkParserStateMachine.h
  535. * src/MetalinkParserStateV3Impl.cc
  536. * src/MetalinkParserStateV3Impl.h
  537. * src/MetalinkParserStateV4Impl.cc
  538. * src/MetalinkParserStateV4Impl.h
  539. * src/MetalinkResource.cc
  540. * src/MetalinkResource.h
  541. * src/Metalinker.cc
  542. * src/RequestGroup.cc
  543. * src/RequestGroup.h
  544. * src/XML2SAXMetalinkProcessor.cc
  545. * src/messageDigest.cc
  546. * src/util.cc
  547. * src/util.h
  548. * test/Makefile.am
  549. * test/MetalinkEntryTest.cc
  550. * test/MetalinkParserControllerTest.cc
  551. * test/MetalinkProcessorTest.cc
  552. * test/MetalinkerTest.cc
  553. * test/UtilTest.cc
  554. * test/metalink4-attrs.xml
  555. * test/metalink4-dirtraversal.xml
  556. * test/metalink4.xml
  557. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Added aiFlags argument to getInterfaceAddress(). Use
  559. AI_NUMERICHOST to find interface specified using
  560. --bt-lpd-interface option to avoid time-consuming address lookup.
  561. * src/BtSetup.cc
  562. * src/SocketCore.cc
  563. * src/SocketCore.h
  564. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  566. is bad in LpdMessageReceiver.
  567. * src/LpdMessage.h
  568. * src/LpdMessageReceiver.cc
  569. * src/LpdMessageReceiver.h
  570. * src/LpdReceiveMessageCommand.cc
  571. * test/LpdMessageReceiverTest.cc
  572. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Added --bt-lpd-interface option to specify the interface to use
  574. for Local Peer Discovery. LpdMessageDispatcher object now has its
  575. own socket. LpdMessageReceiver's socket is binded to multicast
  576. address to only receive multicast packets.
  577. * src/BtSetup.cc
  578. * src/LpdMessageDispatcher.cc
  579. * src/LpdMessageDispatcher.h
  580. * src/LpdMessageReceiver.cc
  581. * src/LpdMessageReceiver.h
  582. * src/LpdReceiveMessageCommand.cc
  583. * src/LpdReceiveMessageCommand.h
  584. * src/OptionHandlerFactory.cc
  585. * src/SocketCore.cc
  586. * src/SocketCore.h
  587. * src/prefs.cc
  588. * src/prefs.h
  589. * src/usage_text.h
  590. * test/LpdMessageDispatcherTest.cc
  591. * test/LpdMessageReceiverTest.cc
  592. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Put the portion of code to get interface addresses in
  594. SocketCore::bindAddress() into newly added getInterfaceAddress().
  595. * src/SocketCore.cc
  596. * src/SocketCore.h
  597. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Rewritten util::parseInt() and parseUInt()
  599. * src/util.cc
  600. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Fixed compile error with mingw32 cross compiler. Defined
  602. a2_sockopt_t as void* for the target systems other than mingw32.
  603. * src/SocketCore.cc
  604. * src/a2netcompat.h
  605. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Removed 'always true' condition
  607. * src/util.cc
  608. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Documented --bt-enable-lpd option in man page.
  610. * doc/aria2c.1.txt
  611. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Added Local Peer Discovery. It is disabled by default. Use
  613. --bt-enable-lpd to enable the function.
  614. * src/BtConstants.h
  615. * src/BtSetup.cc
  616. * src/LpdDispatchMessageCommand.cc
  617. * src/LpdDispatchMessageCommand.h
  618. * src/LpdMessage.h
  619. * src/LpdMessageDispatcher.cc
  620. * src/LpdMessageDispatcher.h
  621. * src/LpdMessageReceiver.cc
  622. * src/LpdMessageReceiver.h
  623. * src/LpdReceiveMessageCommand.cc
  624. * src/LpdReceiveMessageCommand.h
  625. * src/Makefile.am
  626. * src/OptionHandlerFactory.cc
  627. * src/Peer.cc
  628. * src/Peer.h
  629. * src/PeerInteractionCommand.cc
  630. * src/SocketCore.cc
  631. * src/SocketCore.h
  632. * src/prefs.cc
  633. * src/prefs.h
  634. * src/usage_text.h
  635. * src/util.cc
  636. * src/util.h
  637. * test/LpdMessageDispatcherTest.cc
  638. * test/LpdMessageReceiverTest.cc
  639. * test/Makefile.am
  640. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. User-defined custom request headers specified by --header option
  642. now override builtin headers if they have same name.
  643. * src/HttpRequest.cc
  644. * src/HttpRequest.h
  645. * test/HttpRequestTest.cc
  646. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Rewirtten util::isNumber()
  648. * src/util.cc
  649. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  651. because without it localized error messages are not printed
  652. correctly.
  653. * src/Platform.cc
  654. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Added unit tests for util::getContentDispositionFilename() from
  656. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  657. tests are passed.
  658. * src/util.cc
  659. * test/UtilTest.cc
  660. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  662. util.cc
  663. * src/Platform.cc
  664. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Support RFC2231 "Parameter Value Character Set and Language
  666. Information" in Content-Disposition header.
  667. * src/HttpResponse.cc
  668. * src/util.cc
  669. * src/util.h
  670. * test/UtilTest.cc
  671. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Print CXXFLAGS
  673. * configure.ac
  674. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Small optimization for A2_WOULDBLOCK(e)
  676. * src/SocketCore.cc
  677. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Removed test file
  679. * test/CookieStorageTest.cc
  680. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Check both EAGAIN and EWOULDBLOCK
  682. * src/SocketCore.cc
  683. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Removed ret == 0 checking for SSL_read(), SSL_write() and
  685. SSL_peek() because the checks are done in the caller. In
  686. SocketBuffer::send(), throw exception if nothing could be written
  687. and socket error was not EWOULDBLOCK
  688. * src/SocketBuffer.cc
  689. * src/SocketCore.cc
  690. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Fixed error code handling so that it can handle Winsock2 error
  692. code.
  693. * src/SocketCore.cc
  694. * src/SocketCore.h
  695. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Bump up version number to 1.9.0a
  697. * configure.ac
  698. * doc/aria2c.1.txt
  699. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Fixed the bug that aria2 doesn't handle return value if error
  701. occurred before download begins.
  702. * src/MultiUrlRequestInfo.cc
  703. * src/main.cc
  704. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Removed SegmentManFactory class.
  706. * src/AbstractSegmentManFactory.h
  707. * src/DefaultSegmentManFactory.cc
  708. * src/DefaultSegmentManFactory.h
  709. * src/Makefile.am
  710. * src/RequestGroup.cc
  711. * src/RequestGroup.h
  712. * src/SegmentManFactory.h
  713. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Destroyed digest context after getting calculated hash.
  715. * src/Piece.cc
  716. * src/Piece.h
  717. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Removed BitfieldManFactory class.
  719. * src/BitfieldManFactory.cc
  720. * src/BitfieldManFactory.h
  721. * src/DefaultPieceStorage.cc
  722. * src/Makefile.am
  723. * src/PeerSessionResource.cc
  724. * src/Piece.cc
  725. * src/main.cc
  726. * test/DefaultPieceStorageTest.cc
  727. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Removed unused methods from BitfieldMan class. Moved
  729. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  730. class.
  731. * src/BitfieldMan.cc
  732. * src/BitfieldMan.h
  733. * src/BitfieldManFactory.cc
  734. * src/BitfieldManFactory.h
  735. * src/bitfield.h
  736. * src/main.cc
  737. * test/BitfieldManTest.cc
  738. * test/DefaultPieceStorageTest.cc
  739. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Moved getFirstNMissingIndex to bitfield.h and made it return the
  741. number of appended indexes.
  742. * src/BitfieldMan.cc
  743. * src/BitfieldMan.h
  744. * src/Piece.cc
  745. * src/Piece.h
  746. * src/bitfield.h
  747. * test/BitfieldManTest.cc
  748. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Added more tests.
  750. * test/BitfieldManTest.cc
  751. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  753. unused block indexes at once instead of calling
  754. getFirstMissingUnusedIndex() multiple times. Made use of it in
  755. Piece class and DefaultBtRequestFactory class via Piece class.
  756. * src/BitfieldMan.cc
  757. * src/BitfieldMan.h
  758. * src/DefaultBtRequestFactory.cc
  759. * src/Piece.cc
  760. * src/Piece.h
  761. * test/BitfieldManTest.cc
  762. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Use std::make_pair(...)
  764. * src/DHTMessageTracker.cc
  765. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Use std::make_pair(...)
  767. * src/bittorrent_helper.cc
  768. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. urlencode(removeFragment(...)) in parseUrl(...)
  770. * src/Request.cc
  771. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  773. * src/AbstractCommand.cc
  774. * src/AdaptiveURISelector.cc
  775. * src/BtPieceMessage.cc
  776. * src/BtPortMessage.cc
  777. * src/CreateRequestCommand.cc
  778. * src/DHTAbstractNodeLookupTask.cc
  779. * src/DHTBucket.cc
  780. * src/DHTGetPeersCommand.cc
  781. * src/DHTMessageDispatcherImpl.cc
  782. * src/DHTMessageFactoryImpl.cc
  783. * src/DHTMessageTracker.cc
  784. * src/DHTPeerAnnounceStorage.cc
  785. * src/DHTRoutingTable.cc
  786. * src/DHTSetup.cc
  787. * src/DefaultBtAnnounce.cc
  788. * src/DefaultBtInteractive.cc
  789. * src/DefaultBtMessageDispatcher.cc
  790. * src/DefaultBtMessageReceiver.cc
  791. * src/DefaultBtProgressInfoFile.cc
  792. * src/DefaultBtRequestFactory.cc
  793. * src/DefaultPeerStorage.cc
  794. * src/DefaultPieceStorage.cc
  795. * src/DownloadCommand.cc
  796. * src/DownloadEngine.cc
  797. * src/EpollEventPoll.cc
  798. * src/FileAllocationCommand.cc
  799. * src/FileEntry.cc
  800. * src/FtpNegotiationCommand.cc
  801. * src/HandshakeExtensionMessage.cc
  802. * src/HttpListenCommand.cc
  803. * src/HttpServer.cc
  804. * src/HttpSkipResponseCommand.cc
  805. * src/IteratableChunkChecksumValidator.cc
  806. * src/Logger.h
  807. * src/MSEHandshake.cc
  808. * src/MetalinkPostDownloadHandler.cc
  809. * src/MultiDiskAdaptor.cc
  810. * src/PeerAbstractCommand.cc
  811. * src/PeerConnection.cc
  812. * src/PeerListenCommand.cc
  813. * src/PeerReceiveHandshakeCommand.cc
  814. * src/RequestGroup.cc
  815. * src/RequestGroupMan.cc
  816. * src/SegmentMan.cc
  817. * src/SelectEventPoll.cc
  818. * src/ServerStat.cc
  819. * src/SimpleBtMessage.cc
  820. * src/SocketCore.cc
  821. * src/TrackerWatcherCommand.cc
  822. * src/UTMetadataDataExtensionMessage.cc
  823. * src/UTMetadataRequestFactory.cc
  824. * src/UTMetadataRequestTracker.cc
  825. * src/XmlRpcMethod.cc
  826. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Changed log level from debug to info
  828. * src/BtDependency.cc
  829. * src/BtPostDownloadHandler.cc
  830. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Removed unused PeerSessionResource::_latency.
  832. * src/BtConstants.h
  833. * src/BtPieceMessage.cc
  834. * src/Peer.cc
  835. * src/Peer.h
  836. * src/PeerSessionResource.cc
  837. * src/PeerSessionResource.h
  838. * test/PeerSessionResourceTest.cc
  839. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Fixed the bug that --file-allocation=falloc doesn't work with
  841. single file download.
  842. * src/AbstractSingleDiskAdaptor.cc
  843. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Release 1.8.2
  845. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added Portuguese translation. Updated Ukrainian and Spanish
  847. translation. Thanks to all translators.
  848. * po/LINGUAS
  849. * po/es.po
  850. * po/pt.po
  851. * po/uk.po
  852. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Remove fragment from redirected URI.
  854. * src/Request.cc
  855. * test/RequestTest.cc
  856. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Updated po templates.
  858. * po/aria2.pot
  859. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Drop legacy ifdef for ares support and code cleanup.
  861. * src/AsyncNameResolver.cc
  862. * src/AsyncNameResolver.h
  863. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Call ares_library_init and ares_library_cleanup if they are
  865. available. Some code cleanups.
  866. * src/Platform.cc
  867. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Call ares_process_fd() each time after epoll to handle timeout.
  869. * src/EpollEventPoll.cc
  870. * src/EpollEventPoll.h
  871. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Suppressed type-cast compiler warning
  873. * src/CookieStorage.cc
  874. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Fixed compile error on Mac OS X.
  876. * src/CookieStorage.h
  877. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Removed cookietest.txt from Makefile.am
  879. * test/Makefile.am
  880. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Updated version number in man page.
  882. * doc/aria2c.1.txt
  883. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Rewritten help message for --allow-overwrite option.
  885. * doc/aria2c.1.txt
  886. * src/usage_text.h
  887. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Added bittorrent key to the response of tellStatus XML-RPC method.
  889. The associated value of the key is a struct and contains data
  890. retrieved from .torrent file, such as name, announce-list,
  891. comment, etc.
  892. * doc/aria2c.1.txt
  893. * src/XmlRpcMethodImpl.cc
  894. * src/XmlRpcMethodImpl.h
  895. * test/XmlRpcMethodTest.cc
  896. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Removed parse(std::istream&) and parse(const std::string&) from
  898. CookieParser.
  899. * src/CookieParser.cc
  900. * src/CookieParser.h
  901. * test/CookieParserTest.cc
  902. * test/cookietest.txt: Removed
  903. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Fixed the bug that cookie for domain a.b.c is not sent to the host
  905. a.b.c if no other cookies are stored. Fixed the bug that
  906. Cookie::markOriginServerOnly() is not called when cookies are
  907. loaded from file/sqlite3 database.
  908. * src/Cookie.h
  909. * src/CookieStorage.cc
  910. * src/NsCookieParser.cc
  911. * src/Sqlite3MozCookieParser.cc
  912. * test/CookieStorageTest.cc
  913. * test/NsCookieParserTest.cc
  914. * test/Sqlite3MozCookieParserTest.cc
  915. * test/cookies.sqlite
  916. * test/nscookietest.txt
  917. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  919. both _pieceStorage and _segmentMan are initialized or they are
  920. not.
  921. * src/RequestGroup.cc
  922. * src/RequestGroup.h
  923. * test/BtDependencyTest.cc
  924. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Bump up version number to 1.8.2
  926. * configure.ac
  927. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Replaced "." with A2STR::DOT_C
  929. * src/AbstractCommand.cc
  930. * src/Cookie.cc
  931. * src/DownloadContext.cc
  932. * src/FtpConnection.cc
  933. * src/RequestGroup.cc
  934. * src/util.cc
  935. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Replaced isNumberAndDotsNotation() with isNumericHost().
  937. isNumericHost() can handle IPv6 address.
  938. * src/Cookie.cc
  939. * src/CookieStorage.cc
  940. * src/util.cc
  941. * src/util.h
  942. * test/CookieTest.cc
  943. * test/UtilTest.cc
  944. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Included A2STR.h
  946. * src/CookieStorage.cc
  947. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Rewritten Cookie storage.
  949. * src/Cookie.cc
  950. * src/Cookie.h
  951. * src/CookieParser.cc
  952. * src/CookieStorage.cc
  953. * src/CookieStorage.h
  954. * src/a2functional.h
  955. * test/CookieParserTest.cc
  956. * test/CookieStorageTest.cc
  957. * test/CookieTest.cc
  958. * test/HttpResponseTest.cc
  959. * test/TestUtil.h
  960. * test/a2functionalTest.cc
  961. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Handle redirected URI which is not properly percent encoded.
  963. * src/Request.cc
  964. * test/RequestTest.cc
  965. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  967. not found' in the N times(N is where --max-file-not-found=N, N>0)
  968. in a row without single '200 OK' response.
  969. * src/RequestGroup.cc.
  970. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  972. readout by 80 characters in mingw32 build. Catch exception in
  973. DHTMessageReceiver::receiveMessage().
  974. * src/AbstractDiskWriter.cc
  975. * src/ConsoleStatCalc.cc
  976. * src/DHTMessageReceiver.cc
  977. * src/File.cc
  978. * src/RequestGroupMan.cc
  979. * src/a2io.h
  980. * test/FileTest.cc
  981. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Fixed compile error with intel compiler
  983. * src/XmlRpcMethodImpl.cc
  984. * src/XmlRpcMethodImpl.h
  985. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Release 1.8.1
  987. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Updated Swedish, Russian and Italian translations. Thanks to all
  989. translators.
  990. * po/it.po
  991. * po/ru.po
  992. * po/sv.po
  993. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Fixed broken OptionParser::findByName().
  995. * src/OptionParser.cc
  996. * test/OptionParserTest.cc
  997. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Fixed test error without BitTorrent support.
  999. * test/XmlRpcMethodTest.cc
  1000. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Fixed compile error without GNUTLS/OpenSSL.
  1002. * src/util.cc
  1003. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Changed compression level to Z_DEFAULT_COMPRESSION.
  1005. * src/GZipEncoder.cc
  1006. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added missing command line options: --http-no-cache,
  1008. --bt-save-metadata and --bt-metadata-only.
  1009. * doc/xmlrpc/aria2rpc
  1010. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1012. client accepts gzip content encoding.
  1013. * src/A2STR.cc
  1014. * src/A2STR.h
  1015. * src/GZipEncoder.cc
  1016. * src/GZipEncoder.h
  1017. * src/HttpHeader.cc
  1018. * src/HttpHeader.h
  1019. * src/HttpServer.cc
  1020. * src/HttpServer.h
  1021. * src/HttpServerBodyCommand.cc
  1022. * src/HttpServerCommand.cc
  1023. * src/Makefile.am
  1024. * src/XmlRpcResponse.cc
  1025. * src/XmlRpcResponse.h
  1026. * test/GZipEncoderTest.cc
  1027. * test/Makefile.am
  1028. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Added XML-RPC client sample code in Python.
  1030. * doc/aria2c.1.txt
  1031. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Updated po templates.
  1033. * po/aria2.pot
  1034. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Bump up version number to 1.8.1
  1036. * configure.ac
  1037. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Added version number to man page. Updated copyright year in man
  1039. page.
  1040. * doc/aria2c.1.txt
  1041. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Rewritten toTagString
  1043. * src/NameMatchOptionHandler.cc
  1044. * test/OptionHandlerTest.cc
  1045. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added dir and files key to the response struct of aria2.tellStatus
  1047. XML-RPC method. The value associated with files key is the list
  1048. of files. Its element is the same struct used in aria2.getFiles
  1049. XML-RPC method. Added uris key to the response struct of
  1050. aria2.getFiles XML-RPC method. The value associated with uris key
  1051. is the list of URIs. Its element is the same struct used in
  1052. aria2.getUris XML-RPC method.
  1053. * doc/aria2c.1.txt
  1054. * src/XmlRpcMethodImpl.cc
  1055. * test/XmlRpcMethodTest.cc
  1056. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1058. struct containing Session ID, which is generated each time when
  1059. aria2 is invoked.
  1060. * doc/aria2c.1.txt
  1061. * doc/xmlrpc/aria2rpc
  1062. * src/DownloadEngine.cc
  1063. * src/DownloadEngine.h
  1064. * src/XmlRpcMethodFactory.cc
  1065. * src/XmlRpcMethodImpl.cc
  1066. * src/XmlRpcMethodImpl.h
  1067. * test/XmlRpcMethodTest.cc
  1068. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Moved generateRandomKey() from bittorrent_helper to util.
  1070. * src/DHTBucket.cc
  1071. * src/DHTNode.cc
  1072. * src/bittorrent_helper.cc
  1073. * src/bittorrent_helper.h
  1074. * src/util.cc
  1075. * src/util.h
  1076. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Updated doc about GID.
  1078. * doc/aria2c.1.txt
  1079. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1081. accepts a negative integer. 'offset' == -1 points last download
  1082. in the waiting queue and 'offset' == -2 points the download before
  1083. the last download, and so on. The downloads in the response are in
  1084. reversed order.
  1085. * doc/aria2c.1.txt
  1086. * src/XmlRpcMethodImpl.cc
  1087. * src/XmlRpcMethodImpl.h
  1088. * test/XmlRpcMethodTest.cc
  1089. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Added --human-readable option. This option, when true is given,
  1091. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1092. 3.4Mi) in the console readout. The default value is true and it
  1093. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1094. appears when false is given. In this case, sizes and speed are
  1095. printed without in bytes. No Ki, Mi units conversion is used.
  1096. This may be useful for a program to parse the output of aria2.
  1097. * doc/aria2c.1.txt
  1098. * src/ConsoleStatCalc.cc
  1099. * src/ConsoleStatCalc.h
  1100. * src/OptionHandlerFactory.cc
  1101. * src/main.cc
  1102. * src/prefs.cc
  1103. * src/prefs.h
  1104. * src/usage_text.h
  1105. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1107. option accepts empty string "". When "" is given, it erases
  1108. previously defined proxy.
  1109. * doc/aria2c.1.txt
  1110. * src/OptionHandlerImpl.h
  1111. * src/usage_text.h
  1112. * test/OptionHandlerTest.cc
  1113. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Code cleanup for proxy URI handling.
  1115. * src/AbstractCommand.cc
  1116. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Added --bt-metadata-only option. If true is given to this option,
  1118. aria2 downloads metadata only. The file(s) described in metadata
  1119. will not be downloaded. This option has effect only when
  1120. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1121. * doc/aria2c.1.txt
  1122. * src/OptionHandlerFactory.cc
  1123. * src/UTMetadataPostDownloadHandler.cc
  1124. * src/download_helper.cc
  1125. * src/prefs.cc
  1126. * src/prefs.h
  1127. * src/usage_text.h
  1128. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1130. deleted when exception is thrown. Make sure that when passing
  1131. std::deque<Command*> to function to store Commands, handle
  1132. exception and delete these Commands.
  1133. * src/AbstractCommand.cc
  1134. * src/CheckIntegrityCommand.cc
  1135. * src/FileAllocationCommand.cc
  1136. * src/RequestGroup.cc
  1137. * src/TrackerWatcherCommand.cc
  1138. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1140. * src/A2STR.cc
  1141. * src/A2STR.h
  1142. * src/FtpNegotiationCommand.cc
  1143. * src/HttpResponseCommand.cc
  1144. * src/util.cc
  1145. * src/util.h
  1146. * test/UtilTest.cc
  1147. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Treat --dir="" as --dir="."
  1149. * src/FtpNegotiationCommand.cc
  1150. * src/HttpResponseCommand.cc
  1151. * src/Metalink2RequestGroup.cc
  1152. * src/UTMetadataPostDownloadHandler.cc
  1153. * src/bittorrent_helper.cc
  1154. * src/download_helper.cc
  1155. * src/util.cc
  1156. * src/util.h
  1157. * test/UtilTest.cc
  1158. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Code clean up.
  1160. * src/main.cc
  1161. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Reset GID to 1 when they reach maximum value. Rewritten
  1163. CUIDCounter::newID()
  1164. * src/CUIDCounter.h
  1165. * src/RequestGroup.cc
  1166. * src/RequestGroup.h
  1167. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Documented --http-no-cache option in man page.
  1169. * doc/aria2c.1.txt
  1170. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Added --http-no-cache option. When true is given, aria2 sends
  1172. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1173. cached content. If false is given , these headers are not sent
  1174. and you can add Cache-Control header with a directive you like
  1175. using --header option.
  1176. * src/HttpRequest.cc
  1177. * src/HttpRequest.h
  1178. * src/HttpRequestCommand.cc
  1179. * src/OptionHandlerFactory.cc
  1180. * src/download_helper.cc
  1181. * src/prefs.cc
  1182. * src/prefs.h
  1183. * src/usage_text.h
  1184. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Removed Logger from OptionParser. When OptionParser is used to
  1186. parse options at bootstrap, LogFactory is not configured yet
  1187. properly. When LogFactory is used in OptionParser, it initializes
  1188. itself to return a logger which has no ability to write log to the
  1189. disk.
  1190. * src/OptionParser.cc
  1191. * src/OptionParser.h
  1192. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added following sentance to the help message of --out option:
  1194. --out option is ignored when -Z is used.
  1195. * doc/aria2c.1.txt
  1196. * src/usage_text.h
  1197. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added --bt-save-metadata option to -i list options.
  1199. * doc/aria2c.1.txt
  1200. * src/download_helper.cc
  1201. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1203. additional libraries.
  1204. * src/MultiUrlRequestInfo.cc
  1205. * src/NameResolver.cc
  1206. * src/SelectEventPoll.cc
  1207. * src/SelectEventPoll.h
  1208. * src/SocketCore.cc
  1209. * src/SocketCore.h
  1210. * src/a2netcompat.h
  1211. * src/daemon.cc
  1212. * src/main.cc
  1213. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Fixed typo.
  1215. * src/DHTMessageReceiver.cc
  1216. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Fixed the bug that causes segmentation fault if unknown option is
  1218. put in aria2.conf file. BUG#2928303
  1219. * src/OptionParser.cc
  1220. * src/OptionParser.h
  1221. * src/option_processing.cc
  1222. * test/OptionParserTest.cc
  1223. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Ignore port message with port=0.
  1225. * src/BtPortMessage.cc
  1226. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Run autoupdate
  1228. * configure.ac
  1229. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Updated autoconf/automake auxiliary files.
  1231. * INSTALL
  1232. * config.guess
  1233. * config.sub
  1234. * depcomp
  1235. * install-sh
  1236. * m4/intldir.m4
  1237. * missing
  1238. * mkinstalldirs
  1239. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Removed unused function.
  1241. * src/SharedHandle.h
  1242. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Find pooled socket using all cached addresses.
  1244. * src/DNSCache.h
  1245. * src/DownloadEngine.cc
  1246. * src/DownloadEngine.h
  1247. * src/InitiateConnectionCommand.cc
  1248. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Updated copyright year.
  1250. * src/version_usage.cc
  1251. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Pool connection if _contentEncodingDecoder is used and server
  1253. supports persistent connection.
  1254. * src/HttpDownloadCommand.cc
  1255. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Updated doc.
  1257. * src/DownloadCommand.cc
  1258. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Untabify. Fixed one line in copyright which is longer than 80
  1260. columns.
  1261. * src
  1262. * test
  1263. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Release 1.8.0
  1265. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Updated po templates.
  1267. * po/aria2.pot
  1268. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Documented --bt-save-metadata option in man page.
  1270. * doc/aria2c.1.txt
  1271. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Fixed usage of --bt-save-metadata option.
  1273. * src/usage_text.h
  1274. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Updated po templates.
  1276. * po/aria2.pot
  1277. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1279. causes name resolution error when none of network interface has
  1280. IPv4 address.
  1281. * src/main.cc
  1282. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Bump up version number to 1.8.0.
  1284. * configure.ac
  1285. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Use info hash as a filename when saving BitTorrent metadata.
  1287. * src/UTMetadataPostDownloadHandler.cc
  1288. * test/UTMetadataPostDownloadHandlerTest.cc
  1289. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Documented system.multicall XML-RPC method in man page.
  1291. * doc/aria2c.1.txt
  1292. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added signal handler for SIGHUP to save .aria2 file when terminal
  1294. is closed. The handler is the same one for SIGINT and SIGTERM.
  1295. * src/MultiUrlRequestInfo.cc
  1296. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Defined method name in XmlRpcMethod subclasses.
  1298. * src/XmlRpcMethodFactory.cc
  1299. * src/XmlRpcMethodImpl.cc
  1300. * src/XmlRpcMethodImpl.h
  1301. * test/XmlRpcMethodTest.cc
  1302. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Added system.multicall XML-RPC method.
  1304. * src/XmlRpcMethod.cc
  1305. * src/XmlRpcMethod.h
  1306. * src/XmlRpcMethodFactory.cc
  1307. * src/XmlRpcMethodImpl.cc
  1308. * src/XmlRpcMethodImpl.h
  1309. * test/XmlRpcMethodTest.cc
  1310. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Check structure depth when decoding.
  1312. * src/bencode.cc
  1313. * src/bencode.h
  1314. * test/BencodeTest.cc
  1315. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Documented tellStopped XML-RPC method in man page.
  1317. * doc/aria2c.1.txt
  1318. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Added tellStopped XML-RPC method to aria2rpc.
  1320. * doc/xmlrpc/aria2rpc
  1321. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added tellStopped XML-RPC method. This method returns stopped
  1323. download in the specified range. It takes same parameters with
  1324. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1325. * src/XmlRpcMethodFactory.cc
  1326. * src/XmlRpcMethodImpl.cc
  1327. * src/XmlRpcMethodImpl.h
  1328. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1330. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1331. when conducting unit tests because they fail if networking
  1332. interface is not configured with IPv4 address.
  1333. * src/NameResolver.cc
  1334. * src/SocketCore.cc
  1335. * src/SocketCore.h
  1336. * src/a2netcompat.h
  1337. * test/AllTest.cc
  1338. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Fixed unit test error
  1340. * test/UTMetadataPostDownloadHandlerTest.cc
  1341. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Defined static string constants for efficiency.
  1343. * src/XmlRpcMethodImpl.cc
  1344. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Added --bt-save-metadata option. When true is given, it saves
  1346. metadata as .torrent file. This option has effect only when
  1347. BitTorrent Magnet URI is used. The filename is name in metadata
  1348. with suffix .torrent. The directory to be saved is the same
  1349. directory where download file is saved. If the same file already
  1350. exists, metdata is not saved.
  1351. * src/OptionHandlerFactory.cc
  1352. * src/UTMetadataPostDownloadHandler.cc
  1353. * src/UTMetadataPostDownloadHandler.h
  1354. * src/message.h
  1355. * src/prefs.cc
  1356. * src/prefs.h
  1357. * src/usage_text.h
  1358. * test/UTMetadataDataExtensionMessageTest.cc
  1359. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Added util::saveAs() function. Use it in Signature::save().
  1361. * src/Signature.cc
  1362. * src/util.cc
  1363. * src/util.h
  1364. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Upcase info hash in Magnet URI.
  1366. * doc/aria2c.1.txt
  1367. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Refactored RequestGroupMan::changeReservedGroupPosition()
  1369. * src/RequestGroupMan.cc
  1370. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Updated the description for aria2.addTorrent XML-RPC method.
  1372. * doc/aria2c.1.txt
  1373. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Added changePosition to aria2rpc.
  1375. * doc/xmlrpc/aria2rpc
  1376. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Documented changePosition XML-RPC method in man page.
  1378. * doc/aria2c.1.txt
  1379. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1381. pos and how. This method changes the position of download denoted
  1382. by gid. If how is POS_SET, it moves the download to a position
  1383. relative to the beginning of the queue. If how is POS_CUR, it
  1384. moves the download to a position relative to the current
  1385. position. If how is POS_END, it moves the download to a position
  1386. relative to the end of the queue. If the destination position is
  1387. less than 0 or beyond the end of the queue, it moves the download
  1388. to the beginning or the end of the queue respectively. Returns
  1389. the destination position.
  1390. * src/RequestGroupMan.cc
  1391. * src/RequestGroupMan.h
  1392. * src/XmlRpcMethodFactory.cc
  1393. * src/XmlRpcMethodImpl.cc
  1394. * src/XmlRpcMethodImpl.h
  1395. * test/RequestGroupManTest.cc
  1396. * test/XmlRpcMethodTest.cc
  1397. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Added getOption and getGlobalOption to aria2rpc.
  1399. * doc/xmlrpc/aria2rpc
  1400. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Documented getOption and getGlobalOption XML-RPC method in man
  1402. page
  1403. * doc/aria2c.1.txt
  1404. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Added getOption and getGlobalOption XML-RPC method. getOption
  1406. takes GID as a parameter and returns its options as struct.
  1407. getGlobalOption takes no parameter and returns global
  1408. options. Because global option is used as a template for the
  1409. option of newly added downloads, it includes options returned by
  1410. getOption.
  1411. * src/Option.h
  1412. * src/XmlRpcMethodFactory.cc
  1413. * src/XmlRpcMethodImpl.cc
  1414. * src/XmlRpcMethodImpl.h
  1415. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Sort _optionHandlers in OptionParser by name in ascending order.
  1417. Use vector instead of deque for efficiency.
  1418. * src/OptionHandler.h
  1419. * src/OptionHandlerFactory.h
  1420. * src/OptionParser.cc
  1421. * src/OptionParser.h
  1422. * src/version_usage.cc
  1423. * test/OptionParserTest.cc
  1424. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Code cleanup
  1426. * src/XmlRpcMethod.cc
  1427. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Documented about followedBy and belongsTo in man page.
  1429. * doc/aria2c.1.txt
  1430. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Added following 2 keys, followedBy and belongsTo, to the response
  1432. of tellStatus.
  1433. followedBy: List of GIDs which are generated by the consequence of
  1434. this download. For example, when aria2 downloaded Metalink file,
  1435. it generates downloads described in it(see *--follow-metalink*
  1436. option). This value is useful to track these auto generated
  1437. downloads. If there is no such downloads, this key will not be
  1438. included in the response.
  1439. belongsTo: GID of a parent download. Some downloads are a part of
  1440. another download. For example, if a file in Metalink has
  1441. BitTorrent resource, the download of .torrent is a part of that
  1442. file. If this download has no parent, this key will not be
  1443. included in the response.
  1444. * src/BtPostDownloadHandler.cc
  1445. * src/DownloadResult.h
  1446. * src/Metalink2RequestGroup.cc
  1447. * src/MetalinkPostDownloadHandler.cc
  1448. * src/RequestGroup.cc
  1449. * src/RequestGroup.h
  1450. * src/UTMetadataPostDownloadHandler.cc
  1451. * src/XmlRpcMethodImpl.cc
  1452. * src/XmlRpcMethodImpl.h
  1453. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Assigned BObject in BDE() to avoid segmentation fault when calling
  1455. methods of BDE::none().
  1456. * src/BDE.cc
  1457. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Show info hash in Magnet URI in upper case letters in -S output.
  1459. * src/bittorrent_helper.cc
  1460. * test/BittorrentHelperTest.cc
  1461. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Removed old useless comment
  1463. * src/MultiUrlRequestInfo.cc
  1464. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1466. not properly used in configure script and failed to detect gnutls.
  1467. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1468. and the initialization of pkg-config is done in first occurrence
  1469. of PKG_CHECK_MODULES which is not executed because it is inside of
  1470. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1471. * configure.ac
  1472. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Release 1.7.2
  1474. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1476. true even if all downloads haven't finished, especially when
  1477. PostDownloadHandler is involved. Changed the condition so that it
  1478. only returns true if both _requestGroups and _reservedGroups are
  1479. empty.
  1480. * src/RequestGroupMan.cc
  1481. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Log listening port for BitTorrent/DHT in notice level.
  1483. * src/DHTConnectionImpl.cc
  1484. * src/PeerListenCommand.cc
  1485. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Updated po templates.
  1487. * po/aria2.pot
  1488. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Bump up version number to 1.7.2
  1490. * configure.ac
  1491. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Changed default value of --enable-dht from 'false' to 'true'.
  1493. * doc/aria2c.1.txt
  1494. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Enabled DHT by default because of Magnet URI support. To disable
  1496. DHT, use --enable-dht=false
  1497. * src/OptionHandlerFactory.cc
  1498. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Print Magnet URI in -S output.
  1500. * src/AnnounceList.cc
  1501. * src/bittorrent_helper.cc
  1502. * src/bittorrent_helper.h
  1503. * test/BittorrentHelperTest.cc
  1504. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added --bt-prioritize-piece option to aria2rpc.
  1506. * doc/xmlrpc/aria2rpc
  1507. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Refer Magnet URI in --help. Made some cosmetic changes.
  1509. * src/version_usage.cc
  1510. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Updated -T and -M option.
  1512. * doc/aria2c.1.txt
  1513. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Fixed typo
  1515. * doc/aria2c.1.txt
  1516. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Fixed the bug that line separator is missing in horizontal bar.
  1518. * doc/xmlrpc/aria2mon
  1519. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Updated usage text for --metalink-file option.
  1521. * src/usage_text.h
  1522. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. If '-' is given as an argument to --metalink-file option, aria2
  1524. reads Metalink file from stdin.
  1525. * src/OptionHandlerFactory.cc
  1526. * src/OptionHandlerImpl.h
  1527. * src/a2io.h
  1528. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Fixed the bug that aria2 listens wrong port if --interface option
  1530. is used.
  1531. * src/SocketCore.cc
  1532. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Fixed the bug that query parameter in magnet URI is not decoded.
  1534. * src/magnet.cc
  1535. * test/MagnetTest.cc
  1536. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Specified defaultSize as an argument for easy testing.
  1538. * src/util.cc
  1539. * src/util.h
  1540. * test/UtilTest.cc
  1541. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Release 1.7.1
  1543. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Bump up version number to 1.7.1
  1545. * configure.ac
  1546. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Fixed the bug --bt-prioritize-piece=tail is not working.
  1548. * src/util.cc
  1549. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Release 1.7.0
  1551. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Updated po templates.
  1553. * po/aria2.pot
  1554. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Updated help message for --bt-prioritize-piece. Some cosmetic
  1556. changes.
  1557. * doc/aria2c.1.txt
  1558. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1560. * src/usage_text.h
  1561. * src/util.cc
  1562. * test/UtilTest.cc
  1563. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Updated Russian, Ukrainian, German and French translations.
  1565. Thanks to all translators involved.
  1566. * po/de.po
  1567. * po/fr.po
  1568. * po/ru.po
  1569. * po/uk.po
  1570. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Mentioned about pkg-config
  1572. * README
  1573. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Fixed typo. Referred --index-out option in BitTorrent notes.
  1575. * README
  1576. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1578. bind, try all addresses until success
  1579. * src/SocketCore.cc
  1580. * src/SocketCore.h
  1581. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Updated po templates.
  1583. * po/aria2.pot
  1584. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Bump up version number to 1.7.0
  1586. * configure.ac
  1587. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1589. * src/DefaultPieceStorage.cc
  1590. * src/DefaultPieceStorage.h
  1591. * src/PieceStorage.h
  1592. * src/UnknownLengthPieceStorage.cc
  1593. * src/UnknownLengthPieceStorage.h
  1594. * test/MockPieceStorage.h
  1595. * test/ProtocolDetectorTest.cc
  1596. * test/XmlRpcMethodTest.cc
  1597. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Documented in man page that if getifaddrs() is missing,
  1599. --interface option doesn't accept interface name.
  1600. * doc/aria2c.1.txt
  1601. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1603. * src/DefaultBtAnnounce.cc
  1604. * src/DefaultBtAnnounce.h
  1605. * test/DefaultBtAnnounceTest.cc
  1606. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Fixed the bug that connection is always dropped if handshake
  1608. message in extension protocol don't have metadata_size.
  1609. src/HandshakeExtensionMessage.cc
  1610. * src/HandshakeExtensionMessage.cc
  1611. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1613. text saying DHT is recommended when Magnet URI is provided.
  1614. * doc/aria2c.1.txt
  1615. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1617. URI is supplied. Notify user that they should consider enabling
  1618. DHT if they use Magnet URI.
  1619. * src/RequestGroup.cc
  1620. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Added --disable-ipv6 option to disable IPv6.
  1622. * doc/aria2c.1.txt
  1623. * src/InitiateConnectionCommand.cc
  1624. * src/NameResolver.cc
  1625. * src/NameResolver.h
  1626. * src/OptionHandlerFactory.cc
  1627. * src/main.cc
  1628. * src/prefs.cc
  1629. * src/prefs.h
  1630. * src/usage_text.h
  1631. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Updated usage text for --bt-prioritize-piece option.
  1633. * doc/aria2c.1.txt
  1634. * src/usage_text.h
  1635. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1637. given and PACKAGE is missing in the system or FEATURE cannot be
  1638. enabled, print error message and stop the script.
  1639. * configure.ac
  1640. * m4/aria2_arg.m4
  1641. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Halt metadata download immediately when metadata download is done.
  1643. Don't wait unresponsive tracker.
  1644. * src/ByteArrayDiskWriter.h
  1645. * src/DefaultBtInteractive.cc
  1646. * src/DefaultExtensionMessageFactory.cc
  1647. * src/DefaultExtensionMessageFactory.h
  1648. * src/PeerInteractionCommand.cc
  1649. * src/UTMetadataDataExtensionMessage.cc
  1650. * src/UTMetadataDataExtensionMessage.h
  1651. * src/UTMetadataRequestExtensionMessage.cc
  1652. * test/UTMetadataDataExtensionMessageTest.cc
  1653. * test/UTMetadataRequestExtensionMessageTest.cc
  1654. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Documented --interface option in man page.
  1656. * doc/aria2c.1.txt
  1657. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Try resolved address in the order received from the resolver.
  1659. * src/DNSCache.h
  1660. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Added debug logs.
  1662. * src/SocketCore.cc
  1663. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Fixed type of tail to uint64_t
  1665. * src/util.cc
  1666. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Added --interface option. This feature binds sockets to given
  1668. interface. You can specify interface name, IP address and
  1669. hostname.
  1670. * configure.ac
  1671. * src/OptionHandlerFactory.cc
  1672. * src/SocketCore.cc
  1673. * src/SocketCore.h
  1674. * src/main.cc
  1675. * src/message.h
  1676. * src/prefs.cc
  1677. * src/prefs.h
  1678. * src/usage_text.h
  1679. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Updated man page for bt-prioritize-piece option in -i list.
  1681. * doc/aria2c.1.txt
  1682. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Added bt-prioritize-piece option to -i list.
  1684. * src/download_helper.cc
  1685. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Removed --http-auth-scheme option from man page.
  1687. * doc/aria2c.1.txt
  1688. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Removed --http-auth-scheme option since it doesn't do nothing.
  1690. * src/OptionHandlerFactory.cc
  1691. * src/prefs.cc
  1692. * src/prefs.h
  1693. * src/usage_text.h
  1694. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Adjusted the number of peer info which get_peers reply message can
  1696. carry.
  1697. * src/DHTGetPeersReplyMessage.cc
  1698. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Added extension_message_test_helper.h to aria2c_SOURCES.
  1700. * test/Makefile.am
  1701. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Documented --bt-prioritize-piece option in man page.
  1703. * doc/aria2c.1.txt
  1704. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Added option --bt-prioritize-piece. This option instruct aria2 to
  1706. try to download first and last pieces of each file first. The
  1707. argument can contain 2 keywords:head and tail. To include both
  1708. keywords, they must be separated by comma. These keywords can take
  1709. one parameter, SIZE. For example , if head=SIZE is specified,
  1710. pieces in the range of first SIZE bytes of each file get higher
  1711. priority. tail=SIZE means the range of last SIZE bytes of each
  1712. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1713. * src/DefaultPieceStorage.h
  1714. * src/Makefile.am
  1715. * src/OptionHandlerFactory.cc
  1716. * src/OptionHandlerImpl.h
  1717. * src/PriorityPieceSelector.cc
  1718. * src/PriorityPieceSelector.h
  1719. * src/RequestGroup.cc
  1720. * src/prefs.cc
  1721. * src/prefs.h
  1722. * src/usage_text.h
  1723. * src/util.cc
  1724. * src/util.h
  1725. * test/Makefile.am
  1726. * test/MockPieceSelector.h
  1727. * test/PriorityPieceSelectorTest.cc
  1728. * test/UtilTest.cc
  1729. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Fixed typo
  1731. * src/HttpRequest.h
  1732. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. In Magnet URI with tr parameter, put each announce URI in separate
  1734. tier.
  1735. * src/bittorrent_helper.cc
  1736. * test/BittorrentHelperTest.cc
  1737. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Renamed ExtensionMessage::getBencodedData() as
  1739. ExtensionMessage::getPayload()
  1740. * src/BtExtendedMessage.cc
  1741. * src/ExtensionMessage.h
  1742. * src/HandshakeExtensionMessage.cc
  1743. * src/HandshakeExtensionMessage.h
  1744. * src/UTMetadataDataExtensionMessage.cc
  1745. * src/UTMetadataDataExtensionMessage.h
  1746. * src/UTMetadataRejectExtensionMessage.cc
  1747. * src/UTMetadataRejectExtensionMessage.h
  1748. * src/UTMetadataRequestExtensionMessage.cc
  1749. * src/UTMetadataRequestExtensionMessage.h
  1750. * src/UTPexExtensionMessage.cc
  1751. * src/UTPexExtensionMessage.h
  1752. * test/HandshakeExtensionMessageTest.cc
  1753. * test/MockExtensionMessage.h
  1754. * test/UTMetadataDataExtensionMessageTest.cc
  1755. * test/UTMetadataRejectExtensionMessageTest.cc
  1756. * test/UTMetadataRequestExtensionMessageTest.cc
  1757. * test/UTPexExtensionMessageTest.cc
  1758. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Updated man page for BitTorrent Magnet URI.
  1760. * doc/aria2c.1.txt
  1761. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Call DownloadContext::setOwnerRequestGroup() in
  1763. RequestGroup::setDownloadContext().
  1764. * src/BtDependency.cc
  1765. * src/RequestGroup.cc
  1766. * src/RequestGroup.h
  1767. * src/download_helper.cc
  1768. * test/DefaultBtMessageDispatcherTest.cc
  1769. * test/DefaultExtensionMessageFactoryTest.cc
  1770. * test/HandshakeExtensionMessageTest.cc
  1771. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1773. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1774. from metadata, use new metadata2Torrent() function.
  1775. * src/BtDependency.cc
  1776. * src/UTMetadataPostDownloadHandler.cc
  1777. * src/bittorrent_helper.cc
  1778. * src/bittorrent_helper.h
  1779. * test/BittorrentHelperTest.cc
  1780. * test/BtDependencyTest.cc
  1781. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Use createRequestGroupForUri to create the download for torrent
  1783. file.
  1784. * src/Metalink2RequestGroup.cc
  1785. * test/Metalink2RequestGroupTest.cc
  1786. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Fixed typo
  1788. * src/DownloadContext.h
  1789. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Use createRequestGroupForBitTorrent()
  1791. * src/BtPostDownloadHandler.cc
  1792. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Added remove().
  1794. * src/Option.cc
  1795. * src/Option.h
  1796. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Removed options which is only valid for URIs specified in
  1798. command-line. If they are left, because op is used as a template
  1799. for new RequestGroup(such as created in XML-RPC command,
  1800. BtPostDownloadHandler etc), they causes unintentional effect.
  1801. * src/main.cc
  1802. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Refer to option value of PREF_OUT only in download_helper.
  1804. * src/FtpNegotiationCommand.cc
  1805. * src/HttpResponseCommand.cc
  1806. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1808. * src/download_helper.cc
  1809. * src/download_helper.h
  1810. * src/XmlRpcMethodImpl.cc
  1811. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Updated man page for changeOption XML-RPC method.
  1813. * doc/aria2c.1.txt
  1814. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Added --bt-max-peers option to changeOption XML-RPC method.
  1816. * src/XmlRpcMethod.cc
  1817. * src/XmlRpcMethodImpl.cc
  1818. * test/XmlRpcMethodTest.cc
  1819. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1821. * test/XmlRpcMethodTest.cc
  1822. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Removed redundant DownloadContext::hasAttribute(...) calls.
  1824. * src/ConsoleStatCalc.cc
  1825. * src/RequestGroup.cc
  1826. * src/XmlRpcMethodImpl.cc
  1827. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Changed the number of tracker request attempt from 5 to 2.
  1829. * src/TrackerWatcherCommand.cc
  1830. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Use host and protocol in original URI, because URI selector
  1832. selects URI based on original URI, not redirected one.
  1833. * src/Request.cc
  1834. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Fixed the bug which causes segmentation fault with tellWaiting
  1836. XML-RPC method when BitTorrent download is waiting. The key of
  1837. BtRegistry is changed from info hash to GID, because it is
  1838. registered per RequestGroup, not info hash.
  1839. * src/BtRegistry.cc
  1840. * src/BtRegistry.h
  1841. * src/BtSetup.cc
  1842. * src/ConsoleStatCalc.cc
  1843. * src/InitiatorMSEHandshakeCommand.cc
  1844. * src/PeerInitiateConnectionCommand.cc
  1845. * src/PeerInteractionCommand.cc
  1846. * src/PeerInteractionCommand.h
  1847. * src/PeerReceiveHandshakeCommand.cc
  1848. * src/RequestGroup.cc
  1849. * src/XmlRpcMethodImpl.cc
  1850. * test/BtRegistryTest.cc
  1851. * test/XmlRpcMethodTest.cc
  1852. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Updated man page for changeOption XML-RPC method.
  1854. * doc/aria2c.1.txt
  1855. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1857. method.
  1858. * src/XmlRpcMethod.cc
  1859. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Documented about BitTorrent Magnet URI in man page.
  1861. * doc/aria2c.1.txt
  1862. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1864. inherited to generated RequestGroup.
  1865. * src/UTMetadataPostDownloadHandler.cc
  1866. * test/UTMetadataPostDownloadHandlerTest.cc
  1867. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Prepended "[METADATA]" before dn.
  1869. * src/bittorrent_helper.cc
  1870. * test/BittorrentHelperTest.cc
  1871. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Rewritten Magnet URI parser.
  1873. * src/Makefile.am
  1874. * src/ProtocolDetector.cc
  1875. * src/bittorrent_helper.cc
  1876. * src/bittorrent_helper.h
  1877. * src/download_helper.cc
  1878. * src/magnet.cc
  1879. * src/magnet.h
  1880. * test/BittorrentHelperTest.cc
  1881. * test/MagnetTest.cc
  1882. * test/Makefile.am
  1883. * test/ProtocolDetectorTest.cc
  1884. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Use hton64
  1886. * src/base32.cc
  1887. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Added Base32 encoded BitTorrent Magnet Link support.
  1889. * src/Makefile.am
  1890. * src/base32.cc
  1891. * src/base32.h
  1892. * src/bittorrent_helper.cc
  1893. * test/Base32Test.cc
  1894. * test/BittorrentHelperTest.cc
  1895. * test/Makefile.am
  1896. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1898. supported yet. Fixed typo in method name in RequestGroup. In
  1899. metadataGetMode, don't show "Your share ratio was ..." message.
  1900. * src/DefaultBtInteractive.cc
  1901. * src/DefaultBtInteractive.h
  1902. * src/DownloadHandlerFactory.cc
  1903. * src/DownloadHandlerFactory.h
  1904. * src/HandshakeExtensionMessage.cc
  1905. * src/Makefile.am
  1906. * src/Metalink2RequestGroup.cc
  1907. * src/PeerInteractionCommand.cc
  1908. * src/RequestGroup.cc
  1909. * src/RequestGroup.h
  1910. * src/UTMetadataPostDownloadHandler.cc
  1911. * src/UTMetadataPostDownloadHandler.h
  1912. * src/download_helper.cc
  1913. * test/HandshakeExtensionMessageTest.cc
  1914. * test/Makefile.am
  1915. * test/UTMetadataPostDownloadHandlerTest.cc
  1916. * test/UTMetadataRejectExtensionMessageTest.cc
  1917. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. In metadataGetMode, don't show SEEDING.
  1919. * src/ConsoleStatCalc.cc
  1920. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Fixed ut_metadata data handling. Implemented
  1922. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1923. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1924. metadata_size is received.
  1925. * src/DefaultExtensionMessageFactory.cc
  1926. * src/DefaultExtensionMessageFactory.h
  1927. * src/HandshakeExtensionMessage.cc
  1928. * src/HandshakeExtensionMessage.h
  1929. * src/UTMetadataDataExtensionMessage.cc
  1930. * src/UTMetadataDataExtensionMessage.h
  1931. * src/UTMetadataRequestExtensionMessage.cc
  1932. * src/UTMetadataRequestFactory.cc
  1933. * src/UTMetadataRequestFactory.h
  1934. * src/UTMetadataRequestTracker.cc
  1935. * src/UTMetadataRequestTracker.h
  1936. * test/DefaultExtensionMessageFactoryTest.cc
  1937. * test/HandshakeExtensionMessageTest.cc
  1938. * test/MockBtMessage.h
  1939. * test/UTMetadataDataExtensionMessageTest.cc
  1940. * test/UTMetadataRequestExtensionMessageTest.cc
  1941. * test/UTMetadataRequestFactoryTest.cc
  1942. * test/UTMetadataRequestTrackerTest.cc
  1943. * test/extension_message_test_helper.h
  1944. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Drop connection if ut_metadata reject message is received.
  1946. * src/UTMetadataRejectExtensionMessage.cc
  1947. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1949. get high enough in that mode.
  1950. * src/ActivePeerConnectionCommand.cc
  1951. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Added BitTorrent magnet link support to ProtocolDetector.
  1953. * src/ProtocolDetector.cc
  1954. * src/ProtocolDetector.h
  1955. * test/ProtocolDetectorTest.cc
  1956. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Don't inject validator into BtMessage in metadataGetMode because
  1958. most of the checks depends on the total length of download but it
  1959. is unknown. Delegate metadataGetMode to BtMessage.
  1960. * src/DefaultBtMessageFactory.cc
  1961. * src/DefaultBtMessageFactory.h
  1962. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1964. * src/DefaultPieceStorage.h
  1965. * src/PieceStorage.h
  1966. * src/UnknownLengthPieceStorage.h
  1967. * test/MockPieceStorage.h
  1968. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Added markTotalLengthIsKnown().
  1970. * src/DownloadContext.h
  1971. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1973. missing. If metadata is missing, always use DHT when it is ready.
  1974. * src/BtSetup.cc
  1975. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added parseMagnetLink(). Hex encoded info hash is supported.
  1977. Base32 encoded info hash is not supported yet.
  1978. * src/bittorrent_helper.cc
  1979. * src/bittorrent_helper.h
  1980. * test/BittorrentHelperTest.cc
  1981. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Added FromHex()
  1983. * src/util.cc
  1984. * src/util.h
  1985. * test/UtilTest.cc
  1986. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Added _metadataGetMode member variable. It toggles the action when
  1988. messages are received: usually they almost do nothing if
  1989. _metadataGetMode is true.
  1990. * src/AbstractBtMessage.cc
  1991. * src/AbstractBtMessage.h
  1992. * src/BtAllowedFastMessage.cc
  1993. * src/BtBitfieldMessage.cc
  1994. * src/BtCancelMessage.cc
  1995. * src/BtChokeMessage.cc
  1996. * src/BtHaveAllMessage.cc
  1997. * src/BtHaveMessage.cc
  1998. * src/BtInterestedMessage.cc
  1999. * src/BtNotInterestedMessage.cc
  2000. * src/BtPieceMessage.cc
  2001. * src/BtRejectMessage.cc
  2002. * src/BtRequestMessage.cc
  2003. * src/BtUnchokeMessage.cc
  2004. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Added bencode::decode overload functions. They have extra argument
  2006. 'end', passed by reference. 'end' points to the beyond the last
  2007. position of data used in decoding process.
  2008. * src/bencode.cc
  2009. * src/bencode.h
  2010. * test/BencodeTest.cc
  2011. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Initial support of Extension for Peers to Send Metadata
  2013. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2014. metadata from swarm.
  2015. * src/BtConstants.h
  2016. * src/DefaultBtInteractive.cc
  2017. * src/DefaultExtensionMessageFactory.cc
  2018. * src/DefaultExtensionMessageFactory.h
  2019. * src/ExtensionMessage.h
  2020. * src/ExtensionMessageRegistry.h
  2021. * src/HandshakeExtensionMessage.cc
  2022. * src/HandshakeExtensionMessage.h
  2023. * src/Makefile.am
  2024. * src/PeerConnection.h
  2025. * src/PeerInteractionCommand.cc
  2026. * src/UTMetadataDataExtensionMessage.cc
  2027. * src/UTMetadataDataExtensionMessage.h
  2028. * src/UTMetadataExtensionMessage.cc
  2029. * src/UTMetadataExtensionMessage.h
  2030. * src/UTMetadataRejectExtensionMessage.cc
  2031. * src/UTMetadataRejectExtensionMessage.h
  2032. * src/UTMetadataRequestExtensionMessage.cc
  2033. * src/UTMetadataRequestExtensionMessage.h
  2034. * src/bittorrent_helper.cc
  2035. * src/bittorrent_helper.h
  2036. * test/BittorrentHelperTest.cc
  2037. * test/DefaultExtensionMessageFactoryTest.cc
  2038. * test/HandshakeExtensionMessageTest.cc
  2039. * test/Makefile.am
  2040. * test/UTMetadataDataExtensionMessageTest.cc
  2041. * test/UTMetadataRejectExtensionMessageTest.cc
  2042. * test/UTMetadataRequestExtensionMessageTest.cc
  2043. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Cancel segment in prepareForRetry() because there is a chance that
  2045. the command has segments.
  2046. * src/CreateRequestCommand.cc
  2047. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Fixed the bug that slow server is not knocked down in favor of
  2049. faster one.
  2050. * src/AbstractCommand.cc
  2051. * src/DefaultPieceStorage.cc
  2052. * src/DefaultPieceStorage.h
  2053. * src/PieceStorage.h
  2054. * src/UnknownLengthPieceStorage.cc
  2055. * src/UnknownLengthPieceStorage.h
  2056. * test/MockPieceStorage.h
  2057. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Fixed the bug that Request object is not added to
  2059. _inFlightRequests in findFasterRequest().
  2060. * src/FileEntry.cc
  2061. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Changed the strategry of how to increase the number of outstanding
  2063. requests. Now the number is doubled if there are no outstanding
  2064. requests after receiving messages.
  2065. * src/BtConstants.h
  2066. * src/DefaultBtInteractive.cc
  2067. * src/DefaultBtInteractive.h
  2068. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Check socket for reading if there are outstanding requests.
  2070. * src/PeerInteractionCommand.cc
  2071. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Moved frequently called methods to header file so they get
  2073. inlined.
  2074. * src/RequestSlot.cc
  2075. * src/RequestSlot.h
  2076. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Copied in_addr instead of just casting from char* which might
  2078. violate strict aliasing rules.
  2079. * src/AsyncNameResolver.cc
  2080. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Use dynamic_pointer_cast
  2082. * test/BtPieceMessageTest.cc
  2083. * test/BtRequestMessageTest.cc
  2084. * test/DefaultBtRequestFactoryTest.cc
  2085. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Added testSetUrl20()
  2087. * test/RequestTest.cc
  2088. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Code cleanup
  2090. * src/bittorrent_helper.cc
  2091. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Use C++ style cast
  2093. * src/AsyncNameResolver.cc
  2094. * src/Base64.h
  2095. * src/BtBitfieldMessage.cc
  2096. * src/BtHandshakeMessage.cc
  2097. * src/DefaultBtMessageFactory.cc
  2098. * src/DefaultBtProgressInfoFile.cc
  2099. * src/EpollEventPoll.cc
  2100. * src/ExpatMetalinkProcessor.cc
  2101. * src/IteratableChecksumValidator.cc
  2102. * src/IteratableChunkChecksumValidator.cc
  2103. * src/MessageDigestHelper.cc
  2104. * src/Platform.cc
  2105. * src/RequestGroupMan.cc
  2106. * src/SingleFileAllocationIterator.cc
  2107. * src/Sqlite3MozCookieParser.cc
  2108. * src/XML2SAXMetalinkProcessor.cc
  2109. * src/Xml2XmlRpcRequestProcessor.cc
  2110. * src/util.cc
  2111. * src/util.h
  2112. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Fixed integer potential alignment problem.
  2114. * src/bitfield.h
  2115. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2117. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2118. include file ordering.
  2119. * src/PeerListProcessor.h
  2120. * src/bittorrent_helper.cc
  2121. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2123. * src/Request.cc
  2124. * src/util.cc
  2125. * src/util.h
  2126. * test/RequestTest.cc
  2127. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Rewritten util::uitos()
  2129. * src/util.h
  2130. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Code cleanup
  2132. * src/Request.cc
  2133. * src/Request.h
  2134. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Rewritten Request::parseUrl()
  2136. * src/Request.cc
  2137. * test/RequestTest.cc
  2138. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Removed unused macro SAFE_CHARS
  2140. * src/Request.cc
  2141. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Updated doc
  2143. * src/DHTRoutingTableDeserializer.cc
  2144. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Release 1.6.3
  2146. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Removed unused function.
  2148. * test/DHTPeerAnnounceStorageTest.cc
  2149. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Only decrement cols if cols > 0
  2151. * src/ConsoleStatCalc.cc
  2152. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2154. translations. Thanks to all translators.
  2155. * po/ca.po
  2156. * po/fr.po
  2157. * po/it.po
  2158. * po/ja.po
  2159. * po/pl.po
  2160. * po/ru.po
  2161. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Updated translation template
  2163. * po
  2164. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Fixed compile error without ssl library.
  2166. * src/util.cc
  2167. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Logged received nodes in get_peers reply message.
  2169. * src/DHTAbstractNodeLookupTask.cc
  2170. * src/DHTAbstractNodeLookupTask.h
  2171. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2173. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2174. * src/DHTMessageDispatcherImpl.cc
  2175. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Don't reuse URI if Request pool is not empty.
  2177. * src/CreateRequestCommand.cc
  2178. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2180. receive get_peers request for torrent which the client is now
  2181. downloading.
  2182. * src/BtSetup.cc
  2183. * src/DHTPeerAnnounceEntry.cc
  2184. * src/DHTPeerAnnounceEntry.h
  2185. * src/DHTPeerAnnounceStorage.cc
  2186. * src/DHTPeerAnnounceStorage.h
  2187. * src/RequestGroup.cc
  2188. * test/DHTPeerAnnounceEntryTest.cc
  2189. * test/DHTPeerAnnounceStorageTest.cc
  2190. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Fixed the bug that in Windows environment new blank line is
  2192. inserted when console readout is updated.
  2193. * src/ConsoleStatCalc.cc
  2194. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Throw exception if binding listening port is failed. Removed
  2196. RequestGroupMan::getInitialCommand(). Use
  2197. fillRequestGroupFromReserver() instead. Delete commands for
  2198. RequestGroup which has errors when it is being added.
  2199. * src/BtSetup.cc
  2200. * src/DownloadEngine.cc
  2201. * src/DownloadEngine.h
  2202. * src/DownloadEngineFactory.cc
  2203. * src/MultiUrlRequestInfo.cc
  2204. * src/RequestGroupMan.cc
  2205. * src/RequestGroupMan.h
  2206. * test/RequestGroupManTest.cc
  2207. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Fixed the bug that when downloading more than one torrent,
  2209. listening port is not reported properly to tracker for 2nd or
  2210. later torrents.
  2211. * src/BtSetup.cc
  2212. * src/PeerListenCommand.cc
  2213. * src/PeerListenCommand.h
  2214. * src/RequestGroup.cc
  2215. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Bump up version number to 1.6.3
  2217. * configure.ac
  2218. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Removed Util.cc from POTFILES.in
  2220. * po/POTFILES.in
  2221. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Updated man page for previous change.
  2223. * doc/aria2c.1.txt
  2224. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. If user name is embedded but password is missing in URI, first
  2226. resolve password using .netrc. If password is found in .netrc,
  2227. then use it as password. If not, use the password specified in
  2228. --ftp-passwd.
  2229. * src/AuthConfigFactory.cc
  2230. * src/Request.cc
  2231. * src/Request.h
  2232. * test/AuthConfigFactoryTest.cc
  2233. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Fixed typo
  2235. * doc/aria2c.1.txt
  2236. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Fixed typo
  2238. * src/usage_text.h
  2239. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added missing bitfield.cc
  2241. * src/bitfield.cc
  2242. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Renamed Util.{cc,h} as util.{cc,h}
  2244. * src/Util.cc
  2245. * src/Util.h
  2246. * src/util.cc
  2247. * src/util.h
  2248. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Moved static functions in Util class to namespace util.
  2250. * src
  2251. * test
  2252. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2254. Moved generateRandomKey to bittorrent_helper.cc.
  2255. * src/DHTBucket.cc
  2256. * src/DHTGetPeersMessage.cc
  2257. * src/DHTGetPeersReplyMessage.cc
  2258. * src/DHTMessage.cc
  2259. * src/DHTNode.cc
  2260. * src/DHTTokenTracker.cc
  2261. * src/DHTUtil.cc: Removed.
  2262. * src/DHTUtil.h: Removed.
  2263. * src/Makefile.am
  2264. * src/Util.cc
  2265. * src/Util.h
  2266. * src/bitfield.h
  2267. * src/bittorrent_helper.cc
  2268. * src/bittorrent_helper.h
  2269. * test/ARC4Test.cc
  2270. * test/BNodeTest.cc
  2271. * test/DHTAnnouncePeerMessageTest.cc
  2272. * test/DHTAnnouncePeerReplyMessageTest.cc
  2273. * test/DHTFindNodeMessageTest.cc
  2274. * test/DHTFindNodeReplyMessageTest.cc
  2275. * test/DHTGetPeersMessageTest.cc
  2276. * test/DHTGetPeersReplyMessageTest.cc
  2277. * test/DHTPingMessageTest.cc
  2278. * test/DHTPingReplyMessageTest.cc
  2279. * test/DHTTokenTrackerTest.cc
  2280. * test/DHTUtilTest.cc: Removed.
  2281. * test/Makefile.am
  2282. * test/UtilTest.cc
  2283. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Removed the call to trim() because trim() is called for each
  2285. element in split().
  2286. * src/CookieParser.cc
  2287. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Replaced Util::slice() with split()
  2289. * src/AbstractCommand.cc
  2290. * src/CookieParser.cc
  2291. * src/File.cc
  2292. * src/HttpHeaderProcessor.cc
  2293. * src/HttpRequest.cc
  2294. * src/Metalink2RequestGroup.cc
  2295. * src/MetalinkParserController.cc
  2296. * src/Netrc.cc
  2297. * src/NsCookieParser.cc
  2298. * src/ParameterizedStringParser.cc
  2299. * src/ServerStatMan.cc
  2300. * src/UriListParser.cc
  2301. * src/Util.cc
  2302. * src/Util.h
  2303. * src/bittorrent_helper.cc
  2304. * test/UtilTest.cc
  2305. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Use request->getDir() instead of "/" for embedded user/pass in
  2307. URI.
  2308. * src/AuthConfigFactory.cc
  2309. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Fixed wrong insertion point for BasicCred.
  2311. * src/AuthConfigFactory.cc
  2312. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Allowed non-regular file in LocalFilePathOptionHandler
  2314. * src/OptionHandlerImpl.h
  2315. * src/message.h
  2316. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2318. * src/Netrc.cc
  2319. * src/Util.h
  2320. * test/NetrcTest.cc
  2321. * test/sample.netrc
  2322. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Fixed typo
  2324. * src/BtDependency.cc
  2325. * src/BtRejectMessage.cc
  2326. * src/FtpConnection.cc
  2327. * src/HttpHeaderProcessor.h
  2328. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Fixed lintian report in man page
  2330. * doc/aria2c.1.txt
  2331. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Release 1.6.2
  2333. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Updated Ukrainian translation. Thanks to all translators.
  2335. * po/uk.po
  2336. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Updated translation template
  2338. * po
  2339. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Bump up version number to 1.6.2
  2341. * configure.ac
  2342. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Updated licence message in -v output.
  2344. * src/version_usage.cc
  2345. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Replaced aria2 with aria2c in help message.
  2347. * src/version_usage.cc
  2348. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2350. * src/version_usage.cc
  2351. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Quoted localedir
  2353. * src/Makefile.am
  2354. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2356. utime. Check header for utime.h.
  2357. * configure.ac
  2358. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2360. * configure.ac
  2361. * src/daemon.cc
  2362. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Don't set localedir manually. Leave it to autoconf.
  2364. * configure.ac
  2365. * src/Makefile.am
  2366. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Added --install to ACLOCAL_AMFLAGS.
  2368. Removed m4 from SUBDIRS.
  2369. Updated automake 1.11 and autoconf 2.64.
  2370. Replaced some obsolute macros with new one.
  2371. * Makefile.am
  2372. * configure.ac
  2373. * m4/aria2_arg.m4
  2374. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Removed Makefile.am in m4 directory.
  2376. * configure.ac
  2377. * m4/ChangeLog
  2378. * m4/Makefile.am
  2379. * m4/Makefile.in
  2380. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Removed unused m4 macros.
  2382. * m4/intldir.m4
  2383. * m4/inttypes.m4
  2384. * m4/isc-posix.m4
  2385. * m4/libgnutls-extra.m4
  2386. * m4/ulonglong.m4
  2387. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Fixed the bug that causes segmentation fault if
  2389. req->getCurrentUrl() contains printf formatting characters such as
  2390. %d. The statement that causes this bug is useless and removed.
  2391. * src/AbstractCommand.cc
  2392. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. * Release 1.6.1
  2394. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Updated Simplified Chinese translation. Thanks to translators.
  2396. * po/zh_CN.po
  2397. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Updated translation template
  2399. * po
  2400. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Bump up version number to 1.6.1
  2402. * configure.ac
  2403. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Changed interval from 120 to 60 for dropping inactive peer.
  2405. * src/DefaultBtInteractive.cc
  2406. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Updated man page for --user-agent and --peer-id-prefix option.
  2408. * doc/aria2c.1.txt
  2409. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Code clean up
  2411. * src/BtPostDownloadHandler.cc
  2412. * src/ContentTypeRequestGroupCriteria.cc
  2413. * src/ContentTypeRequestGroupCriteria.h
  2414. * src/DownloadHandlerConstants.cc
  2415. * src/DownloadHandlerConstants.h
  2416. * src/DownloadHandlerFactory.cc
  2417. * src/MetalinkPostDownloadHandler.cc
  2418. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Don't save control file when aria2 exists while checking piece
  2420. hash(behavior of -V option). If control file doesn't exist when
  2421. aria2 launched, the completed length in saved control file will be
  2422. 0 byte and this confuses user. disableSaveControlFile() is called
  2423. in RequestGroup::processCheckIntegrityEntry().
  2424. enableSaveControlFile() will be called after hash checking is
  2425. done. See CheckIntegrityCommand.
  2426. * src/CheckIntegrityCommand.cc
  2427. * src/RequestGroup.cc
  2428. * src/RequestGroup.h
  2429. * src/RequestGroupMan.cc
  2430. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Included version number in Peer ID and client version. Peer ID
  2432. now starts with "aria2/VERSION-", where VERSION is
  2433. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2434. * src/DefaultBtInteractive.cc
  2435. * src/OptionHandlerFactory.cc
  2436. * src/bittorrent_helper.cc
  2437. * src/bittorrent_helper.h
  2438. * src/main.cc
  2439. * src/usage_text.h
  2440. * test/BittorrentHelperTest.cc
  2441. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Fixed memory leak.
  2443. * src/DownloadCommand.cc
  2444. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Removed server, port, user and passwd key from options before
  2446. XMLRPC::Client.call since they are not options of aria2.
  2447. * doc/xmlrpc/aria2mon
  2448. * doc/xmlrpc/aria2rpc
  2449. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Included version number in user-agent string.
  2451. * src/OptionHandlerFactory.cc
  2452. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Fixed the bug that the option values changed by XML-RPC
  2454. method(changeOption and changeGlobalOption) are overwritten to the
  2455. previous value by the next these request which doesn't contain
  2456. that option value. Supporse max-download-limit is initially 0. You
  2457. changed this value to 100K by changeOption. Then you issue
  2458. changeOption request to change max-upload-limit to 50K. This
  2459. second request doesn't contain xml-download-limit, so it is back
  2460. to initial value, 0. Another improvement is that exception is
  2461. thrown when changeOption and changeGlobalOption request contains
  2462. option name which doesn't allowed in each request.
  2463. * src/DownloadEngine.h
  2464. * src/XmlRpcMethod.cc
  2465. * src/XmlRpcMethod.h
  2466. * src/XmlRpcMethodImpl.cc
  2467. * src/download_helper.cc
  2468. * src/download_helper.h
  2469. * test/XmlRpcMethodTest.cc
  2470. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Added missing MetalinkParserStateImpl.{cc,h}
  2472. * src/MetalinkParserStateImpl.cc
  2473. * src/MetalinkParserStateImpl.h
  2474. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Put all MetalinkParserState subclasses into
  2476. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2477. * src/FileMetalinkParserState.cc: Removed
  2478. * src/FileMetalinkParserState.h: Removed
  2479. * src/FilesMetalinkParserState.cc: Removed
  2480. * src/FilesMetalinkParserState.h: Removed
  2481. * src/FinMetalinkParserState.cc: Removed
  2482. * src/FinMetalinkParserState.h: Removed
  2483. * src/HashMetalinkParserState.cc: Removed
  2484. * src/HashMetalinkParserState.h: Removed
  2485. * src/InitialMetalinkParserState.cc: Removed
  2486. * src/InitialMetalinkParserState.h: Removed
  2487. * src/LanguageMetalinkParserState.cc: Removed
  2488. * src/LanguageMetalinkParserState.h: Removed
  2489. * src/Makefile.am
  2490. * src/MetalinkMetalinkParserState.cc: Removed
  2491. * src/MetalinkMetalinkParserState.h: Removed
  2492. * src/MetalinkParserState.h
  2493. * src/MetalinkParserStateMachine.cc
  2494. * src/MetalinkParserStateMachine.h
  2495. * src/OSMetalinkParserState.cc: Removed
  2496. * src/OSMetalinkParserState.h: Removed
  2497. * src/PieceHashMetalinkParserState.cc: Removed
  2498. * src/PieceHashMetalinkParserState.h: Removed
  2499. * src/PiecesMetalinkParserState.cc: Removed
  2500. * src/PiecesMetalinkParserState.h: Removed
  2501. * src/ResourcesMetalinkParserState.cc: Removed
  2502. * src/ResourcesMetalinkParserState.h: Removed
  2503. * src/SignatureMetalinkParserState.cc: Removed
  2504. * src/SignatureMetalinkParserState.h: Removed
  2505. * src/SizeMetalinkParserState.cc: Removed
  2506. * src/SizeMetalinkParserState.h: Removed
  2507. * src/SkipTagMetalinkParserState.cc: Removed
  2508. * src/SkipTagMetalinkParserState.h: Removed
  2509. * src/URLMetalinkParserState.cc: Removed
  2510. * src/URLMetalinkParserState.h: Removed
  2511. * src/VerificationMetalinkParserState.cc: Removed
  2512. * src/VerificationMetalinkParserState.h: Removed
  2513. * src/VersionMetalinkParserState.cc: Removed
  2514. * src/VersionMetalinkParserState.h: Removed
  2515. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Move all functions in PeerMessageUtil to bittorrent_helper.
  2517. * src/BtBitfieldMessage.cc
  2518. * src/BtBitfieldMessageValidator.h
  2519. * src/BtExtendedMessage.cc
  2520. * src/BtHandshakeMessage.cc
  2521. * src/BtHandshakeMessageValidator.h
  2522. * src/BtPieceMessage.cc
  2523. * src/BtPieceMessageValidator.h
  2524. * src/BtPortMessage.cc
  2525. * src/DHTFindNodeReplyMessage.cc
  2526. * src/DHTGetPeersReplyMessage.cc
  2527. * src/DHTMessageFactoryImpl.cc
  2528. * src/DHTRoutingTableDeserializer.cc
  2529. * src/DHTRoutingTableSerializer.cc
  2530. * src/DHTTokenTracker.cc
  2531. * src/DefaultBtMessageFactory.cc
  2532. * src/IndexBtMessage.cc
  2533. * src/IndexBtMessage.h
  2534. * src/IndexBtMessageValidator.h
  2535. * src/Makefile.am
  2536. * src/PeerMessageUtil.cc: Removed.
  2537. * src/PeerMessageUtil.h: Removed.
  2538. * src/RangeBtMessage.cc
  2539. * src/RangeBtMessage.h
  2540. * src/RangeBtMessageValidator.h
  2541. * src/UTPexExtensionMessage.cc
  2542. * src/ZeroBtMessage.cc
  2543. * src/ZeroBtMessage.h
  2544. * src/bittorrent_helper.cc
  2545. * src/bittorrent_helper.h
  2546. * test/BittorrentHelperTest.cc
  2547. * test/BtAllowedFastMessageTest.cc
  2548. * test/BtBitfieldMessageTest.cc
  2549. * test/BtCancelMessageTest.cc
  2550. * test/BtChokeMessageTest.cc
  2551. * test/BtExtendedMessageTest.cc
  2552. * test/BtHandshakeMessageTest.cc
  2553. * test/BtHaveAllMessageTest.cc
  2554. * test/BtHaveMessageTest.cc
  2555. * test/BtHaveNoneMessageTest.cc
  2556. * test/BtInterestedMessageTest.cc
  2557. * test/BtNotInterestedMessageTest.cc
  2558. * test/BtPieceMessageTest.cc
  2559. * test/BtPortMessageTest.cc
  2560. * test/BtRejectMessageTest.cc
  2561. * test/BtRequestMessageTest.cc
  2562. * test/BtSuggestPieceMessageTest.cc
  2563. * test/BtUnchokeMessageTest.cc
  2564. * test/DHTFindNodeReplyMessageTest.cc
  2565. * test/DHTGetPeersReplyMessageTest.cc
  2566. * test/DHTMessageFactoryImplTest.cc
  2567. * test/DHTRoutingTableDeserializerTest.cc
  2568. * test/DHTRoutingTableSerializerTest.cc
  2569. * test/DefaultBtMessageFactoryTest.cc
  2570. * test/DefaultExtensionMessageFactoryTest.cc
  2571. * test/Makefile.am
  2572. * test/PeerListProcessorTest.cc
  2573. * test/PeerMessageUtilTest.cc: Removed.
  2574. * test/UTPexExtensionMessageTest.cc
  2575. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Limit the size of values list when sending get_peers reply.
  2577. * src/DHTGetPeersReplyMessage.cc
  2578. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Updated banner
  2580. * doc/xmlrpc/aria2rpc
  2581. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Added missing help message for remove command.
  2583. * doc/xmlrpc/aria2rpc
  2584. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Generated configure and config.h.in
  2586. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2587. Add check for fork(), which is missing on MinGW
  2588. * src/daemon.cc
  2589. * configure.ac
  2590. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2592. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2593. Util::httpGMT().
  2594. * src/Util.cc
  2595. * src/Util.h
  2596. * test/UtilTest.cc
  2597. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. * Release 1.6.0
  2599. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Fixed a path to xmlrpc/README.txt
  2601. * doc/Makefile.am
  2602. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Added XML-RPC in -v Configuration output.
  2604. * src/FeatureConfig.cc
  2605. * src/FeatureConfig.h
  2606. * test/FeatureConfigTest.cc
  2607. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Updated Bulgarian, Russian, Slovak and Japanese
  2609. translations. Thanks to all translators.
  2610. * po/bg.po
  2611. * po/ja.po
  2612. * po/ru.po
  2613. * po/sk.po
  2614. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Removed --retry-wait option from aria2rpc
  2616. * doc/xmlrpc/aria2rpc
  2617. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Removed --retry-wait option from man page.
  2619. * doc/aria2c.1.txt
  2620. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Removed --retry-wait option since the current architecture doesn't
  2622. allow sleep for particular URI.
  2623. * src/AbstractCommand.cc
  2624. * src/OptionHandlerFactory.cc
  2625. * src/download_helper.cc
  2626. * src/prefs.cc
  2627. * src/prefs.h
  2628. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Removed Retry-After header support. Since the current architecture
  2630. doesn't allow sleep for particular URI.
  2631. * src/HttpSkipResponseCommand.cc
  2632. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Updated the help message for --daemon option.
  2634. * doc/aria2c.1.txt
  2635. * src/usage_text.h
  2636. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Added our own daemon() function for systems which desn't have
  2638. daemon(3).
  2639. * configure.ac
  2640. * src/Makefile.am
  2641. * src/daemon.cc
  2642. * src/daemon.h
  2643. * src/option_processing.cc
  2644. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Simplified File::getCurrentDir()
  2646. * src/File.cc
  2647. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Use exit() instead of _exit
  2649. * src/RequestGroupMan.cc
  2650. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Replaced "CATEGORY" with "TAGS".
  2652. * src/usage_text.h
  2653. * doc/aria2c.1.txt
  2654. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Updated the help message for --help option.
  2656. * src/usage_text.h
  2657. * doc/aria2c.1.txt
  2658. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Updated man page for added help tags.
  2660. * doc/aria2c.1.txt
  2661. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Added help category #file. Added #file tag to the options related
  2663. to downloaded file.
  2664. * src/OptionHandlerFactory.cc
  2665. * src/help_tags.h
  2666. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Added help categories: #cookie and #hook. Added #https tag to
  2668. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2669. * src/OptionHandlerFactory.cc
  2670. * src/help_tags.h
  2671. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Made MSG_NOT_FILE translatable.
  2673. * src/message.h
  2674. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Updated man page for --help option.
  2676. * doc/aria2c.1.txt
  2677. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Updated doc.
  2679. * src/XmlRpcMethod.h
  2680. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Help category now starts with "#" to distinguish a category from
  2682. keyword search. For example, "http" categroy is now "#http". You
  2683. can type "--help=#http" to get explanation of options related to
  2684. http. If '#' is omitted, then the argument is treated as a keyword
  2685. and aria2 searches options whose name includes the keyword and
  2686. print matched ones. For example, "--help=http" will show options
  2687. whose name includes "http".
  2688. * src/OptionHandlerFactory.cc
  2689. * src/help_tags.h
  2690. * src/usage_text.h
  2691. * src/version_usage.cc
  2692. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Documented missing experimental tag and newly added xml-rpc tag in
  2694. man page.
  2695. * doc/aria2c.1.txt
  2696. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Added xml-rpc help tag. Tagged xml-rpc related options with
  2698. xml-rpc tag.
  2699. * src/OptionHandlerFactory.cc
  2700. * src/help_tags.h
  2701. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Updated message when a path is not a file. Updated common message
  2703. for wrong option.
  2704. * src/OptionHandlerException.cc
  2705. * src/message.h
  2706. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Use File::isFile() instead of File::exists(). Updated message when
  2708. a path is not a file.
  2709. * src/OptionHandlerImpl.cc
  2710. * src/message.h
  2711. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Fixed the bug that server performence profile is not updated when
  2713. aria2c was terminated by emergency shutdown.
  2714. * src/TrackerWatcherCommand.cc
  2715. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Use LocalFilePathOptionHandler for -T and -M option.
  2717. Updated message of MSG_FILE_NOT_EXIST.
  2718. * src/OptionHandlerFactory.cc
  2719. * src/message.h
  2720. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Added LocalFilePathOptionHandler which check whether the specified
  2722. file path does exist or not.
  2723. * src/OptionHandlerImpl.cc
  2724. * src/message.h
  2725. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Updated wiki page URI.
  2727. * README
  2728. * doc/aria2c.1.txt
  2729. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Added README.txt for xmlrpc directory.
  2731. * doc/Makefile.am
  2732. * doc/xmlrpc/README.txt
  2733. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Bump up version number to 1.6.0.
  2735. * configure.ac
  2736. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Added XML-RPC client scripts written in ruby.
  2738. * doc/Makefile.am
  2739. * doc/xmlrpc/aria2mon
  2740. * doc/xmlrpc/aria2rpc
  2741. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Added support for IPv6 literal address in URI. Now aria2 can
  2743. handle URI such as http://[::1]/
  2744. * src/HttpRequest.cc
  2745. * src/HttpRequest.h
  2746. * src/Request.cc
  2747. * src/Request.h
  2748. * test/HttpRequestTest.cc
  2749. * test/OptionHandlerTest.cc
  2750. * test/RequestTest.cc
  2751. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Fixed the bug that HTTP request header for XML-RPC request is not
  2753. parsed properly.
  2754. * src/HttpHeader.cc
  2755. * src/HttpHeaderProcessor.cc
  2756. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Fixed the bug that XML-RPC authorization might be done before HTTP
  2758. request header is fully received.
  2759. * src/HttpServerCommand.cc
  2760. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Documented --xml-rpc-listen-all option in man page.
  2762. * doc/aria2c.1.txt
  2763. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Added --xml-rpc-listen-all option. If true is given to this
  2765. option, aria2 listens incoming XML-RPC requests on all network
  2766. interfaces. If false is given, listens only on local loopback
  2767. interface. The default value is false.
  2768. * src/HttpListenCommand.cc
  2769. * src/OptionHandlerFactory.cc
  2770. * src/SocketCore.cc
  2771. * src/SocketCore.h
  2772. * src/prefs.cc
  2773. * src/prefs.h
  2774. * src/usage_text.h
  2775. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. * Release 1.5.2
  2777. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Updated Ukrainian and Russian translations. Thanks to all
  2779. translators.
  2780. * po/ru.po
  2781. * po/uk.po
  2782. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Bump up version number to 1.5.2
  2784. * configure.ac
  2785. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Get comment, comment.utf-8, created by and creation date from
  2787. .torrent file and print them in -S output.
  2788. * src/bittorrent_helper.cc
  2789. * src/bittorrent_helper.h
  2790. * test/BittorrentHelperTest.cc
  2791. * test/test.torrent
  2792. * test/utf8.torrent
  2793. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Show exact file size along in -S option output.
  2795. * src/Util.h
  2796. * src/bittorrent_helper.cc
  2797. * test/UtilTest.cc
  2798. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Avoided unnecessary memory allocation in
  2800. BitfieldMan::getCompletedLength().
  2801. * src/BitfieldMan.cc
  2802. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Fixed the bug that download fails if
  2804. SocketCore::establishConnection() throws exception and aria2
  2805. doesn't try another address.
  2806. * src/AbstractCommand.cc
  2807. * src/InitiateConnectionCommand.cc
  2808. * src/message.h
  2809. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2811. detected properly.
  2812. * m4/sqlite3.m4
  2813. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2815. because it causes compile error if PARAMS macro is defined.
  2816. * src/XmlRpcElements.cc
  2817. * src/XmlRpcElements.h
  2818. * src/XmlRpcRequestParserStateImpl.cc
  2819. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. * Release 1.5.1
  2821. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Bump up version number to 1.5.1
  2823. * configure.ac
  2824. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Fixed compile error without BitTorrent support
  2826. * src/DefaultBtProgressInfoFile.cc
  2827. * src/DownloadEngine.cc
  2828. * src/DownloadEngine.h
  2829. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Added missing '=' in Download Results
  2831. * src/RequestGroupMan.cc
  2832. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Fixed compiler warning
  2834. * src/DefaultBtProgressInfoFile.cc
  2835. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Fixed compiler warning on 32bit systems.
  2837. * src/DownloadCommand.cc
  2838. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Call flush from ServerStatMan::save()
  2840. * src/ServerStatMan.cc
  2841. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Check stream status after file is opened.
  2843. * src/CookieStorage.cc
  2844. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Rewritten Signature::save()
  2846. * src/Signature.cc
  2847. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Rewritten RequestGroupMan::saveServerStat()
  2849. * src/RequestGroupMan.cc
  2850. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Rewritten stream error handling
  2852. * src/DHTAutoSaveCommand.cc
  2853. * src/DHTRoutingTableDeserializer.cc
  2854. * src/DHTRoutingTableSerializer.cc
  2855. * src/DHTSetup.cc
  2856. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Check stream status after file is opened.
  2858. * src/DefaultBtProgressInfoFile.cc
  2859. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Rewritten stream error handling
  2861. * src/DefaultBtProgressInfoFile.cc
  2862. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Make sure that stream is closed before renaming file. Unit test
  2864. fails on mingw32 in the previous implementation.
  2865. * src/CookieStorage.cc
  2866. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Fixed the unit test error without sqlite3
  2868. * test/CookieStorageTest.cc
  2869. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Fixed the undefined reference error
  2871. * test/HttpResponseTest.cc
  2872. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. * Release 1.5.0
  2874. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2876. Ukrainian translations. Thanks to all translators.
  2877. * po/ru.po
  2878. * po/it.po
  2879. * po/da.po
  2880. * po/bg.po
  2881. * po/ja.po
  2882. * po/uk.po
  2883. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Added missing src/Logger.cc
  2885. * src/Logger.cc
  2886. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Rewritten Logger to avoiding constly virtual call.
  2888. * src/LogFactory.cc
  2889. * src/LogFactory.h
  2890. * src/Logger.h
  2891. * src/Makefile.am
  2892. * src/Makefile.in
  2893. * src/NullLogger.h: Removed.
  2894. * src/SimpleLogger.cc
  2895. * src/SimpleLogger.h
  2896. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2897. Updated doc
  2898. * src/main.cc
  2899. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Updated debug log message
  2901. * src/AbstractCommand.cc
  2902. * src/message.h
  2903. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2904. Avoid to create zombie process when commands specified in
  2905. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2906. X and NetBSD.
  2907. * src/main.cc
  2908. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Fixed typo
  2910. * src/usage_text.h
  2911. * doc/aria2c.1.txt
  2912. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Documented 'errorCode' of tellStatus in man page.
  2914. * doc/aria2c.1.txt
  2915. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2917. This key is only available for stopped/completed downloads and its
  2918. value is the error code defined in EXIT STATUS in man page.
  2919. * src/XmlRpcMethodImpl.cc
  2920. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Fixed the bug that session download length is not updated when
  2922. PeerStat is not fastest one.
  2923. * src/SegmentMan.cc
  2924. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Updated doc.
  2926. * doc/aria2c.1.txt
  2927. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Updated doc.
  2929. * src/AbstractCommand.cc
  2930. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Handle the case when DownloadContext has no FileEntry.
  2932. * src/XmlRpcMethodImpl.cc
  2933. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Handle the situation where struct option.name is char *.
  2935. * configure.ac
  2936. * src/OptionParser.cc
  2937. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Code cleanup
  2939. * src/AbstractCommand.cc
  2940. * src/DownloadCommand.cc
  2941. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Use option of each download to create AuthConfig instead of global
  2943. option.
  2944. * src/AuthConfigFactory.cc
  2945. * src/AuthConfigFactory.h
  2946. * src/FtpNegotiationCommand.cc
  2947. * src/HttpRequest.cc
  2948. * src/HttpRequest.h
  2949. * src/HttpRequestCommand.cc
  2950. * src/HttpSkipResponseCommand.cc
  2951. * src/MultiUrlRequestInfo.cc
  2952. * test/AuthConfigFactoryTest.cc
  2953. * test/FtpConnectionTest.cc
  2954. * test/HttpRequestTest.cc
  2955. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Don't call prepareForRetry(1) if all segments are ignored in
  2957. SegmentMan.
  2958. * src/AbstractCommand.cc
  2959. * src/BitfieldMan.cc
  2960. * src/BitfieldMan.h
  2961. * src/SegmentMan.cc
  2962. * src/SegmentMan.h
  2963. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Removed FileEntry::getAssociatedUris()
  2965. * src/FileEntry.h
  2966. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Updated doc: TODO1.5 -> TODO
  2968. * src/FileEntry.cc
  2969. * src/HttpResponseCommand.cc
  2970. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2972. involved.
  2973. * src/RequestGroup.cc
  2974. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Eliminated duplicated filterBitfield initialization code.
  2976. * src/BitfieldMan.cc
  2977. * src/BitfieldMan.h
  2978. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2980. relatively naive approach, though). For DownloadFailureException,
  2981. we handle the case when req is null properly.
  2982. * src/AbstractCommand.cc
  2983. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Added function returning suffix of control file to
  2985. DefaultBtProgressInfoFile.
  2986. * src/DefaultBtProgressInfoFile.cc
  2987. * src/DefaultBtProgressInfoFile.h
  2988. * src/RequestGroup.cc
  2989. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2990. Documented getVersion in man page.
  2991. * doc/aria2c.1.txt
  2992. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Documented type of offset and num for tellWaiting xml-rpc method.
  2994. * doc/aria2c.1.txt
  2995. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Implemented getVersion xml-rpc method. This method returns struct
  2997. which has 2 key-value pairs: "version" key is associated to the
  2998. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2999. associated to the list of enabled features, such as "Async DNS",
  3000. "BitTorrent".
  3001. * src/FeatureConfig.h
  3002. * src/XmlRpcMethodFactory.cc
  3003. * src/XmlRpcMethodImpl.cc
  3004. * src/XmlRpcMethodImpl.h
  3005. * test/XmlRpcMethodTest.cc
  3006. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3008. for compatibility issue.
  3009. * src/SocketCore.cc
  3010. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Fixed compile error with openSSL
  3012. * src/bittorrent_helper.cc
  3013. * src/messageDigest.h
  3014. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Removed bad code: setting certificate type priority to key
  3016. exchange priority.
  3017. * src/SocketCore.cc
  3018. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Disconnect seeder if client is also in seed state.
  3020. * src/BtBitfieldMessage.cc
  3021. * src/BtHaveAllMessage.cc
  3022. * src/BtHaveMessage.cc
  3023. * src/message.h
  3024. * test/BtBitfieldMessageTest.cc
  3025. * test/BtHaveAllMessageTest.cc
  3026. * test/BtHaveMessageTest.cc
  3027. * test/MockPieceStorage.h
  3028. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Keep CreateRequestCommand in queue when no segment is available so
  3030. that they can pick up pieces which slow BitTorrent peers are
  3031. downloading.
  3032. * src/AbstractCommand.cc
  3033. * src/CreateRequestCommand.cc
  3034. * src/CreateRequestCommand.h
  3035. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. --bt-stop-timeout now only checks download speed.
  3037. * src/BtStopDownloadCommand.cc
  3038. * src/BtStopDownloadCommand.h
  3039. * src/BtSetup.cc
  3040. * src/usage_text.h
  3041. * doc/aria2c.1.txt
  3042. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Fixed compile error regarding BUFSIZE.
  3044. * src/DownloadCommand.cc
  3045. * src/DownloadCommand.h
  3046. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Documented tellWaiting xml-rpc method in man page.
  3048. * doc/aria2c.1.txt
  3049. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Bump up version number to 1.5.0
  3051. * configure.ac
  3052. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Removed resolved TODO1.5
  3054. * src/AbstractCommand.cc
  3055. * src/DownloadCommand.cc
  3056. * src/RequestGroup.cc
  3057. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Release pooled and in-flight Request objectsand URIResult objects
  3059. in FileEntry after download completed.
  3060. * src/DownloadContext.cc
  3061. * src/DownloadContext.h
  3062. * src/FileEntry.cc
  3063. * src/FileEntry.h
  3064. * src/RequestGroup.cc
  3065. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Set manual and source attribute in aria2c.1.txt
  3067. * doc/aria2c.1.txt
  3068. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Documented that the default value of --use-head is 'false' in man
  3070. page.
  3071. * doc/aria2c.1.txt
  3072. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Added bt-stop-timeout option to -i list.
  3074. * doc/aria2c.1.txt
  3075. * src/download_helper.cc
  3076. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Fixed typo
  3078. * doc/aria2c.1.txt
  3079. * src/usage_text.h
  3080. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Removed peer-id-prefix option from -i list.
  3082. * doc/aria2c.1.txt
  3083. * src/download_helper.cc
  3084. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Fixed typo
  3086. * doc/aria2c.1.txt
  3087. * src/usage_text.h
  3088. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Documented --bt-stop-timeout option in man page.
  3090. * doc/aria2c.1.txt
  3091. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Updated README regarding multi-file torrent web-seeding.
  3093. * doc/README.txt
  3094. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Updated man page regarding multi-file torrent web-seeding.
  3096. * doc/aria2c.1.txt
  3097. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Updated doc
  3099. * src/version_usage.cc
  3100. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Winsock select() doesn't work if no socket is in FD_SET. To
  3102. overcome this problem, a dummy socket is added to FD_SET and it is
  3103. given to select().
  3104. * src/SelectEventPoll.cc
  3105. * src/SelectEventPoll.h
  3106. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Disabled --use-head option by default because --use-head=true
  3108. causes problems on some web sites.
  3109. * src/OptionHandlerFactory.cc
  3110. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Print URL List in -S option for torrent.
  3112. * src/bittorrent_helper.cc
  3113. * src/bittorrent_helper.h
  3114. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3115. Allocate buffer in ctor of DownloadCommand.
  3116. * src/DownloadCommand.cc
  3117. * src/DownloadCommand.h
  3118. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Removed DiskAdaptor::onDownloadComplete()
  3120. * src/DirectDiskAdaptor.cc
  3121. * src/DirectDiskAdaptor.h
  3122. * src/DiskAdaptor.h
  3123. * src/MultiDiskAdaptor.cc
  3124. * src/MultiDiskAdaptor.h
  3125. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Committed missing BtStopDownloadCommand.{cc,h}
  3127. * src/BtStopDownloadCommand.cc
  3128. * src/BtStopDownloadCommand.h
  3129. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3131. download if the download speed is 0 and the number of seeder is 0
  3132. in consecutive SEC seconds. By default, this function is disabled.
  3133. * src/BtSetup.cc
  3134. * src/Makefile.am
  3135. * src/OptionHandlerFactory.cc
  3136. * src/prefs.cc
  3137. * src/prefs.h
  3138. * src/usage_text.h
  3139. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Removed the call to DiskAdaptor::onDownloadComplete() from
  3141. BtCheckIntegrityEntry and DefaultPieceStorage.
  3142. * src/BtCheckIntegrityEntry.cc
  3143. * src/DefaultPieceStorage.cc
  3144. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Commented out throw statements when number of piece is 0 to
  3146. download 0 length torrent.
  3147. * src/bittorrent_helper.cc
  3148. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Call RequestGroup::createNextCommandWithAdj() from
  3150. BtFileAllocationEntry if at least one FileEntry has URI. The
  3151. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3152. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3153. * src/BtFileAllocationEntry.cc
  3154. * src/FileEntry.h
  3155. * src/RequestGroup.cc
  3156. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Generate peer ID after SimpleRandomizer is initialized.
  3158. * src/main.cc
  3159. * src/option_processing.cc
  3160. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Removed unused method argument.
  3162. * src/CreateRequestCommand.cc
  3163. * src/RequestGroup.cc
  3164. * src/RequestGroup.h
  3165. * src/RequestGroupMan.cc
  3166. * src/TrackerWatcherCommand.cc
  3167. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Made URI reusing function work.
  3169. * src/CreateRequestCommand.cc
  3170. * src/FileEntry.cc
  3171. * src/FileEntry.h
  3172. * test/FileEntryTest.cc
  3173. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Add formerly fastest PeerStat's sessionDownloadLength to new
  3175. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3176. bytes in a session.
  3177. * src/PeerStat.cc
  3178. * src/SegmentMan.cc
  3179. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. If pipelining is enabled, we can always pool socket.
  3181. * src/HttpDownloadCommand.cc
  3182. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. In a single file download, file size becomes known just after
  3184. downloading, set total length to FileEntry object when download
  3185. completed.
  3186. * src/DownloadCommand.cc
  3187. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Use std::vector::reserve() for fileEntries and pieceHashes in
  3189. bittorrent_helper
  3190. * src/bittorrent_helper.cc
  3191. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3193. Removed hidden option PREF_RESET_URI.
  3194. * src/AbstractCommand.cc
  3195. * src/OptionHandlerFactory.cc
  3196. * src/prefs.cc
  3197. * src/prefs.h
  3198. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Removed unused variable/function.
  3200. * src/PeerStat.h
  3201. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Show first URL in Download Results if file path is not available.
  3203. * src/FileEntry.h
  3204. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Throw exception if file path doesn't exist in FTP URL.
  3206. * src/InitiateConnectionCommandFactory.cc
  3207. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3209. * src/BitfieldMan.cc
  3210. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3212. of PeerStat in SegmentMan. peerStats is used for calculating
  3213. download speed. Therefore all active PeerStats should be in
  3214. there. Another one is _fastestPeerStats and it only contains
  3215. fastest PeerStat for each hostname/protocol pair. They are used
  3216. for updating ServerStat.
  3217. * src/DownloadCommand.cc
  3218. * src/Request.h
  3219. * src/RequestGroupMan.cc
  3220. * src/SegmentMan.cc
  3221. * src/SegmentMan.h
  3222. * test/SegmentManTest.cc
  3223. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Try all available addresses returned by DNS until it gets
  3225. connected in HTTP(S)/FTP download
  3226. * src/AbstractCommand.cc
  3227. * src/AbstractCommand.h
  3228. * src/AbstractProxyRequestCommand.cc
  3229. * src/AbstractProxyRequestCommand.h
  3230. * src/DNSCache.h
  3231. * src/DownloadEngine.cc
  3232. * src/DownloadEngine.h
  3233. * src/FtpInitiateConnectionCommand.cc
  3234. * src/FtpInitiateConnectionCommand.h
  3235. * src/FtpNegotiationCommand.cc
  3236. * src/FtpNegotiationCommand.h
  3237. * src/HttpInitiateConnectionCommand.cc
  3238. * src/HttpInitiateConnectionCommand.h
  3239. * src/HttpRequestCommand.cc
  3240. * src/HttpRequestCommand.h
  3241. * src/InitiateConnectionCommand.cc
  3242. * src/InitiateConnectionCommand.h
  3243. * test/DNSCacheTest.cc
  3244. * test/Makefile.am
  3245. * test/SimpleDNSCacheTest.cc
  3246. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Updated doc
  3248. * src/download_helper.cc
  3249. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Refactored fieldMan ctor.
  3251. * src/BitfieldMan.cc
  3252. * src/BitfieldMan.h
  3253. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Don't print "No files to download." message if -S is given.
  3255. * src/main.cc
  3256. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Set referer and method to newly created Request object.
  3258. * src/CreateRequestCommand.cc
  3259. * src/FileEntry.cc
  3260. * src/FileEntry.h
  3261. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3263. * src/AbstractCommand.cc
  3264. * src/AbstractCommand.h
  3265. * src/CreateRequestCommand.cc
  3266. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Get proxy download working
  3268. * src/AbstractProxyRequestCommand.cc
  3269. * src/AbstractProxyRequestCommand.h
  3270. * src/AbstractProxyResponseCommand.cc
  3271. * src/AbstractProxyResponseCommand.h
  3272. * src/FtpInitiateConnectionCommand.cc
  3273. * src/FtpTunnelRequestCommand.cc
  3274. * src/FtpTunnelRequestCommand.h
  3275. * src/FtpTunnelResponseCommand.cc
  3276. * src/FtpTunnelResponseCommand.h
  3277. * src/HttpInitiateConnectionCommand.cc
  3278. * src/HttpProxyRequestCommand.cc
  3279. * src/HttpProxyRequestCommand.h
  3280. * src/HttpProxyResponseCommand.cc
  3281. * src/HttpProxyResponseCommand.h
  3282. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Use SegmentMan::getSegment(cuid) for single file download.
  3284. * src/AbstractCommand.cc
  3285. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Fixed bufSize calculation
  3287. * src/DownloadCommand.cc
  3288. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Don't append "/" if base URI ends with "/".
  3290. * src/bittorrent_helper.cc
  3291. * test/url-list-multiFile.torrent
  3292. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. HTTP pipelining is now working. Fixed Segmention fault in
  3294. BitfieldMan's copy ctor.
  3295. * src/AbstractCommand.cc
  3296. * src/BitfieldMan.cc
  3297. * src/BitfieldMan.h
  3298. * src/DownloadCommand.cc
  3299. * src/HttpDownloadCommand.cc
  3300. * src/HttpRequest.cc
  3301. * src/SegmentMan.cc
  3302. * src/SegmentMan.h
  3303. * test/BitfieldManTest.cc
  3304. * test/SegmentManTest.cc
  3305. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Removed ServerHost. Same functionality is implemented using
  3307. FileEntry's in-flight Request objects.
  3308. * src/AbstractCommand.cc
  3309. * src/BtDependency.cc
  3310. * src/CreateRequestCommand.cc
  3311. * src/FileEntry.cc
  3312. * src/FileEntry.h
  3313. * src/FtpNegotiationCommand.cc
  3314. * src/HttpResponseCommand.cc
  3315. * src/Makefile.am
  3316. * src/Metalink2RequestGroup.cc
  3317. * src/RequestGroup.cc
  3318. * src/RequestGroup.h
  3319. * src/ServerHost.cc: Removed
  3320. * src/ServerHost.h: Removed
  3321. * test/BtDependencyTest.cc
  3322. * test/FileEntryTest.cc
  3323. * test/RequestGroupTest.cc
  3324. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Rewritten PeerStat handling. In the previous implementation,
  3326. faster command tries to find slower command. In this new
  3327. implementation, slower command tries to find faster command.
  3328. PeerStat is now created in each HTTP/FTP request to get download
  3329. rate correctly. If the download range is small, the download rate
  3330. tends to small and this will occur at the later stage of download.
  3331. * src/AbstractCommand.cc
  3332. * src/DownloadCommand.cc
  3333. * src/FileEntry.cc
  3334. * src/FileEntry.h
  3335. * src/Request.cc
  3336. * src/Request.h
  3337. * src/RequestGroup.h
  3338. * src/RequestGroupMan.cc
  3339. * src/SegmentMan.cc
  3340. * src/SegmentMan.h
  3341. * test/SegmentManTest.cc
  3342. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Removed _uris from RequestGroup. All functions that refer to _uris
  3344. were moved to FileEntry. Exit status code are now defined in
  3345. DownloadResultCode.h.
  3346. * src/AbstractCommand.cc
  3347. * src/AdaptiveURISelector.cc
  3348. * src/AdaptiveURISelector.h
  3349. * src/AutoSaveCommand.cc
  3350. * src/BtPostDownloadHandler.cc
  3351. * src/CheckIntegrityDispatcherCommand.cc
  3352. * src/CookieStorage.cc
  3353. * src/DHTAutoSaveCommand.cc
  3354. * src/DHTBucketRefreshCommand.cc
  3355. * src/DHTEntryPointNameResolveCommand.cc
  3356. * src/DHTInteractionCommand.cc
  3357. * src/DHTPeerAnnounceCommand.cc
  3358. * src/DHTTokenUpdateCommand.cc
  3359. * src/DlAbortEx.h
  3360. * src/DlRetryEx.h
  3361. * src/DownloadCommand.cc
  3362. * src/DownloadContext.h
  3363. * src/DownloadFailureException.h
  3364. * src/DownloadResult.h
  3365. * src/DownloadResultCode.h
  3366. * src/FeedbackURISelector.cc
  3367. * src/FeedbackURISelector.h
  3368. * src/FileEntry.cc
  3369. * src/FileEntry.h
  3370. * src/FtpNegotiationCommand.cc
  3371. * src/HttpListenCommand.cc
  3372. * src/HttpResponseCommand.cc
  3373. * src/HttpServerResponseCommand.cc
  3374. * src/HttpSkipResponseCommand.cc
  3375. * src/InOrderURISelector.cc
  3376. * src/InOrderURISelector.h
  3377. * src/Makefile.am
  3378. * src/Makefile.in
  3379. * src/Metalink2RequestGroup.cc
  3380. * src/MultiUrlRequestInfo.cc
  3381. * src/MultiUrlRequestInfo.h
  3382. * src/OptionHandlerFactory.cc
  3383. * src/PeerListenCommand.cc
  3384. * src/RecoverableException.h
  3385. * src/RequestGroup.cc
  3386. * src/RequestGroup.h
  3387. * src/RequestGroupMan.cc
  3388. * src/RequestGroupMan.h
  3389. * src/TimedHaltCommand.cc
  3390. * src/TrackerWatcherCommand.cc
  3391. * src/URIResult.cc
  3392. * src/URIResult.h
  3393. * src/URISelector.h
  3394. * src/XmlRpcMethodImpl.cc
  3395. * src/bittorrent_helper.cc
  3396. * src/bittorrent_helper.h
  3397. * src/download_helper.cc
  3398. * src/main.cc
  3399. * src/option_processing.cc
  3400. * test/BtDependencyTest.cc
  3401. * test/BtPostDownloadHandlerTest.cc
  3402. * test/CookieStorageTest.cc
  3403. * test/DefaultBtMessageDispatcherTest.cc
  3404. * test/DownloadHandlerFactoryTest.cc
  3405. * test/DownloadHelperTest.cc
  3406. * test/FeedbackURISelectorTest.cc
  3407. * test/FileEntryTest.cc
  3408. * test/InOrderURISelectorTest.cc
  3409. * test/Metalink2RequestGroupTest.cc
  3410. * test/MetalinkPostDownloadHandlerTest.cc
  3411. * test/RequestGroupManTest.cc
  3412. * test/RequestGroupTest.cc
  3413. * test/XmlRpcMethodTest.cc
  3414. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Removed MockBtContext.h
  3416. * test/Makefile.am
  3417. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Removed _currentRequest from StreamCheckIntegrityEntry and
  3419. StreamFileAllocationEntry.
  3420. * src/AbstractCommand.cc
  3421. * src/HttpResponseCommand.cc
  3422. * src/RequestGroup.cc
  3423. * src/StreamCheckIntegrityEntry.cc
  3424. * src/StreamCheckIntegrityEntry.h
  3425. * src/StreamFileAllocationEntry.cc
  3426. * src/StreamFileAllocationEntry.h
  3427. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Rewritten DownloadContext and removed SingleFileDownloadContext
  3429. and BtContext and its derived classes. BitTorrent specific
  3430. attributes are now set by DownloadContext::setAttribute() with key
  3431. bittorrent::BITTORRENT.
  3432. * src/AbstractBtMessage.cc
  3433. * src/AbstractBtMessage.h
  3434. * src/AbstractCommand.cc
  3435. * src/AbstractCommand.h
  3436. * src/AbstractProxyRequestCommand.cc
  3437. * src/AbstractProxyResponseCommand.cc
  3438. * src/ActivePeerConnectionCommand.cc
  3439. * src/ActivePeerConnectionCommand.h
  3440. * src/AnnounceList.cc
  3441. * src/BtCheckIntegrityEntry.cc
  3442. * src/BtConstants.h
  3443. * src/BtContext.h: Removed
  3444. * src/BtDependency.cc
  3445. * src/BtExtendedMessage.cc
  3446. * src/BtPieceMessage.cc
  3447. * src/BtPieceMessage.h
  3448. * src/BtPostDownloadHandler.cc
  3449. * src/BtRegistry.cc
  3450. * src/BtRegistry.h
  3451. * src/BtSetup.cc
  3452. * src/CheckIntegrityCommand.cc
  3453. * src/CheckIntegrityEntry.cc
  3454. * src/ChecksumCheckIntegrityEntry.cc
  3455. * src/ConsoleStatCalc.cc
  3456. * src/ContentTypeRequestGroupCriteria.cc
  3457. * src/DHTGetPeersCommand.cc
  3458. * src/DHTGetPeersCommand.h
  3459. * src/DHTPeerLookupTask.cc
  3460. * src/DHTPeerLookupTask.h
  3461. * src/DHTTaskFactory.h
  3462. * src/DHTTaskFactoryImpl.cc
  3463. * src/DHTTaskFactoryImpl.h
  3464. * src/DefaultBtAnnounce.cc
  3465. * src/DefaultBtAnnounce.h
  3466. * src/DefaultBtContext.cc: Removed
  3467. * src/DefaultBtContext.h: Removed
  3468. * src/DefaultBtInteractive.cc
  3469. * src/DefaultBtInteractive.h
  3470. * src/DefaultBtMessageDispatcher.cc
  3471. * src/DefaultBtMessageDispatcher.h
  3472. * src/DefaultBtMessageFactory.cc
  3473. * src/DefaultBtMessageFactory.h
  3474. * src/DefaultBtMessageReceiver.cc
  3475. * src/DefaultBtMessageReceiver.h
  3476. * src/DefaultBtProgressInfoFile.cc
  3477. * src/DefaultBtRequestFactory.cc
  3478. * src/DefaultBtRequestFactory.h
  3479. * src/DefaultExtensionMessageFactory.cc
  3480. * src/DefaultExtensionMessageFactory.h
  3481. * src/DefaultPeerStorage.cc
  3482. * src/DefaultPeerStorage.h
  3483. * src/DefaultPieceStorage.cc
  3484. * src/DefaultSegmentManFactory.cc
  3485. * src/DiskAdaptor.cc
  3486. * src/DiskAdaptor.h
  3487. * src/DownloadContext.cc
  3488. * src/DownloadContext.h
  3489. * src/DownloadEngine.cc
  3490. * src/DownloadEngineFactory.cc
  3491. * src/DownloadHandler.cc
  3492. * src/DownloadResult.h
  3493. * src/FileAllocationCommand.cc
  3494. * src/FileAllocationDispatcherCommand.cc
  3495. * src/FileAllocationEntry.cc
  3496. * src/FileEntry.h
  3497. * src/FillRequestGroupCommand.cc
  3498. * src/FtpDownloadCommand.cc
  3499. * src/FtpFinishDownloadCommand.cc
  3500. * src/FtpInitiateConnectionCommand.cc
  3501. * src/FtpNegotiationCommand.cc
  3502. * src/FtpTunnelRequestCommand.cc
  3503. * src/FtpTunnelResponseCommand.cc
  3504. * src/HandshakeExtensionMessage.cc
  3505. * src/HandshakeExtensionMessage.h
  3506. * src/HaveEraseCommand.cc
  3507. * src/HttpDownloadCommand.cc
  3508. * src/HttpInitiateConnectionCommand.cc
  3509. * src/HttpProxyRequestCommand.cc
  3510. * src/HttpProxyResponseCommand.cc
  3511. * src/HttpRequest.cc
  3512. * src/HttpRequest.h
  3513. * src/HttpRequestCommand.cc
  3514. * src/HttpResponseCommand.cc
  3515. * src/HttpServerBodyCommand.cc
  3516. * src/HttpServerCommand.cc
  3517. * src/HttpSkipResponseCommand.cc
  3518. * src/InitiateConnectionCommandFactory.cc
  3519. * src/InitiatorMSEHandshakeCommand.cc
  3520. * src/InitiatorMSEHandshakeCommand.h
  3521. * src/IteratableChecksumValidator.cc
  3522. * src/IteratableChecksumValidator.h
  3523. * src/IteratableChunkChecksumValidator.cc
  3524. * src/MSEHandshake.cc
  3525. * src/MSEHandshake.h
  3526. * src/Makefile.am
  3527. * src/Makefile.in
  3528. * src/Metalink2RequestGroup.cc
  3529. * src/MetalinkPostDownloadHandler.cc
  3530. * src/MultiDiskAdaptor.cc
  3531. * src/MultiDiskAdaptor.h
  3532. * src/MultiFileAllocationIterator.cc
  3533. * src/MultiUrlRequestInfo.cc
  3534. * src/PeerChokeCommand.cc
  3535. * src/PeerChokeCommand.h
  3536. * src/PeerInitiateConnectionCommand.cc
  3537. * src/PeerInitiateConnectionCommand.h
  3538. * src/PeerInteractionCommand.cc
  3539. * src/PeerInteractionCommand.h
  3540. * src/PeerReceiveHandshakeCommand.cc
  3541. * src/PieceHashCheckIntegrityEntry.cc
  3542. * src/RealtimeCommand.cc
  3543. * src/ReceiverMSEHandshakeCommand.cc
  3544. * src/RequestGroup.cc
  3545. * src/RequestGroup.h
  3546. * src/RequestGroupEntry.cc
  3547. * src/RequestGroupMan.cc
  3548. * src/SeedCheckCommand.cc
  3549. * src/SeedCheckCommand.h
  3550. * src/SegmentMan.cc
  3551. * src/ShareRatioSeedCriteria.h
  3552. * src/SingleFileDownloadContext.cc: Removed
  3553. * src/SingleFileDownloadContext.h: Removed
  3554. * src/SleepCommand.cc
  3555. * src/StreamCheckIntegrityEntry.cc
  3556. * src/TrackerWatcherCommand.cc
  3557. * src/TrackerWatcherCommand.h
  3558. * src/UnknownLengthPieceStorage.cc
  3559. * src/Util.cc
  3560. * src/Util.h
  3561. * src/XmlRpcMethodImpl.cc
  3562. * src/bittorrent_helper.cc
  3563. * src/bittorrent_helper.h
  3564. * src/download_helper.cc
  3565. * src/main.cc
  3566. * src/option_processing.cc
  3567. * test/BitfieldManTest.cc
  3568. * test/BittorrentHelperTest.cc
  3569. * test/BtCancelMessageTest.cc
  3570. * test/BtChokeMessageTest.cc
  3571. * test/BtDependencyTest.cc
  3572. * test/BtPieceMessageTest.cc
  3573. * test/BtPostDownloadHandlerTest.cc
  3574. * test/BtRegistryTest.cc
  3575. * test/BtRejectMessageTest.cc
  3576. * test/BtRequestMessageTest.cc
  3577. * test/DHTPeerAnnounceStorageTest.cc
  3578. * test/DefaultBtAnnounceTest.cc
  3579. * test/DefaultBtContextTest.cc: Removed
  3580. * test/DefaultBtMessageDispatcherTest.cc
  3581. * test/DefaultBtMessageFactoryTest.cc
  3582. * test/DefaultBtProgressInfoFileTest.cc
  3583. * test/DefaultBtRequestFactoryTest.cc
  3584. * test/DefaultExtensionMessageFactoryTest.cc
  3585. * test/DefaultPeerStorageTest.cc
  3586. * test/DefaultPieceStorageTest.cc
  3587. * test/DirectDiskAdaptorTest.cc
  3588. * test/DownloadContextTest.cc
  3589. * test/DownloadHandlerFactoryTest.cc
  3590. * test/DownloadHelperTest.cc
  3591. * test/HandshakeExtensionMessageTest.cc
  3592. * test/HttpRequestTest.cc
  3593. * test/HttpResponseTest.cc
  3594. * test/IteratableChecksumValidatorTest.cc
  3595. * test/IteratableChunkChecksumValidatorTest.cc
  3596. * test/MSEHandshakeTest.cc
  3597. * test/Makefile.am
  3598. * test/Makefile.in
  3599. * test/Metalink2RequestGroupTest.cc
  3600. * test/MetalinkPostDownloadHandlerTest.cc
  3601. * test/MockBtContext.h: Removed
  3602. * test/MockDHTTaskFactory.h
  3603. * test/MockDownloadContext.h: Removed
  3604. * test/MockPieceStorage.h
  3605. * test/MultiDiskAdaptorTest.cc
  3606. * test/MultiFileAllocationIteratorTest.cc
  3607. * test/RequestGroupManTest.cc
  3608. * test/RequestGroupTest.cc
  3609. * test/SegmentManTest.cc
  3610. * test/ShareRatioSeedCriteriaTest.cc
  3611. * test/SingleFileDownloadContextTest.cc: Removed
  3612. * test/UtilTest.cc
  3613. * test/XmlRpcMethodTest.cc
  3614. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Added experimental support of WEB-Seeding for multi-file torrent.
  3616. Due to fundamental changes in file handling in HTTP/FTP code, many
  3617. functions are not working: PeerStat, ServerHost, proxy..etc
  3618. * src/AbstractCommand.cc
  3619. * src/AbstractCommand.h
  3620. * src/BitfieldMan.cc
  3621. * src/BitfieldMan.h
  3622. * src/CreateRequestCommand.cc
  3623. * src/CreateRequestCommand.h
  3624. * src/DefaultPieceStorage.cc
  3625. * src/DefaultPieceStorage.h
  3626. * src/DownloadCommand.cc
  3627. * src/DownloadCommand.h
  3628. * src/DownloadContext.cc
  3629. * src/DownloadContext.h
  3630. * src/FileEntry.cc
  3631. * src/FileEntry.h
  3632. * src/FtpDownloadCommand.cc
  3633. * src/FtpDownloadCommand.h
  3634. * src/FtpFinishDownloadCommand.cc
  3635. * src/FtpFinishDownloadCommand.h
  3636. * src/FtpInitiateConnectionCommand.cc
  3637. * src/FtpInitiateConnectionCommand.h
  3638. * src/FtpNegotiationCommand.cc
  3639. * src/FtpNegotiationCommand.h
  3640. * src/FtpTunnelResponseCommand.cc
  3641. * src/HttpDownloadCommand.cc
  3642. * src/HttpDownloadCommand.h
  3643. * src/HttpInitiateConnectionCommand.cc
  3644. * src/HttpInitiateConnectionCommand.h
  3645. * src/HttpProxyResponseCommand.cc
  3646. * src/HttpRequest.cc
  3647. * src/HttpRequest.h
  3648. * src/HttpRequestCommand.cc
  3649. * src/HttpRequestCommand.h
  3650. * src/HttpResponseCommand.cc
  3651. * src/HttpResponseCommand.h
  3652. * src/HttpSkipResponseCommand.cc
  3653. * src/HttpSkipResponseCommand.h
  3654. * src/InitiateConnectionCommand.cc
  3655. * src/InitiateConnectionCommand.h
  3656. * src/InitiateConnectionCommandFactory.cc
  3657. * src/InitiateConnectionCommandFactory.h
  3658. * src/Makefile.am
  3659. * src/PieceStorage.h
  3660. * src/RequestGroup.cc
  3661. * src/RequestGroup.h
  3662. * src/RequestGroupMan.cc
  3663. * src/SegmentMan.cc
  3664. * src/SegmentMan.h
  3665. * src/SingleFileDownloadContext.h
  3666. * src/StreamFileAllocationEntry.cc
  3667. * src/TrackerWatcherCommand.cc
  3668. * src/UnknownLengthPieceStorage.cc
  3669. * src/UnknownLengthPieceStorage.h
  3670. * src/array_fun.h
  3671. * src/bitfield.h
  3672. * src/download_helper.cc
  3673. * test/DownloadContextTest.cc
  3674. * test/Makefile.am
  3675. * test/MockDownloadContext.h
  3676. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added tellWaiting XML-RPC method.
  3678. * src/SingleFileDownloadContext.cc
  3679. * src/XmlRpcMethodFactory.cc
  3680. * src/XmlRpcMethodImpl.cc
  3681. * src/XmlRpcMethodImpl.h
  3682. * test/XmlRpcMethodTest.cc
  3683. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Updated CookieStorageTest
  3685. * test/CookieStorageTest.cc
  3686. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3688. handle excepion inside these functions.
  3689. * src/LibgnutlsTLSContext.cc
  3690. * src/LibgnutlsTLSContext.h
  3691. * src/LibsslTLSContext.cc
  3692. * src/LibsslTLSContext.h
  3693. * src/MultiUrlRequestInfo.cc
  3694. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Added comment
  3696. * src/RequestGroup.cc
  3697. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. In CookieStorage::load() and saveNsFormat(), handle exception
  3699. inside the functions. When saving Cookies, first write temporary
  3700. file and after successful writes, then renames it to final
  3701. destination.
  3702. * src/CookieStorage.cc
  3703. * src/CookieStorage.h
  3704. * src/MultiUrlRequestInfo.cc
  3705. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. The default value of --dir option is the absolute path to the
  3707. current directory. If getcwd() is failed, then it is ".", which is
  3708. the same value with old implementation. This change is necessary
  3709. because after daemon() call, the current working directory is
  3710. changed to /.
  3711. * src/File.cc
  3712. * src/File.h
  3713. * src/OptionHandlerFactory.cc
  3714. * src/option_processing.cc
  3715. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. Call daemon() with arguments(0,0), which means daemon() changes
  3717. current working directory to / and redirects stdin, stdout and
  3718. stderr to /dev/null.
  3719. * src/option_processing.cc
  3720. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Small performance optimizations.
  3722. * src/RequestGroupMan.cc
  3723. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3725. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3726. * src/RequestGroupMan.cc
  3727. * src/RequestGroupMan.h
  3728. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3730. setNoWiat(true) if newly created command calls
  3731. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3732. * src/HttpListenCommand.cc
  3733. * src/HttpServerBodyCommand.cc
  3734. * src/HttpServerCommand.cc
  3735. * src/HttpServerResponseCommand.cc
  3736. * src/InitiateConnectionCommand.cc
  3737. * src/RequestGroup.cc
  3738. * src/StreamFileAllocationEntry.cc
  3739. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Removed include vector
  3741. * src/BtRegistry.h
  3742. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Rewritten BtRegistry
  3744. * src/BtRegistry.cc
  3745. * src/BtRegistry.h
  3746. * src/BtSetup.cc
  3747. * src/ConsoleStatCalc.cc
  3748. * src/PeerInteractionCommand.cc
  3749. * src/PeerReceiveHandshakeCommand.cc
  3750. * src/ReceiverMSEHandshakeCommand.cc
  3751. * src/RequestGroup.cc
  3752. * src/XmlRpcMethodImpl.cc
  3753. * test/BtRegistryTest.cc
  3754. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3756. * src/DefaultBtProgressInfoFile.cc
  3757. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Throw an exception if position is less than 0.
  3759. * src/XmlRpcMethodImpl.cc
  3760. * test/XmlRpcMethodTest.cc
  3761. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Use writeFilePath() in ConsoleStatCalc.cc
  3763. * src/ConsoleStatCalc.cc
  3764. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Receive the return value as const reference from
  3766. DownloadContext::getFileEntries().
  3767. * src/DefaultPieceStorage.cc
  3768. * src/RequestGroupMan.cc
  3769. * src/XmlRpcMethodImpl.cc
  3770. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. DownloadContext now has _fileEntries so that
  3772. DownloadContext::getFileEntries() can returns its const reference.
  3773. * src/DefaultBtContext.cc
  3774. * src/DefaultBtContext.h
  3775. * src/DownloadContext.cc
  3776. * src/DownloadContext.h
  3777. * src/SingleFileDownloadContext.cc
  3778. * src/SingleFileDownloadContext.h
  3779. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3781. writeFilePath() function template from RequestGroupMan.cc to
  3782. FileEntry.h
  3783. * src/FileEntry.h
  3784. * src/RequestGroupMan.cc
  3785. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Documented 'position' parameter is starting from 0 in man page.
  3787. * doc/aria2c.1.txt
  3788. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Updated doc.
  3790. * src/MSEHandshake.cc
  3791. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Removed _acceptFeatures and its accessor functions from
  3793. RequestGroup since they are not used practically.
  3794. * src/HttpRequestCommand.cc
  3795. * src/RequestGroup.cc
  3796. * src/RequestGroup.h
  3797. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3798. Removed member _maxTries from RequestGroup class to avoid
  3799. duplicate option value. Those classes who refer this variable
  3800. should use option value of PREF_MAX_TRIES directly.
  3801. * src/AbstractCommand.cc
  3802. * src/RequestGroup.cc
  3803. * src/RequestGroup.h
  3804. * src/TrackerWatcherCommand.cc
  3805. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. * Release 1.4.1
  3807. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Fixed compiler warnings on netbsd
  3809. * src/DHTConnectionImpl.cc
  3810. * src/PeerListenCommand.cc
  3811. * src/PeerSessionResource.cc
  3812. * src/SegmentMan.cc
  3813. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Updated Ukrainian translation. Thanks to all translators.
  3815. * po/uk.po
  3816. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Bump up version number to 1.4.1.
  3818. * configure.ac
  3819. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Added unit tests for strjoin, strconcat and strappend.
  3821. * test/a2functionalTest.cc
  3822. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3823. Rewritten strconcat and strappend using operator+ instead of
  3824. append().
  3825. * src/a2functional.h
  3826. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3828. is enabled.
  3829. * src/Makefile.am
  3830. * test/Makefile.am
  3831. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added countSeeder() function which counts seeder in the given
  3833. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3834. * src/ConsoleStatCalc.cc
  3835. * src/Peer.h
  3836. * src/XmlRpcMethodImpl.cc
  3837. * test/PeerTest.cc
  3838. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Documented missing seeder in getPeers xml-rpc method.
  3840. Documented uploadLength and numSeeders.
  3841. * doc/aria2c.1.txt
  3842. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Added uploadLength and numSeeders to the response of tellStatus
  3844. xml-rpc method. Assert that PeerStorage instance is not null
  3845. instead of checking if statement. It should be non-null in this
  3846. context.
  3847. * src/XmlRpcMethodImpl.cc
  3848. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3850. * src/XmlRpcResponse.cc
  3851. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Avoid intermediate object during string concatenation.
  3853. * src/HttpRequest.cc
  3854. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. Added strjoin function template. Use it in pathJoin()
  3856. * src/Util.h
  3857. * src/a2functional.h
  3858. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3859. Avoid intermediate object during string concatenation. Replaced
  3860. post-increment unary operator with pre-increment one in for loop.
  3861. * src/AdaptiveURISelector.cc
  3862. * src/AnnounceList.cc
  3863. * src/AuthConfig.h
  3864. * src/BtBitfieldMessage.cc
  3865. * src/BtExtendedMessage.cc
  3866. * src/BtHandshakeMessage.cc
  3867. * src/BtPieceMessage.cc
  3868. * src/BtPortMessage.cc
  3869. * src/Cookie.cc
  3870. * src/DHTAnnouncePeerMessage.cc
  3871. * src/DHTAutoSaveCommand.cc
  3872. * src/DHTGetPeersReplyMessage.cc
  3873. * src/DHTNode.cc
  3874. * src/DHTQueryMessage.cc
  3875. * src/DHTResponseMessage.cc
  3876. * src/DHTUnknownMessage.cc
  3877. * src/DefaultBtAnnounce.cc
  3878. * src/DefaultBtContext.cc
  3879. * src/DefaultBtInteractive.cc
  3880. * src/DefaultBtProgressInfoFile.cc
  3881. * src/DefaultPeerStorage.cc
  3882. * src/DownloadEngine.cc
  3883. * src/FeatureConfig.cc
  3884. * src/File.cc
  3885. * src/FtpConnection.cc
  3886. * src/FtpNegotiationCommand.cc
  3887. * src/HandshakeExtensionMessage.cc
  3888. * src/HttpConnection.cc
  3889. * src/HttpRequest.cc
  3890. * src/HttpResponseCommand.cc
  3891. * src/HttpServer.cc
  3892. * src/IndexBtMessage.cc
  3893. * src/Metalink2RequestGroup.cc
  3894. * src/OptionHandlerImpl.h
  3895. * src/PStringBuildVisitor.cc
  3896. * src/Peer.cc
  3897. * src/PeerListenCommand.cc
  3898. * src/Piece.cc
  3899. * src/RangeBtMessage.cc
  3900. * src/Request.cc
  3901. * src/Request.h
  3902. * src/RequestGroup.cc
  3903. * src/RequestGroupMan.cc
  3904. * src/ServerStat.cc
  3905. * src/ServerStatMan.cc
  3906. * src/UTPexExtensionMessage.cc
  3907. * src/Util.cc
  3908. * src/a2functional.h
  3909. * src/download_helper.cc
  3910. * src/messageDigest.cc
  3911. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Unchoke a peer randomly at first and second choke round in seed
  3913. state.
  3914. * src/BtSeederStateChoke.cc
  3915. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3916. Added (sock_t) to quiet compiler warnings in MinGW
  3917. * src/SocketCore.cc
  3918. * src/SocketCore.h
  3919. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3921. * src/EpollEventPoll.h
  3922. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3923. Added fork() emulation using CreateProcess() in MinGW
  3924. * src/RequestGroupMan.cc
  3925. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. * Release 1.4.0
  3927. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Added utf8.torrent to EXTRA_DIST
  3929. * test/Makefile.am
  3930. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Fixed docs of aria2.addMetalink xml-rpc method.
  3932. * doc/aria2c.1.txt
  3933. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Added Slovak translation. Updated Ukrainian and Brazilian
  3935. Portuguese translation. Thanks to all translators.
  3936. * po/sk.po
  3937. * po/uk.po
  3938. * po/pt_BR.po
  3939. * po/LINGUAS
  3940. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Added test case for XmlRpcProcessor to fail to parse malformed
  3942. document.
  3943. * test/XmlRpcRequestProcessorTest.cc
  3944. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Removed *.gmo files in po because they are generated on 'make
  3946. dist'
  3947. * po/*.gmo
  3948. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Documented max-concurrent-downloads of changeGlobalOption method
  3950. in man page.
  3951. * doc/aria2c.1.txt
  3952. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Added max-concurrent-downloads option to changeGlobalOption
  3954. xml-rpc method. Rewritten loop conditional in
  3955. RequestGroupMan::fillRequestGroupFromReserver().
  3956. * src/RequestGroupMan.cc
  3957. * src/RequestGroupMan.h
  3958. * src/XmlRpcMethod.cc
  3959. * src/XmlRpcMethodImpl.cc
  3960. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Documented position parameter in man page.
  3962. * doc/aria2c.1.txt
  3963. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. Added 'position' parameter to addUri, addTorrent and addMetalink
  3965. xml-rpc method.
  3966. * src/RequestGroupMan.cc
  3967. * src/RequestGroupMan.h
  3968. * src/XmlRpcMethodImpl.cc
  3969. * test/XmlRpcMethodTest.cc
  3970. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Removed Peer.cc from compile source list when --disable-bittorrent
  3972. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3973. takes Peer.
  3974. * src/DefaultPieceStorage.cc
  3975. * src/DefaultPieceStorage.h
  3976. * src/Makefile.am
  3977. * src/PieceStorage.h
  3978. * src/UnknownLengthPieceStorage.cc
  3979. * src/UnknownLengthPieceStorage.h
  3980. * test/MockPieceStorage.h
  3981. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Implemented getter methods in header files to give them more
  3983. chance of optimization.
  3984. Return const reference for SharadHandle if possible.
  3985. * src/AbstractAuthResolver.cc
  3986. * src/AbstractAuthResolver.h
  3987. * src/AbstractBtMessage.cc
  3988. * src/AbstractBtMessage.h
  3989. * src/AbstractSingleDiskAdaptor.cc
  3990. * src/AbstractSingleDiskAdaptor.h
  3991. * src/AsyncNameResolver.cc
  3992. * src/AsyncNameResolver.h
  3993. * src/BNode.cc
  3994. * src/BNode.h
  3995. * src/BitfieldMan.cc
  3996. * src/BitfieldMan.h
  3997. * src/BtAbortOutstandingRequestEvent.h
  3998. * src/BtExtendedMessage.cc
  3999. * src/BtExtendedMessage.h
  4000. * src/BtSeederStateChoke.cc
  4001. * src/BtSeederStateChoke.h
  4002. * src/Cookie.cc
  4003. * src/Cookie.h
  4004. * src/DHTBucket.cc
  4005. * src/DHTBucket.h
  4006. * src/DHTConnectionImpl.cc
  4007. * src/DHTConnectionImpl.h
  4008. * src/DHTFindNodeReplyMessage.cc
  4009. * src/DHTFindNodeReplyMessage.h
  4010. * src/DHTGetPeersReplyMessage.cc
  4011. * src/DHTGetPeersReplyMessage.h
  4012. * src/DHTInteractionCommand.cc
  4013. * src/DHTMessage.cc
  4014. * src/DHTMessage.h
  4015. * src/DHTMessageDispatcherImpl.cc
  4016. * src/DHTMessageEntry.cc
  4017. * src/DHTMessageReceiver.cc
  4018. * src/DHTMessageReceiver.h
  4019. * src/DHTMessageTrackerEntry.cc
  4020. * src/DHTMessageTrackerEntry.h
  4021. * src/DHTPeerAnnounceEntry.cc
  4022. * src/DHTPeerAnnounceEntry.h
  4023. * src/DHTPeerLookupTask.cc
  4024. * src/DHTPeerLookupTask.h
  4025. * src/DHTRoutingTableDeserializer.cc
  4026. * src/DHTRoutingTableDeserializer.h
  4027. * src/DefaultBtAnnounce.cc
  4028. * src/DefaultBtAnnounce.h
  4029. * src/DefaultBtMessageDispatcher.cc
  4030. * src/DefaultBtMessageDispatcher.h
  4031. * src/DefaultBtRequestFactory.cc
  4032. * src/DefaultBtRequestFactory.h
  4033. * src/DiskAdaptor.cc
  4034. * src/DiskAdaptor.h
  4035. * src/DownloadContext.cc
  4036. * src/DownloadContext.h
  4037. * src/DownloadEngine.cc
  4038. * src/DownloadEngine.h
  4039. * src/EpollEventPoll.cc
  4040. * src/EpollEventPoll.h
  4041. * src/FtpConnection.cc
  4042. * src/FtpConnection.h
  4043. * src/HttpConnection.cc
  4044. * src/HttpConnection.h
  4045. * src/HttpHeader.cc
  4046. * src/HttpHeader.h
  4047. * src/HttpRequest.cc
  4048. * src/HttpRequest.h
  4049. * src/HttpResponse.cc
  4050. * src/HttpResponse.h
  4051. * src/LibsslTLSContext.cc
  4052. * src/LibsslTLSContext.h
  4053. * src/MSEHandshake.cc
  4054. * src/MSEHandshake.h
  4055. * src/MetalinkEntry.cc
  4056. * src/MetalinkEntry.h
  4057. * src/MetalinkParserController.cc
  4058. * src/MetalinkParserController.h
  4059. * src/MetalinkParserStateMachine.cc
  4060. * src/MetalinkParserStateMachine.h
  4061. * src/MultiDiskAdaptor.cc
  4062. * src/MultiDiskAdaptor.h
  4063. * src/NetrcAuthResolver.cc
  4064. * src/NetrcAuthResolver.h
  4065. * src/Peer.cc
  4066. * src/Peer.h
  4067. * src/PeerSessionResource.cc
  4068. * src/PeerSessionResource.h
  4069. * src/Piece.cc
  4070. * src/Piece.h
  4071. * src/PieceStatMan.cc
  4072. * src/PieceStatMan.h
  4073. * src/Request.cc
  4074. * src/Request.h
  4075. * src/RequestGroup.cc
  4076. * src/RequestGroup.h
  4077. * src/RequestGroupMan.cc
  4078. * src/RequestGroupMan.h
  4079. * src/RequestSlot.cc
  4080. * src/RequestSlot.h
  4081. * src/SegmentMan.cc
  4082. * src/SegmentMan.h
  4083. * src/SelectEventPoll.cc
  4084. * src/SelectEventPoll.h
  4085. * src/ServerStat.cc
  4086. * src/ServerStat.h
  4087. * src/Signature.cc
  4088. * src/Signature.h
  4089. * src/URIResult.cc
  4090. * src/URIResult.h
  4091. * src/UTPexExtensionMessage.cc
  4092. * src/UTPexExtensionMessage.h
  4093. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Fixed compile error without BitTorrent and Metalink support.
  4095. * src/XmlRpcMethod.cc
  4096. * src/XmlRpcMethodFactory.cc
  4097. * src/XmlRpcMethodImpl.cc
  4098. * src/XmlRpcMethodImpl.h
  4099. * test/XmlRpcMethodTest.cc
  4100. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Rewritten the help message for --allow-overwrite option.
  4102. * doc/aria2c.1.txt
  4103. * src/usage_text.h
  4104. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Fixed typo
  4106. * doc/aria2c.1.txt
  4107. * src/usage_text.h
  4108. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4109. Updated README for 1.4.0 release. Use new table syntax of
  4110. asciidoc.
  4111. * README
  4112. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Documented --xml-rpc-max-request-size option in man page.
  4114. * doc/aria2c.1.txt
  4115. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Moved C_* constants from BtContext to DefaultBtContext.
  4117. * src/BtContext.cc: Removed.
  4118. * src/BtContext.h
  4119. * src/DefaultBtContext.cc
  4120. * src/DefaultBtContext.h
  4121. * src/Makefile.am
  4122. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4124. path key respectively when persing .torrent file.
  4125. * src/BtContext.cc
  4126. * src/BtContext.h
  4127. * src/DefaultBtContext.cc
  4128. * test/DefaultBtContextTest.cc
  4129. * test/utf8.torrent
  4130. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Added --xml-rpc-max-request-size option to limit the size of
  4132. XML-RPC request.
  4133. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Documented XML-RPC API in man page.
  4135. * doc/aria2c.1.txt
  4136. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4138. will break strict-aliasing rules
  4139. * src/PeerConnection.cc
  4140. * test/DHTRoutingTableSerializerTest.cc
  4141. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4143. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4144. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4145. PKG_CHECK_MODULES macro uses latter name.
  4146. * m4/sqlite3.m4
  4147. * src/Makefile.am
  4148. * test/Makefile.am
  4149. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Fixed typo
  4151. * configure.ac
  4152. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4154. presence of libgnutls using pkg-config first. If it fails, fall
  4155. back to old macro libgnutls.m4.
  4156. * configure.ac
  4157. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Use s itself instead of !s.bad()
  4159. * src/CookieStorage.cc
  4160. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Documented --on-download-* option and --save-cookies option in man
  4162. page.
  4163. * doc/aria2c.1.txt
  4164. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Set possible values for --load-cookie option to "/path/to/file".
  4166. * src/OptionHandlerFactory.cc
  4167. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Added --save-cookies option.
  4169. * src/Cookie.cc
  4170. * src/Cookie.h
  4171. * src/CookieStorage.cc
  4172. * src/CookieStorage.h
  4173. * src/MultiUrlRequestInfo.cc
  4174. * src/OptionHandlerFactory.cc
  4175. * src/prefs.cc
  4176. * src/prefs.h
  4177. * src/usage_text.h
  4178. * test/CookieStorageTest.cc
  4179. * test/CookieTest.cc
  4180. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Removed tellAll XML-RPC command because its reponse tends to be
  4182. big if stopped/waiting downloads pile up.
  4183. * src/XmlRpcMethodFactory.cc
  4184. * src/XmlRpcMethodImpl.cc
  4185. * src/XmlRpcMethodImpl.h
  4186. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Added the ability to execute command when download starts and
  4188. stops. You can also specify command for particular cases such as
  4189. complete/error download. Added --on-download-start,
  4190. --on-download-stop, --on-download-complete and --on-download-error
  4191. option.
  4192. * src/OptionHandlerFactory.cc
  4193. * src/RequestGroupMan.cc
  4194. * src/prefs.cc
  4195. * src/prefs.h
  4196. * src/usage_text.h
  4197. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Fixed test error
  4199. * test/BencodeTest.cc
  4200. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Added unit tests.
  4202. * test/XmlRpcMethodTest.cc
  4203. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Made exception message more verbose.
  4205. * src/bencode.cc
  4206. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4208. space in console readout. Also they are now shown in MiB/s if
  4209. speed > 1024KiB/s.
  4210. * src/ConsoleStatCalc.cc
  4211. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. Added SEED to console output, which represents the number of
  4213. seeders currently the client is connecting to.
  4214. * src/ConsoleStatCalc.cc
  4215. * src/ConsoleStatCalc.h
  4216. * src/DownloadEngine.cc
  4217. * src/NullStatCalc.h
  4218. * src/StatCalc.h
  4219. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Added source filename(__FILE__) and line number(__LINE__) to
  4221. exception message.
  4222. * src/AbstractCommand.cc
  4223. * src/AbstractDiskWriter.cc
  4224. * src/AbstractProxyResponseCommand.cc
  4225. * src/BDE.h
  4226. * src/BtAllowedFastMessage.cc
  4227. * src/BtHandshakeMessageValidator.h
  4228. * src/BtHaveAllMessage.cc
  4229. * src/BtHaveNoneMessage.cc
  4230. * src/BtPieceMessage.cc
  4231. * src/BtRejectMessage.cc
  4232. * src/ChunkedDecoder.cc
  4233. * src/CookieStorage.cc
  4234. * src/DHTAnnouncePeerMessage.cc
  4235. * src/DHTEntryPointNameResolveCommand.cc
  4236. * src/DHTMessageFactoryImpl.cc
  4237. * src/DHTMessageTracker.cc
  4238. * src/DHTRoutingTableDeserializer.cc
  4239. * src/DHTRoutingTableSerializer.cc
  4240. * src/DHTSetup.cc
  4241. * src/DHTTokenTracker.cc
  4242. * src/DefaultBtAnnounce.cc
  4243. * src/DefaultBtContext.cc
  4244. * src/DefaultBtInteractive.cc
  4245. * src/DefaultBtMessageFactory.cc
  4246. * src/DefaultBtProgressInfoFile.cc
  4247. * src/DefaultExtensionMessageFactory.cc
  4248. * src/DlAbortEx.h
  4249. * src/DlRetryEx.h
  4250. * src/DownloadCommand.cc
  4251. * src/DownloadEngineFactory.cc
  4252. * src/DownloadFailureException.h
  4253. * src/Exception.cc
  4254. * src/Exception.h
  4255. * src/ExpatMetalinkProcessor.cc
  4256. * src/ExpatXmlRpcRequestProcessor.cc
  4257. * src/FallocFileAllocationIterator.cc
  4258. * src/FatalException.h
  4259. * src/FtpConnection.cc
  4260. * src/FtpFinishDownloadCommand.cc
  4261. * src/FtpInitiateConnectionCommand.cc
  4262. * src/FtpNegotiationCommand.cc
  4263. * src/GZipDecoder.cc
  4264. * src/HandshakeExtensionMessage.cc
  4265. * src/HttpConnection.cc
  4266. * src/HttpHeaderProcessor.cc
  4267. * src/HttpInitiateConnectionCommand.cc
  4268. * src/HttpResponse.cc
  4269. * src/HttpResponseCommand.cc
  4270. * src/HttpServer.cc
  4271. * src/HttpSkipResponseCommand.cc
  4272. * src/InitiateConnectionCommandFactory.cc
  4273. * src/IteratableChunkChecksumValidator.cc
  4274. * src/LibgcryptARC4Context.h
  4275. * src/LibgcryptARC4Decryptor.h
  4276. * src/LibgcryptARC4Encryptor.h
  4277. * src/LibgcryptDHKeyExchange.h
  4278. * src/LibgnutlsTLSContext.cc
  4279. * src/LibsslARC4Context.h
  4280. * src/LibsslARC4Decryptor.h
  4281. * src/LibsslARC4Encryptor.h
  4282. * src/LibsslDHKeyExchange.h
  4283. * src/LibsslTLSContext.cc
  4284. * src/MSEHandshake.cc
  4285. * src/MessageDigestHelper.cc
  4286. * src/MetalinkHelper.cc
  4287. * src/MultiDiskAdaptor.cc
  4288. * src/NameMatchOptionHandler.h
  4289. * src/NameResolver.cc
  4290. * src/Netrc.cc
  4291. * src/NsCookieParser.cc
  4292. * src/OptionHandlerException.cc
  4293. * src/OptionHandlerException.h
  4294. * src/OptionHandlerImpl.h
  4295. * src/OptionParser.cc
  4296. * src/ParameterizedStringParser.cc
  4297. * src/PeerAbstractCommand.cc
  4298. * src/PeerConnection.cc
  4299. * src/PeerMessageUtil.cc
  4300. * src/PeerReceiveHandshakeCommand.cc
  4301. * src/Platform.cc
  4302. * src/ReceiverMSEHandshakeCommand.cc
  4303. * src/RecoverableException.h
  4304. * src/RequestGroup.cc
  4305. * src/SimpleLogger.cc
  4306. * src/SocketCore.cc
  4307. * src/Sqlite3MozCookieParser.cc
  4308. * src/UTPexExtensionMessage.cc
  4309. * src/Util.cc
  4310. * src/XML2SAXMetalinkProcessor.cc
  4311. * src/Xml2XmlRpcRequestProcessor.cc
  4312. * src/XmlRpcMethodImpl.cc
  4313. * src/bencode.cc
  4314. * src/download_helper.cc
  4315. * src/messageDigest.h
  4316. * test/ExceptionTest.cc
  4317. * test/TestUtil.cc
  4318. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Bump up version number to 1.4.0
  4320. * configure.ac
  4321. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Added 2files.metalink to EXTRA_DIST
  4323. * test/Makefile.am
  4324. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Added missing 2files.metalink
  4326. * test/2files.metalink
  4327. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Show "[MEMORY]" prefix before filename in download summary if it
  4329. is downloaded into memory.
  4330. * src/DownloadResult.h
  4331. * src/RequestGroup.cc
  4332. * src/RequestGroupMan.cc
  4333. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4335. * src/ExpatXmlRpcRequestProcessor.cc
  4336. * src/Xml2XmlRpcRequestProcessor.cc
  4337. * src/message.h
  4338. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4339. Defined const BDEs to avoid duplicate instantiation.
  4340. Defined MSG_GID_NOT_PROVIDED.
  4341. * src/XmlRpcMethodImpl.cc
  4342. * src/message.h
  4343. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Code cleanup
  4345. * src/Xml2XmlRpcRequestProcessor.cc
  4346. * src/Xml2XmlRpcRequestProcessor.h
  4347. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Defined ENABLE_XML_RPC
  4349. * configure.ac
  4350. * configure
  4351. * config.h.in
  4352. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4353. Added ExpatXmlRpcRequestProcessor
  4354. * src/ExpatXmlRpcRequestProcessor.cc
  4355. * src/ExpatXmlRpcRequestProcessor.h
  4356. * src/Makefile.am
  4357. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Added tests for addTorrent and addMetalink command.
  4359. * test/TestUtil.cc
  4360. * test/TestUtil.h
  4361. * test/XmlRpcMethodTest.cc
  4362. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Corrected the description of --file-allocation option.
  4364. * doc/aria2c.1.txt
  4365. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Added tellAll command.
  4367. * src/XmlRpcMethodFactory.cc
  4368. * src/XmlRpcMethodImpl.cc
  4369. * src/XmlRpcMethodImpl.h
  4370. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4372. * src/XmlRpcMethodImpl.cc
  4373. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4374. Added changeGlobalOption command. Currently,
  4375. max-overall-download-limit and max-overall-upload-limit option are
  4376. available.
  4377. * src/RequestGroupMan.h
  4378. * src/XmlRpcMethod.cc
  4379. * src/XmlRpcMethod.h
  4380. * src/XmlRpcMethodFactory.cc
  4381. * src/XmlRpcMethodImpl.cc
  4382. * src/XmlRpcMethodImpl.h
  4383. * test/XmlRpcMethodTest.cc
  4384. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Added changeOption command. Currently, max-download-limit,
  4386. max-upload-limit option are available in this command.
  4387. * src/RequestGroup.h
  4388. * src/XmlRpcMethod.cc
  4389. * src/XmlRpcMethod.h
  4390. * src/XmlRpcMethodFactory.cc
  4391. * src/XmlRpcMethodImpl.cc
  4392. * src/XmlRpcMethodImpl.h
  4393. * test/XmlRpcMethodTest.cc
  4394. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Added purgeDownloadResult command.
  4396. * src/RequestGroupMan.cc
  4397. * src/RequestGroupMan.h
  4398. * src/XmlRpcMethodFactory.cc
  4399. * src/XmlRpcMethodImpl.cc
  4400. * src/XmlRpcMethodImpl.h
  4401. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. Refactored.
  4403. * src/XmlRpcMethod.cc
  4404. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4406. XmlRpcResponse.
  4407. * src/HttpServerBodyCommand.cc
  4408. * src/Makefile.am
  4409. * src/XmlRpcMethod.cc
  4410. * src/XmlRpcMethod.h
  4411. * src/XmlRpcMethodImpl.cc
  4412. * src/XmlRpcResponse.cc
  4413. * src/XmlRpcResponse.h
  4414. * test/XmlRpcMethodTest.cc
  4415. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4416. In XML-RPC option struct, header and index-out option can take
  4417. array as value.
  4418. * src/XmlRpcMethod.cc
  4419. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Removed unused option member from PeerConnection.
  4421. * src/InitiatorMSEHandshakeCommand.cc
  4422. * src/PeerConnection.cc
  4423. * src/PeerConnection.h
  4424. * src/PeerInteractionCommand.cc
  4425. * src/PeerReceiveHandshakeCommand.cc
  4426. * src/ReceiverMSEHandshakeCommand.cc
  4427. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Added "seeder" key to getPeers response.
  4429. * src/XmlRpcMethodImpl.cc
  4430. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Added addMetalink XML-RPC command.
  4432. * src/XmlRpcMethodFactory.cc
  4433. * src/XmlRpcMethodImpl.cc
  4434. * src/XmlRpcMethodImpl.h
  4435. * src/download_helper.cc
  4436. * src/download_helper.h
  4437. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Fixed the bug that POU peers are never choked in seeding.
  4439. * src/BtSeederStateChoke.cc
  4440. * src/BtSeederStateChoke.h
  4441. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Added web-seeding URI handling in addTorrent command.
  4443. * src/XmlRpcMethodImpl.cc
  4444. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Added "length" key to getFiles response.
  4446. * src/XmlRpcMethodImpl.cc
  4447. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Moved --no-netrc option from ftp option section to http/ftp option
  4449. section.
  4450. * doc/aria2c.1.txt
  4451. * src/OptionHandlerFactory.cc
  4452. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Removed garbage "\" character before '
  4454. * doc/aria2c.1.txt
  4455. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Removed garbage "\" character before http.
  4457. * doc/aria2c.1.txt
  4458. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Documented additional options that can be specified in -i list.
  4460. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4461. and --xml-rpc-passwd. Removed --enable-http-server and
  4462. --http-server-listen-port.
  4463. * doc/aria2c.1.txt
  4464. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4466. * src/DefaultPeerStorage.cc
  4467. * src/DefaultPeerStorage.h
  4468. * src/PeerStorage.h
  4469. * src/XmlRpcMethodImpl.cc
  4470. * test/MockPeerStorage.h
  4471. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4472. Put a call to Socket::isReadable() in try block.
  4473. * src/HttpServerBodyCommand.cc
  4474. * src/HttpServerCommand.cc
  4475. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4477. exception , so it is now in try block.
  4478. * src/HttpServerResponseCommand.cc
  4479. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Added "amChoking" and "peerChoking" key in getPeers response.
  4481. * src/XmlRpcMethodImpl.cc
  4482. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Added test case for zero-length filter.
  4484. * test/BitfieldManTest.cc
  4485. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4486. getFiles command now returns file data for finished/stopped
  4487. downloads.
  4488. * src/XmlRpcMethodImpl.cc
  4489. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. DownloadResult now has the list of FileEntry. The download
  4491. summary displays the path of first selected file and the number of
  4492. remaining files for multi-file torrent.
  4493. * src/DownloadResult.h
  4494. * src/RequestGroup.cc
  4495. * src/RequestGroupMan.cc
  4496. * test/RequestGroupTest.cc
  4497. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. Fixed segmentation fault error when no file is selected in
  4499. multi-file torrent.
  4500. * src/BitfieldMan.cc
  4501. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Escaped <,>,& character in XML-RPC response.
  4503. * src/XmlRpcMethod.cc
  4504. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Throw DlAbortEx instead of FatalException during parsing options
  4506. because we don't want for aria2 to quit when bad option is passed
  4507. via XML-RPC.
  4508. * src/OptionHandlerException.cc
  4509. * src/OptionHandlerException.h
  4510. * src/OptionHandlerImpl.h
  4511. * src/OptionParser.cc
  4512. * src/OptionParser.h
  4513. * src/PStringSegment.cc
  4514. * src/ParameterizedStringParser.cc
  4515. * src/download_helper.cc
  4516. * test/ParameterizedStringParserTest.cc
  4517. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Selecting files are now done in
  4519. DefaultBtContext::setFileFileter().
  4520. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4521. functions are removed because they are no longer used. Creating
  4522. filter in BitfieldMan is done in new funtion
  4523. PieceStorage::setupFileFilter()
  4524. * src/BtContext.cc
  4525. * src/BtContext.h
  4526. * src/DefaultBtContext.cc
  4527. * src/DefaultBtContext.h
  4528. * src/DefaultPieceStorage.cc
  4529. * src/DefaultPieceStorage.h
  4530. * src/DiskAdaptor.cc
  4531. * src/DiskAdaptor.h
  4532. * src/PieceStorage.h
  4533. * src/RequestGroup.cc
  4534. * src/UnknownLengthPieceStorage.h
  4535. * src/XmlRpcMethodImpl.cc
  4536. * test/DefaultBtContextTest.cc
  4537. * test/MockBtContext.h
  4538. * test/MockPieceStorage.h
  4539. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Fixed compile error on Mac OS X
  4541. * src/HttpServer.cc
  4542. * src/XmlRpcMethod.h
  4543. * src/XmlRpcMethodImpl.cc
  4544. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Use std::binary_search instead of std::find
  4546. * src/DefaultPieceStorage.cc
  4547. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Removed unnecessary BDE() call; leave them to implicit conversion.
  4549. * src/XmlRpcMethodImpl.cc
  4550. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Return connections and gid in string
  4552. * src/XmlRpcMethodImpl.cc
  4553. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Renamed addURI as addUri
  4555. * src/XmlRpcMethodFactory.cc
  4556. * src/XmlRpcMethodImpl.cc
  4557. * src/XmlRpcMethodImpl.h
  4558. * test/XmlRpcMethodTest.cc
  4559. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Renamed addTorrentFile as addTorrent
  4561. * src/XmlRpcMethodFactory.cc
  4562. * src/XmlRpcMethodImpl.cc
  4563. * src/XmlRpcMethodImpl.h
  4564. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. The information for files, URIs, peers are removed from the
  4566. reponse of TellaActive, TellStatus command because they tend to be
  4567. large. Instead they can be retrieved by the dedicated commands:
  4568. getFiles, getUris and getPeers respectively.
  4569. * src/XmlRpcMethodFactory.cc
  4570. * src/XmlRpcMethodImpl.cc
  4571. * src/XmlRpcMethodImpl.h
  4572. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4573. Removed --max-overall-upload-limit and
  4574. --max-overall-download-limit option from listRequestOptions.
  4575. * src/download_helper.cc
  4576. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Log incoming host in HttpListenCommand.
  4578. * src/HttpListenCommand.cc
  4579. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4581. --xml-rpc-passwd option.
  4582. * src/HttpServer.cc
  4583. * src/HttpServer.h
  4584. * src/HttpServerCommand.cc
  4585. * src/OptionHandlerFactory.cc
  4586. * src/prefs.cc
  4587. * src/prefs.h
  4588. * src/usage_text.h
  4589. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4591. processing 0 length request.
  4592. * src/HttpServerBodyCommand.cc
  4593. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Removed --enable-http-server and --http-server-listen-port
  4595. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4596. instead. The original feature for --enable-http-server that
  4597. reports download progress in HTML was officially removed. Persist
  4598. XML-RPC connection if client supports keep-alive.
  4599. * src/DownloadEngineFactory.cc
  4600. * src/HttpServerCommand.cc
  4601. * src/HttpServerResponseCommand.cc
  4602. * src/Makefile.am
  4603. * src/Makefile.in
  4604. * src/OptionHandlerFactory.cc
  4605. * src/RequestGroupMan.cc
  4606. * src/main.cc
  4607. * src/option_processing.cc
  4608. * src/prefs.cc
  4609. * src/prefs.h
  4610. * src/usage_text.h
  4611. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Added "uris" key to the response of tellStatus command. Added
  4613. "connections" key to the response of tellStatus and tellActive
  4614. command.
  4615. * src/XmlRpcMethodImpl.cc
  4616. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4618. Added TellStatusXmlRpcMethod. Remove command can now remove
  4619. waiting RequestGroup.
  4620. * src/RequestGroupMan.cc
  4621. * src/RequestGroupMan.h
  4622. * src/XmlRpcMethodFactory.cc
  4623. * src/XmlRpcMethodImpl.cc
  4624. * src/XmlRpcMethodImpl.h
  4625. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Initialized _peerId
  4627. * src/Peer.cc
  4628. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Return fault structure for error. FailXmlRpcMethod is renamed as
  4630. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4631. in non-torrent download. Return single param value.
  4632. * src/XmlRpcMethod.cc
  4633. * src/XmlRpcMethodFactory.cc
  4634. * src/XmlRpcMethodImpl.cc
  4635. * src/XmlRpcMethodImpl.h
  4636. * test/XmlRpcMethodTest.cc
  4637. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4639. command.
  4640. * src/RequestGroup.cc
  4641. * src/RequestGroup.h
  4642. * src/RequestGroupMan.cc
  4643. * src/XmlRpcMethodImpl.cc
  4644. * test/RequestGroupTest.cc
  4645. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Added more options that can be specified in -i list and xml-rpc
  4647. add* command.
  4648. * src/download_helper.h
  4649. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. The available options in -i list should be listed in
  4651. listRequestOptions().
  4652. * src/download_helper.cc
  4653. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4655. command.
  4656. * src/XmlRpcMethodImpl.cc
  4657. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Now RequestGroup has its own copy of Option object. This will help
  4659. to give custom option for each RequestGroup.
  4660. addTorrentFile command now takes options.
  4661. * src/AbstractCommand.cc
  4662. * src/AbstractCommand.h
  4663. * src/AbstractProxyRequestCommand.cc
  4664. * src/ActivePeerConnectionCommand.cc
  4665. * src/ActivePeerConnectionCommand.h
  4666. * src/AdaptiveURISelector.cc
  4667. * src/BtCheckIntegrityEntry.cc
  4668. * src/BtDependency.cc
  4669. * src/BtDependency.h
  4670. * src/BtFileAllocationEntry.cc
  4671. * src/BtPostDownloadHandler.cc
  4672. * src/CheckIntegrityEntry.cc
  4673. * src/DownloadCommand.cc
  4674. * src/FtpDownloadCommand.cc
  4675. * src/FtpFinishDownloadCommand.cc
  4676. * src/FtpInitiateConnectionCommand.cc
  4677. * src/FtpNegotiationCommand.cc
  4678. * src/HttpInitiateConnectionCommand.cc
  4679. * src/HttpRequestCommand.cc
  4680. * src/HttpResponseCommand.cc
  4681. * src/HttpSkipResponseCommand.cc
  4682. * src/InitiateConnectionCommand.cc
  4683. * src/InitiateConnectionCommandFactory.cc
  4684. * src/InitiatorMSEHandshakeCommand.cc
  4685. * src/InitiatorMSEHandshakeCommand.h
  4686. * src/Metalink2RequestGroup.cc
  4687. * src/Metalink2RequestGroup.h
  4688. * src/MetalinkPostDownloadHandler.cc
  4689. * src/MultiUrlRequestInfo.cc
  4690. * src/MultiUrlRequestInfo.h
  4691. * src/PeerAbstractCommand.cc
  4692. * src/PeerInteractionCommand.cc
  4693. * src/PeerInteractionCommand.h
  4694. * src/PeerReceiveHandshakeCommand.cc
  4695. * src/PeerReceiveHandshakeCommand.h
  4696. * src/RequestGroup.cc
  4697. * src/RequestGroup.h
  4698. * src/TrackerWatcherCommand.cc
  4699. * src/TrackerWatcherCommand.h
  4700. * src/XmlRpcMethod.cc
  4701. * src/XmlRpcMethod.h
  4702. * src/XmlRpcMethodImpl.cc
  4703. * src/download_helper.cc
  4704. * src/download_helper.h
  4705. * src/main.cc
  4706. * test/BtDependencyTest.cc
  4707. * test/BtPostDownloadHandlerTest.cc
  4708. * test/DefaultBtMessageDispatcherTest.cc
  4709. * test/DownloadHandlerFactoryTest.cc
  4710. * test/DownloadHelperTest.cc
  4711. * test/Metalink2RequestGroupTest.cc
  4712. * test/MetalinkPostDownloadHandlerTest.cc
  4713. * test/RequestGroupManTest.cc
  4714. * test/RequestGroupTest.cc
  4715. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Added tellActiveStatus xml-rpc command which reports download
  4717. status of active downloads.
  4718. * src/XmlRpcMethodFactory.cc
  4719. * src/XmlRpcMethodImpl.cc
  4720. * src/XmlRpcMethodImpl.h
  4721. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Added addTorrentFile xml-rpc command which receives uploaded
  4723. torrent file and add download for it.
  4724. * src/RequestGroupMan.cc
  4725. * src/XmlRpcMethodFactory.cc
  4726. * src/XmlRpcMethodImpl.cc
  4727. * src/XmlRpcMethodImpl.h
  4728. * src/download_helper.cc
  4729. * src/download_helper.h
  4730. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4731. Added remove xml-rpc command which removes specified download.
  4732. There is a known issue: the removed unfinished downloads are
  4733. reported ERR when aria2 exits. They should be reported as INPR.
  4734. * src/RequestGroupMan.cc
  4735. * src/RequestGroupMan.h
  4736. * src/XmlRpcMethodFactory.cc
  4737. * src/XmlRpcMethodImpl.cc
  4738. * src/XmlRpcMethodImpl.h
  4739. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. If --enable-http-server is enabled, don't stop aria2 when all
  4741. download finished and don't quit when no files to download at
  4742. start up.
  4743. * src/RequestGroupMan.cc
  4744. * src/main.cc
  4745. * src/option_processing.cc
  4746. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Added missing AM_CONDITIONAL
  4748. * configure.ac
  4749. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Added xml-rpc functionality. Currently only addURI commad is
  4751. supported. To enable xml-rpc, run aria2 with
  4752. --enable-http-server. This option name is temporal and will be
  4753. changed. The feature that reports download progress in html format
  4754. is temporarily disabled.
  4755. * src/HttpServer.cc
  4756. * src/HttpServer.h
  4757. * src/HttpServerBodyCommand.cc
  4758. * src/HttpServerBodyCommand.h
  4759. * src/HttpServerCommand.cc
  4760. * src/HttpServerResponseCommand.cc
  4761. * src/Makefile.am
  4762. * src/OptionParser.cc
  4763. * src/OptionParser.h
  4764. * src/RequestGroupMan.cc
  4765. * src/RequestGroupMan.h
  4766. * src/XmlRpcMethod.cc
  4767. * src/XmlRpcMethod.h
  4768. * src/XmlRpcMethodFactory.cc
  4769. * src/XmlRpcMethodFactory.h
  4770. * src/XmlRpcMethodImpl.cc
  4771. * src/XmlRpcMethodImpl.h
  4772. * src/download_helper.cc
  4773. * src/download_helper.h
  4774. * test/Makefile.am
  4775. * test/XmlRpcMethodTest.cc
  4776. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Added xml-rpc request parser. The supported value types are:
  4778. i4/int, string, double, struct, array, base64. Currently only
  4779. libxml2 version is provided.
  4780. * src/Xml2XmlRpcRequestProcessor.cc
  4781. * src/Xml2XmlRpcRequestProcessor.h
  4782. * src/XmlRpcElements.cc
  4783. * src/XmlRpcElements.h
  4784. * src/XmlRpcRequest.h
  4785. * src/XmlRpcRequestParserController.cc
  4786. * src/XmlRpcRequestParserController.h
  4787. * src/XmlRpcRequestParserState.h
  4788. * src/XmlRpcRequestParserStateImpl.cc
  4789. * src/XmlRpcRequestParserStateImpl.h
  4790. * src/XmlRpcRequestParserStateMachine.cc
  4791. * src/XmlRpcRequestParserStateMachine.h
  4792. * src/XmlRpcRequestProcessor.h
  4793. * test/XmlRpcRequestParserControllerTest.cc
  4794. * test/XmlRpcRequestProcessorTest.cc
  4795. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. * Release 1.3.3
  4797. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Fixed compile error since r1202.
  4799. * src/ExpatMetalinkProcessor.cc
  4800. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Updated Ukrainian, Russian and Simplified Chinese
  4802. translations. Thanks to all translators.
  4803. * po/ru.po
  4804. * po/uk.po
  4805. * po/zh_CN.po
  4806. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Pass reference of Option object instead of pointer.
  4808. * src/download_helper.cc
  4809. * src/download_helper.h
  4810. * src/main.cc
  4811. * test/DownloadHelperTest.cc
  4812. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4814. from option directly. Instead, get them from RequestGroup.
  4815. * src/ActivePeerConnectionCommand.cc
  4816. * src/ActivePeerConnectionCommand.h
  4817. * src/PeerReceiveHandshakeCommand.cc
  4818. * src/RequestGroup.h
  4819. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Removed unused uploadLimitCheck and uploadLimit from
  4821. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4822. PeerInteractionCommand.
  4823. * src/PeerAbstractCommand.cc
  4824. * src/PeerAbstractCommand.h
  4825. * src/PeerInteractionCommand.cc
  4826. * src/PeerInteractionCommand.h
  4827. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Fixed broken file renaming feature since r1202.
  4829. * src/FtpNegotiationCommand.cc
  4830. * src/FtpNegotiationCommand.h
  4831. * src/HttpResponseCommand.cc
  4832. * src/RequestGroup.cc
  4833. * src/RequestGroup.h
  4834. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Removed unused debug log
  4836. * src/SocketCore.cc
  4837. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Generated configure and Makefile.in using autoconf 2.63 and
  4839. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4840. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4841. * configure.ac
  4842. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Moved piece statistics stuff to new PieceStatMan class.
  4844. Refactored PieceSelector interface.
  4845. * src/DefaultPieceStorage.cc
  4846. * src/DefaultPieceStorage.h
  4847. * src/LongestSequencePieceSelector.cc
  4848. * src/LongestSequencePieceSelector.h
  4849. * src/Makefile.am
  4850. * src/PieceSelector.h
  4851. * src/PieceStatMan.cc
  4852. * src/PieceStatMan.h
  4853. * src/RarestPieceSelector.cc
  4854. * src/RarestPieceSelector.h
  4855. * src/RequestGroup.cc
  4856. * test/DefaultPieceStorageTest.cc
  4857. * test/InOrderPieceSelector.h
  4858. * test/Makefile.am
  4859. * test/PieceStatManTest.cc
  4860. * test/RarestPieceSelectorTest.cc
  4861. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Added static member _protocolFamily to SocketCore. By default,
  4863. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4864. address. Sometime SocketCore::bind() and
  4865. SocketCore::establishConnection() use difference protocl family
  4866. and latter cannot connect to former. To avoid this situation, we
  4867. limit protocol family to AF_INET for unit tests.
  4868. * src/SocketCore.cc
  4869. * src/SocketCore.h
  4870. * test/AllTest.cc
  4871. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Avoid std::bad_alloc for negative bencode string length.
  4873. * src/bencode.cc
  4874. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Supported segmented downloading with chunked transfer encoding and
  4876. content-length.
  4877. * src/DownloadCommand.cc
  4878. * src/HttpResponseCommand.cc
  4879. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Bump up version number to 1.3.3
  4881. * configure.ac
  4882. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4884. from 4096 to 65536 (for insanely large ftp login banners)
  4885. * src/FtpConnection.h
  4886. * test/FtpConnectionTest.cc
  4887. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. In DefaultBtContext::getActualBasePath(), return first
  4889. FileEntry::getPath() for single file torrent.
  4890. * src/DefaultBtContext.cc
  4891. * test/DefaultBtContextTest.cc
  4892. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4894. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4895. Removed _directIOAllowed member from DiskWriter.
  4896. * src/AbstractDiskWriter.cc
  4897. * src/AbstractDiskWriter.h
  4898. * src/AbstractSingleDiskAdaptor.cc
  4899. * src/AbstractSingleDiskAdaptor.h
  4900. * src/BinaryStream.h
  4901. * src/ByteArrayDiskWriter.h
  4902. * src/DefaultPieceStorage.cc
  4903. * src/DiskWriter.h
  4904. * src/MultiDiskAdaptor.cc
  4905. * src/MultiDiskAdaptor.h
  4906. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Now the constructor of AbstractDiskWriter takes filename as an
  4908. argument and filename argument is removed from openFile(),
  4909. initAndOpenFile(), openExistingFile() interface. storeDir member
  4910. and its accessor functions are removed from DiskAdaptor because it
  4911. is not used anymore. size() member function of DefaultDiskWriter,
  4912. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4913. opening file.
  4914. * src/AbstractDiskWriter.cc
  4915. * src/AbstractDiskWriter.h
  4916. * src/AbstractSingleDiskAdaptor.cc
  4917. * src/AbstractSingleDiskAdaptor.h
  4918. * src/ByteArrayDiskWriter.cc
  4919. * src/ByteArrayDiskWriter.h
  4920. * src/ByteArrayDiskWriterFactory.cc
  4921. * src/ByteArrayDiskWriterFactory.h
  4922. * src/DefaultDiskWriter.cc
  4923. * src/DefaultDiskWriter.h
  4924. * src/DefaultDiskWriterFactory.cc
  4925. * src/DefaultDiskWriterFactory.h
  4926. * src/DefaultPieceStorage.cc
  4927. * src/DirectDiskAdaptor.cc
  4928. * src/DirectDiskAdaptor.h
  4929. * src/DiskAdaptor.h
  4930. * src/DiskWriter.h
  4931. * src/DiskWriterFactory.h
  4932. * src/MessageDigestHelper.cc
  4933. * src/MultiDiskAdaptor.cc
  4934. * src/RequestGroup.cc
  4935. * src/UnknownLengthPieceStorage.cc
  4936. * src/Util.cc
  4937. * test/DefaultDiskWriterTest.cc
  4938. * test/DirectDiskAdaptorTest.cc
  4939. * test/FallocFileAllocationIteratorTest.cc
  4940. * test/MessageDigestHelperTest.cc
  4941. * test/MetalinkProcessorTest.cc
  4942. * test/MultiDiskAdaptorTest.cc
  4943. * test/MultiFileAllocationIteratorTest.cc
  4944. * test/SingleFileAllocationIteratorTest.cc
  4945. * test/UtilTest.cc
  4946. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Fixed the bug that aria2 aborts when --select-file is used. This
  4948. bug was introduced in r1199.
  4949. * src/MultiDiskAdaptor.cc
  4950. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Code cleanup
  4952. * test/MockPieceStorage.cc
  4953. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Fixed the bug that read-only file with wrong file size will cause
  4955. error because it cannot be truncated to the correct size. Now if
  4956. file size is different than the expected one, re-open file in
  4957. writable mode.
  4958. * src/AbstractSingleDiskAdaptor.cc
  4959. * src/AbstractSingleDiskAdaptor.h
  4960. * src/BtCheckIntegrityEntry.cc
  4961. * src/DiskAdaptor.h
  4962. * src/MultiDiskAdaptor.h
  4963. * src/RequestGroup.cc
  4964. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4965. Fixed the bug that with --check-integrity option aria2 reports
  4966. downloaded file size is 0 even if some parts of file is correctly
  4967. downloaded. This bug is reproducible for the download that a file
  4968. includes last piece is missing. This bug doesn't reveal for
  4969. single-torrent with file allocation on.
  4970. * src/IteratableChecksumValidator.cc
  4971. * test/IteratableChecksumValidatorTest.cc
  4972. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4974. * src/RequestGroupMan.cc
  4975. * src/AdaptiveURISelector.cc
  4976. * src/AdaptiveURISelector.h
  4977. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. * Release 1.3.2
  4979. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Updated README
  4981. * README
  4982. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Updated Ukrainian translations. Thanks to Alexander10.
  4984. * po/uk.po
  4985. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Code cleanup
  4987. * src/MetalinkParserStateMachine.cc
  4988. * src/MetalinkParserStateMachine.h
  4989. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4991. and expat simultaneously, MetalinkProcessor is now not base class
  4992. and it is directly implemented in XML2SAXMetalinkProcessor and
  4993. ExpatMetalinkProcessor.
  4994. * src/ExpatMetalinkProcessor.cc
  4995. * src/ExpatMetalinkProcessor.h
  4996. * src/Makefile.am
  4997. * src/MetalinkHelper.cc
  4998. * src/MetalinkProcessor.h
  4999. * src/MetalinkProcessorFactory.cc: Removed.
  5000. * src/MetalinkProcessorFactory.h: Removed
  5001. * src/XML2SAXMetalinkProcessor.cc
  5002. * src/XML2SAXMetalinkProcessor.h
  5003. * test/MetalinkProcessorTest.cc
  5004. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Bump up version number to 1.3.2
  5006. * configure.ac
  5007. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Added missing file.
  5009. * test/Makefile.am
  5010. * test/url-list-singleFileEndsWithSlash.torrent
  5011. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5013. request.
  5014. * src/AnnounceList.cc
  5015. * src/AnnounceList.h
  5016. * src/BDE.cc: Added
  5017. * src/BDE.h: Added
  5018. * src/DHTAbstractMessage.cc
  5019. * src/DHTAbstractMessage.h
  5020. * src/DHTAnnouncePeerMessage.cc
  5021. * src/DHTAnnouncePeerMessage.h
  5022. * src/DHTAnnouncePeerReplyMessage.cc
  5023. * src/DHTAnnouncePeerReplyMessage.h
  5024. * src/DHTFindNodeMessage.cc
  5025. * src/DHTFindNodeMessage.h
  5026. * src/DHTFindNodeReplyMessage.cc
  5027. * src/DHTFindNodeReplyMessage.h
  5028. * src/DHTGetPeersMessage.cc
  5029. * src/DHTGetPeersMessage.h
  5030. * src/DHTGetPeersReplyMessage.cc
  5031. * src/DHTGetPeersReplyMessage.h
  5032. * src/DHTMessageFactory.h
  5033. * src/DHTMessageFactoryImpl.cc
  5034. * src/DHTMessageFactoryImpl.h
  5035. * src/DHTMessageReceiver.cc
  5036. * src/DHTMessageTracker.cc
  5037. * src/DHTMessageTracker.h
  5038. * src/DHTPingMessage.cc
  5039. * src/DHTPingMessage.h
  5040. * src/DHTPingReplyMessage.cc
  5041. * src/DHTPingReplyMessage.h
  5042. * src/DHTQueryMessage.cc
  5043. * src/DHTQueryMessage.h
  5044. * src/DHTResponseMessage.cc
  5045. * src/DHTResponseMessage.h
  5046. * src/DefaultBtAnnounce.cc
  5047. * src/DefaultBtContext.cc
  5048. * src/DefaultBtContext.h
  5049. * src/HandshakeExtensionMessage.cc
  5050. * src/Makefile.am
  5051. * src/PeerListProcessor.h
  5052. * src/UTPexExtensionMessage.cc
  5053. * src/bencode.cc
  5054. * src/bencode.h
  5055. * test/AnnounceListTest.cc
  5056. * test/BDETest.cc: Added
  5057. * test/BencodeTest.cc
  5058. * test/DHTAnnouncePeerMessageTest.cc
  5059. * test/DHTAnnouncePeerReplyMessageTest.cc
  5060. * test/DHTFindNodeMessageTest.cc
  5061. * test/DHTFindNodeReplyMessageTest.cc
  5062. * test/DHTGetPeersMessageTest.cc
  5063. * test/DHTGetPeersReplyMessageTest.cc
  5064. * test/DHTMessageFactoryImplTest.cc
  5065. * test/DHTMessageTrackerTest.cc
  5066. * test/DHTPingMessageTest.cc
  5067. * test/DHTPingReplyMessageTest.cc
  5068. * test/Makefile.am
  5069. * test/MockDHTMessageFactory.h
  5070. * test/PeerListProcessorTest.cc
  5071. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Use url-list (web-seeding) only for single-file torrent. This is
  5073. basically the same behavior with Metalink file with torrent and
  5074. URIs.
  5075. * src/RequestGroup.cc
  5076. * src/DefaultBtContext.cc
  5077. * test/DefaultBtContextTest.cc
  5078. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5079. Rewritten expr
  5080. * src/array_fun.h
  5081. * test/array_funTest.cc
  5082. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5084. * src/DefaultBtMessageDispatcher.cc
  5085. * src/a2algo.h
  5086. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Removed ExtendedMessagingAware. Instead of using inheritance,
  5088. added ExtensionMessageRegistry and it is passed to
  5089. DefaultExtensionMessageFactory.
  5090. * src/DefaultBtInteractive.cc
  5091. * src/DefaultBtInteractive.h
  5092. * src/DefaultExtensionMessageFactory.cc
  5093. * src/DefaultExtensionMessageFactory.h
  5094. * src/ExtendedMessagingAware.h: Removed.
  5095. * src/ExtensionMessageFactory.h
  5096. * src/ExtensionMessageRegistry.h: Added.
  5097. * src/Makefile.am
  5098. * src/PeerInteractionCommand.cc
  5099. * test/DefaultExtensionMessageFactoryTest.cc
  5100. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5101. Fixed typo in log messages
  5102. * src/MSEHandshake.cc
  5103. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Fixed the bug that prevents torrent download from finishing. The
  5105. bug doesn't reveal for all torrents. The torrents affected this
  5106. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5107. of pieces.
  5108. * src/bitfield.h
  5109. * test/bitfieldTest.cc
  5110. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Code cleanup
  5112. * src/PeerListProcessor.h
  5113. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Removed RequestGroupAware
  5115. * src/AbstractCommand.cc
  5116. * src/AbstractCommand.h
  5117. * src/ActivePeerConnectionCommand.cc
  5118. * src/ActivePeerConnectionCommand.h
  5119. * src/DHTGetPeersCommand.cc
  5120. * src/DHTGetPeersCommand.h
  5121. * src/InitiatorMSEHandshakeCommand.cc
  5122. * src/InitiatorMSEHandshakeCommand.h
  5123. * src/Makefile.am
  5124. * src/PeerInitiateConnectionCommand.cc
  5125. * src/PeerInitiateConnectionCommand.h
  5126. * src/PeerInteractionCommand.cc
  5127. * src/PeerInteractionCommand.h
  5128. * src/RealtimeCommand.cc
  5129. * src/RealtimeCommand.h
  5130. * src/RequestGroupAware.cc: Removed
  5131. * src/RequestGroupAware.h: Removed
  5132. * src/SeedCheckCommand.cc
  5133. * src/SeedCheckCommand.h
  5134. * src/SleepCommand.cc
  5135. * src/TrackerWatcherCommand.cc
  5136. * src/TrackerWatcherCommand.h
  5137. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Rewritten PeerListProcessor
  5139. * src/PeerListProcessor.h
  5140. * src/CompactPeerListProcessor.h: Removed
  5141. * src/CompactPeerListProcessor.cc: Removed
  5142. * src/DelegatingPeerListProcessor.cc: Removed.
  5143. * src/DefaultBtAnnounce.cc
  5144. * src/Makefile.am
  5145. * src/UTPexExtensionMessage.cc
  5146. * src/DefaultPeerListProcessor.h: Removed.
  5147. * src/DefaultPeerListProcessor.cc: Removed.
  5148. * src/DelegatingPeerListProcessor.h: Removed.
  5149. * test/Makefile.am
  5150. * test/PeerListProcessorTest.cc
  5151. * test/DefaultPeerListProcessorTest.cc: Removed.
  5152. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Rewritten RequestGroupMan::calculateStat()
  5154. * src/RequestGroupMan.cc
  5155. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Removed unnecessary virtual destructor for Request class.
  5157. * src/Request.cc
  5158. * src/Request.h
  5159. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5160. Avoid dynamic_pointer_cast.
  5161. * src/DHTGetPeersCommand.cc
  5162. * src/DHTGetPeersCommand.h
  5163. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5165. BtEvent.
  5166. * src/AbstractBtEventListener.h: Removed.
  5167. * src/AbstractBtMessage.cc
  5168. * src/AbstractBtMessage.h
  5169. * src/BtAbortOutstandingRequestEvent.h
  5170. * src/BtCancelSendingPieceEvent.h
  5171. * src/BtChokedEvent.h: Removed.
  5172. * src/BtChokingEvent.h
  5173. * src/BtEvent.h: Removed
  5174. * src/BtEventListener.h: Removed.
  5175. * src/BtMessage.h
  5176. * src/BtPieceMessage.cc
  5177. * src/BtPieceMessage.h
  5178. * src/BtRequestMessage.cc
  5179. * src/BtRequestMessage.h
  5180. * src/DefaultBtMessageDispatcher.cc
  5181. * src/Makefile.am
  5182. * src/a2functional.h
  5183. * test/BtPieceMessageTest.cc
  5184. * test/BtRequestMessageTest.cc
  5185. * test/DefaultBtMessageDispatcherTest.cc
  5186. * test/MockBtMessage.h
  5187. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Code cleanup
  5189. * src/RequestGroupMan.cc
  5190. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5191. Code cleanup
  5192. * src/DownloadCommand.cc
  5193. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5194. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5195. byte.
  5196. * src/DownloadCommand.cc
  5197. * src/bitfield.h
  5198. * test/bitfieldTest.cc
  5199. Fixed the bug that causes infinite loop if broken web server
  5200. returns chunked response without last "0" chunk-size marker and
  5201. closes connection.
  5202. * src/DownloadCommand.cc
  5203. Instantiate properly configured HttpDownloadCommand for
  5204. non-resumable downlaods.
  5205. * src/HttpResponseCommand.cc
  5206. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Rewritten array operation functions.
  5208. * src/BitfieldMan.cc
  5209. * src/array_fun.h
  5210. * test/array_funTest.cc
  5211. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5212. Removed unused variable 'query'
  5213. * src/Request.cc
  5214. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5216. accidentally set to false in r1162.
  5217. * configure.ac
  5218. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Code cleanup
  5220. * src/BNode.cc
  5221. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5222. Increase prefixLength for the bucket which doesn't own local node
  5223. ID when splitting bucket.
  5224. * src/DHTBucket.cc
  5225. * test/DHTBucketTest.cc
  5226. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5227. * Release 1.3.1
  5228. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Bump up version number to 1.3.1
  5230. * configure.ac
  5231. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Removed unused variable checkPoint. Also removed include directive
  5233. for TimeA2.h.
  5234. * src/SeedCheckCommand.h
  5235. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Fixed the bug that upload limit exceeds the value specified in
  5237. --seed-ratio option depending on the timing of the execution of
  5238. SeedCheckCommand.
  5239. * src/SeedCheckCommand.cc
  5240. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Fixed the bug that removed peer's session upload/download length
  5242. are counted twice in _cachedTransferStat before it is
  5243. re-calculated. This affected the calculation of shara ratio,
  5244. resulting aria2 wrongly determines that specified share ratio is
  5245. reached. Also fixed the typo in calculateStatFor function name.
  5246. * src/BtSetup.cc
  5247. * src/DefaultPeerStorage.cc
  5248. * src/ShareRatioSeedCriteria.h
  5249. * test/ShareRatioSeedCriteriaTest.cc
  5250. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. * Release 1.3.0
  5252. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5254. Nynorsk translations. Thanks to all translators.
  5255. * po/es.po
  5256. * po/ja.po
  5257. * po/nn.po
  5258. * po/ru.po
  5259. * po/uk.po
  5260. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Rewritten isInRange()
  5262. * src/DHTBucket.cc
  5263. * test/DHTBucketTest.cc
  5264. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Fixed typo
  5266. * doc/aria2c.1.txt
  5267. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5269. malloc/realloc is not used.
  5270. * src/configure.ac
  5271. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5273. char* bitfield instead of stl container for efficiency.
  5274. PieceSelector::select now takes this
  5275. bitfield. RarestPieceSelector::select now also performs
  5276. efficiently for this change. bitfield namespace is introduced and
  5277. it has several helper functions to handle basic bitfield
  5278. operations such as test, count set bits, etc.
  5279. * src/BitfieldMan.cc
  5280. * src/BitfieldMan.h
  5281. * src/DefaultBtRequestFactory.cc
  5282. * src/DefaultPieceStorage.cc
  5283. * src/DefaultPieceStorage.h
  5284. * src/LongestSequencePieceSelector.cc
  5285. * src/LongestSequencePieceSelector.h
  5286. * src/Makefile.am
  5287. * src/Piece.cc
  5288. * src/Piece.h
  5289. * src/PieceSelector.h
  5290. * src/RarestPieceSelector.cc
  5291. * src/RarestPieceSelector.h
  5292. * src/Util.cc
  5293. * src/Util.h
  5294. * src/bitfield.h
  5295. * test/BitfieldManTest.cc
  5296. * test/LongestSequencePieceSelectorTest.cc
  5297. * test/Makefile.am
  5298. * test/RarestPieceSelectorTest.cc
  5299. * test/UtilTest.cc
  5300. * test/bitfieldTest.cc
  5301. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5302. Made accepted socket non-block.
  5303. * src/FtpNegotiationCommand.cc
  5304. * src/HttpListenCommand.cc
  5305. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5306. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5307. * src/AbstractSingleDiskAdaptor.cc
  5308. * src/DefaultPieceStorage.cc
  5309. * src/DiskAdaptor.h
  5310. * src/DiskAdaptor.h
  5311. * src/MultiFileAllocationIterator.cc
  5312. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Run
  5314. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5315. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5316. it doesn't need to be called every time when
  5317. DefaultBtInteractive::doInteractionProcessing() is called.
  5318. * src/DefaultBtInteractive.cc
  5319. * src/DefaultBtInteractive.h
  5320. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Documented 'falloc' in man page.
  5322. * doc/aria2c.1.txt
  5323. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Updated doc
  5325. * src/usage_text.h
  5326. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5328. allocation mode uses posix_fallocate() system call to allocate
  5329. file on disk. If you are using newer file systems such as ext4
  5330. (with extents support), btrfs or xfs, 'falloc' is your best
  5331. choice. It allocates large(few GiB) files almost instantly. Don't
  5332. use 'falloc' with legacy file systems such as ext3 because it
  5333. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5334. until allocation finishes. 'falloc' may not be available if your
  5335. system doesn't have posix_fallocate() system call.
  5336. * configure.ac
  5337. * src/AbstractDiskWriter.cc
  5338. * src/AbstractDiskWriter.h
  5339. * src/AbstractSingleDiskAdaptor.cc
  5340. * src/BinaryStream.h
  5341. * src/BtCheckIntegrityEntry.cc
  5342. * src/ByteArrayDiskWriter.h
  5343. * src/CheckIntegrityEntry.cc
  5344. * src/CheckIntegrityEntry.h
  5345. * src/DefaultPieceStorage.cc
  5346. * src/DiskAdaptor.cc
  5347. * src/DiskAdaptor.h
  5348. * src/DiskWriter.h
  5349. * src/FallocFileAllocationIterator.cc
  5350. * src/FallocFileAllocationIterator.h
  5351. * src/FileAllocationEntry.cc
  5352. * src/FileAllocationEntry.h
  5353. * src/Makefile.am
  5354. * src/MultiFileAllocationIterator.cc
  5355. * src/MultiFileAllocationIterator.h
  5356. * src/OptionHandlerFactory.cc
  5357. * src/RequestGroup.cc
  5358. * src/StreamCheckIntegrityEntry.cc
  5359. * src/prefs.cc
  5360. * src/prefs.h
  5361. * src/usage_text.h
  5362. * test/FallocFileAllocationIteratorTest.cc
  5363. * test/Makefile.am
  5364. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5365. Removed duplicate enableDirectIO() call.
  5366. * src/MultiFileAllocationIterator.cc
  5367. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5369. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5370. cost of std::rotate().
  5371. * src/RarestPieceSelector.cc
  5372. * src/RarestPieceSelector.h
  5373. * test/RarestPieceSelectorTest.cc
  5374. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Updated usage doc for --bt-tracker-interval option.
  5376. * src/usage_text.h
  5377. * doc/aria2c.1.txt
  5378. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Documented --bt-tracker-interval option in man page.
  5380. * doc/aria2c.1.txt
  5381. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Added an option to specify the interval between tracker requests.
  5383. If non-zero value is specified, aria2 uses it and ignores the
  5384. interval value in the response of tracker. If zero is specified,
  5385. aria2 determines the inteval value based on the tarcker response
  5386. and download progress.
  5387. * src/DefaultBtAnnounce.cc
  5388. * src/DefaultBtAnnounce.h
  5389. * src/OptionHandlerFactory.cc
  5390. * src/RequestGroup.cc
  5391. * src/prefs.cc
  5392. * src/prefs.h
  5393. * src/usage_text.h
  5394. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Added operator+=, operator-=, operator-
  5396. * src/TransferStat.cc
  5397. * src/TransferStat.h
  5398. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Refactored RarestPieceSelector to reduce CPU load, especially for
  5400. addPieceStats.
  5401. * src/RarestPieceSelector.cc
  5402. * src/RarestPieceSelector.h
  5403. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5405. getAllMissingBlockIndexes to reduce a call to
  5406. array_function_base::operator[].
  5407. * src/BitfieldMan.cc
  5408. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Cached TransferStat/download speed to avoid to sum them up in each
  5410. call.
  5411. * src/DefaultPeerStorage.cc
  5412. * src/DefaultPeerStorage.h
  5413. * src/SegmentMan.cc
  5414. * src/SegmentMan.h
  5415. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Typedefed cuid_t as int32_t in Command.h
  5417. * src/CUIDCounter.h
  5418. * src/Command.cc
  5419. * src/Command.h
  5420. * src/DownloadEngine.cc
  5421. * src/DownloadEngine.h
  5422. * src/PeerStat.h
  5423. * src/SegmentMan.cc
  5424. * src/SegmentMan.h
  5425. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Reduced the number of calls to PeerStorage::calculateStat() and
  5427. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5428. transfer rate.
  5429. * src/DefaultBtInteractive.cc
  5430. * src/DefaultBtMessageDispatcher.cc
  5431. * src/DefaultPeerStorage.cc
  5432. * src/DefaultPeerStorage.h
  5433. * src/DownloadCommand.cc
  5434. * src/DownloadEngine.cc
  5435. * src/PeerStorage.h
  5436. * src/SegmentMan.cc
  5437. * src/SegmentMan.h
  5438. * test/MockPeerStorage.h
  5439. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Prepended _dir+"/" after joining path elements in torrent file.
  5441. * src/DefaultBtContext.cc
  5442. * test/DefaultBtContextTest.cc
  5443. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Added missing IndexBtMessageValidator.h
  5445. * src/Makefile.am
  5446. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5448. Chinese translations. Thank you for contributing our project.
  5449. * po/id.po
  5450. * po/it.po
  5451. * po/ru.po
  5452. * po/uk.po
  5453. * po/zh_CN.po
  5454. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Updated README
  5456. * README
  5457. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Bump up version number to 1.3.0
  5459. * configure.ac
  5460. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Updated doc
  5462. * src/DefaultBtContext.h
  5463. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Slice/joinPath for name of single torrent.
  5465. * src/DefaultBtContext.cc
  5466. * test/DefaultBtContextTest.cc
  5467. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Updated man page: Documented --dry-run and --index-out
  5469. options. Changed the default value of --uri-selector and
  5470. --http-auth-challenge options. Removed --direct-file-mapping
  5471. option. Added example for --index-out
  5472. * doc/aria2c.1.txt
  5473. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Updated TEXT_DRY_RUN
  5475. * src/usage_text.h
  5476. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Changed the default value of --uri-selector option from 'inorder'
  5478. to 'feedback'
  5479. * src/OptionHandlerFactory.cc
  5480. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Included current URI in exception message.
  5482. * src/AbstractCommand.cc
  5483. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Renamed ServerStatURISelector as FeedbackURISelector.
  5485. * src/FeedbackURISelector.cc
  5486. * src/FeedbackURISelector.h
  5487. * src/Makefile.am
  5488. * src/RequestGroupMan.cc
  5489. * src/ServerStatURISelector.cc
  5490. * src/ServerStatURISelector.h
  5491. * test/FeedbackURISelectorTest.cc
  5492. * test/Makefile.am
  5493. * test/ServerStatURISelectorTest.cc
  5494. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5496. all URIs are tested and their timeout is not reached.
  5497. * src/AdaptiveURISelector.cc
  5498. * src/AdaptiveURISelector.h
  5499. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5500. Changed the default value of --http-auth-challenge option to false.
  5501. * src/OptionHandlerFactory.cc
  5502. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5503. Reuse URIs when all unused URIs run out.
  5504. * src/OptionHandlerFactory.cc
  5505. * src/RequestGroup.cc
  5506. * src/prefs.cc
  5507. * src/prefs.h
  5508. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5510. and BtRejectMessage are derived from RangeBtMessage class.
  5511. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5512. derived from IndexBtMessage class. BtChokeMessage,
  5513. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5514. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5515. ZeroBtMessage class.
  5516. * src/AbstractBtMessage.cc
  5517. * src/AbstractBtMessage.h
  5518. * src/BtAllowedFastMessage.cc
  5519. * src/BtAllowedFastMessage.h
  5520. * src/BtAllowedFastMessageValidator.h: Removed
  5521. * src/BtBitfieldMessage.cc
  5522. * src/BtBitfieldMessage.h
  5523. * src/BtCancelMessage.cc
  5524. * src/BtCancelMessage.h
  5525. * src/BtCancelMessageValidator.h: Removed
  5526. * src/BtChokeMessage.cc
  5527. * src/BtChokeMessage.h
  5528. * src/BtExtendedMessage.cc
  5529. * src/BtExtendedMessage.h
  5530. * src/BtHandshakeMessage.cc
  5531. * src/BtHandshakeMessage.h
  5532. * src/BtHaveAllMessage.cc
  5533. * src/BtHaveAllMessage.h
  5534. * src/BtHaveMessage.cc
  5535. * src/BtHaveMessage.h
  5536. * src/BtHaveMessageValidator.h: Removed
  5537. * src/BtHaveNoneMessage.cc
  5538. * src/BtHaveNoneMessage.h
  5539. * src/BtInterestedMessage.cc
  5540. * src/BtInterestedMessage.h
  5541. * src/BtKeepAliveMessage.cc
  5542. * src/BtKeepAliveMessage.h
  5543. * src/BtNotInterestedMessage.cc
  5544. * src/BtNotInterestedMessage.h
  5545. * src/BtPieceMessage.cc
  5546. * src/BtPieceMessage.h
  5547. * src/BtPortMessage.cc
  5548. * src/BtPortMessage.h
  5549. * src/BtRejectMessage.cc
  5550. * src/BtRejectMessage.h
  5551. * src/BtRejectMessageValidator.h: Removed
  5552. * src/BtRequestMessage.cc
  5553. * src/BtRequestMessage.h
  5554. * src/BtRequestMessageValidator.h: Removed
  5555. * src/BtSuggestPieceMessage.cc
  5556. * src/BtSuggestPieceMessage.h
  5557. * src/BtSuggestPieceMessageValidator.h: Removed
  5558. * src/BtUnchokeMessage.cc
  5559. * src/BtUnchokeMessage.h
  5560. * src/DefaultBtMessageFactory.cc
  5561. * src/IndexBtMessage.cc
  5562. * src/IndexBtMessage.h
  5563. * src/IndexBtMessageValidator.h
  5564. * src/Makefile.am
  5565. * src/PeerMessageUtil.cc
  5566. * src/PeerMessageUtil.h
  5567. * src/RangeBtMessage.cc
  5568. * src/RangeBtMessage.h
  5569. * src/RangeBtMessageValidator.h
  5570. * src/SimpleBtMessage.cc
  5571. * src/SimpleBtMessage.h
  5572. * src/ZeroBtMessage.cc
  5573. * src/ZeroBtMessage.h
  5574. * test/BtRequestMessageTest.cc
  5575. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Reverted usage_text.h to r1093 to avoid to lose translated
  5577. messages.
  5578. * src/usage_text.h
  5579. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5581. declared as non-const previously is now const and defined in class
  5582. definition.
  5583. * src/AbstractBtMessage.cc
  5584. * src/AbstractBtMessage.h
  5585. * src/BtAllowedFastMessage.cc
  5586. * src/BtAllowedFastMessage.h
  5587. * src/BtBitfieldMessage.h
  5588. * src/BtCancelMessage.cc
  5589. * src/BtCancelMessage.h
  5590. * src/BtChokeMessage.cc
  5591. * src/BtChokeMessage.h
  5592. * src/BtExtendedMessage.cc
  5593. * src/BtExtendedMessage.h
  5594. * src/BtHandshakeMessage.cc
  5595. * src/BtHandshakeMessage.h
  5596. * src/BtHaveAllMessage.cc
  5597. * src/BtHaveAllMessage.h
  5598. * src/BtHaveMessage.cc
  5599. * src/BtHaveMessage.h
  5600. * src/BtHaveNoneMessage.cc
  5601. * src/BtHaveNoneMessage.h
  5602. * src/BtInterestedMessage.cc
  5603. * src/BtInterestedMessage.h
  5604. * src/BtKeepAliveMessage.cc
  5605. * src/BtKeepAliveMessage.h
  5606. * src/BtMessage.h
  5607. * src/BtNotInterestedMessage.cc
  5608. * src/BtNotInterestedMessage.h
  5609. * src/BtPieceMessage.h
  5610. * src/BtPortMessage.cc
  5611. * src/BtPortMessage.h
  5612. * src/BtRejectMessage.cc
  5613. * src/BtRejectMessage.h
  5614. * src/BtRequestMessage.cc
  5615. * src/BtRequestMessage.h
  5616. * src/BtSuggestPieceMessage.cc
  5617. * src/BtSuggestPieceMessage.h
  5618. * src/BtUnchokeMessage.cc
  5619. * src/BtUnchokeMessage.h
  5620. * src/SimpleBtMessage.cc
  5621. * src/SimpleBtMessage.h
  5622. * test/MockBtMessage.h
  5623. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5624. Use FileEntry::exists()
  5625. * src/MultiDiskAdaptor.cc
  5626. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Added exists()
  5628. * src/FileEntry.cc
  5629. * src/FileEntry.h
  5630. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. Added missing prefix dir.
  5632. * src/download_helper.cc
  5633. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5635. * src/CopyDiskAdaptor.cc: Removed
  5636. * src/CopyDiskAdaptor.h: Removed
  5637. * src/DefaultPieceStorage.cc
  5638. * src/Makefile.am
  5639. * src/OptionHandlerFactory.cc
  5640. * src/prefs.cc
  5641. * src/prefs.h
  5642. * src/usage_text.h
  5643. * test/CopyDiskAdaptorTest.cc: Removed
  5644. * test/Makefile.am
  5645. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Rewritten isSameFileBeingDownloaded()
  5647. * src/RequestGroupMan.cc
  5648. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5649. Removed getName() from DownloadContext. getName() is declared in
  5650. BtContext.
  5651. * src/BtContext.h
  5652. * src/DownloadContext.h
  5653. * src/SingleFileDownloadContext.cc
  5654. * src/SingleFileDownloadContext.h
  5655. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5656. in AbstractSingleDiskAdaptor.
  5657. * src/AbstractSingleDiskAdaptor.h
  5658. * src/DiskAdaptor.h
  5659. * src/MultiDiskAdaptor.h
  5660. * src/RequestGroup.cc
  5661. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5662. MultiDiskAdaptor.
  5663. * src/DefaultPieceStorage.cc
  5664. * src/MultiDiskAdaptor.cc
  5665. * src/MultiDiskAdaptor.h
  5666. * test/MultiDiskAdaptorTest.cc
  5667. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5668. FileEntry::getPath() contains store(top level) directory to
  5669. simplify path handling operation. In the previous implementation,
  5670. store directory is concatenated to FileEntry::getPath() in
  5671. DownloadContext.
  5672. * src/BtDependency.cc
  5673. * src/BtPostDownloadHandler.cc
  5674. * src/CopyDiskAdaptor.cc
  5675. * src/DefaultBtContext.cc
  5676. * src/DirectDiskAdaptor.cc
  5677. * src/FileEntry.cc
  5678. * src/FileEntry.h
  5679. * src/FtpNegotiationCommand.cc
  5680. * src/HttpResponse.cc
  5681. * src/HttpResponseCommand.cc
  5682. * src/Metalink2RequestGroup.cc
  5683. * src/MultiDiskAdaptor.cc
  5684. * src/MultiDiskAdaptor.h
  5685. * src/MultiFileAllocationIterator.cc
  5686. * src/RequestGroup.cc
  5687. * src/SingleFileDownloadContext.cc
  5688. * src/SingleFileDownloadContext.h
  5689. * src/download_helper.cc
  5690. * test/BtDependencyTest.cc
  5691. * test/CopyDiskAdaptorTest.cc
  5692. * test/DefaultBtContextTest.cc
  5693. * test/DefaultBtProgressInfoFileTest.cc
  5694. * test/DirectDiskAdaptorTest.cc
  5695. * test/DownloadHelperTest.cc
  5696. * test/FileEntryTest.cc
  5697. * test/MultiDiskAdaptorTest.cc
  5698. * test/MultiFileAllocationIteratorTest.cc
  5699. * test/RequestGroupTest.cc
  5700. * test/SingleFileDownloadContextTest.cc
  5701. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5702. Fixed compiler warning
  5703. * src/download_helper.cc
  5704. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5705. Throw exception if same infohash torrent is now downloading.
  5706. * src/RequestGroup.cc
  5707. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Added --dry-run option. In this mode, aria2 just checks whether
  5709. the remote file is available and doesn't download data. This
  5710. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5711. are canceled in this mode.
  5712. * src/FtpNegotiationCommand.cc
  5713. * src/HttpResponseCommand.cc
  5714. * src/HttpResponseCommand.h
  5715. * src/OptionHandlerFactory.cc
  5716. * src/RequestGroup.cc
  5717. * src/RequestGroupMan.cc
  5718. * src/prefs.cc
  5719. * src/prefs.h
  5720. * src/usage_text.h
  5721. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Fixed compiler waring
  5723. * test/UriListParserTest.cc
  5724. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Parse options in -i list using OptionParser.
  5726. * src/UriListParser.cc
  5727. * src/UriListParser.h
  5728. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Don't reset URI in retry to avoid additional round trips because
  5730. of redirects.
  5731. * src/AbstractCommand.cc
  5732. * src/OptionHandlerFactory.cc
  5733. * src/prefs.cc
  5734. * src/prefs.h
  5735. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Declared hide() in OptionHandler.
  5737. * src/NameMatchOptionHandler.h
  5738. * src/OptionHandler.h
  5739. * src/OptionHandlerImpl.h
  5740. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. Updated doc
  5742. * src/Peer.h
  5743. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Added log message in setStatusInternal()
  5745. * src/ServerStat.cc
  5746. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5747. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5748. effectively exclude failed server.
  5749. * src/AbstractCommand.cc
  5750. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5751. Added --index-out option to specify each file path for torrent.
  5752. Here index shown in --show-files option is used to specify which
  5753. file path should be altered. For example, to change the file path
  5754. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5755. option multiple times: --index-out=1=aria2.tar.bz2
  5756. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5757. available. This option can be specified in -i list.
  5758. * src/DefaultBtContext.cc
  5759. * src/DefaultBtContext.h
  5760. * src/MultiDiskAdaptor.cc
  5761. * src/MultiDiskAdaptor.h
  5762. * src/MultiFileAllocationIterator.cc
  5763. * src/OptionHandlerFactory.cc
  5764. * src/OptionHandlerImpl.h
  5765. * src/Util.cc
  5766. * src/Util.h
  5767. * src/download_helper.cc
  5768. * src/prefs.cc
  5769. * src/prefs.h
  5770. * src/usage_text.h
  5771. * test/DefaultBtContextTest.cc
  5772. * test/MultiDiskAdaptorTest.cc
  5773. * test/MultiFileAllocationIteratorTest.cc
  5774. * test/UtilTest.cc
  5775. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Use Util::pathJoin()
  5777. * src/MetalinkParserController.cc
  5778. * test/test.xml
  5779. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Use Util::pathJoin()
  5781. * src/DefaultBtContext.cc
  5782. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5783. Added Util::pathJoin()
  5784. * src/Util.h
  5785. * test/UtilTest.cc
  5786. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5787. Applied basename function to remove directory element in
  5788. content-disposition value.
  5789. Return empty string if content-disposition value is ".." or ".".
  5790. * src/Util.cc
  5791. * test/UtilTest.cc
  5792. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Added --max-overall-download-limit in man page.
  5794. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5795. * doc/aria2c.1.txt
  5796. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5797. Added --max-overall-download-limit option. Now --max-upload-limit
  5798. option is not ignored when --max-overall-upload-limit option has
  5799. non-zero value. aria2 checks download(upload) speed in the order:
  5800. first checks overall speed limit and if it is not exceeded, then
  5801. checks speed limit per download. Thus you can specify both
  5802. value. For example, set --max-overall-download-limit=1M and
  5803. --max-download-limit=500K to prevent from one download from eating
  5804. all overall speed limit.
  5805. * src/DefaultBtInteractive.cc
  5806. * src/DefaultBtInteractive.h
  5807. * src/DefaultBtMessageDispatcher.cc
  5808. * src/DefaultBtMessageDispatcher.h
  5809. * src/DownloadCommand.cc
  5810. * src/DownloadCommand.h
  5811. * src/FtpNegotiationCommand.cc
  5812. * src/HttpResponseCommand.cc
  5813. * src/OptionHandlerFactory.cc
  5814. * src/PeerInteractionCommand.cc
  5815. * src/RequestGroup.cc
  5816. * src/RequestGroup.h
  5817. * src/RequestGroupMan.cc
  5818. * src/RequestGroupMan.h
  5819. * src/prefs.cc
  5820. * src/prefs.h
  5821. * src/usage_text.h
  5822. * test/DefaultBtMessageDispatcherTest.cc
  5823. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5824. Documented select-file option in Input File section.
  5825. Documented --http-auth-challenge option.
  5826. * doc/aria2c.1.txt
  5827. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5828. Now select-file can be specified in the uri list(-i list).
  5829. * src/BtContext.cc
  5830. * src/BtContext.h
  5831. * src/RequestGroup.cc
  5832. * src/Sequence.h
  5833. * src/download_helper.cc
  5834. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Made the upper value of --max-concurrent-downloads options unlimited.
  5836. * src/OptionHandlerFactory.cc
  5837. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Fixed the bug that disk writer is not created even if it shares
  5839. same piece with the preceding file if the length of previous file
  5840. is 0.
  5841. * src/MultiDiskAdaptor.cc
  5842. * test/MultiDiskAdaptorTest.cc
  5843. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. In BitTorrent, Open files in read-only mode for hash check. After
  5845. that, re-open file in read/write mode only when the download is
  5846. not finished.
  5847. * src/AbstractDiskWriter.cc
  5848. * src/AbstractDiskWriter.h
  5849. * src/AbstractSingleDiskAdaptor.cc
  5850. * src/AbstractSingleDiskAdaptor.h
  5851. * src/BtCheckIntegrityEntry.cc
  5852. * src/DiskAdaptor.h
  5853. * src/DiskWriter.h
  5854. * src/MultiDiskAdaptor.cc
  5855. * src/MultiDiskAdaptor.h
  5856. * src/RequestGroup.cc
  5857. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Added --http-auth-challenge option. If it is set to true(by
  5859. default), aria2 sends HTTP authorization header only when it is
  5860. requested by the server. If false is set, then authorization
  5861. header is always sent to the server. This is useful for servers
  5862. that don't respond 401 code when authentication is required.
  5863. There is an exception: if username and password are embedded in
  5864. URI, authorization header is always sent to the server regardless
  5865. of this option.
  5866. * src/AuthConfigFactory.cc
  5867. * src/HttpSkipResponseCommand.cc
  5868. * src/OptionHandlerFactory.cc
  5869. * src/prefs.cc
  5870. * src/prefs.h
  5871. * src/usage_text.h
  5872. * test/AuthConfigFactoryTest.cc
  5873. * test/HttpRequestTest.cc
  5874. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5875. * Release 1.2.0
  5876. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5878. Thanks to all translators.
  5879. * po/es.po
  5880. * po/ja.po
  5881. * po/ru.po
  5882. * po/uk.po
  5883. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Call deleteSocketForReadCheck() before socket is closed.
  5885. * src/HttpListenCommand.cc
  5886. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5887. Defined virtual destructor for BObject.
  5888. * src/bencode.h
  5889. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5890. Rewritten BDE to make it efficient.
  5891. * src/bencode.cc
  5892. * src/bencode.h
  5893. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. Removed function throw list.
  5895. * src/bencode.cc
  5896. * src/bencode.h
  5897. * test/BencodeTest.cc
  5898. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Enclosed all URLs in double quotes in command-line examples.
  5900. * doc/aria2c.1.txt
  5901. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Updated reference/see also section.
  5903. * README
  5904. * doc/aria2c.1.txt
  5905. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Reorganized man page based on man man-pages.
  5907. * doc/aria2c.1.txt
  5908. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5910. because same documents are available in man page. Added
  5911. References section.
  5912. * README
  5913. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5915. PERFORMANCE PROFILE section.
  5916. * doc/aria2c.1.txt
  5917. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Rewritten the section for configuration file.
  5919. * README
  5920. * doc/aria2c.1.txt
  5921. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5922. Fixed the segmentation fault during execution of choking algorithm
  5923. in leecher state because of broken compare operator
  5924. implementation.
  5925. * src/BtLeecherStateChoke.cc
  5926. * src/BtLeecherStateChoke.h
  5927. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Open file in binary mode.
  5929. * src/CookieStorage.cc
  5930. * src/DHTSetup.cc
  5931. * src/DHTUtil.cc
  5932. * src/Netrc.cc
  5933. * src/NsCookieParser.cc
  5934. * src/ProtocolDetector.cc
  5935. * src/RequestGroupMan.cc
  5936. * src/Signature.cc
  5937. * src/bencode.cc
  5938. * src/download_helper.cc
  5939. * src/option_processing.cc
  5940. * test/CookieParserTest.cc
  5941. * test/DefaultBtProgressInfoFileTest.cc
  5942. * test/FileTest.cc
  5943. * test/GZipDecoderTest.cc
  5944. * test/RequestGroupManTest.cc
  5945. * test/SignatureTest.cc
  5946. * test/SingleFileAllocationIteratorTest.cc
  5947. * test/UriListParserTest.cc
  5948. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Removed operator[] because it is ambiguous with built-in []
  5950. operator.
  5951. * src/array_fun.h
  5952. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Fixed compile error
  5954. * src/OptionParser.cc
  5955. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5956. Added missing call to arrayWrapperConst
  5957. * test/array_funTest.cc
  5958. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5959. Use array_wrapper instead of array_ptr.
  5960. * src/DHTRoutingTableDeserializer.cc
  5961. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5962. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5963. * src/array_fun.h
  5964. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5965. Added array_wrapper template.
  5966. * src/array_fun.h
  5967. * test/array_funTest.cc
  5968. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Use operator T* of array_ptr.
  5970. * src/OptionParser.cc
  5971. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5972. Use localhost instead of 127.0.0.1
  5973. * test/FtpConnectionTest.cc
  5974. * test/MSEHandshakeTest.cc
  5975. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5976. Added operator T*
  5977. * src/array_fun.h
  5978. * test/array_funTest.cc
  5979. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Use dynamically allocated char array to detect memory access
  5981. violation.
  5982. * src/DHTRoutingTableDeserializer.cc
  5983. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5984. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5985. defined.
  5986. * src/PeerMessageUtil.cc
  5987. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5989. * configure.ac
  5990. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Added a check to see struct sockaddr_in has sin_len member.
  5992. * configure.ac
  5993. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Fixed buffer overrun.
  5995. * src/DHTRoutingTableDeserializer.cc
  5996. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. Added LL for long long int constant.
  5998. * test/FtpConnectionTest.cc
  5999. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6000. Casted to unsigned int to suppress compiler warning on netbsd.
  6001. * src/BtRuntime.h
  6002. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6003. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6004. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6005. type time_t.
  6006. * src/SimpleLogger.cc
  6007. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6008. Added test for FtpConnection::receiveSizeResponse().
  6009. * test/FtpConnectionTest.cc
  6010. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6011. Fix epoll error on the old kernel 2.6.8 or ealier.
  6012. * src/EpollEventPoll.cc
  6013. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6014. Use Util::parseLLInt instead of sscanf for portability. The
  6015. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6016. * src/FtpConnection.cc
  6017. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6018. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6019. block. It should not filter anything.
  6020. * src/BitfieldMan.cc
  6021. * src/ConsoleStatCalc.cc
  6022. * test/BitfieldManTest.cc
  6023. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6024. Fixed the bug that the boolean options that don't take arguments
  6025. don't work.
  6026. * src/OptionHandlerImpl.h
  6027. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Fixed broken selected file BitTorrent download.
  6029. * src/MultiDiskAdaptor.cc
  6030. * test/MultiDiskAdaptorTest.cc
  6031. * test/MultiFileAllocationIteratorTest.cc
  6032. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Fixed #define guard for EpollEventPoll
  6034. * src/EpollEventPoll.h
  6035. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Wait 2 seconds. 1 second is sometimes not enough.
  6037. * test/TimeSeedCriteriaTest.cc
  6038. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Use localhost instead of 127.0.0.1.
  6040. * test/DHTConnectionImplTest.cc
  6041. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6042. Suppressed compiler warning.
  6043. * src/AdaptiveURISelector.cc
  6044. * src/DefaultPieceStorage.cc
  6045. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6046. Defined virtual destructor.
  6047. * src/MetalinkParserState.h
  6048. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Give NULL for second argument of getaddrinfo instead of "0".
  6050. * src/NameResolver.cc
  6051. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6053. included strptime doesn't parse data for this format.
  6054. * src/FtpConnection.cc
  6055. * test/FtpConnectionTest.cc
  6056. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6057. Removed tests giving -1 for unsigned argument.
  6058. * test/SingleFileDownloadContextTest.cc
  6059. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Don't use sha256 in tests because it might not be supported by the
  6061. SSL library.
  6062. * test/MetalinkProcessorTest.cc
  6063. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Removed tests giving -1 for unsigned argument.
  6065. * test/AlphaNumberDecoratorTest
  6066. * test/BitfieldManTest.cc
  6067. * test/DefaultBtContextTest.cc
  6068. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Fixed compile error without libcares when epoll is available.
  6070. * src/EpollEventPoll.cc
  6071. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Included fstream instead of iostream.
  6073. * test/SignatureTest.cc
  6074. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Removed #include <algorithm>
  6076. * test/RequestGroupTest.cc
  6077. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6078. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6079. using RequestGroup::extractURIResult().
  6080. * src/AdaptiveURISelector.cc
  6081. * src/RequestGroup.cc
  6082. * src/RequestGroup.h
  6083. * test/RequestGroupTest.cc
  6084. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6085. Added tests for array_ptr.
  6086. * test/array_funTest.cc
  6087. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6088. Don't send ip parameter to a tracker if ip parameter is empty
  6089. string.
  6090. * src/DefaultBtAnnounce.cc
  6091. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Adjusted line feed.
  6093. * src/version_usage.cc
  6094. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6095. Print tags, possible values when OptionHandlerException is caught.
  6096. * src/option_processing.cc
  6097. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6098. Changed the message for FatalException.
  6099. * src/OptionParser.cc
  6100. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6101. Documented --bt-external-ip option in man page. Updated man pages
  6102. for --proxy-method option.
  6103. * doc/aria2c.1.txt
  6104. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6105. Use GET method for FTP via HTTP proxy.
  6106. * src/FtpInitiateConnectionCommand.cc
  6107. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Changed the default value of --proxy-method option from 'tunnel'
  6109. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6110. option.
  6111. * src/AbstractCommand.cc
  6112. * src/AbstractCommand.h
  6113. * src/FtpInitiateConnectionCommand.cc
  6114. * src/HttpDownloadCommand.cc
  6115. * src/HttpInitiateConnectionCommand.cc
  6116. * src/HttpInitiateConnectionCommand.h
  6117. * src/OptionHandlerFactory.cc
  6118. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. Initialized _logger
  6120. * src/SelectEventPoll.cc
  6121. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Defined a copy constructor for the same type.
  6123. * src/SharedHandle.h
  6124. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Added OptionParser::parseArg() which internally uses getopt_long
  6126. to parse command-line options. All command-line options are now
  6127. configured by OptionHandler. No manual editing of struct option*
  6128. is required any more.
  6129. * src/NameMatchOptionHandler.h
  6130. * src/OptionHandler.h
  6131. * src/OptionHandlerFactory.cc
  6132. * src/OptionHandlerImpl.h
  6133. * src/OptionParser.cc
  6134. * src/OptionParser.h
  6135. * src/array_fun.h
  6136. * src/main.cc
  6137. * src/option_processing.cc
  6138. * test/OptionHandlerTest.cc
  6139. * test/OptionParserTest.cc
  6140. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6141. Fixed configure error with --disable-epoll
  6142. * configure.ac
  6143. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6144. Fixed compile error when HAVE_EPOLL is not defined.
  6145. Fixed linker error on bigendian systems.
  6146. * src/SocketCore.cc
  6147. * src/SocketCore.h
  6148. * test/DefaultBtProgressInfoFileTest.cc
  6149. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Added --bt-external-ip option. You can specify the external IP
  6151. address to report to a BitTorrent tracker. Although this function
  6152. is named 'external', it can accept any kind of IP addresses.
  6153. * src/DefaultBtAnnounce.cc
  6154. * src/OptionHandlerFactory.cc
  6155. * src/option_processing.cc
  6156. * src/prefs.cc
  6157. * src/prefs.h
  6158. * src/usage_text.h
  6159. * test/DefaultBtAnnounceTest.cc
  6160. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6161. Extracted the algorithm to find the longest incremental sequence
  6162. as max_sequence template.
  6163. * src/LongestSequencePieceSelector.cc
  6164. * src/a2algo.h
  6165. * test/Makefile.am
  6166. * test/a2algoTest.cc
  6167. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6168. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6169. * src/usage_text.h
  6170. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6171. Updated doc for --uri-selector, --http-server-listen-port and
  6172. --enable-http-server option. Documented --event-poll option.
  6173. * doc/aria2c.1.txt
  6174. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6175. Updated doc for --enable-http-server.
  6176. * src/usage_text.h
  6177. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Documented --http-server-listen-port and --enable-http-server in
  6179. man page.
  6180. * doc/aria2c.1.txt
  6181. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6183. translations. Thanks to all translators.
  6184. * po/es.po
  6185. * po/id.po
  6186. * po/it.po
  6187. * po/ru.po
  6188. * po/uk.po
  6189. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6190. Bump up version number to 1.2.0
  6191. * configure.ac
  6192. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6193. BtContext::getAnnounceTiers() now returns const reference.
  6194. * src/BtContext.h
  6195. * src/DefaultBtContext.cc
  6196. * src/DefaultBtContext.h
  6197. * test/MockBtContext.h
  6198. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Change the number of retries for tracker request based on the
  6200. number of available tracker in a torrent file.
  6201. * src/TrackerWatcherCommand.cc
  6202. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Added _maxTries property to RequestGroup and assign the option
  6204. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6205. RequestGroup::getMaxTries() instead of
  6206. Option::getAsInt(PREF_MAX_TRIES).
  6207. * src/AbstractCommand.cc
  6208. * src/RequestGroup.cc
  6209. * src/RequestGroup.h
  6210. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6211. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6212. Mandriva. I modified the patch: make RequestGroup have the
  6213. timeout value and AdaptiveURISelector directly modifies that
  6214. value.
  6215. * src/AbstractCommand.cc
  6216. * src/AdaptiveURISelector.cc
  6217. * src/AdaptiveURISelector.h
  6218. * src/FtpNegotiationCommand.cc
  6219. * src/RequestGroup.cc
  6220. * src/RequestGroup.h
  6221. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6222. Fixed compiler warning
  6223. * test/IteratableChecksumValidatorTest.cc
  6224. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6226. integrated downloads. This PieceSelector subclass finds the
  6227. longest continuous sequence in the available missing pieces and
  6228. selects the last index of such sequence. This makes HTTP/FTP
  6229. connections less interrupted by the pieces obtained by BitTorrent
  6230. peers.
  6231. * src/DefaultPieceStorage.cc
  6232. * src/DefaultPieceStorage.h
  6233. * src/LongestSequencePieceSelector.cc
  6234. * src/LongestSequencePieceSelector.h
  6235. * src/Makefile.am
  6236. * src/PieceSelector.h
  6237. * src/RarestPieceSelector.h
  6238. * src/RequestGroup.cc
  6239. * test/BtDependencyTest.cc
  6240. * test/DefaultPieceStorageTest.cc
  6241. * test/IteratableChecksumValidatorTest.cc
  6242. * test/LongestSequencePieceSelectorTest.cc
  6243. * test/Makefile.am
  6244. * test/SegmentManTest.cc
  6245. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6246. Fixed the bug that the average speed is wrong in
  6247. http/ftp/BitTorrent integrated download. Only the download bytes
  6248. in BitTorrent were considered.
  6249. * src/RequestGroup.cc
  6250. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6251. Choose port for BitTorrent/DHT randomly from the specified range.
  6252. * src/DHTConnectionImpl.cc
  6253. * src/PeerListenCommand.cc
  6254. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6255. Send HTTP Authorization header only if it is requested by the
  6256. server(response 401). There are some exceptions. The authorization
  6257. header for proxy is always sent if it is available without request
  6258. by the server. If username/password is specified in the URI, it
  6259. is immediately sent to the server without request by the server.
  6260. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6261. SharedHandle<AuthConfig>().
  6262. NetrcAuthResolver::resolveAuthConfig() returns
  6263. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6264. * src/AbstractAuthResolver.cc
  6265. * src/AbstractProxyRequestCommand.cc
  6266. * src/AuthConfigFactory.cc
  6267. * src/AuthConfigFactory.h
  6268. * src/HttpConnection.cc
  6269. * src/HttpRequest.cc
  6270. * src/HttpRequest.h
  6271. * src/HttpResponse.cc
  6272. * src/HttpResponseCommand.cc
  6273. * src/HttpSkipResponseCommand.cc
  6274. * test/AuthConfigFactoryTest.cc
  6275. * test/HttpRequestTest.cc
  6276. * test/HttpResponseTest.cc
  6277. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Remove leading "--" from help keyword and a substring after "="
  6279. from help keyword, so that one can query options by '-h--max-' or
  6280. '-hmax-peers=10'.
  6281. * src/option_processing.cc
  6282. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Rewritten PStringVisitor and its implementation.
  6284. * src/PStringBuildVisitor.cc
  6285. * src/PStringBuildVisitor.h
  6286. * src/PStringDatum.h
  6287. * src/PStringNumLoop.h
  6288. * src/PStringSegment.cc
  6289. * src/PStringSegment.h
  6290. * src/PStringSelect.h
  6291. * src/PStringVisitor.h
  6292. * src/download_helper.cc
  6293. * test/PStringBuildVisitorTest.cc
  6294. * test/ParameterizedStringParserTest.cc
  6295. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Persist connection between the built-in HTTP server and a client
  6297. if a client supports keep-alive. Fixed the bug that aria2 exits
  6298. when the HTTP server receives EOF from a client.
  6299. * src/HttpServer.cc
  6300. * src/HttpServer.h
  6301. * src/HttpServerCommand.cc
  6302. * src/HttpServerCommand.h
  6303. * src/HttpServerResponseCommand.cc
  6304. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6305. Added experimental built-in HTTP server. Currently, when a client
  6306. accesses to the server, it responds with the current download
  6307. progress. By default, it is disabled. To enable the server, give
  6308. --enable-http-server option. To change the default port number
  6309. for the server to listen to, use --http-server-listen-port option.
  6310. The response HTML is very simple and refreshes it self each 1
  6311. second. Because of this refresh, you see flicker in normal web
  6312. browser such as Firefox. I recommend to use console-based browser
  6313. such as elinks, w3m. To connect to the server, run 'elinks
  6314. http://localhost:6800/' while running aria2. Please replace port
  6315. number '6800'(which is default) with your preference.
  6316. * src/DownloadEngineFactory.cc
  6317. * src/HttpHeader.cc
  6318. * src/HttpHeader.h
  6319. * src/HttpHeaderProcessor.cc
  6320. * src/HttpHeaderProcessor.h
  6321. * src/HttpListenCommand.cc
  6322. * src/HttpListenCommand.h
  6323. * src/HttpServer.cc
  6324. * src/HttpServer.h
  6325. * src/HttpServerCommand.cc
  6326. * src/HttpServerCommand.h
  6327. * src/HttpServerResponseCommand.cc
  6328. * src/HttpServerResponseCommand.h
  6329. * src/Makefile.am
  6330. * src/OptionHandlerFactory.cc
  6331. * src/Util.cc
  6332. * src/Util.h
  6333. * src/help_tags.h
  6334. * src/option_processing.cc
  6335. * src/prefs.cc
  6336. * src/prefs.h
  6337. * src/usage_text.h
  6338. * test/HttpHeaderProcessorTest.cc
  6339. * test/UtilTest.cc
  6340. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6341. Removed.
  6342. * src/CheckIntegrityMan.cc
  6343. * src/FileAllocationMan.cc
  6344. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6345. Made (piece) hash check sequential for each RequestGroup because
  6346. simultaneous hash check is slower than sequential execution.
  6347. * src/CheckIntegrityCommand.cc
  6348. * src/CheckIntegrityDispatcherCommand.cc
  6349. * src/CheckIntegrityDispatcherCommand.h
  6350. * src/CheckIntegrityMan.h
  6351. * src/ConsoleStatCalc.cc
  6352. * src/DownloadCommand.cc
  6353. * src/DownloadEngine.cc
  6354. * src/DownloadEngine.h
  6355. * src/DownloadEngineFactory.cc
  6356. * src/Makefile.am
  6357. * src/Makefile.in
  6358. * src/RequestGroup.cc
  6359. * src/StatCalc.h
  6360. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6362. SequentialDispatcherCommand.
  6363. * src/FileAllocationDispatcherCommand.cc
  6364. * src/SequentialDispatcherCommand.h
  6365. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Rewritten FileAllocationDispatcherCommand using brand new
  6367. SequentialDispatcherCommand.
  6368. * src/DownloadEngineFactory.cc
  6369. * src/FileAllocationCommand.cc
  6370. * src/FileAllocationDispatcherCommand.cc
  6371. * src/FileAllocationDispatcherCommand.h
  6372. * src/Makefile.am
  6373. * src/SequentialDispatcherCommand.h
  6374. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6375. Replaced FileAllocationMan with
  6376. SequentialPicker<FileAllocationEntry>.
  6377. * src/BtCheckIntegrityEntry.cc
  6378. * src/ConsoleStatCalc.cc
  6379. * src/DownloadEngine.cc
  6380. * src/DownloadEngine.h
  6381. * src/DownloadEngineFactory.cc
  6382. * src/FileAllocationCommand.cc
  6383. * src/FileAllocationDispatcherCommand.cc
  6384. * src/FileAllocationMan.h
  6385. * src/Makefile.am
  6386. * src/SequentialPicker.h
  6387. * src/StatCalc.h
  6388. * src/StreamCheckIntegrityEntry.cc
  6389. * test/Makefile.am
  6390. * test/SequentialPickerTest.cc
  6391. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Added doc for adaptive URI selector.
  6393. * doc/aria2c.1.txt
  6394. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6395. Added doc for adaptive URI selector.
  6396. * src/usage_text.h
  6397. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6398. Added doc for --bt-max-peers option.
  6399. * doc/aria2c.1.txt
  6400. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6401. Added doc for --bt-hash-check-seed option.
  6402. * doc/aria2c.1.txt
  6403. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6404. Documented exit codes.
  6405. * doc/aria2c.1.txt
  6406. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Added --bt-max-peers option to specify the maximum number of peers
  6408. per torrent. 0 means unlimited number of peers.
  6409. * src/ActivePeerConnectionCommand.cc
  6410. * src/BtRuntime.h
  6411. * src/DefaultPeerStorage.cc
  6412. * src/DefaultPeerStorage.h
  6413. * src/OptionHandlerFactory.cc
  6414. * src/RequestGroup.cc
  6415. * src/option_processing.cc
  6416. * src/prefs.cc
  6417. * src/prefs.h
  6418. * src/usage_text.h
  6419. * test/DefaultPeerStorageTest.cc
  6420. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Added --bt-hash-check-seed option. If true is given to this
  6422. option, after hash check using --check-integrity option and file
  6423. is complete, continue to seed file. If you want to check file and
  6424. download it only when it is damaged or incomplete, set this option
  6425. to false. This option has effect only on BitTorrent download.
  6426. The default value is true(This is the same behavior with the
  6427. previous release).
  6428. * src/BtCheckIntegrityEntry.cc
  6429. * src/OptionHandlerFactory.cc
  6430. * src/option_processing.cc
  6431. * src/prefs.cc
  6432. * src/prefs.h
  6433. * src/usage_text.h
  6434. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6435. Updated copyright year.
  6436. * src/version_usage.cc
  6437. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6439. * doc/aria2c.1.txt
  6440. * src/usage_text.h
  6441. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6442. Made the max value of split option unlimited.
  6443. * doc/aria2c.1.txt
  6444. * src/OptionHandlerFactory.cc
  6445. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Fixed compile warning/error.
  6447. * src/DownloadResult.h
  6448. * src/HttpDownloadCommand.cc
  6449. * src/ServerStat.cc
  6450. * test/RequestGroupTest.cc
  6451. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Added --event-poll option to select the method for polling events.
  6453. The available methods are "select" and "epoll". "epoll" is
  6454. available on Linux only. The earlier release has the compile
  6455. option to choose from these methods.
  6456. * configure.ac
  6457. * src/RequestGroupMan.cc
  6458. * src/OptionHandlerFactory.cc
  6459. * src/EpollEventPoll.h
  6460. * src/StreamFileAllocationEntry.cc
  6461. * src/a2io.h
  6462. * src/SelectEventPoll.h
  6463. * src/option_processing.cc
  6464. * src/prefs.h
  6465. * src/EpollEventPoll.cc
  6466. * src/EventPoll.h
  6467. * src/SocketCore.h
  6468. * src/Makefile.am
  6469. * src/main.cc
  6470. * src/DownloadEngine.h
  6471. * src/SelectEventPoll.cc
  6472. * src/DownloadEngine.cc
  6473. * src/SocketCore.cc
  6474. * src/DownloadEngineFactory.cc
  6475. * src/Makefile.in
  6476. * src/prefs.cc
  6477. * src/usage_text.h
  6478. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6479. Included RecoverableException.h from main.cc
  6480. * src/main.cc
  6481. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6482. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6483. now returns last error encountered in the HTTP/FTP downloads as a
  6484. exit status value. If all downloads finished successfully, aria2
  6485. returns 0. The error code is defined in src/DownloadResult.h.
  6486. The error occurred in the download currently in progress is not
  6487. reported as a last error. If no error has encountered but there
  6488. are in progress or waiting downloads, aria2 returns 7.
  6489. * src/AbstractCommand.cc
  6490. * src/DlAbortEx.h
  6491. * src/DlRetryEx.h
  6492. * src/DownloadCommand.cc
  6493. * src/DownloadFailureException.h
  6494. * src/DownloadResult.h
  6495. * src/FtpNegotiationCommand.cc
  6496. * src/HttpSkipResponseCommand.cc
  6497. * src/Makefile.am
  6498. * src/MultiUrlRequestInfo.cc
  6499. * src/MultiUrlRequestInfo.h
  6500. * src/RecoverableException.h
  6501. * src/RequestGroup.cc
  6502. * src/RequestGroup.h
  6503. * src/RequestGroupMan.cc
  6504. * src/RequestGroupMan.h
  6505. * src/URIResult.cc
  6506. * src/URIResult.h
  6507. * src/main.cc
  6508. * src/option_processing.cc
  6509. * test/RequestGroupTest.cc
  6510. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6511. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6512. patch adds AdaptiveURISelector, which selects one of the bests
  6513. mirrors for first and reserved connections. For supplementary
  6514. ones, it returns mirrors which has not been tested yet, and if
  6515. each of them already tested, returns mirrors which has to be
  6516. tested again. Otherwise, it doesn't return anymore mirrors.
  6517. * src/AdaptiveURISelector.cc
  6518. * src/AdaptiveURISelector.h
  6519. * src/FtpNegotiationCommand.cc
  6520. * src/HttpResponseCommand.cc
  6521. * src/Makefile.am
  6522. * src/Makefile.in
  6523. * src/OptionHandlerFactory.cc
  6524. * src/RequestGroup.cc
  6525. * src/RequestGroup.h
  6526. * src/RequestGroupMan.cc
  6527. * src/ServerStat.cc
  6528. * src/ServerStat.h
  6529. * src/ServerStatMan.cc
  6530. * src/SpeedCalc.cc
  6531. * src/URISelector.h
  6532. * src/prefs.cc
  6533. * src/prefs.h
  6534. * test/RequestGroupManTest.cc
  6535. * test/ServerStatManTest.cc
  6536. * test/ServerStatTest.cc
  6537. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Fixed unit test error.
  6539. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6540. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. * Release 1.1.2
  6542. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6543. Updated Russian translation. Thanks to the translators.
  6544. * po/ru.po
  6545. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6546. Added the description of --use-head option to man page.
  6547. * doc/aria2c.1.txt
  6548. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6549. Bump up version number to 1.1.2
  6550. * configure.ac
  6551. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6552. Added --use-head option to toggle whether HEAD method should be
  6553. used in the first HTTP request. By default aria2 uses HEAD method
  6554. as the first request. When the server doesn't recognize HEAD, then
  6555. give aria2 --use-head=false to force aria2 to use GET method
  6556. instead.
  6557. * src/OptionHandlerFactory.cc
  6558. * src/RequestGroupMan.cc
  6559. * src/option_processing.cc
  6560. * src/prefs.cc
  6561. * src/prefs.h
  6562. * src/usage_text.h
  6563. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6565. message is received before CHOKE message. The old implementation
  6566. doen't clear the use-bit of the piece when recieved REJECT
  6567. message.
  6568. * src/DefaultBtMessageDispatcher.cc
  6569. * test/DefaultBtMessageDispatcherTest.cc
  6570. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6571. * Release 1.1.1
  6572. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Bump up version number to 1.1.1.
  6574. * configure.ac
  6575. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6577. is printed repeatedly.
  6578. * src/ConsoleStatCalc.cc
  6579. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. * Release 1.1.0
  6581. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Added ifdef clause for conditional compilation.
  6583. * src/main.cc
  6584. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6585. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6586. translations. Thanks to all translators.
  6587. * po/ja.po
  6588. * po/ru.po
  6589. * po/uk.po
  6590. * po/zh_CN.po
  6591. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. Added the preceding ">>> " before the message "Printing the
  6593. contents of file..." to make the output more readable.
  6594. * src/main.cc
  6595. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6596. Added try-catch block in the loop in showFiles() to continue the
  6597. operation even if the exception occurred in one file.
  6598. * src/main.cc (showFiles)
  6599. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6600. Made messages in showFiles() translatable.
  6601. * po/aria2.pot
  6602. * src/main.cc
  6603. * src/message.h
  6604. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. Print the contents of Torrent/Metalink files are printed without
  6606. -T/-M options.
  6607. * src/main.cc
  6608. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6609. Escaped '--' with '\--'
  6610. * README
  6611. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. Updated "How to build" section in README. Mentioned about
  6613. --with-ca-bundle compile option.
  6614. * README
  6615. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Bump up version number to 1.1.0.
  6617. * configure.ac
  6618. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Added a note for --dht-listen-port option.
  6620. * doc/aria2c.1.txt
  6621. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6622. Update doc for --realtime-chunk-checksum option.
  6623. * doc/aria2c.1.txt
  6624. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6625. Update doc for --realtime-chunk-checksum option.
  6626. * src/usage_text.h
  6627. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Updated French, Japanese, Russian and Ukrainian translations.
  6629. Thanks to all translators.
  6630. * po/fr.po
  6631. * po/ja.po
  6632. * po/ru.po
  6633. * po/uk.po
  6634. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6635. Renamed aria2c.pot to aria2.pot
  6636. * po/aria2.pot
  6637. * po/aria2c.pot: Removed.
  6638. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Removed MetaEntry.h
  6640. * src/Makefile.am
  6641. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6642. Rename file by appending digits if a local file exists and its
  6643. file size is larger than that of remote file with --continue
  6644. option. The old implementation just throws exception in such case.
  6645. * src/RequestGroup.cc
  6646. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Fixed the bug that download progress summary is not printed in the
  6648. interval specified by the option.
  6649. * src/ConsoleStatCalc.cc
  6650. * src/ConsoleStatCalc.h
  6651. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Fixed compiler warning
  6653. * src/Cookie.cc
  6654. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Fixed the cookie implementation based on RFC2965.
  6656. Now if a value in domain field is not started with dot, then
  6657. prepend dot. That means a cookie with domain=sf.net is sent to
  6658. wiki.sf.net.
  6659. * src/Cookie.cc
  6660. * test/CookieParserTest.cc
  6661. * test/CookieStorageTest.cc
  6662. * test/CookieTest.cc
  6663. * test/NsCookieParserTest.cc
  6664. * test/Sqlite3MozCookieParserTest.cc
  6665. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6667. is enabled and the server doesn't support keep-alive.
  6668. * src/AbstractCommand.cc
  6669. * src/DownloadCommand.cc
  6670. * src/HttpDownloadCommand.cc
  6671. * src/HttpDownloadCommand.h
  6672. * src/HttpResponseCommand.cc
  6673. * src/Request.cc
  6674. * src/Request.h
  6675. * test/RequestTest.cc
  6676. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Removed Dictionary/List/Data and its related classes.
  6678. * src/BencodeVisitor.cc: Removed.
  6679. * src/BencodeVisitor.h: Removed.
  6680. * src/Data.cc: Removed.
  6681. * src/Data.h: Removed.
  6682. * src/Dictionary.cc: Removed.
  6683. * src/Dictionary.h: Removed.
  6684. * src/List.cc: Removed.
  6685. * src/List.h: Removed.
  6686. * src/Makefile.am
  6687. * src/MetaEntry.h: Removed.
  6688. * src/MetaEntryVisitor.h: Removed.
  6689. * src/MetaFileUtil.cc: Removed.
  6690. * src/MetaFileUtil.h: Removed.
  6691. * test/BencodeVisitorTest.cc: Removed.
  6692. * test/DataTest.cc: Removed.
  6693. * test/DictionaryTest.cc: Removed.
  6694. * test/ListTest.cc: Removed.
  6695. * test/Makefile.am
  6696. * test/MetaFileUtilTest.cc: Removed.
  6697. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Removed include of MetaEntry.h
  6699. * test/DHTMessageTrackerEntryTest.cc
  6700. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Use BDE instead of Dictionary/List/Data.
  6702. * src/AnnounceList.cc
  6703. * src/AnnounceList.h
  6704. * test/AnnounceListTest.cc
  6705. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Use BDE instead of Dictionary/List/Data.
  6707. * src/DHTAbstractMessage.cc
  6708. * src/DHTAbstractMessage.h
  6709. * src/DHTAnnouncePeerMessage.cc
  6710. * src/DHTAnnouncePeerMessage.h
  6711. * src/DHTAnnouncePeerReplyMessage.cc
  6712. * src/DHTAnnouncePeerReplyMessage.h
  6713. * src/DHTFindNodeMessage.cc
  6714. * src/DHTFindNodeMessage.h
  6715. * src/DHTFindNodeReplyMessage.cc
  6716. * src/DHTFindNodeReplyMessage.h
  6717. * src/DHTGetPeersMessage.cc
  6718. * src/DHTGetPeersMessage.h
  6719. * src/DHTGetPeersReplyMessage.cc
  6720. * src/DHTGetPeersReplyMessage.h
  6721. * src/DHTMessageFactory.h
  6722. * src/DHTMessageFactoryImpl.cc
  6723. * src/DHTMessageFactoryImpl.h
  6724. * src/DHTMessageReceiver.cc
  6725. * src/DHTMessageTracker.cc
  6726. * src/DHTMessageTracker.h
  6727. * src/DHTPingMessage.cc
  6728. * src/DHTPingMessage.h
  6729. * src/DHTPingReplyMessage.cc
  6730. * src/DHTPingReplyMessage.h
  6731. * src/DHTQueryMessage.cc
  6732. * src/DHTQueryMessage.h
  6733. * src/DHTResponseMessage.cc
  6734. * src/DHTResponseMessage.h
  6735. * test/DHTAnnouncePeerMessageTest.cc
  6736. * test/DHTAnnouncePeerReplyMessageTest.cc
  6737. * test/DHTFindNodeMessageTest.cc
  6738. * test/DHTFindNodeReplyMessageTest.cc
  6739. * test/DHTGetPeersMessageTest.cc
  6740. * test/DHTGetPeersReplyMessageTest.cc
  6741. * test/DHTMessageFactoryImplTest.cc
  6742. * test/DHTMessageTrackerTest.cc
  6743. * test/DHTPingMessageTest.cc
  6744. * test/DHTPingReplyMessageTest.cc
  6745. * test/MockDHTMessageFactory.h
  6746. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Added tests the case where length < 0 is specified.
  6748. * test/BencodeTest.cc
  6749. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6750. Fixed memory leak in decoderawstring()
  6751. * src/bencode.cc
  6752. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6753. Added missing #ifdef guard. Added uc() function for String and
  6754. removeKey() for Dict.
  6755. * src/bencode.cc
  6756. * src/bencode.h
  6757. * test/BencodeTest.cc
  6758. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Use BDE instead of Dictionary/List/Data.
  6760. * src/HandshakeExtensionMessage.cc
  6761. * src/HandshakeExtensionMessage.h
  6762. * test/HandshakeExtensionMessageTest.cc
  6763. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6764. Added --max-overall-upload-limit option. This option limits the
  6765. overall upload speed. Stated in help message that the existing
  6766. --max-upload-limit option limits the upload speed per each
  6767. torrent. Man page is also updated.
  6768. * doc/aria2c.1.txt
  6769. * src/DefaultBtMessageDispatcher.cc
  6770. * src/DefaultBtMessageDispatcher.h
  6771. * src/OptionHandlerFactory.cc
  6772. * src/PeerInteractionCommand.cc
  6773. * src/option_processing.cc
  6774. * src/prefs.cc
  6775. * src/prefs.h
  6776. * src/usage_text.h
  6777. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6778. Use BDE instead of Dictionary/List/Data classes.
  6779. * src/CompactPeerListProcessor.cc
  6780. * src/CompactPeerListProcessor.h
  6781. * src/DefaultBtAnnounce.cc
  6782. * src/DefaultBtContext.cc
  6783. * src/DefaultBtContext.h
  6784. * src/DefaultPeerListProcessor.cc
  6785. * src/DefaultPeerListProcessor.h
  6786. * src/DelegatingPeerListProcessor.cc
  6787. * src/DelegatingPeerListProcessor.h
  6788. * src/PeerListProcessor.h
  6789. * src/UTPexExtensionMessage.cc
  6790. * src/Util.h
  6791. * src/message.h
  6792. * test/DefaultBtContextTest.cc
  6793. * test/DefaultPeerListProcessorTest.cc
  6794. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6795. Added bencode helper functions and BDE class.
  6796. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6797. * src/Makefile.am
  6798. * src/bencode.cc
  6799. * src/bencode.h
  6800. * test/BencodeTest.cc
  6801. * test/Makefile.am
  6802. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Fixed the bug that bad URI is sent to the tracker when the announe
  6804. URI in torrent file includes query.
  6805. * src/DefaultBtAnnounce.cc
  6806. * test/DefaultBtAnnounceTest.cc
  6807. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6808. Added Option::blank().
  6809. Use !Option::blank(name) instead of Option::defined(name) for
  6810. the options that take filename.
  6811. * src/MultiUrlRequestInfo.cc
  6812. * src/Option.cc
  6813. * src/Option.h
  6814. * src/main.cc
  6815. * src/option_processing.cc
  6816. * test/OptionTest.cc
  6817. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Documented the default value of --check-certificate option in man
  6819. page.
  6820. * doc/aria2c.1.txt
  6821. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Enabled --check-certificate by default. Added compile
  6823. time(configure) option --with-ca-bundle to specify CA bundle.
  6824. Warn if --check-certificate=true and --ca-certificate is not
  6825. specified or loading CA certificate is failed.
  6826. * configure.ac
  6827. * src/MultiUrlRequestInfo.cc
  6828. * src/OptionHandlerFactory.cc
  6829. * src/message.h
  6830. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6831. Mentioned https tag in help option.
  6832. * doc/aria2c.1.txt
  6833. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6834. Added `https' tag to help option category. Added https tag to
  6835. --ca-certificate, --certificate, --check-certificate and
  6836. --private-key option.
  6837. * src/OptionHandlerFactory.cc
  6838. * src/help_tags.h
  6839. * src/option_processing.cc
  6840. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6841. Changed the package name from `aria2c' to `aria2' in order to fix
  6842. the packaging issue in Debian and Fedora. The name of the
  6843. executable is not changed.
  6844. * configure.ac
  6845. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Fixed typos
  6847. * src/usage_text.h
  6848. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Fixed typos and updated doc.
  6850. * README
  6851. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Fixed typos
  6853. * doc/aria2c.1.txt
  6854. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Fixed typos
  6856. * src/usage_text.h
  6857. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Print a message when no files to download.
  6859. * src/download_helper.cc
  6860. * src/main.cc
  6861. * src/message.h
  6862. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6863. RFC3986 complied Percent-Encoding(urlencode).
  6864. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6865. ones.
  6866. * src/Request.cc
  6867. * src/Util.cc
  6868. * src/Util.h
  6869. * test/BtHandshakeMessageTest.cc
  6870. * test/DefaultBtAnnounceTest.cc
  6871. * test/DefaultBtContextTest.cc
  6872. * test/RequestTest.cc
  6873. * test/UtilTest.cc
  6874. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Fixed the bug that prevents aria2 from downloading 0-length files
  6876. via HTTP/FTP.
  6877. * src/DefaultBtContext.cc
  6878. * src/DefaultBtContext.h
  6879. * src/DownloadContext.h
  6880. * src/FtpNegotiationCommand.cc
  6881. * src/HttpResponseCommand.cc
  6882. * src/HttpResponseCommand.h
  6883. * src/RequestGroup.cc
  6884. * src/SingleFileDownloadContext.cc
  6885. * src/SingleFileDownloadContext.h
  6886. * test/BtPostDownloadHandlerTest.cc
  6887. * test/MetalinkPostDownloadHandlerTest.cc
  6888. * test/MockBtContext.h
  6889. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6890. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6891. * src/option_processing.cc
  6892. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6893. Applied aria2-1.0.1-mingw.patch.
  6894. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6895. mingw.
  6896. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6897. * src/SocketCore.cc
  6898. * src/a2netcompat.h
  6899. * test/SocketCoreTest.cc
  6900. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6901. * Release 1.0.1
  6902. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Updated Ukrainian and Norwegian Nynorsk translations.
  6904. Thanks to all translators.
  6905. * po/nn.po
  6906. * po/uk.po
  6907. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. Don't show download result when -S option is used.
  6909. * src/main.cc
  6910. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6911. Bump up version number to 1.0.1
  6912. * configure.ac
  6913. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Closed files after the test cases in MultiDiskWriterTest::
  6915. testResetDiskWriterEntries(). This will fix the unit test error
  6916. in mingw32 build.
  6917. * test/MultiDiskWriterTest.cc
  6918. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6919. Use HEAD method to get file size from HTTP server for segmented
  6920. downloading.
  6921. The request to the BitTorrent Tracker always uses GET method because
  6922. the response of the tracker is small and it doesn't need segmented
  6923. download.
  6924. * src/FtpNegotiationCommand.cc
  6925. * src/HttpRequest.cc
  6926. * src/HttpResponseCommand.cc
  6927. * src/HttpSkipResponseCommand.cc
  6928. * src/RequestGroup.cc
  6929. * src/RequestGroup.h
  6930. * src/TrackerWatcherCommand.cc
  6931. * test/HttpRequestTest.cc
  6932. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6933. Fixed the bug that causes floating exception when -T option is used and
  6934. no URIs are given.
  6935. * src/download_helper.cc
  6936. * test/DownloadHelperTest.cc
  6937. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6938. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6939. errors in MinGW:
  6940. Closed file after saving server stats (RequestGroupMan.cc)
  6941. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6942. Ignored case & handled 2-digit years (strptime.c)
  6943. Added missing suseconds_t definition (a2time.h)
  6944. Fixed socket CLOSE() define (SocketCore.cc)
  6945. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6946. Changed utime() test values from x000 to x00000 as MinGW failed on
  6947. values less than timezone offset from Unix epoch
  6948. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6949. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6950. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6951. handle negative dates (CookieParserTest.cc)
  6952. * src/a2time.h
  6953. * src/FtpConnection.cc
  6954. * src/RequestGroupMan.cc
  6955. * src/SocketCore.cc
  6956. * src/strptime.c
  6957. * test/CookieParserTest.cc
  6958. * test/CopyDiskAdaptorTest.cc
  6959. * test/FileTest.cc
  6960. * test/FtpConnectionTest.cc
  6961. * test/MultiDiskAdaptorTest.cc
  6962. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6964. * doc/aria2c.1.txt
  6965. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6966. * Release 1.0.0
  6967. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6968. Added '~' to reserved characters.
  6969. * src/Util.cc
  6970. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6971. Do not urlencode Request::url in setUrl() because we want unmodified
  6972. URL using Request::getUrl()
  6973. * src/Request.cc
  6974. * src/Request.h
  6975. * test/RequestTest.cc
  6976. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6977. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6978. Thanks to all translators.
  6979. * po/bg.po
  6980. * po/fr.po
  6981. * po/ja.po
  6982. * po/ru.po
  6983. * po/uk.po
  6984. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6985. Bump up version number to 1.0.0
  6986. * configure.ac
  6987. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6988. Added nosqlite3 build to build_test.sh.
  6989. Renamed noxml as expat.
  6990. * build_test.sh
  6991. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Updated INPUT FILE section.
  6993. * doc/aria2c.1.txt
  6994. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6995. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6996. on big endian systems because test .aria2 files are made for little
  6997. endian systems.
  6998. * test/DefaultBtProgressInfoFileTest.cc
  6999. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7000. Dropped ares support.
  7001. * README
  7002. * configure.ac
  7003. * m4/libares.m4: Removed.
  7004. * src/AsyncNameResolver.cc
  7005. * src/Makefile.am
  7006. * test/Makefile.am
  7007. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7008. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7009. Removed const qualifier from DiskWriter::size().
  7010. * src/AbstractDiskWriter.cc
  7011. * src/AbstractDiskWriter.h
  7012. * src/ByteArrayDiskWriter.cc
  7013. * src/ByteArrayDiskWriter.h
  7014. * src/DiskWriter.h
  7015. * test/ByteArrayDiskWriterTest.cc
  7016. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Fixed the bug that causes segmentation fault/bus error during executing
  7018. choking algorithm while seeding. This is caused by improper
  7019. implementation of compare function which returns inconsistent results
  7020. depending on the timing of last unchoke.
  7021. * src/BtSeederStateChoke.cc
  7022. * src/BtSeederStateChoke.h
  7023. * src/DefaultPeerStorage.cc
  7024. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7025. Removed TODO
  7026. * TODO
  7027. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Added a section that explains how to pass argument to options that
  7029. takes optional arguments with its short form.
  7030. * doc/aria2c.1.txt
  7031. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7032. Added -u for the short form of --max-upload-limit option.
  7033. * doc/aria2c.1.txt
  7034. * src/option_processing.cc
  7035. * src/usage_text.h
  7036. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7037. Added -V for the short form of --check-integrity option.
  7038. Now the argument of --check-integrity option is optional:
  7039. if it is omitted, it is evaluated as true.
  7040. * doc/aria2c.1.txt
  7041. * src/option_processing.cc
  7042. * src/usage_text.h
  7043. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7044. Made the default value of --ftp-pasv option set to true and it can take
  7045. true/false values.
  7046. * src/OptionHandlerFactory.cc
  7047. * src/option_processing.cc
  7048. * src/usage_text.h
  7049. * doc/aria2c.1.txt
  7050. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7051. Given custom random number generator to std::random_shuffle.
  7052. * src/AnnounceList.cc
  7053. * src/BtLeecherStateChoke.cc
  7054. * src/BtSeederStateChoke.cc
  7055. * src/DefaultBtRequestFactory.cc
  7056. * src/MetalinkEntry.cc
  7057. * src/RarestPieceSelector.cc
  7058. * src/SimpleRandomizer.cc
  7059. * src/SimpleRandomizer.h
  7060. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7061. Now the default value of --enable-direct-io is true.
  7062. * src/OptionHandlerFactory.cc
  7063. * doc/aria2c.1.txt
  7064. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7065. Erase peer before executing onReturningPeer and onErasingPeer
  7066. because choking algorithm called from onReturningPeer doesn't
  7067. like erasing peer in the active peer list.
  7068. * src/DefaultPeerStorage.cc
  7069. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7070. Instead of creating special filename in createDownloadResult() if
  7071. inMemoryDownload() is true, now it is done in getFilePath().
  7072. * src/RequestGroup.cc
  7073. * test/RequestGroupTest.cc
  7074. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7075. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7076. processed in memory. This is the fix for previous comment out.
  7077. * src/MemoryBufferPreDownloadHandler.cc
  7078. * src/RequestGroup.cc
  7079. * src/RequestGroup.h
  7080. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7081. Commented out the code which sets virtual directory path "[MEMORY]"
  7082. propagate directory to store to following RequestGroup.
  7083. * src/MemoryBufferPreDownloadHandler.cc
  7084. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7085. Bump up version number to 1.0.0b
  7086. * configure.ac
  7087. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Added input_uris.txt to EXTRA_DIST
  7089. * test/Makefile.am
  7090. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7091. Removed PeerObject.h from Makefile.am
  7092. * src/Makefile.am
  7093. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7094. Avoid slow seeding
  7095. * src/PeerInteractionCommand.cc
  7096. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7097. Updated usage for -i option.
  7098. * src/usage_text.h (TEXT_INPUT_FILE)
  7099. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7100. Added INPUT FILE section to man page.
  7101. Escaped fake URLs.
  7102. * doc/aria2c.1.txt
  7103. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7104. Fixed wrong note position for -o option.
  7105. * doc/aria2c.1.txt
  7106. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7107. Fixed compile error without SSL/XML library.
  7108. * src/DefaultBtProgressInfoFile.cc
  7109. * src/DefaultBtProgressInfoFile.h
  7110. * src/FileMetalinkParserState.cc
  7111. * src/RequestGroup.h
  7112. * src/SocketCore.cc
  7113. * src/SocketCore.h
  7114. * src/VerificationMetalinkParserState.cc
  7115. * src/download_helper.h
  7116. * src/main.cc
  7117. * test/DefaultBtProgressInfoFileTest.cc
  7118. * test/DownloadHelperTest.cc
  7119. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7120. Rewritten URI handling functions. They are now provided as a testable
  7121. functions.
  7122. * src/Makefile.am
  7123. * src/RequestGroup.cc
  7124. * src/RequestGroup.h
  7125. * src/download_helper.cc
  7126. * src/download_helper.h
  7127. * src/main.cc
  7128. * test/DownloadHelperTest.cc
  7129. * test/Makefile.am
  7130. * test/input_uris.txt
  7131. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7132. Quickly terminate commands when ctrl-c is pressed.
  7133. * src/DownloadEngine.cc
  7134. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7135. Quickly terminate idle commands when download finished.
  7136. * src/AbstractCommand.cc
  7137. * src/DownloadCommand.cc
  7138. * src/DownloadEngine.cc
  7139. * src/DownloadEngine.h
  7140. * src/SleepCommand.cc
  7141. * src/SleepCommand.h
  7142. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7143. Added the ability to specify output filename and directory in input
  7144. file.
  7145. Additional parameters are added in the following line of URIs
  7146. with proceeding white space(s), 1 parameter in 1 line.
  7147. The parameter names are the same with the command-line option name
  7148. without proceeding "--". Not all the options are available here:
  7149. at the moment, 'dir' and 'out' options are avialable.
  7150. Please note that out option has no effect against Metalink or BitTorrent
  7151. downloads.
  7152. Example input file:
  7153. http://host/foo-1.1.tar.bz2
  7154. out=foo.tar.bz2
  7155. dir=/tmp/downloads
  7156. http://host/thundermonkey-2.0.tar.bz2
  7157. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7158. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7159. thundermonkey-2.0.tar.bz2 is saved as
  7160. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7161. * src/BtPostDownloadHandler.cc
  7162. * src/Metalink2RequestGroup.cc
  7163. * src/Metalink2RequestGroup.h
  7164. * src/MetalinkPostDownloadHandler.cc
  7165. * src/UriListParser.cc
  7166. * src/UriListParser.h
  7167. * src/main.cc
  7168. * test/Metalink2RequestGroupTest.cc
  7169. * test/UriListParserTest.cc
  7170. * test/filelist1.txt
  7171. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7172. Fixed error when SSL library is not found.
  7173. * configure.ac
  7174. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7175. Cross referenced among -s, -C and -j options.
  7176. Updated usage of -C and -s options.
  7177. * src/usage_text.h
  7178. * doc/aria2c.1.txt
  7179. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7180. Fixed bad cast in 32bit platforms.
  7181. * test/DefaultPieceStorageTest.cc
  7182. (DefaultPieceStorageTest::testGetCompletedLength)
  7183. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7184. Fixed unit test fails on 32bit platforms.
  7185. * test/CookieParserTest.cc
  7186. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7187. Show an average download speed in Download results.
  7188. * src/BtFileAllocationEntry.cc
  7189. * src/DefaultPieceStorage.cc
  7190. * src/DownloadContext.cc
  7191. * src/DownloadContext.h
  7192. * src/DownloadResult.h
  7193. * src/RequestGroup.cc
  7194. * src/RequestGroupMan.cc
  7195. * src/StreamFileAllocationEntry.cc
  7196. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7197. Fixed the bug that metalink file is not processed if Content-Type
  7198. field has a paramter.
  7199. * src/HttpResponse.cc
  7200. * src/HttpResponse.h
  7201. * test/HttpResponseTest.cc
  7202. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7203. Removed unused code.
  7204. * src/DefaultBtAnnounce.cc
  7205. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7206. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7207. the value larger than DefaultPieceStorage::getTotalLength() when
  7208. in flight pieces are involved.
  7209. * src/DefaultPieceStorage.cc
  7210. * test/DefaultPieceStorageTest.cc
  7211. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7212. Bump up version number to 1.0.0a.
  7213. * configure.ac
  7214. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7215. Updated configure.ac
  7216. * configure.ac
  7217. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7218. Added usege for proxy.
  7219. * doc/aria2c.1.txt
  7220. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7221. Added usage for --ca-certificate, --certificate, --private-key and
  7222. --check-certificate options.
  7223. * doc/aria2c.1.txt
  7224. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7225. Updated man page
  7226. * doc/aria2c.1.txt
  7227. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7228. Added --no-proxy option. It receives comman separated hostname or
  7229. domains to which proxy should not be used.
  7230. aria2 honors the environment variable no_proxy to override no-proxy
  7231. value in configuration file. The user can override the environment
  7232. variable no_proxy with --no-proxy command-line option.
  7233. * src/AbstractCommand.cc
  7234. * src/OptionHandlerFactory.cc
  7235. * src/option_processing.cc
  7236. * src/prefs.cc
  7237. * src/prefs.h
  7238. * src/usage_text.h
  7239. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7240. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7241. The CA certificates are specified in --ca-certificate option.
  7242. By default, the verification is disabled. Use --check-certificate
  7243. option to enable it.
  7244. * src/HttpRequestCommand.cc
  7245. * src/LibgnutlsTLSContext.cc
  7246. * src/LibgnutlsTLSContext.h
  7247. * src/LibsslTLSContext.cc
  7248. * src/LibsslTLSContext.h
  7249. * src/MultiUrlRequestInfo.cc
  7250. * src/OptionHandlerFactory.cc
  7251. * src/SocketCore.cc
  7252. * src/SocketCore.h
  7253. * src/a2functional.h
  7254. * src/message.h
  7255. * src/option_processing.cc
  7256. * src/prefs.cc
  7257. * src/prefs.h
  7258. * src/usage_text.h
  7259. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7260. Added client certificate authentication for SSL/TLS.
  7261. Currently a private key must be decrypted for use with aria2.
  7262. If a user accidentally gives encrypted file to aria2 then following
  7263. thing happens:
  7264. If encrypted private key is given to aria2, it behaves differently
  7265. depending on the ssl library it uses. If aria2 built with openssl then
  7266. openssl prompts the user for password. If aria2 build with gnutls then
  7267. aria2 exists with error at start up.
  7268. * src/DownloadEngineFactory.cc
  7269. * src/MultiUrlRequestInfo.cc
  7270. * src/OptionHandlerFactory.cc
  7271. * src/option_processing.cc
  7272. * src/prefs.cc
  7273. * src/prefs.h
  7274. * src/usage_text.h
  7275. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7276. Introduced TLSContext that holds TLS related data that can be shared
  7277. with multiple SSL connections.
  7278. * src/DownloadEngineFactory.cc
  7279. * src/LibgnutlsTLSContext.cc
  7280. * src/LibgnutlsTLSContext.h
  7281. * src/LibsslTLSContext.cc
  7282. * src/LibsslTLSContext.h
  7283. * src/Makefile.am
  7284. * src/SocketCore.cc
  7285. * src/SocketCore.h
  7286. * src/TLSContext.h
  7287. * src/message.h
  7288. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7289. Fixed the bug that the DiskWriter of the first FileEntry whose
  7290. `needsFileAllocation' property is false is not created
  7291. even if it shares a piece with next FileEntry which `requested' property
  7292. is true.
  7293. Fixed the bug that zero-length file is not created if pre file
  7294. allocation is not done.
  7295. * src/MultiDiskAdaptor.cc
  7296. * src/MultiDiskAdaptor.h
  7297. * test/MultiDiskAdaptorTest.cc
  7298. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Added the ability to pool proxy connection.
  7300. The conneciton in FTP with proxy-method=GET is not pooled.
  7301. Proxy-Connection header will not be sent when sending CONNECT method.
  7302. * src/DownloadEngine.cc
  7303. * src/DownloadEngine.h
  7304. * src/FtpFinishDownloadCommand.cc
  7305. * src/FtpInitiateConnectionCommand.cc
  7306. * src/FtpNegotiationCommand.cc
  7307. * src/HttpDownloadCommand.cc
  7308. * src/HttpInitiateConnectionCommand.cc
  7309. * src/HttpRequest.cc
  7310. * src/HttpRequest.h
  7311. * src/HttpResponse.cc
  7312. * src/HttpSkipResponseCommand.cc
  7313. * test/HttpRequestTest.cc
  7314. * test/HttpResponseTest.cc
  7315. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Handle date before epoch.
  7317. To create *bad* Time object, call Time::null().
  7318. * src/CookieParser.cc
  7319. * src/FtpConnection.cc
  7320. * src/FtpConnection.h
  7321. * src/FtpNegotiationCommand.cc
  7322. * src/RequestGroup.cc
  7323. * src/TimeA2.cc
  7324. * src/TimeA2.h
  7325. * test/CookieParserTest.cc
  7326. * test/FtpConnectionTest.cc
  7327. * test/TimeTest.cc
  7328. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Added support for following envrionment variables: http_proxy,
  7330. https_proxy, ftp_proxy and all_proxy.
  7331. Each variable is equivalent to the aria2 option whose name is the
  7332. variable name with '_' replaced with '-'.
  7333. They overrides options specified in aria2.conf file.
  7334. The envrionment variables can be overrode using command-line option.
  7335. * src/option_processing.cc
  7336. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Renamed --http-proxy-method as --proxy-method.
  7338. * src/AbstractCommand.cc
  7339. * src/FtpInitiateConnectionCommand.cc
  7340. * src/HttpInitiateConnectionCommand.cc
  7341. * src/OptionHandlerFactory.cc
  7342. * src/option_processing.cc
  7343. * src/prefs.cc
  7344. * src/prefs.h
  7345. * src/usage_text.h
  7346. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7348. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7349. Above 3 options and --http-proxy option can handle proxy in URL format
  7350. like: http://user:passwd@host:port.
  7351. If a proxy requires user/password, they must be specified in a URL.
  7352. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7353. instead.
  7354. * src/AbstractCommand.cc
  7355. * src/AbstractCommand.h
  7356. * src/AbstractProxyRequestCommand.cc
  7357. * src/AbstractProxyRequestCommand.h
  7358. * src/AuthConfigFactory.cc
  7359. * src/AuthConfigFactory.h
  7360. * src/FtpFinishDownloadCommand.cc
  7361. * src/FtpInitiateConnectionCommand.cc
  7362. * src/FtpInitiateConnectionCommand.h
  7363. * src/FtpNegotiationCommand.cc
  7364. * src/FtpTunnelRequestCommand.cc
  7365. * src/FtpTunnelRequestCommand.h
  7366. * src/HttpDownloadCommand.cc
  7367. * src/HttpInitiateConnectionCommand.cc
  7368. * src/HttpInitiateConnectionCommand.h
  7369. * src/HttpProxyRequestCommand.cc
  7370. * src/HttpProxyRequestCommand.h
  7371. * src/HttpRequest.cc
  7372. * src/HttpRequest.h
  7373. * src/HttpRequestCommand.cc
  7374. * src/HttpRequestCommand.h
  7375. * src/HttpSkipResponseCommand.cc
  7376. * src/InitiateConnectionCommand.cc
  7377. * src/InitiateConnectionCommand.h
  7378. * src/OptionHandlerFactory.cc
  7379. * src/OptionHandlerImpl.h
  7380. * src/Request.cc
  7381. * src/option_processing.cc
  7382. * src/prefs.cc
  7383. * src/prefs.h
  7384. * src/usage_text.h
  7385. * test/AuthConfigFactoryTest.cc
  7386. * test/HttpRequestTest.cc
  7387. * test/OptionHandlerTest.cc
  7388. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Execute choking algorithm when unchoked and interested peer is
  7390. disconected.
  7391. * src/DefaultPeerStorage.cc
  7392. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Added testcase for BtNotInterestedMessage from unchoked peer.
  7394. * test/BtNotInterestedMessageTest.cc
  7395. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Execute choking algorithm when BtInterestedMessage arrives from
  7397. unchoked peer.
  7398. * src/BtInterestedMessage.cc
  7399. * src/BtInterestedMessage.h
  7400. * src/DefaultBtMessageFactory.cc
  7401. * test/BtInterestedMessageTest.cc
  7402. * test/MockPeerStorage.h
  7403. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. AuthConfigFactory is now part of DownloadEngine.
  7405. * src/AbstractProxyRequestCommand.cc
  7406. * src/AuthConfigFactory.h
  7407. * src/DownloadEngine.cc
  7408. * src/DownloadEngine.h
  7409. * src/FtpConnection.cc
  7410. * src/FtpConnection.h
  7411. * src/FtpNegotiationCommand.cc
  7412. * src/HttpConnection.cc
  7413. * src/HttpRequest.cc
  7414. * src/HttpRequest.h
  7415. * src/HttpRequestCommand.cc
  7416. * src/HttpResponse.cc
  7417. * src/HttpResponseCommand.cc
  7418. * src/HttpSkipResponseCommand.cc
  7419. * src/MultiUrlRequestInfo.cc
  7420. * src/main.cc
  7421. * test/FtpConnectionTest.cc
  7422. * test/HttpRequestTest.cc
  7423. * test/HttpResponseTest.cc
  7424. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Corrected catched exception type.
  7426. * src/ServerStatMan.cc
  7427. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. DNSCache is now part of DownloadEngine.
  7429. * src/DNSCache.h
  7430. * src/DownloadEngine.cc
  7431. * src/DownloadEngine.h
  7432. * src/InitiateConnectionCommand.cc
  7433. * src/MultiUrlRequestInfo.cc
  7434. * test/Makefile.am
  7435. * test/Makefile.in
  7436. * test/SimpleDNSCacheTest.cc
  7437. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7439. DownloadEngine.
  7440. * src/ActivePeerConnectionCommand.cc
  7441. * src/BtSetup.cc
  7442. * src/CUIDCounter.h
  7443. * src/DHTSetup.cc
  7444. * src/DownloadCommand.cc
  7445. * src/DownloadEngine.cc
  7446. * src/DownloadEngine.h
  7447. * src/DownloadEngineFactory.cc
  7448. * src/FileAllocationDispatcherCommand.cc
  7449. * src/InitiatorMSEHandshakeCommand.cc
  7450. * src/PeerInitiateConnectionCommand.cc
  7451. * src/PeerInteractionCommand.cc
  7452. * src/PeerListenCommand.cc
  7453. * src/RequestGroup.cc
  7454. * src/StreamFileAllocationEntry.cc
  7455. * src/TrackerWatcherCommand.cc
  7456. * src/main.cc
  7457. * test/RequestGroupManTest.cc
  7458. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Implemented commented code in BtSeederStateChoke
  7460. * src/BtSeederStateChoke.cc
  7461. * src/Peer.cc
  7462. * src/Peer.h
  7463. * src/PeerInteractionCommand.cc
  7464. * src/PeerSessionResource.cc
  7465. * src/PeerSessionResource.h
  7466. * test/MockBtMessageDispatcher.h
  7467. * test/PeerSessionResourceTest.cc
  7468. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7470. its object.
  7471. * src/AbstractBtMessage.cc
  7472. * src/ActivePeerConnectionCommand.cc
  7473. * src/ActivePeerConnectionCommand.h
  7474. * src/BtContextAwareCommand.cc
  7475. * src/BtContextAwareCommand.h
  7476. * src/BtExtendedMessage.cc
  7477. * src/BtExtendedMessage.h
  7478. * src/BtInterestedMessage.cc
  7479. * src/BtInterestedMessage.h
  7480. * src/BtNotInterestedMessage.cc
  7481. * src/BtNotInterestedMessage.h
  7482. * src/BtRegistry.cc
  7483. * src/BtRegistry.h
  7484. * src/BtSeederStateChoke.cc
  7485. * src/BtSetup.cc
  7486. * src/DHTGetPeersCommand.cc
  7487. * src/DHTGetPeersCommand.h
  7488. * src/DHTPeerAnnounceEntry.cc
  7489. * src/DHTPeerAnnounceEntry.h
  7490. * src/DHTPeerAnnounceStorage.cc
  7491. * src/DHTPeerAnnounceStorage.h
  7492. * src/DHTPeerLookupTask.cc
  7493. * src/DHTPeerLookupTask.h
  7494. * src/DHTSetup.cc
  7495. * src/DHTSetup.h
  7496. * src/DHTTaskFactory.h
  7497. * src/DHTTaskFactoryImpl.cc
  7498. * src/DHTTaskFactoryImpl.h
  7499. * src/DefaultBtAnnounce.cc
  7500. * src/DefaultBtInteractive.cc
  7501. * src/DefaultBtInteractive.h
  7502. * src/DefaultBtMessageDispatcher.cc
  7503. * src/DefaultBtMessageDispatcher.h
  7504. * src/DefaultBtMessageFactory.cc
  7505. * src/DefaultBtMessageFactory.h
  7506. * src/DefaultBtMessageReceiver.cc
  7507. * src/DefaultBtProgressInfoFile.cc
  7508. * src/DefaultBtProgressInfoFile.h
  7509. * src/DefaultBtRequestFactory.cc
  7510. * src/DefaultBtRequestFactory.h
  7511. * src/DefaultExtensionMessageFactory.cc
  7512. * src/DefaultExtensionMessageFactory.h
  7513. * src/DefaultPeerStorage.cc
  7514. * src/DefaultPeerStorage.h
  7515. * src/DownloadEngine.cc
  7516. * src/DownloadEngine.h
  7517. * src/InitiatorMSEHandshakeCommand.cc
  7518. * src/InitiatorMSEHandshakeCommand.h
  7519. * src/MSEHandshake.cc
  7520. * src/MSEHandshake.h
  7521. * src/Makefile.am
  7522. * src/Makefile.in
  7523. * src/PeerChokeCommand.cc
  7524. * src/PeerChokeCommand.h
  7525. * src/PeerInitiateConnectionCommand.cc
  7526. * src/PeerInitiateConnectionCommand.h
  7527. * src/PeerInteractionCommand.cc
  7528. * src/PeerInteractionCommand.h
  7529. * src/PeerObject.h
  7530. * src/PeerReceiveHandshakeCommand.cc
  7531. * src/PeerReceiveHandshakeCommand.h
  7532. * src/ReceiverMSEHandshakeCommand.cc
  7533. * src/RequestGroup.cc
  7534. * src/RequestGroup.h
  7535. * src/RequestGroupMan.cc
  7536. * src/RequestGroupMan.h
  7537. * src/SeedCheckCommand.cc
  7538. * src/SeedCheckCommand.h
  7539. * src/ShareRatioSeedCriteria.h
  7540. * src/SimpleBtMessage.cc
  7541. * src/TrackerWatcherCommand.cc
  7542. * src/TrackerWatcherCommand.h
  7543. * src/UTPexExtensionMessage.cc
  7544. * src/UTPexExtensionMessage.h
  7545. * test/BtCancelMessageTest.cc
  7546. * test/BtChokeMessageTest.cc
  7547. * test/BtExtendedMessageTest.cc
  7548. * test/BtInterestedMessageTest.cc
  7549. * test/BtNotInterestedMessageTest.cc
  7550. * test/BtPieceMessageTest.cc
  7551. * test/BtPortMessageTest.cc
  7552. * test/BtRegistryTest.cc
  7553. * test/BtRejectMessageTest.cc
  7554. * test/BtRequestMessageTest.cc
  7555. * test/DHTPeerAnnounceEntryTest.cc
  7556. * test/DHTPeerAnnounceStorageTest.cc
  7557. * test/DefaultBtMessageDispatcherTest.cc
  7558. * test/DefaultBtMessageFactoryTest.cc
  7559. * test/DefaultBtProgressInfoFileTest.cc
  7560. * test/DefaultBtRequestFactoryTest.cc
  7561. * test/DefaultExtensionMessageFactoryTest.cc
  7562. * test/MSEHandshakeTest.cc
  7563. * test/MockDHTTaskFactory.h
  7564. * test/ShareRatioSeedCriteriaTest.cc
  7565. * test/UTPexExtensionMessageTest.cc
  7566. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. Fixed compiler warning.
  7568. * test/UtilTest.cc
  7569. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Treat Cookie object as session cookie if expiry = 0 is given.
  7571. With this change, you can specify session scoped cookies in an external
  7572. file setting expiry value to 0.
  7573. * src/Cookie.cc
  7574. * src/Cookie.h
  7575. * test/CookieParserTest.cc
  7576. * test/CookieStorageTest.cc
  7577. * test/CookieTest.cc
  7578. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Changed signature of DHTMessageFactory::createResponseMessage().
  7580. Removed unused validateIDMatch.
  7581. * src/DHTMessageFactory.h
  7582. * src/DHTMessageFactoryImpl.cc
  7583. * src/DHTMessageFactoryImpl.h
  7584. * src/DHTMessageTracker.cc
  7585. * test/DHTMessageFactoryImplTest.cc
  7586. * test/MockDHTMessageFactory.h
  7587. Dropped DHT message coming from same ID of localhost.
  7588. * src/DHTMessageReceiver.cc
  7589. Rejected adding node whose ID is the same as localhost's.
  7590. * src/DHTRoutingTable.cc
  7591. * test/BtPortMessageTest.cc
  7592. * test/DHTRoutingTableTest.cc
  7593. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Pool connection when redirection occurs with Content-Length = 0.
  7595. * src/HttpSkipResponseCommand.cc
  7596. * src/HttpSkipResponseCommand.h
  7597. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Fixed the bug that causes time out when redirection occurs with
  7599. content-length 0.
  7600. * src/HttpResponseCommand.cc
  7601. * src/HttpSkipResponseCommand.cc
  7602. * src/HttpSkipResponseCommand.h
  7603. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Now each status legends is shown only when it appears in Download
  7605. Result. If Download Result has no item, then status legend will not
  7606. be printed.
  7607. * src/RequestGroupMan.cc
  7608. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Removed duplicate creation of OptionHandlers.
  7610. * src/option_processing.cc
  7611. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Fixed the bug that causes segmentation fault when accessing files which
  7613. don't exist or are not included in --select-file option while
  7614. validating chunk checksum.
  7615. * src/MultiDiskAdaptor.cc
  7616. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed compiler warning.
  7618. * test/UtilTest.cc
  7619. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7621. * src/IteratableChecksumValidator.cc
  7622. * src/IteratableChunkChecksumValidator.cc
  7623. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. * Release 0.16.2
  7625. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Added Serbian translation. Updated Ukrainian translation.
  7627. Thanks to all translators.
  7628. * po/sr.po
  7629. * po/uk.po
  7630. * po/LINGUAS
  7631. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Bump up version number to 0.16.2
  7633. * configure.ac
  7634. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Added length equality test to operator== to drop a piece message
  7636. whose length does not match to the requested one.
  7637. * src/RequestSlot.cc
  7638. * test/DefaultBtMessageDispatcherTest.cc
  7639. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7641. recieved.
  7642. In this fix, if a request larger than 16KiB length is received, aria2
  7643. disconnects the peer.
  7644. * src/BtConstants.h
  7645. * src/PeerMessageUtil.cc
  7646. * src/PeerMessageUtil.h
  7647. * test/BtRequestMessageTest.cc
  7648. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. * Release 0.16.1
  7650. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7652. * doc/aria2c.1.txt
  7653. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7655. Updated French, Simplified Chinese and Japanese translations.
  7656. Thanks to all translators.
  7657. en@quot and en@boldquot are also added.
  7658. * po/LINGUAS
  7659. * po/fr.po
  7660. * po/ja.po
  7661. * po/uk.po
  7662. * po/vi.po
  7663. * po/zh_CN.po
  7664. * po/zh_TW.po
  7665. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Bump up version number to 0.16.1.
  7667. * configure.ac
  7668. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Updated README.
  7670. * README
  7671. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7673. not to replace '--' with em dash character.
  7674. * doc/aria2c.1.txt
  7675. * doc/makeman
  7676. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7678. every SEC seconds.
  7679. * src/DownloadEngineFactory.cc
  7680. * src/OptionHandlerFactory.cc
  7681. * src/option_processing.cc
  7682. * src/usage_text.h
  7683. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Fixed compile warning on linux-amd64
  7685. * src/FtpConnection.cc
  7686. * src/IteratableChunkChecksumValidator.cc
  7687. * src/MultiDiskAdaptor.cc
  7688. Fixed the bug that unit test fails on linux-amd64
  7689. * test/UtilTest.cc
  7690. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Added --dht-file-path option to change the path to dht.dat, which is a
  7692. serialized DHT routing table.
  7693. * src/OptionHandlerFactory.cc
  7694. * src/option_processing.cc
  7695. * src/usage_text.h
  7696. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Fixed possible underflow.
  7698. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7699. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Fixed the bug that last character in URI is not encoded.
  7701. * src/Request.cc
  7702. * test/RequestTest.cc
  7703. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Fixed the bug that referer header field contains fragment.
  7705. Now Request class removes fragment part of URI and encodes it
  7706. in Request::setUri() and setReferer().
  7707. * src/Request.h
  7708. * src/Request.cc
  7709. * test/RequestTest.cc
  7710. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Added missing m4 macros.
  7712. * m4/cppunit.m4
  7713. * m4/libgcrypt.m4
  7714. * m4/libgnutls-extra.m4
  7715. * m4/libgnutls.m4
  7716. * m4/libxml2.m4
  7717. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Fixed compile error with gcc-4.4(snapshot)
  7719. * src/File.cc
  7720. * src/FtpConnection.cc
  7721. * src/OptionHandlerImpl.h
  7722. * src/Util.cc
  7723. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Removed assert()
  7725. * src/SocketBuffer.cc (SocketBuffer::send)
  7726. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Changed the type of _numNewConnection to unsigned int.
  7728. * src/ActivePeerConnectionCommand.cc
  7729. * src/ActivePeerConnectionCommand.h
  7730. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. * Release 0.16.0
  7732. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Updated doc
  7734. * README
  7735. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7737. translations. Thanks to all translators.
  7738. * po/bg.po
  7739. * po/de.po
  7740. * po/fr.po
  7741. * po/ja.po
  7742. * po/zh_CN.po
  7743. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Bump up version number to 0.16.0.
  7745. * configure.ac
  7746. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7748. int32_t.
  7749. Changed the type of count to int32_t.
  7750. * src/Metalink2RequestGroup.cc
  7751. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Added test for Time::elapsed(time_t).
  7753. * test/TimeTest.cc
  7754. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7756. Util::difftv() should be used instead.
  7757. * src/TimeA2.cc
  7758. * src/TimeA2.h
  7759. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Made socket for dht connections non-blocking
  7761. * src/DHTAbstractMessage.cc
  7762. * src/DHTAbstractMessage.h
  7763. * src/DHTConnection.h
  7764. * src/DHTConnectionImpl.cc
  7765. * src/DHTConnectionImpl.h
  7766. * src/DHTMessage.h
  7767. * src/DHTMessageDispatcherImpl.cc
  7768. * src/DHTMessageDispatcherImpl.h
  7769. * src/DHTUnknownMessage.cc
  7770. * src/DHTUnknownMessage.h
  7771. * src/SocketCore.cc
  7772. * src/SocketCore.h
  7773. * test/MockDHTMessage.h
  7774. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Changed the type of offset to int.
  7776. * src/ParameterizedStringParser.cc
  7777. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Made getAsInt() return int32_t
  7779. * src/Option.h
  7780. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7782. build.
  7783. * configure.ac
  7784. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Use sqlite3_open if sqlite3_open_v2 is not available.
  7786. * src/Sqlite3MozCookieParser.cc
  7787. * src/Sqlite3MozCookieParser.h
  7788. * m4/sqlite3.m4
  7789. * test/Sqlite3MozCookieParserTest.cc
  7790. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7792. * src/BtPieceMessage.cc
  7793. * src/DHTPeerAnnounceStorage.cc
  7794. * src/DefaultPieceStorage.cc
  7795. * src/DownloadCommand.cc
  7796. * src/DownloadEngine.cc
  7797. * src/FtpConnection.cc
  7798. * src/PeerConnection.cc
  7799. * src/PeerMessageUtil.cc
  7800. * src/RequestGroup.cc
  7801. * src/RequestGroupMan.cc
  7802. * src/SimpleBtMessage.cc
  7803. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7805. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7806. * src/AbstractDiskWriter.cc
  7807. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Don't set Request::supportsPersistentConnection() in HttpConnection
  7809. since this code is also used in AbstractProxyResponseCommand.
  7810. Moved those code to HttpResponse.
  7811. * src/HttpResponse.cc
  7812. * src/HttpResponse.h
  7813. * src/HttpConnection.cc
  7814. * src/HttpConnection.h
  7815. * src/HttpResponseCommand.cc
  7816. * test/HttpResponseTest.cc
  7817. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7818. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7819. The configuration is minimum: no torrent, no metalink, so there may be
  7820. other compile error on their code.
  7821. * src/a2netcompat.h
  7822. * src/File.cc
  7823. * src/File.h
  7824. * src/SocketCore.cc
  7825. * src/SocketCore.h
  7826. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Made a socket of incoming peer non-blocking.
  7828. * src/PeerListenCommand.cc
  7829. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7831. whole message data is not sent in one send() call.
  7832. * src/BtPieceMessage.cc
  7833. * src/BtPieceMessage.h
  7834. * src/PeerConnection.cc
  7835. * src/PeerConnection.h
  7836. * src/SimpleBtMessage.cc
  7837. * src/SimpleBtMessage.h
  7838. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Fixed the bug that aria2 downloads faster than max-download-limit when
  7840. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7841. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7842. , instead of sum of them.
  7843. * src/ActivePeerConnectionCommand.cc
  7844. * src/DefaultBtInteractive.cc
  7845. * src/DownloadCommand.cc
  7846. * src/PeerInteractionCommand.cc
  7847. * src/PeerReceiveHandshakeCommand.cc
  7848. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. Fixed the bug that HTTPS download fails.
  7850. * src/AbstractCommand.cc
  7851. * src/AbstractCommand.h
  7852. * src/DownloadCommand.cc
  7853. * src/FtpConnection.cc
  7854. * src/HttpConnection.cc
  7855. * src/HttpRequestCommand.cc
  7856. * src/HttpResponseCommand.cc
  7857. * src/HttpSkipResponseCommand.cc
  7858. * src/MSEHandshake.cc
  7859. * src/PeerConnection.cc
  7860. * src/SocketCore.cc
  7861. * src/SocketCore.h
  7862. Fixed the bug that aria2 doesn't download whole content body and cannot
  7863. reuse connection if chunked transfer encoding and gzip content encoding
  7864. are set.
  7865. * src/DownloadCommand.cc
  7866. * src/HttpSkipResponseCommand.cc
  7867. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Updated man page.
  7869. * doc/aria2c.1.txt
  7870. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. When error occurred while aria2 was parsing an .aria2.conf file, print
  7872. the usage of the option that caused error.
  7873. * src/option_processing.cc
  7874. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Fixed compile error on OptionHandlerException
  7876. * src/Makefile.am
  7877. * src/OptionHandlerException.cc
  7878. * src/OptionHandlerException.h
  7879. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Moved message of the error to OptionHandlerException.h
  7881. * src/NameMatchOptionHandler.h
  7882. * src/OptionHandlerException.h
  7883. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7884. When error occurs while aria2 is parsing an command-line option, print
  7885. the usage of the option.
  7886. * src/Makefile.am
  7887. * src/NameMatchOptionHandler.h
  7888. * src/OptionHandlerException.h
  7889. * src/option_processing.cc
  7890. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Reverted previous change.
  7892. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7893. username is not in URI.
  7894. * src/HttpRequest.cc
  7895. * src/Request.cc
  7896. * test/HttpRequestTest.cc
  7897. * test/RequestTest.cc
  7898. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Now colon is required for username and password in FTP URL, like:
  7900. ftp://username:password@host.
  7901. If colon is not there, aria2 don't parse it as a username. For example,
  7902. aria2 don't retrieve username from ftp://username@host.
  7903. This fix was made in order to login FTP server via non-transparent ftp
  7904. proxy.
  7905. * src/Request.cc
  7906. * test/RequestTest.cc
  7907. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Use netrc for HTTP.
  7909. Now FTP user/password is sent in Authorization header when
  7910. --ftp-via-http-proxy=get is given.
  7911. * src/AuthConfigFactory.cc
  7912. * src/HttpRequest.cc
  7913. * src/HttpRequest.h
  7914. * src/NetrcAuthResolver.cc
  7915. * src/NetrcAuthResolver.h
  7916. * src/OptionHandlerFactory.cc
  7917. * src/option_processing.cc
  7918. * src/prefs.cc
  7919. * src/prefs.h
  7920. * test/AuthConfigFactoryTest.cc
  7921. * test/HttpRequestTest.cc
  7922. * test/NetrcAuthResolverTest.cc
  7923. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Issue PWD command first and get working directory and use it as a prefix
  7925. for CWD command.
  7926. * src/DownloadEngine.cc
  7927. * src/DownloadEngine.h
  7928. * src/FtpConnection.cc
  7929. * src/FtpConnection.h
  7930. * src/FtpFinishDownloadCommand.cc
  7931. * src/FtpInitiateConnectionCommand.cc
  7932. * src/FtpNegotiationCommand.cc
  7933. * src/FtpNegotiationCommand.h
  7934. * test/FtpConnectionTest.cc
  7935. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Removed default user/pass for FTP user/pass, since it should not have
  7937. precedence over netrc configuration by default.
  7938. * src/OptionHandlerFactory.cc
  7939. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Added debug log for socket event.
  7941. * src/AbstractCommand.cc
  7942. * src/PeerAbstractCommand.cc
  7943. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Log microseconds.
  7945. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7946. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Replaced HelpItem.cc with OptionHandler.cc.
  7948. * po/POTFILES.in
  7949. Updated po files with 'make update-po'
  7950. * po/aria2c.pot
  7951. * po/*.po
  7952. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Removed possible values from the text.
  7954. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7955. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Removed unused preferences:
  7957. PREF_NO_PREALLOCATION
  7958. PREF_STDOUT_LOG
  7959. PREF_TRACKER_MAX_TRIES
  7960. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7961. PREF_MIN_SEGMENT_SIZE
  7962. * src/option_processing.cc
  7963. * src/prefs.cc
  7964. * src/prefs.h
  7965. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Integrated HelpItem into OptionParser to ease the workload for adding
  7967. new options. Removed default value from usage text.
  7968. * src/HelpItem.cc: Removed.
  7969. * src/HelpItem.h: Removed.
  7970. * src/HelpItemFactory.cc: Removed.
  7971. * src/HelpItemFactory.h: Removed.
  7972. * src/Makefile.am
  7973. * src/Makefile.in
  7974. * src/NameMatchOptionHandler.h
  7975. * src/OptionHandler.cc
  7976. * src/OptionHandler.h
  7977. * src/OptionHandlerFactory.cc
  7978. * src/OptionHandlerImpl.h
  7979. * src/OptionParser.cc
  7980. * src/OptionParser.h
  7981. * src/TagContainer.cc: Removed.
  7982. * src/TagContainer.h: Removed.
  7983. * src/TaggedItem.cc: Removed.
  7984. * src/TaggedItem.h: Removed.
  7985. * src/main.cc
  7986. * src/option_processing.cc
  7987. * src/usage_text.h
  7988. * src/version_usage.cc
  7989. * test/HelpItemTest.cc: Removed.
  7990. * test/Makefile.am
  7991. * test/Makefile.in
  7992. * test/OptionHandlerTest.cc
  7993. * test/OptionParserTest.cc
  7994. * test/TagContainerTest.cc: Removed.
  7995. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Moved `TransferStat stat = ...' to inside the `if' clause.
  7997. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7998. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Fixed the bug that a block in a piece is requested when same block is
  8000. already requested to the same peer in end game mode.
  8001. * src/BtRequestFactory.h
  8002. * src/DefaultBtInteractive.cc
  8003. * src/DefaultBtRequestFactory.cc
  8004. * src/DefaultBtRequestFactory.h
  8005. * src/DefaultPieceStorage.cc
  8006. * src/DefaultPieceStorage.h
  8007. * src/PieceStorage.h
  8008. * src/UnknownLengthPieceStorage.cc
  8009. * src/UnknownLengthPieceStorage.h
  8010. * test/DefaultBtRequestFactoryTest.cc
  8011. * test/DefaultPieceStorageTest.cc
  8012. * test/MockBtRequestFactory.h
  8013. * test/MockPieceStorage.h
  8014. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Removed _uploadLength and _downloadLength from PeerSessionResource
  8016. and use PeerStat::_sessionUploadLength and
  8017. PeerStat::_sessionDownloadLength.
  8018. * src/PeerSessionResource.cc
  8019. * src/PeerSessionResource.h
  8020. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Fixed the bug that prefixLength of split bucket which doesn't include
  8022. local node ID is incremented.
  8023. * src/DHTBucket.cc
  8024. * src/DHTBucket.h
  8025. * test/DHTBucketTest.cc
  8026. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Added cookies.sqlite to EXTRA_DIST
  8028. * test/Makefile.am
  8029. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Added Turkish translation. Updated French, German, Russian and
  8031. Simplified Chinese translations. Thanks to all translators.
  8032. * po/LINGUAS
  8033. * po/de.po
  8034. * po/fr.po
  8035. * po/ru.po
  8036. * po/tr.po
  8037. * po/zh_CN.po
  8038. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Added deliminating text to the beginning of the log so that one can find
  8040. where the log starts easily.
  8041. * src/main.cc
  8042. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8044. to fix compile error when async DNS is not enabled by configuration.
  8045. * src/AbstractCommand.cc
  8046. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. If establishing conneciton to a server is failed, then mark error on
  8048. its ServerStat.
  8049. Added the cause of error to log when error event occurred.
  8050. Moved message string to message.h for translation.
  8051. * src/AbstractCommand.cc
  8052. * src/AbstractCommand.h
  8053. * src/FtpNegotiationCommand.cc
  8054. * src/HttpRequestCommand.cc
  8055. * src/PeerAbstractCommand.cc
  8056. * src/message.h
  8057. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. Added the function to get error message from socket.
  8059. * src/SocketCore.cc
  8060. * src/SocketCore.h
  8061. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8062. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8063. * src/RequestGroupMan.cc
  8064. * src/RequestGroupMan.h
  8065. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. If error event is received in epoll, then abort download immediately.
  8067. * src/AbstractCommand.cc
  8068. * src/Command.cc
  8069. * src/Command.h
  8070. * src/DownloadEngine.cc
  8071. * src/PeerAbstractCommand.cc
  8072. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Added usage message for --uri-selector, --server-stat-of,
  8074. --server-stat-in, --server-stat-timeout options.
  8075. * src/HelpItemFactory.cc
  8076. * src/usage_text.h
  8077. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Added upper limit of FTP response buffer. The current implementation
  8079. uses 4096bytes as a limit.
  8080. * src/FtpConnection.cc
  8081. * src/FtpConnection.h
  8082. * test/FtpConnectionTest.cc
  8083. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Use non-blocking socket for TCP communication to avoid possible
  8085. blocking due to buffer full.
  8086. * src/AbstractProxyRequestCommand.cc
  8087. * src/FtpConnection.cc
  8088. * src/FtpConnection.h
  8089. * src/FtpNegotiationCommand.cc
  8090. * src/FtpNegotiationCommand.h
  8091. * src/HttpConnection.cc
  8092. * src/HttpConnection.h
  8093. * src/HttpRequestCommand.cc
  8094. * src/InitiatorMSEHandshakeCommand.cc
  8095. * src/InitiatorMSEHandshakeCommand.h
  8096. * src/MSEHandshake.cc
  8097. * src/MSEHandshake.h
  8098. * src/Makefile.am
  8099. * src/PeerConnection.cc
  8100. * src/PeerConnection.h
  8101. * src/PeerInteractionCommand.cc
  8102. * src/PeerListenCommand.cc
  8103. * src/ReceiverMSEHandshakeCommand.cc
  8104. * src/ReceiverMSEHandshakeCommand.h
  8105. * src/SocketBuffer.cc
  8106. * src/SocketBuffer.h
  8107. * src/SocketCore.cc
  8108. * src/SocketCore.h
  8109. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Call setStatusRealtime() in constructor.
  8111. * src/RealtimeCommand.cc
  8112. * src/RealtimeCommand.h
  8113. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Call Download::setNoWait(true) to execute newly created command without
  8115. a pause.
  8116. * src/AbstractCommand.cc
  8117. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8119. found' error from HTTP/FTP server NUM times without getting single
  8120. bytes of data, then force the download to fail.
  8121. Basically aria2 tris all URIs available. So if long list of URIs are
  8122. specified in Metalink, then aria2 will take a long time to fail
  8123. eventually if all URIs are outdated. This option eases this situation
  8124. to limit the number of servers to try.
  8125. * src/FtpNegotiationCommand.cc
  8126. * src/HelpItemFactory.cc
  8127. * src/HttpResponseCommand.cc
  8128. * src/OptionHandlerFactory.cc
  8129. * src/PeerStat.h
  8130. * src/RequestGroup.cc
  8131. * src/RequestGroup.h
  8132. * src/SegmentMan.cc
  8133. * src/SegmentMan.h
  8134. * src/option_processing.cc
  8135. * src/prefs.cc
  8136. * src/prefs.h
  8137. * src/usage_text.h
  8138. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8140. response even if more than one response is in it.
  8141. * src/FtpConnection.cc
  8142. * src/FtpConnection.h
  8143. * test/FtpConnectionTest.cc
  8144. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Merged from stable-0.15
  8146. * m4/libcares.m4
  8147. Use pkg-config
  8148. * m4/sqlite3.m4
  8149. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Removed unnecessary if statement.
  8151. * src/DefaultPieceStorage.cc (initPieceStorage)
  8152. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added --connect-timeout option to specify connect timeout in seconds.
  8154. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8155. connecting to BitTorrent peer is not controlled by this option.
  8156. * src/AbstractProxyRequestCommand.cc
  8157. * src/FtpNegotiationCommand.cc
  8158. * src/HelpItemFactory.cc
  8159. * src/HttpRequestCommand.cc
  8160. * src/OptionHandlerFactory.cc
  8161. * src/option_processing.cc
  8162. * src/prefs.cc
  8163. * src/prefs.h
  8164. * src/usage_text.h
  8165. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Added help message for -R option.
  8167. * src/HelpItemFactory.cc
  8168. * src/usage_text.h
  8169. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Added the message that the time is in local time zone.
  8171. * src/RequestGroup.cc
  8172. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8173. Implemented the ability to get timestamp from remote FTP server using
  8174. MDTM command described in RFC3659.
  8175. * src/FtpConnection.cc
  8176. * src/FtpConnection.h
  8177. * src/FtpNegotiationCommand.cc
  8178. * src/FtpNegotiationCommand.h
  8179. * test/FtpConnectionTest.cc
  8180. * test/Makefile.am
  8181. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Implemented the ability to get timestamp from remote HTTP server and
  8183. apply it to local file. To enable this feature, --remote-time option
  8184. is added. No usage text has been written yet.
  8185. If several servers returns difference timestamp, then aria2 uses latest
  8186. one.
  8187. * src/CopyDiskAdaptor.cc
  8188. * src/CopyDiskAdaptor.h
  8189. * src/DirectDiskAdaptor.cc
  8190. * src/DirectDiskAdaptor.h
  8191. * src/DiskAdaptor.h
  8192. * src/File.cc
  8193. * src/File.h
  8194. * src/HttpHeader.cc
  8195. * src/HttpHeader.h
  8196. * src/HttpResponse.cc
  8197. * src/HttpResponse.h
  8198. * src/HttpResponseCommand.cc
  8199. * src/HttpResponseCommand.h
  8200. * src/MultiDiskAdaptor.cc
  8201. * src/MultiDiskAdaptor.h
  8202. * src/OptionHandlerFactory.cc
  8203. * src/RequestGroup.cc
  8204. * src/RequestGroup.h
  8205. * src/RequestGroupMan.cc
  8206. * src/option_processing.cc
  8207. * src/prefs.cc
  8208. * src/prefs.h
  8209. * test/CopyDiskAdaptorTest.cc
  8210. * test/FileTest.cc
  8211. * test/Makefile.am
  8212. * test/Makefile.in
  8213. * test/MultiDiskAdaptorTest.cc
  8214. * test/TestUtil.cc
  8215. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Fixed the bug that DiskWriterEntry is not created when its
  8217. FileEntry.isRequested() is false and it doesn't share a piece with
  8218. other FileEntries that are requested. This bug causes segmentation fault
  8219. in the end.
  8220. * src/MultiDiskAdaptor.cc
  8221. * src/MultiDiskAdaptor.h
  8222. * src/MultiFileAllocationIterator.cc
  8223. * test/MultiDiskAdaptorTest.cc
  8224. * test/MultiFileAllocationIteratorTest.cc
  8225. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8227. called if the number of file entries are greater than max open files.
  8228. * src/AbstractSingleDiskAdaptor.cc
  8229. * src/AbstractSingleDiskAdaptor.h
  8230. * src/DiskAdaptor.h
  8231. * src/MultiDiskAdaptor.cc
  8232. * src/MultiDiskAdaptor.h
  8233. * test/MultiDiskAdaptorTest.cc
  8234. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Added a constuctor that receives struct timeval.
  8236. Added operator<.
  8237. * src/TimeA2.cc
  8238. * src/TimeA2.h
  8239. * test/TimeTest.cc
  8240. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8242. * src/CookieParser.cc
  8243. * test/CookieParserTest.cc
  8244. * test/HttpResponseTest.cc
  8245. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Implmented the functions to parse date.
  8247. * src/TimeA2.cc
  8248. * src/TimeA2.h
  8249. * test/TimeTest.cc
  8250. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Added "Firefox3 Cookie" feature to FeatureConfig
  8252. * src/FeatureConfig.cc
  8253. * src/FeatureConfig.h
  8254. * test/FeatureConfigTest.cc
  8255. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Bump up version number to 0.16.0b
  8257. * configure.ac
  8258. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Use pkg-config if is is available.
  8260. * m4/openssl.m4
  8261. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8263. * src/BtAnnounce.h
  8264. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. If an error occurred with a URI, remove identical URI from remaining
  8266. URI list because it is likely that same error occurred in the end and it
  8267. is waste of time.
  8268. * src/AbstractCommand.cc
  8269. * src/RequestGroup.cc
  8270. * src/RequestGroup.h
  8271. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Removed wrong comment.
  8273. * src/DefaultPeerStorage.cc
  8274. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8276. Added return value of getpid() to argument of srand() to achieve more
  8277. randomized value.
  8278. * src/SimpleRandomizer.cc
  8279. * src/SimpleRandomizer.h
  8280. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Contact tracker frequently when the number of connections are 0 and
  8282. download is not finished yet.
  8283. * src/ActivePeerConnectionCommand.cc
  8284. * src/BtAnnounce.h
  8285. * src/DefaultBtAnnounce.cc
  8286. * src/DefaultBtAnnounce.h
  8287. * test/MockBtAnnounce.h
  8288. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Moved threshold values to UTPexExtensionMessage.
  8290. * src/DefaultBtInteractive.cc
  8291. * src/Peer.cc
  8292. * src/Peer.h
  8293. * src/UTPexExtensionMessage.cc
  8294. * src/UTPexExtensionMessage.h
  8295. * test/UTPexExtensionMessageTest.cc
  8296. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Added _incoming member to Peer class and made it true if the peer
  8298. initiated connection. Don't add those peer to UTPex message.
  8299. If extended handshake is received, assign _incoming to false.
  8300. * src/DefaultBtInteractive.cc
  8301. * src/HandshakeExtensionMessage.cc
  8302. * src/Peer.cc
  8303. * src/Peer.h
  8304. * src/PeerListenCommand.cc
  8305. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8307. Encoding Decoder. Removed size threshold for turning off on the fly
  8308. inflation because resulting file may or may not be inflated depending
  8309. on the file size and I think it is not expected by users.
  8310. This change fixes segmentation fault when Metalink file contains gzipped
  8311. file and its filesize is provided.
  8312. * src/HttpResponseCommand.cc
  8313. * src/HttpResponseCommand.h
  8314. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Made Cookie immutable.
  8316. * src/Cookie.cc
  8317. * src/Cookie.h
  8318. * src/CookieParser.cc
  8319. * src/CookieParser.h
  8320. * src/CookieStorage.cc
  8321. * test/CookieParserTest.cc
  8322. * test/CookieStorageTest.cc
  8323. * test/NsCookieParserTest.cc
  8324. * test/Sqlite3MozCookieParserTest.cc
  8325. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Removed CookieBox, CookieBoxFactory.
  8327. * src/CookieBox.cc
  8328. * src/CookieBox.h
  8329. * src/CookieBoxFactory.cc
  8330. * src/CookieBoxFactory.h
  8331. * src/Makefile.am
  8332. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Use CookieStorage class instead of CookieBox class.
  8334. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8335. * src/AbstractProxyRequestCommand.cc
  8336. * src/CookieStorage.cc
  8337. * src/DownloadEngine.cc
  8338. * src/DownloadEngine.h
  8339. * src/HttpConnection.cc
  8340. * src/HttpConnection.h
  8341. * src/HttpRequest.cc
  8342. * src/HttpRequest.h
  8343. * src/HttpRequestCommand.cc
  8344. * src/HttpResponse.cc
  8345. * src/HttpResponseCommand.cc
  8346. * src/HttpSkipResponseCommand.cc
  8347. * src/Makefile.am
  8348. * src/MultiUrlRequestInfo.cc
  8349. * src/Request.cc
  8350. * src/Request.h
  8351. * src/main.cc
  8352. * test/AllTest.cc
  8353. * test/CookieStorageTest.cc
  8354. * test/CookieTest.cc
  8355. * test/HttpRequestTest.cc
  8356. * test/HttpResponseTest.cc
  8357. * test/Makefile.am
  8358. * test/NsCookieParserTest.cc
  8359. * test/Sqlite3MozCookieParserTest.cc
  8360. * test/nscookietest.txt
  8361. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Updated
  8363. * test/Cookies.sqlite
  8364. * test/nscookietest.txt
  8365. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Added tests for CookieStorage::load()
  8367. * test/CookieStorageTest.cc
  8368. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Added CookieStorage class which is based on RFC2109 and manages cookies
  8370. more strictly than CookieBox and CookieBoxFactory class.
  8371. * src/CookieStorage.cc
  8372. * src/CookieStorage.h
  8373. * src/Cookie.cc
  8374. * src/Cookie.h
  8375. * test/CookieStorageTest.cc
  8376. * test/CookieTest.cc
  8377. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Fixed the bug that commands are created more than the number of pieces.
  8379. * src/RequestGroup.cc
  8380. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Fixed infinite loop bug in FTP when SIZE command failed.
  8382. * src/FtpNegotiationCommand.cc
  8383. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Removed DirectDiskAdaptorTest.h
  8385. * test/Makefile.am
  8386. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Fixed chunk checksum validation cannot detect trailing garbage data.
  8388. BUG#2074141
  8389. * src/AbstractSingleDiskAdaptor.cc
  8390. * src/AbstractSingleDiskAdaptor.h
  8391. * src/CheckIntegrityEntry.cc
  8392. * src/CheckIntegrityEntry.h
  8393. * src/DiskAdaptor.h
  8394. * src/MultiDiskAdaptor.cc
  8395. * src/MultiDiskAdaptor.h
  8396. * src/RequestGroup.cc
  8397. * test/DirectDiskAdaptorTest.cc
  8398. * test/MultiDiskAdaptorTest.cc
  8399. * test/TestUtil.cc
  8400. * test/TestUtil.h
  8401. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Bump up version number of dht.dat file to 3. In version 3 format, time
  8403. is stored in 64bit, network byte order.
  8404. New build can load old format(version 2) but it saves the file in new
  8405. format. It means once you used new build, your dht.dat becomes
  8406. incompatible with older build.
  8407. * src/DHTRoutingTableDeserializer.cc
  8408. * src/DHTRoutingTableSerializer.cc
  8409. * test/DHTRoutingTableSerializerTest.cc
  8410. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8412. * test/Makefile.am
  8413. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Bump up version number of .aria2 control file to 0001.
  8415. New aria2 can still load version 0000 file but it saves the file in
  8416. version 0001 format. It means that new aria2 can resume download
  8417. started by old aria2 but the opposite is not true.
  8418. * src/DefaultBtProgressInfoFile.cc
  8419. * src/DefaultBtProgressInfoFile.h
  8420. * test/DefaultBtProgressInfoFileTest.cc
  8421. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Added ntoh64 and hton64 as inline functions.
  8423. * src/Util.cc
  8424. * test/UtilTest.cc
  8425. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Added sqlite3 depenency and Firefox3 cookie support.
  8427. * README
  8428. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. State that firefox3 cookie is supported explicitly in the usage.
  8430. * src/usage_text.h
  8431. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Externalized message.
  8433. * src/RequestGroupMan.cc
  8434. * src/message.h
  8435. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Save temporary file first and rename to the destination on success.
  8437. Added test cases.
  8438. * src/RequestGroupMan.cc
  8439. * test/RequestGroupManTest.cc
  8440. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Fixed the bug that the number of connected peer is exceeding the limit
  8442. (55 by default) in seeding mode.
  8443. Multiplied 0.8 to _maxUploadSpeedLimit.
  8444. * src/ActivePeerConnectionCommand.cc
  8445. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8446. Clear table item.
  8447. * src/Dictionary.cc
  8448. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Fixed error handling of lseek.
  8450. * src/AbstractDiskWriter.cc
  8451. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8453. style cookie file.
  8454. * src/usage_text.h
  8455. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8457. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8458. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8459. * src/Util.cc
  8460. * src/Util.h
  8461. * src/CookieParser.cc
  8462. * test/UtilTest.cc
  8463. * test/CookieParserTest.cc
  8464. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Separate the implementation to load old mozilla format of cookie to
  8466. NsCookieParser class.
  8467. * src/CookieBoxFactory.cc
  8468. * src/CookieBoxFactory.h
  8469. * src/NsCookieParser.cc
  8470. * src/NsCookieParser.h
  8471. * test/NsCookieParserTest.cc
  8472. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Made parse() const
  8474. * src/Sqlite3MozCookieParser.cc
  8475. * src/Sqlite3MozCookieParser.h
  8476. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Added firefox3 cookie support based on the patch submitted by
  8478. tizianomueller.
  8479. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8480. this functionality.
  8481. * configure.ac
  8482. * m4/sqlite3.m4
  8483. * src/CookieBoxFactory.cc
  8484. * src/CookieBoxFactory.h
  8485. * src/Makefile.am
  8486. * src/Makefile.in
  8487. * src/Sqlite3MozCookieParser.cc
  8488. * src/Sqlite3MozCookieParser.h
  8489. * src/main.cc
  8490. * test/CookieBoxFactoryTest.cc
  8491. * test/Makefile.am
  8492. * test/Makefile.in
  8493. * test/Sqlite3MozCookieParserTest.cc
  8494. * test/badcookies.sqlite
  8495. * test/cookies.sqlite
  8496. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Added Danish and Greek translations.
  8498. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8499. Great thanks to all translators.
  8500. * po/LINGUAS
  8501. * po/el.po
  8502. * po/da.po
  8503. * po/es.po
  8504. * po/ca.po
  8505. * po/nn.po
  8506. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Fixed man page: --follow-bittorrent should be --follow-torrent
  8508. * doc/aria2c.1.txt
  8509. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Fixed: numCommand is less than the value specified in -C option.
  8511. * src/RequestGroup.cc
  8512. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Fixed occasional assertion failure in PieceSegment.
  8514. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8515. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8516. creation of duplicate segments and one of the segment was finished then
  8517. assertion failure was caused.
  8518. * src/SegmentMan.cc
  8519. * test/SegmentManTest.cc
  8520. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Added options to load/save the server's performance/status to a file
  8522. and the timeout to drop their data.
  8523. --server-stat-of=FILE specifies the file to which performance data
  8524. is saved.
  8525. --server-stat-if=FILE specifies the file to read previously saved
  8526. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8527. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8528. TIMEOUT is specified in seconds and the default value is 24hours.
  8529. * src/MultiUrlRequestInfo.cc
  8530. * src/OptionHandlerFactory.cc
  8531. * src/RequestGroupMan.cc
  8532. * src/RequestGroupMan.h
  8533. * src/ServerStatMan.cc
  8534. * src/ServerStatMan.h
  8535. * src/option_processing.cc
  8536. * src/prefs.cc
  8537. * src/prefs.h
  8538. * test/ServerStatManTest.cc
  8539. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8541. * src/ServerStatMan.cc
  8542. * src/ServerStatMan.h
  8543. * test/ServerStatManTest.cc
  8544. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Implemented ServerStatMan::load(...) function and its test case.
  8546. * src/ServerStat.cc
  8547. * src/ServerStat.h
  8548. * src/ServerStatMan.cc
  8549. * test/ServerStatManTest.cc
  8550. * test/ServerStatTest.cc
  8551. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Use time_t instead of int32_t. Use int64_t where milli second is
  8553. expected.
  8554. * src/TimeA2.cc
  8555. * src/TimeA2.h
  8556. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Implemented ServerStatMan::save(...) function and its test case.
  8558. * src/ServerStat.cc
  8559. * src/ServerStat.h
  8560. * src/ServerStatMan.cc
  8561. * src/ServerStatMan.h
  8562. * test/ServerStatManTest.cc
  8563. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Now aria2 uses name attribute in Metalink as local filename in
  8565. BitTorrent downloads. BUG#2033999
  8566. * src/BtContext.h
  8567. * src/BtDependency.cc
  8568. * src/DefaultBtContext.cc
  8569. * src/DefaultBtContext.h
  8570. * src/SingleFileDownloadContext.cc
  8571. * src/SingleFileDownloadContext.h
  8572. * test/BtDependencyTest.cc
  8573. * test/DefaultBtContextTest.cc
  8574. * test/MockBtContext.h
  8575. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Added AC_C_BIGENDIAN
  8577. * src/configure.ac
  8578. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Limited numCommand less than or equal to the number of piece.
  8580. * src/RequestGroup.cc
  8581. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8583. directive.
  8584. * test/DefaultPieceStorageTest.cc
  8585. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Fixed memory leak in test code
  8587. * test/AnnounceListTest.cc
  8588. * test/DefaultPeerListProcessorTest.cc
  8589. * test/DefaultPeerStorageTest.cc
  8590. * test/MetaFileUtilTest.cc
  8591. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8593. * src/DefaultPieceStorage.cc
  8594. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Initialized _directIOAllowed
  8596. * src/MultiDiskAdaptor.cc
  8597. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Fixed memory leak
  8599. * src/GZipDecoder.cc
  8600. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Fixed memory leak
  8602. * src/MetalinkParserStateMachine.cc
  8603. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. Fixed memory leak
  8605. * src/Dictionary.cc
  8606. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Fixed memory leak
  8608. * src/IteratableChunkChecksumValidator.h
  8609. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Fixed unmatched malloc/free.
  8611. * src/IteratableChunkChecksumValidator.cc
  8612. * src/IteratableChecksumValidator.cc
  8613. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Removed max chunk size check. This change fixes BUG#2040169
  8615. * src/ChunkedDecoder.cc
  8616. * src/ChunkedDecoder.h
  8617. * test/ChunkedDecoderTest.cc
  8618. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Implemented download speed based URI selection algorithm.
  8620. Introduced new option --uri-selector.
  8621. If --uri-selector=feedback is given, aria2 uses download speed observed
  8622. in the previous downloads and chooses fastest server in the URI list.
  8623. Currently at most 10 URIs are considered to introduce randomeness for
  8624. finding better servers. The speed is average download speed in the
  8625. downloads.
  8626. On the other hand, if --uri-selector=inorder is given, which is default,
  8627. URI is tried in order in URI list.
  8628. The usage text for the new option has not been written yet.
  8629. * src/AbstractCommand.cc
  8630. * src/DownloadCommand.cc
  8631. * src/DownloadEngine.cc
  8632. * src/DownloadEngineFactory.cc
  8633. * src/InOrderURISelector.cc
  8634. * src/InOrderURISelector.h
  8635. * src/OptionHandlerFactory.cc
  8636. * src/PeerStat.h
  8637. * src/RequestGroup.cc
  8638. * src/RequestGroup.h
  8639. * src/RequestGroupMan.cc
  8640. * src/RequestGroupMan.h
  8641. * src/SegmentMan.cc
  8642. * src/SegmentMan.h
  8643. * src/ServerStat.cc
  8644. * src/ServerStat.h
  8645. * src/ServerStatMan.cc
  8646. * src/ServerStatMan.h
  8647. * src/ServerStatURISelector.cc
  8648. * src/ServerStatURISelector.h
  8649. * src/URISelector.h
  8650. * src/option_processing.cc
  8651. * src/prefs.cc
  8652. * src/prefs.h
  8653. * test/InOrderURISelectorTest.cc
  8654. * test/RequestGroupManTest.cc
  8655. * test/ServerStatManTest.cc
  8656. * test/ServerStatURISelectorTest.cc
  8657. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. * Release 0.15.1+2
  8659. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Bump up version number to 0.15.1+2
  8661. * configure.ac
  8662. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8664. * m4/aria2_arg.m4
  8665. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. * Release 0.15.1+1
  8667. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Bump up version number to 0.15.1+1
  8669. * configure.ac
  8670. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Fixed the bug that causes segmentaion fault when resuming download
  8672. using metalink without size tag. Reproducible only using HTTP URI.
  8673. * src/HttpResponseCommand.cc
  8674. * src/FtpNegotiationCommand.cc
  8675. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. * Release 0.15.1
  8677. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Updated Bulgarian and French translations, thanks to all translators.
  8679. * po/bg.po
  8680. * po/fr.po
  8681. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Bump up version number to 0.15.1
  8683. * configure.ac
  8684. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Avoid repeated call of gettimeofday() when calculating speed.
  8686. * src/SpeedCalc.cc
  8687. * src/SpeedCalc.h
  8688. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Removed writable check when socket's send buffer is full in BitTorrent
  8690. downloads to lower CPU usage.
  8691. * src/PeerInteractionCommand.cc
  8692. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Fixed broken gzip inflation.
  8694. Turn off segmented downloading if gzip content is smaller than or equal
  8695. to 1MiB and inflate the data on the fly, because HTTP response header
  8696. doesn't contain the length of inflated file we can't determin where
  8697. the chunk of data should be written.
  8698. On the other hand, if gzip content is larger than 1MB, then turn off
  8699. on the fly inflation, because some servers returns "content-type: gzip"
  8700. for *.tgz, *.gz files.
  8701. * src/DownloadCommand.cc
  8702. * src/HttpResponseCommand.cc
  8703. * src/HttpResponseCommand.h
  8704. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Applied tizianomueller's patch to fix compile error.
  8706. * test/BitfieldManTest.cc
  8707. * test/BtRequestMessageTest.cc
  8708. * test/DefaultBtContextTest.cc
  8709. * test/DefaultDiskWriterTest.cc
  8710. * test/DefaultPieceStorageTest.cc
  8711. * test/HttpHeaderProcessorTest.cc
  8712. * test/HttpResponseTest.cc
  8713. * test/Metalink2RequestGroupTest.cc
  8714. * test/MetalinkParserControllerTest.cc
  8715. * test/MetalinkProcessorTest.cc
  8716. * test/PeerSessionResourceTest.cc
  8717. * test/UtilTest.cc
  8718. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. * Release 0.15.0
  8720. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Reordered src files in POTFILES.in so that usage text appears first.
  8722. * po/POTFILES.in
  8723. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Bump up version number to 0.15.0
  8725. * configure.ac
  8726. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Added Bulgarian translation.
  8728. Updated Catalan, Spanish, French and Japanese translations.
  8729. Thanks to all translators.
  8730. * po/LINGUAS
  8731. * po/bg.po
  8732. * po/ca.po
  8733. * po/es.po
  8734. * po/fr.po
  8735. * po/ja.po
  8736. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Updated feature list. Added libz for dependency section.
  8738. Added a description about unit testing using CppUnit.
  8739. * README
  8740. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Added a test for libz. Quoted where it is necessary.
  8742. * build_test.sh
  8743. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Added GZip to `Enabled Features' list.
  8745. * src/FeatureConfig.cc
  8746. * src/FeatureConfig.h
  8747. * test/FeatureConfigTest.cc
  8748. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8750. the transfer has not yet started.
  8751. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8752. * src/SegmentMan.cc
  8753. * src/SegmentMan.h
  8754. * test/SegmentManTest.cc
  8755. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Cache last calculated average download/upload speed.
  8757. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8758. cached value.
  8759. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8760. * src/PeerStat.h
  8761. * src/SpeedCalc.cc
  8762. * src/SpeedCalc.h
  8763. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Call parseUrl directly.
  8765. * src/Request.cc (resetUrl)
  8766. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Supported absolute/relative path in Location header field.
  8768. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8769. * src/HttpHeader.cc
  8770. * src/HttpHeader.h
  8771. * src/HttpResponse.cc
  8772. * src/HttpSkipResponseCommand.cc
  8773. * src/Request.cc
  8774. * test/HttpHeaderTest.cc
  8775. * test/HttpResponseTest.cc
  8776. * test/RequestTest.cc
  8777. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Changed help text for --load-cookie option.
  8779. * doc/aria2c.1.txt
  8780. * src/usage_text.h
  8781. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Regenerated test/Makefile.in to remove stale ChangeLog.
  8783. * test/Makefile.in
  8784. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Updated po files.
  8786. * po/aria2c.pot
  8787. * po/*.po
  8788. * po/*.gmo
  8789. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Bump up version number to 0.15.0b
  8791. * configure.ac
  8792. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Externalize messages.
  8794. * src/RequestGroupMan.cc
  8795. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8796. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Use File::exists() instead of File::isFile() to allow non-regular file
  8798. such as block special files.
  8799. * src/AbstractDiskWriter.cc
  8800. * src/MultiDiskWriter.cc
  8801. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8803. * src/gai_strerror.h
  8804. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed compile error. Thanks gknauf for the patch.
  8806. * src/asctime_r.c
  8807. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Included asctime_r.h from a2time.h.
  8809. * src/a2time.h
  8810. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Added a message "aria2 doesn't verify signature" to log message when
  8812. signature file is saved.
  8813. * src/RequestGroupMan.cc
  8814. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Added the ability to save signature when download is completed if
  8816. signature is available. The filename of signature file is the path to
  8817. download file followed by ".sig". If it already exists, then signature
  8818. will not be saved.
  8819. * src/RequestGroupMan.cc
  8820. * src/Signature.cc
  8821. * test/SignatureTest.cc
  8822. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Updated the descriptions for --bt-seed-unverified.
  8824. * doc/aria2c.1
  8825. * doc/aria2c.1.html
  8826. * doc/aria2c.1.txt
  8827. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8829. that this is not going to verify files using piece hashes.
  8830. * src/HelpItemFactory.cc
  8831. * src/OptionHandlerFactory.cc
  8832. * src/RequestGroup.cc
  8833. * src/option_processing.cc
  8834. * src/prefs.cc
  8835. * src/prefs.h
  8836. * src/usage_text.h
  8837. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Added the ability to retrieve signature from Metalink file.
  8839. A retrieved signature is stored in Signature class and it is held by
  8840. DownloadContext class. Note that aria2 doesn't verify signature.
  8841. * src/DownloadContext.cc
  8842. * src/DownloadContext.h
  8843. * src/Makefile.am
  8844. * src/Makefile.in
  8845. * src/Metalink2RequestGroup.cc
  8846. * src/MetalinkEntry.cc
  8847. * src/MetalinkEntry.h
  8848. * src/MetalinkParserController.cc
  8849. * src/MetalinkParserController.h
  8850. * src/MetalinkParserStateMachine.cc
  8851. * src/MetalinkParserStateMachine.h
  8852. * src/Signature.cc
  8853. * src/Signature.h
  8854. * src/SignatureMetalinkParserState.cc
  8855. * src/SignatureMetalinkParserState.h
  8856. * src/VerificationMetalinkParserState.cc
  8857. * src/VerificationMetalinkParserState.h
  8858. * test/Metalink2RequestGroupTest.cc
  8859. * test/MetalinkParserControllerTest.cc
  8860. * test/MetalinkProcessorTest.cc
  8861. * test/test.xml
  8862. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Close DiskAdaptor after renaming file.
  8864. * src/RequestGroup.cc
  8865. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Corrected indentation
  8867. * src/DefaultBtProgressInfoFile.cc
  8868. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Moved the calls of std::ios::exceptions() inside of try-catch block
  8870. because if an error occurred in constructor of std::fstream, then
  8871. exception is thrown immediately when std::ios::exceptions() is called
  8872. which results unhandled exception and aria2c aborts.
  8873. * src/DefaultBtProgressInfoFile.cc
  8874. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Added the test for the previous change in DefaultBtContext.cc
  8876. * test/DefaultBtContextTest.cc
  8877. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Fixed the bug that causes infinite loop when the number of pieces are
  8879. fewer than allowed fast set size which is 10 by default.
  8880. * src/DefaultBtContext.cc
  8881. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Updated the descriptions for -j, -s. Added --bt-seed.
  8883. * doc/aria2c.1
  8884. * doc/aria2c.1.html
  8885. * doc/aria2c.1.txt
  8886. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8888. aria2 seeds previously downloaded files without validating piece hashs.
  8889. * src/HelpItemFactory.cc
  8890. * src/OptionHandlerFactory.cc
  8891. * src/RequestGroup.cc
  8892. * src/option_processing.cc
  8893. * src/prefs.cc
  8894. * src/prefs.h
  8895. * src/usage_text.h
  8896. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Updated DESCRIPTION of man page.
  8898. * doc/aria2c.1
  8899. * doc/aria2c.1.html
  8900. * doc/aria2c.1.txt
  8901. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8903. Don't define `struct addrinfo' when __sun is defined.
  8904. * src/getaddrinfo.h
  8905. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8907. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8908. second argument is of type `struct _stati64'. Otherwise it is defined as
  8909. `struct stat'.
  8910. * src/AbstractDiskWriter.cc
  8911. * src/File.cc
  8912. * src/File.h
  8913. * src/a2io.h
  8914. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Fixed the compile error in hurd-i386
  8916. See the original bug report:
  8917. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8918. * src/a2io.h
  8919. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Code cleanup.
  8921. * src/PeerAbstractCommand.cc
  8922. * src/PeerAbstractCommand.h
  8923. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Removed TransferEncoding.
  8925. * src/DownloadCommand.cc
  8926. * src/DownloadCommand.h
  8927. * src/HttpResponseCommand.cc
  8928. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Updated po files.
  8930. * po/aria2c.pot
  8931. * po/*.po
  8932. * po/*.gmo
  8933. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8935. * src/A2STR.cc
  8936. * src/A2STR.h
  8937. * src/ChunkedDecoder.cc
  8938. * src/ChunkedDecoder.h
  8939. * src/ChunkedEncoding.cc: Removed
  8940. * src/ChunkedEncoding.h: Removed
  8941. * src/DownloadCommand.cc
  8942. * src/DownloadCommand.h
  8943. * src/HttpDownloadCommand.cc
  8944. * src/HttpResponse.cc
  8945. * src/HttpResponse.h
  8946. * src/HttpResponseCommand.cc
  8947. * src/HttpSkipResponseCommand.cc
  8948. * src/HttpSkipResponseCommand.h
  8949. * src/Makefile.am
  8950. * src/TransferEncoding.h: Removed
  8951. * test/ChunkedDecoderTest.cc
  8952. * test/ChunkedEncodingTest.cc: Removed
  8953. * test/HttpResponseTest.cc
  8954. * test/Makefile.am
  8955. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Use append instead of insert.
  8957. * src/GZipDecoder.cc
  8958. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Updated doc
  8960. * src/Decoder.h
  8961. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Updated usage text for -s option.
  8963. * src/usage_text.h
  8964. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8966. * src/Request.cc
  8967. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Cleaned up configure.ac.
  8969. * configure.ac
  8970. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8972. AC_ARG_ENABLE.
  8973. * configure.ac
  8974. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8976. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8977. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8978. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8979. fly and writes decoded data to a local disk.
  8980. * README
  8981. * README.html
  8982. * configure.ac
  8983. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8984. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8985. * m4/libz.m4
  8986. * src/Decoder.h
  8987. * src/DownloadCommand.cc
  8988. * src/DownloadCommand.h
  8989. * src/Exception.h
  8990. * src/GZipDecoder.cc
  8991. * src/GZipDecoder.h
  8992. * src/HttpHeader.cc
  8993. * src/HttpHeader.h
  8994. * src/HttpRequest.cc
  8995. * src/HttpRequest.h
  8996. * src/HttpResponse.cc
  8997. * src/HttpResponse.h
  8998. * src/HttpResponseCommand.cc
  8999. * src/Makefile.am
  9000. * test/GZipDecoderTest.cc
  9001. * test/HttpRequestTest.cc
  9002. * test/HttpResponseTest.cc
  9003. * test/Makefile.am
  9004. * test/Makefile.in
  9005. * test/gzip_decode_test.gz
  9006. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Clarified usage of -j option.
  9008. * src/usage_text.h
  9009. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Disabled getting size from the response of RETR.
  9011. If SIZE command failed, then disable resuming and segmented downloading.
  9012. * src/FtpConnection.cc
  9013. * src/FtpConnection.h
  9014. * src/FtpNegotiationCommand.cc
  9015. * src/FtpNegotiationCommand.h
  9016. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Use digits to find first byte of file size, which makes the intention
  9018. of the code clearer.
  9019. * src/FtpConnection.cc
  9020. Don't call validateTotalLength() when size is 0.
  9021. * src/FtpNegotiationCommand.cc
  9022. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Updated po files.
  9024. * po/aria2c.pot
  9025. * po/*.gmo
  9026. * po/*.po
  9027. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Clarified usage text for --split option.
  9029. * src/usage_text.h
  9030. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Bump up version number to 0.15.0dev. "dev" means "development"
  9032. version, which means I started the development of the next release!
  9033. * src/configure.ac
  9034. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. If FTP server returns negative response with REST raw command and
  9036. requested range is not 0, throw exception. If requested range is 0,
  9037. continue download a file from 0 byte.
  9038. * src/FtpNegotiationCommand.cc
  9039. * src/FtpNegotiationCommand.h
  9040. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Supported FTP server which don't recognize SIZE raw command.
  9042. If SIZE raw command is failed, aria2 will try to get file size
  9043. from the response of RETR raw command. If both attempts are failed,
  9044. then resuming and segmented downloading are disabled.
  9045. * src/FtpConnection.cc
  9046. * src/FtpConnection.h
  9047. * src/FtpNegotiationCommand.cc
  9048. * src/FtpNegotiationCommand.h
  9049. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. * Release 0.14.0+1
  9051. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Bump up version number to 0.14.0+1
  9053. * src/configure.ac
  9054. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Fixed the code that refers static member variable from non-static
  9056. context.
  9057. * src/DefaultPeerStorage.cc
  9058. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. * Release 0.14.0
  9060. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Added build test script
  9062. * build_test.sh
  9063. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Updated ja.po
  9065. * src/ja.po
  9066. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Bump up version number to 0.14.0
  9068. * src/configure.ac
  9069. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Updated ja.po and fr.po. Great thanks for french translators and
  9071. Sebastien WILLEMIJNS.
  9072. * po/fr.po
  9073. * po/ja.po
  9074. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Added configure option to enable/disable epoll support.
  9076. * configure.ac
  9077. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Updated man page.
  9079. * doc/aria2c.1.txt
  9080. * doc/aria2c.1
  9081. * doc/aria2c.1.html
  9082. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Added missing default value '5' to the usage of --split option.
  9084. * src/HelpItemFactory.cc
  9085. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Filled up pieces based on the number of missing blocks, rather than
  9087. simplay the number of piece * block length.
  9088. * src/BtRequestFactory.h
  9089. * src/DefaultBtInteractive.cc
  9090. * src/DefaultBtInteractive.h
  9091. * src/DefaultBtRequestFactory.cc
  9092. * src/DefaultBtRequestFactory.h
  9093. * src/Piece.cc
  9094. * src/Piece.h
  9095. * test/BitfieldManTest.cc
  9096. * test/DefaultBtRequestFactoryTest.cc
  9097. * test/MockBtRequestFactory.h
  9098. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Made _epEvents a member variable.
  9100. * src/DownloadEngine.cc
  9101. * src/DownloadEngine.h
  9102. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Cancel download if http redirect is bounded more than 20 times.
  9104. * src/AbstractCommand.cc
  9105. * src/HttpSkipResponseCommand.cc
  9106. * src/Request.cc
  9107. * src/Request.h
  9108. * test/RequestTest.cc
  9109. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Fixed unhandled exception(removed keyword `new').
  9111. * src/SocketCore.cc (initEPOLL)
  9112. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Removed visit(const MetaEntry*)
  9114. * src/MetaEntryVisitor.h:
  9115. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9116. and made them virtual.
  9117. * src/BencodeVisitor.h
  9118. * src/BencodeVisitor.cc
  9119. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Updated po files.
  9121. * po/aria2c.pot
  9122. * po/*.po
  9123. * po/*.gmo
  9124. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9126. the number of socket to watch out.
  9127. * src/PeerInteractionCommand.cc
  9128. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. When there is not enough space in disk when writing a chunk of data,
  9130. aria2 now prints the message to the console to warn user and aborts
  9131. its download. Not all downloads are canceled because some downloads
  9132. may use another disk or partition. BUG#1640332
  9133. * src/AbstractDiskWriter.cc
  9134. * src/PeerAbstractCommand.cc
  9135. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9136. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9137. setHaltRequested(true) to cancel download.
  9138. * src/PeerInteractionCommand.h
  9139. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9141. socket from int to sock_t as sockets are unsigned in Windows.
  9142. For AsyncNameResolver, DownloadEngine, I did additional modification
  9143. for the portion of the code changed according to epoll support.
  9144. I defined sock_t in a2netcompat.h to use sock_t without including
  9145. SocketCore.h.
  9146. * src/AsyncNameResolver.cc
  9147. * src/AsyncNameResolver.h
  9148. * src/DownloadEngine.cc
  9149. * src/DownloadEngine.h
  9150. * src/SocketCore.cc
  9151. * src/SocketCore.h
  9152. * src/a2netcompat.h
  9153. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9155. changes in the patch were applied.
  9156. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9157. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9158. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9159. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9161. a2io.h and common.h were modified.
  9162. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9163. MinGW.
  9164. * src/common.h: Changed off_t to 64 bit in MinGW.
  9165. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9167. only a2netcompat.h is modified.
  9168. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9169. directives.
  9170. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9172. only gai_strerror.h is modified.
  9173. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9174. winsock errors in MinGW.
  9175. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9177. follow sources are applied.
  9178. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9179. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9180. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9181. I included locale.h from Platform.cc.
  9182. * src/main.cc: Moved common setup/teardown code to Platform class.
  9183. * test/AllTest.cc: Use Platform class.
  9184. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9185. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9187. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9188. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9189. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9191. aria2-0.13.2+1-mingw-2.patch.
  9192. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9193. systems which don't have termious.h. I moved the directive inside of
  9194. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9195. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9196. anyway.
  9197. * src/asctime_r.h
  9198. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9199. I added 2nd argument to the prototype declaration.
  9200. * src/StringFormat.cc: Get rid of vasprintf.
  9201. * src/getaddrinfo.h: Fixed constants.
  9202. * configure.ac: Added the check for asctime_r function.
  9203. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9204. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Added writable test for Socket when the sending message is in progress.
  9206. Usually the sending message is piece message. Without wriable check,
  9207. upload latency is dropped to more than 1sec.
  9208. * src/PeerInteractionCommand.cc
  9209. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Create only requested files and files which shares a piece with
  9211. requested file in multi-torrent downloads. Directory structures are
  9212. also created in the same rule.
  9213. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9214. DiskWriterEntry as in the previous implementation.
  9215. * src/MultiDiskWriter.cc
  9216. * src/MultiFileAllocationIterator.cc
  9217. * src/MultiFileAllocationIterator.h
  9218. * test/MultiFileAllocationIteratorTest.cc
  9219. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Commented out -lprofiler
  9221. * src/Makefile.am
  9222. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Bump up version number to 0.14.0b.
  9224. * src/configure.ac
  9225. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Actively establish connection to peers in seeding, when peer cache
  9227. is not full and max upload speed limit is not reached.
  9228. * src/ActivePeerConnectionCommand.cc
  9229. * src/ActivePeerConnectionCommand.h
  9230. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9232. to make room more fleshy, recently found peers.
  9233. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9234. it.
  9235. * src/DefaultPeerStorage.cc
  9236. * test/DefaultPeerStorageTest.cc
  9237. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Returns cached data only when the previous receiveHandshake() is called
  9239. with peek = true.
  9240. * src/PeerConnection.cc (receiveHandshake)
  9241. * src/PeerConnection.h (receiveHandshake)
  9242. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Changed default value of -s option from 1 to 5.
  9244. Also max value of -s option is changed from 5 to 16.
  9245. * src/HelpItemFactory.cc
  9246. * src/OptionHandlerFactory.cc
  9247. * src/option_processing.cc
  9248. * src/usage_text.h
  9249. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Changed -s options behavior. Now it means the number of connections
  9251. made simultaneously in each http/ftp download.
  9252. If 1 URL is specified, the behavior is the same with old implementation.
  9253. If -s N is given and more than N URLs are specified, first N URLs are
  9254. used and remaining URLs are used for backup. If less than N URLs are
  9255. specified, some of URLs are used more than once so that totally N
  9256. connections are made simultaneously.
  9257. * src/main.cc
  9258. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Included missing iosfwd or ostream header.
  9260. * src/RequestGroupMan.cc
  9261. * src/TaggedItem.cc
  9262. * src/TaggedItem.h
  9263. * src/Util.cc
  9264. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9266. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9267. * src/HttpConnection.cc: Included missing sstream.
  9268. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Added --bt-max-open-files option.
  9270. * src/DefaultPieceStorage.cc
  9271. * src/HelpItemFactory.cc
  9272. * src/MultiDiskAdaptor.cc
  9273. * src/MultiDiskAdaptor.h
  9274. * src/OptionHandlerFactory.cc
  9275. * src/option_processing.cc
  9276. * src/prefs.cc
  9277. * src/prefs.h
  9278. * src/usage_text.h
  9279. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Fixed the bug that aria2 aborts when a path to a directory is given
  9281. in command-line.
  9282. * src/ProtocolDetector.cc
  9283. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Limited the number files opened in each BitTorrent download. The default
  9285. value is 100. The option to change this value will be added.
  9286. * src/MultiDiskAdaptor.cc
  9287. * src/MultiDiskAdaptor.h
  9288. * src/MultiFileAllocationIterator.cc
  9289. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Fixed the bug that HTTP downloads don't start with old libraries.
  9291. * src/HttpHeaderProcessor.cc
  9292. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Use empty() instead of size() > 0.
  9294. * src/HttpConnection.cc
  9295. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Drop connection if the incoming peer ID is the same with localhost's
  9297. one. The previous implementation drops connection when incoming peer's
  9298. IP address is the same with localhost's one.
  9299. * src/PeerListenCommand.cc
  9300. * src/DefaultBtInteractive.cc
  9301. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Returns cached data without checking whether socket is readable
  9303. if the cache is available.
  9304. * src/PeerConnection.cc (receiveHandshake)
  9305. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Included stdint.h
  9307. * src/common.h
  9308. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Removed duplicate HAVE_GETTIMEOFDAY
  9310. * src/Makefile.am
  9311. * src/Makefile.in
  9312. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Use interval as a minInterval when minInterval is not supplied.
  9314. * src/DefaultBtAnnounce.cc
  9315. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9317. attempt is failed, then 2nd attempt get kicked out more quickly.
  9318. And it is now static const member of DefaultBtAnnounce.
  9319. * src/DefaultBtAnnounce.h
  9320. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9322. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9323. * src/ActivePeerConnectionCommand.cc
  9324. * src/BtConstants.h
  9325. * src/BtRuntime.h
  9326. * src/DHTGetPeersCommand.cc
  9327. * src/DefaultBtAnnounce.cc
  9328. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9329. BtRuntime::MAX_PEERS.
  9330. * src/DefaultPeerStorage.h
  9331. * src/InitiatorMSEHandshakeCommand.cc
  9332. * src/PeerInitiateConnectionCommand.cc
  9333. * src/PeerInteractionCommand.cc
  9334. * src/PeerReceiveHandshakeCommand.cc
  9335. * src/TrackerWatcherCommand.cc
  9336. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Always Connect to _numNewConnection
  9338. * src/ActivePeerConnectionCommand.cc
  9339. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Made `begin' unsigned int.
  9341. * src/GrowSegment.h
  9342. * src/Piece.cc
  9343. * src/Piece.h
  9344. * src/PiecedSegment.cc
  9345. * src/PiecedSegment.h
  9346. * src/Segment.h
  9347. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Calculate piece hash when data is arrived if the data is arrived in
  9349. order. This removes additional read operation for hash calculation.
  9350. If the data is arrived in out of order, the hash is calucated when the
  9351. piece is completed. This is the same behavior as the old implementation.
  9352. * src/BtPieceMessage.cc
  9353. * src/DefaultBtProgressInfoFile.cc
  9354. * src/DefaultPieceStorage.cc
  9355. * src/DownloadCommand.cc
  9356. * src/DownloadCommand.h
  9357. * src/DownloadEngine.cc
  9358. * src/GrowSegment.cc
  9359. * src/GrowSegment.h
  9360. * src/Piece.cc
  9361. * src/Piece.h
  9362. * src/PiecedSegment.cc
  9363. * src/PiecedSegment.h
  9364. * src/Segment.h
  9365. * test/PieceTest.cc
  9366. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Try to keep the ordering of outgoing piece message.
  9368. * src/DefaultBtMessageDispatcher.cc
  9369. (DefaultBtMessageDispatcher::sendMessages)
  9370. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Fixed busy loop when error/hup epoll events occur.
  9372. * src/AbstractCommand.cc
  9373. * src/PeerAbstractCommand.cc
  9374. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Added --bt-request-peer-speed-limit option, which was a constant
  9376. SLOW_SPEED_THRESHOLD.
  9377. * src/ActivePeerConnectionCommand.cc
  9378. * src/ActivePeerConnectionCommand.h
  9379. * src/BtConstants.h
  9380. * src/HelpItemFactory.cc
  9381. * src/OptionHandlerFactory.cc
  9382. * src/PeerReceiveHandshakeCommand.cc
  9383. * src/option_processing.cc
  9384. * src/prefs.cc
  9385. * src/prefs.h
  9386. * src/usage_text.h
  9387. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Removed repeated call of getTopDirPath(). Instead, call it once and
  9389. cache the result.
  9390. * src/MultiDiskAdaptor.cc
  9391. * src/MultiDiskAdaptor.h
  9392. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9393. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Fixed compile error on debian etch.
  9395. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9396. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9397. it is undefined.
  9398. * src/Util.cc (ULLONG_MAX)
  9399. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Added epoll support. Use epoll if it is available. If not, use select.
  9401. When async dns is enabled in compile time, epoll support is enabled
  9402. only when aria2 is built with c-ares. This condition statement is
  9403. defined in a2io.h.
  9404. Currently aria2 supports both c-ares and ares, but ares is maintained
  9405. for quite a while and debian already has c-ares package, ares support
  9406. will be dropped in the future version.
  9407. * configure.ac
  9408. * src/AbstractCommand.cc
  9409. * src/AsyncNameResolver.cc
  9410. * src/AsyncNameResolver.h
  9411. * src/Command.cc
  9412. * src/Command.h
  9413. * src/DownloadEngine.cc
  9414. * src/DownloadEngine.h
  9415. * src/PeerAbstractCommand.cc
  9416. * src/SocketCore.cc
  9417. * src/SocketCore.h
  9418. * src/a2io.h
  9419. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9421. directive.
  9422. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Do not do write operation to /dev/null file.
  9424. * src/LogFactory.cc
  9425. * src/SimpleLogger.cc
  9426. Replaced vasprintf with vsnprintf
  9427. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9428. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. * src/BtRequestMessage.cc
  9430. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9431. for segmentation fault caused by previous commit.
  9432. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Reduced the usage of gettimeofday().
  9434. * src/DefaultBtMessageDispatcher.cc
  9435. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9436. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9437. * src/RequestSlot.cc
  9438. * src/RequestSlot.h
  9439. (RequestSlot::isTimeout)
  9440. Made RequestSlot have a reference to Piece object to avoid find
  9441. Piece repeatedly.
  9442. * src/DefaultBtMessageDispatcher.cc
  9443. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9444. * src/RequestSlot.cc
  9445. * src/RequestSlot.h
  9446. (RequestSlot::getPiece)
  9447. * test/DefaultBtMessageDispatcherTest.cc
  9448. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. * src/TimeA2.cc
  9450. * src/TimeA2.h
  9451. (Time::difference): New function.
  9452. (Time::elapsed): Done optimization.
  9453. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9455. directive.
  9456. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. * src/option_processing.cc: Added missing `defined' keyword to #if
  9458. directive.
  9459. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Bump up version number to 0.13.2+1
  9461. * src/configure.ac
  9462. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Refactored broken outstanding piece handling.
  9464. * src/DefaultPieceStorage.cc
  9465. * src/DefaultPieceStorage.h
  9466. * src/Piece.cc
  9467. * src/Piece.h
  9468. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9470. name collision of static variable and predefined macro.
  9471. * src/BtContext.cc
  9472. * src/BtContext.h
  9473. * src/CookieBoxFactory.cc
  9474. * src/CookieBoxFactory.h
  9475. * src/CookieParser.cc
  9476. * src/CookieParser.h
  9477. * src/DefaultBtContext.cc
  9478. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. * src/RequestGroup.cc
  9480. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9481. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. * Release 0.13.2
  9483. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9485. * po/fr.po
  9486. * po/ja.po
  9487. * po/aria2c.pot
  9488. * po/*.po
  9489. * po/*.gmo
  9490. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Bump up version number to 0.13.2
  9492. * src/configure.ac
  9493. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Refactord.
  9495. * src/RequestGroupMan.cc
  9496. (removeStoppedGroup)
  9497. (fillRequestGroupFromReserver)
  9498. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Fixed compile error on Ubuntu.
  9500. * src/BtPieceMessage.cc
  9501. * src/MessageDigestHelper.cc
  9502. * src/Util.cc
  9503. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Fixed compile error when configured with --disable-bittorrent
  9505. * test/DownloadHandlerFactoryTest.cc
  9506. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Done make update-po
  9508. * po/aria2c.pot
  9509. * po/*.po
  9510. * po/*.gmo
  9511. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Bump up version number to 0.13.2rc.
  9513. * src/configure.ac
  9514. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Made option name bold. Updated SYNOPSIS to make it more readable.
  9516. * doc/aria2c.1.txt
  9517. * doc/aria2c.1
  9518. * doc/aria2c.1.html
  9519. * src/version_usage.cc
  9520. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. Refactored. Use std::string instead of size and char*.
  9522. * Data.cc
  9523. * Data.h
  9524. * test/Data.cc
  9525. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Added trimSelf(). Rewritten trim() to use trimSelf().
  9527. * Util.cc
  9528. * Util.h
  9529. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9531. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Fixed compile error when configured with --disable-metalink.
  9533. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9534. * test/FeatureConfigTest.cc
  9535. * test/DownloadHandlerFactoryTest.cc
  9536. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Fixed compile error when configured with --without-gnutls
  9538. --without-openssl
  9539. * src/main.cc
  9540. * test/DefaultBtProgressInfoFileTest.cc
  9541. * test/SegmentManTest.cc
  9542. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Fixed compile error with OpenSSL.
  9544. * src/IteratableChunkChecksumValidator.cc
  9545. * src/LibsslDHKeyExchange.h
  9546. * src/MessageDigestHelper.cc
  9547. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Revert the default value of --max-concurrent-downloads to 5.
  9549. Revert the default value of --metalink-servers to 5.
  9550. Man pages was also updated.
  9551. * src/option_processing.cc
  9552. * doc/aria2c.1.txt
  9553. * doc/aria2c.1.html
  9554. * doc/aria2c.1
  9555. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Returns const reference:
  9557. DownloadContext::getPieceHash, DownloadContext::getName,
  9558. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9559. BtContext::getInfoHashAsString,
  9560. * src/BtContext.h
  9561. * src/DefaultBtContext.cc
  9562. * src/DefaultBtContext.h
  9563. * src/DownloadContext.h
  9564. * src/SingleFileDownloadContext.h
  9565. * test/MockBtContext.h
  9566. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. * src/RequestGroup.h (getDir): Removed.
  9568. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Returns const reference. The internal urlencode function was optimized
  9570. a little bit.
  9571. * src/Request.cc
  9572. * src/Request.h
  9573. * src/HttpRequest.cc
  9574. * src/HttpRequest.h
  9575. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Defined option name and possible values as std::string to reduce
  9577. temporary string object creation in runtime.
  9578. * src/HelpItemFactory.cc
  9579. * src/LogFactory.cc
  9580. * src/Option.cc
  9581. * src/OptionHandlerFactory.cc
  9582. * src/option_processing.cc
  9583. * src/prefs.cc
  9584. * src/prefs.h
  9585. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Return const reference.
  9587. * src/DownloadHandlerConstants.cc
  9588. * src/DownloadHandlerConstants.h
  9589. (getMetalinkExtensions)
  9590. (getMetalinkContentTypes)
  9591. (getBtExtensions)
  9592. (getBtContentTypes)
  9593. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. * src/HttpHeader.cc (get): Rewritten.
  9595. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Make HttpHeader::getFirst(...) return const reference.
  9597. * src/HttpHeader.cc
  9598. * src/HttpHeader.h
  9599. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9601. it with V_TRUE.
  9602. * src/DefaultPieceStorage.cc
  9603. * src/DownloadCommand.cc
  9604. * src/FtpNegotiationCommand.cc
  9605. * src/HttpRequest.cc
  9606. * src/InitiateConnectionCommand.cc
  9607. * src/RequestGroup.cc
  9608. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Made Option::get(...) return const reference of std::string.
  9610. * src/Option.cc
  9611. * src/Option.h
  9612. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Replaced std:copy with insert.
  9614. * src/DefaultBtMessageDispatcher.cc
  9615. * src/DefaultPieceStorage.cc
  9616. * src/DownloadEngineFactory.cc
  9617. * src/RequestGroup.cc
  9618. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Included SocketCore.h to fix compiler warning.
  9620. * src/InitiateConnectionCommand.cc
  9621. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Put piece selection strategy algorithm to RarestPieceSelector class,
  9623. Added a switch to choose whether randomized selection so that unit
  9624. tests emit same results in, possibly, win32.
  9625. * src/DefaultPieceStorage.cc
  9626. * src/DefaultPieceStorage.h
  9627. * src/RarestPieceSelector.cc
  9628. * src/RarestPieceSelector.h
  9629. * test/DefaultPieceStorageTest.cc
  9630. * test/RarestPieceSelectorTest.cc
  9631. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Don't pool connection if HTTP proxy is enabled.
  9633. * src/FtpFinishDownloadCommand.cc
  9634. * src/FtpNegotiationCommand.cc
  9635. * src/HttpSkipResponseCommand.cc
  9636. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9638. * src/AbstractCommand.cc
  9639. * src/AbstractCommand.h
  9640. * src/ActivePeerConnectionCommand.cc
  9641. * src/FtpInitiateConnectionCommand.cc
  9642. * src/HttpInitiateConnectionCommand.cc
  9643. * src/InitiateConnectionCommandFactory.cc
  9644. * src/PeerAbstractCommand.cc
  9645. * src/PeerAbstractCommand.h
  9646. * src/PeerInitiateConnectionCommand.cc
  9647. * src/TrackerWatcherCommand.cc
  9648. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Sort RequestSlot in ascending order and manipulate them using
  9650. lower_bound.
  9651. * src/DefaultBtMessageDispatcher.cc
  9652. * src/DefaultBtMessageDispatcher.h
  9653. (getMessageQueue): Added const qualifier.
  9654. (getRequestSlots): Added const qualifier.
  9655. (sendMessages): Use empty() instead of size().
  9656. (doCancelSendingPieceAction): Use HandleEvent object.
  9657. (doAbortOutstandingRequestAction): Rewritten.
  9658. (doChokedAction): Rewritten.
  9659. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9660. (isOutstandingRequest): Rewritten.
  9661. (getOutstandingRequest): Rewritten.
  9662. (removeOutstandingRequest): Rewritten.
  9663. (addOutstandingRequest): Rewritten.
  9664. * src/RequestSlot.cc
  9665. * src/RequestSlot.h
  9666. (operator=): Rewritten.
  9667. (operator!=): New function.
  9668. (operator<): New function.
  9669. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. * src/DefaultBtRequestFactory.cc
  9671. (doChokedAction): Rewritten.
  9672. (removeCompletedPiece): Rewritten.
  9673. (removeTargetPiece): Rewritten.
  9674. (createRequestMessages): Added the debug log.
  9675. (createRequestMessagesOnEndGame: Added the debug log.
  9676. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. Added the debug log message.
  9678. * src/BtPieceMessage.cc (doReceivedAction)
  9679. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9681. used lower_bound to process them rather than linear search.
  9682. * src/DHTPeerAnnounceStorage.cc
  9683. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9685. peer has at least one completed piece.
  9686. * src/Peer.cc
  9687. * src/Peer.h
  9688. * src/PeerInteractionCommand.cc
  9689. * src/PeerSessionResource.cc
  9690. * src/PeerSessionResource.h
  9691. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Removed unnecessary sorting
  9693. * src/DefaultPieceStorage (DefaultPieceStorage)
  9694. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Rewritten the portion of the code that mangaes allowed fast indexes.
  9696. * src/PeerSessionResource.cc
  9697. * src/PeerSessionResource.h
  9698. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Removed the invalid string including '\r' from ru.po and
  9700. did make update-po.
  9701. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Added --log-level and --summary-interval to man page.
  9703. * doc/aria2c.1.txt
  9704. * doc/aria2c.1.html
  9705. * doc/aria2c.1
  9706. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Added --log-level option to specify log level. Log messages under
  9708. the specified level are not output. Default value is `debug'.
  9709. * src/HelpItemFactory.cc
  9710. * src/LogFactory.cc
  9711. * src/LogFactory.h
  9712. * src/Logger.h
  9713. * src/OptionHandlerFactory.cc
  9714. * src/SimpleLogger.cc
  9715. * src/SimpleLogger.h
  9716. * src/main.cc
  9717. * src/option_processing.cc
  9718. * src/prefs.h
  9719. * src/usage_text.h
  9720. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Print download progress summary of all parallel downloads in specified
  9722. interval, default 60 secs. While aria2 could download several files
  9723. in parallel (see -j option), it displayed just first download progress,
  9724. and the other downloads are hidden from the users. This new feature
  9725. prints all downloads currently in-progress to the console so that you
  9726. can check the status of all downloads. The interval can be adjusted
  9727. by --summary-interval option.
  9728. The progress readout is now cut so that all fits in the one line of
  9729. console.
  9730. * src/ConsoleStatCalc.cc
  9731. * src/ConsoleStatCalc.h
  9732. * src/HelpItemFactory.cc
  9733. * src/OptionHandlerFactory.cc
  9734. * src/RequestGroupMan.cc
  9735. * src/RequestGroupMan.h
  9736. * src/main.cc
  9737. * src/option_processing.cc
  9738. * src/prefs.h
  9739. * src/usage_text.h
  9740. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9742. * src/DownloadEngine.cc (DownloadEngine)
  9743. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9745. defined.
  9746. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9747. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Use erase+lower_bound+insert instead of sort.
  9749. * src/DefaultPieceStorage.cc (addPieceStats)
  9750. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9752. * src/A2STR.cc
  9753. * src/A2STR.h
  9754. * src/OptionParser.cc (parse)
  9755. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Defined fake filename `[tracker.announce]' as static const std::string.
  9757. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9758. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Defined default filename `index.html' as static const std::string
  9760. * src/SingleFileDownloadContext.cc
  9761. * src/SingleFileDownloadContext.h
  9762. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Defined "[MEMORY]" as static const std::string.
  9764. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9765. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Defined control file's version number as static const std::string.
  9767. * src/DefaultBtProgressInfoFile.cc
  9768. * src/DefaultBtProgressInfoFile.h
  9769. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Use Request::METHOD_GET
  9771. * src/RequestGroup.cc (createNextCommandWithAdj)
  9772. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Defined "OK", "ERR", "INPR" as static const std::string
  9774. * src/RequestGroupMan.cc (showDownloadResults)
  9775. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Defined default client used in extended handshake as static const
  9777. std::string
  9778. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9779. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9780. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9781. * src/HttpConnection.cc (eraseConfidentialInfo)
  9782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Defined default ftp user and password as static const std::string
  9784. * src/AuthConfigFactory.cc
  9785. * src/AuthConfigFactory.h
  9786. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Defined strings used in netrc as static const std::string
  9788. * src/Netrc.cc
  9789. * src/Netrc.h
  9790. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Defined HTTP status as static const std::string
  9792. * src/AbstractProxyResponseCommand.cc
  9793. * src/HttpHeader.cc
  9794. * src/HttpHeader.h
  9795. * src/HttpResponse.cc
  9796. * src/HttpResponseCommand.cc
  9797. * src/HttpSkipResponseCommand.cc
  9798. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Defined "\r\n", "A", "I" as static const std::string
  9800. * src/A2STR.cc
  9801. * src/A2STR.h
  9802. * src/FtpConnection.cc
  9803. * src/FtpConnection.h
  9804. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Added COLON_C(".") and used it in Request::parseUrl()
  9806. * src/A2STR.cc
  9807. * src/A2STR.h
  9808. * src/Request.cc (parseUrl)
  9809. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Changed the type of padName from `const std::string&' to `const char*'.
  9811. * src/MSEHandshake.cc (verifyPadLength)
  9812. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Defined "sha1" as static const std::string.
  9814. * src/MetalinkParserController.cc
  9815. * src/MetalinkParserController.h
  9816. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Defined message digest algorithm name as static const std::string
  9818. * src/DHTTokenTracker.cc
  9819. * src/DHTUtil.cc
  9820. * src/DefaultBtContext.cc
  9821. * src/MSEHandshake.cc
  9822. * src/MessageDigestHelper.cc
  9823. * src/Peer.cc
  9824. * src/messageDigest.cc
  9825. * src/messageDigest.h
  9826. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Made string literals used in SAX parser static const std::string.
  9828. * src/FileMetalinkParserState.cc
  9829. * src/FileMetalinkParserState.h
  9830. * src/FilesMetalinkParserState.cc
  9831. * src/FilesMetalinkParserState.h
  9832. * src/InitialMetalinkParserState.cc
  9833. * src/InitialMetalinkParserState.h
  9834. * src/MetalinkMetalinkParserState.cc
  9835. * src/MetalinkMetalinkParserState.h
  9836. * src/PiecesMetalinkParserState.cc
  9837. * src/PiecesMetalinkParserState.h
  9838. * src/ResourcesMetalinkParserState.cc
  9839. * src/ResourcesMetalinkParserState.h
  9840. * src/VerificationMetalinkParserState.cc
  9841. * src/VerificationMetalinkParserState.h
  9842. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9844. * src/A2STR.cc
  9845. * src/A2STR.h
  9846. * src/File.cc
  9847. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Defined static const std::string IP("ip"), PORT("port") and use them
  9849. instead of string literals.
  9850. * src/DefaultPeerListProcessor.cc
  9851. * src/DefaultPeerListProcessor.h
  9852. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Made string literals for torrent file processing static const
  9854. std::string.
  9855. * src/BtContext.cc
  9856. * src/BtContext.h
  9857. * src/DefaultBtContext.cc
  9858. * src/DefaultBtContext.h
  9859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Made string literal for tracker response static const std::string
  9861. * src/BtAnnounce.cc
  9862. * src/BtAnnounce.h
  9863. * src/DefaultBtAnnounce.cc
  9864. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Use DHTMessage::T instead of "t".
  9866. * src/DHTMessageTracker.cc (messageArrived)
  9867. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Made keyName static const. Made trimmed charset static const
  9869. std::string.
  9870. * src/Util.cc (getContentDispositionFilename)
  9871. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Made USER_AGENT const. Made "/" static const std::string.
  9873. * src/A2STR.cc
  9874. * src/A2STR.h
  9875. * src/HttpRequest.cc
  9876. * src/HttpRequest.h
  9877. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Made string listeral to static const std::string:
  9879. "Content-Range", "Content-Length"
  9880. * src/HttpHeader.cc
  9881. * src/HttpHeader.h
  9882. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Made string listeral to static const std::string.
  9884. * src/HttpConnection.cc
  9885. * src/HttpHeader.cc
  9886. * src/HttpHeader.h
  9887. * src/HttpResponse.cc
  9888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Made string listeral to static const std::string.
  9890. * src/A2STR.cc
  9891. * src/A2STR.h
  9892. * src/SimpleLogger.cc
  9893. * src/SimpleLogger.h
  9894. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Made string literal to static const std::string.
  9896. Rewritten CookieParser::setField.
  9897. * src/A2STR.cc
  9898. * src/A2STR.h
  9899. * src/CookieBoxFactory.cc
  9900. * src/CookieBoxFactory.h
  9901. * src/CookieParser.cc
  9902. * src/CookieParser.h
  9903. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Made string literal to static const std::string
  9905. * src/DHTAbstractMessage.cc
  9906. * src/DHTAnnouncePeerMessage.cc
  9907. * src/DHTAnnouncePeerMessage.h
  9908. * src/DHTAnnouncePeerReplyMessage.cc
  9909. * src/DHTAnnouncePeerReplyMessage.h
  9910. * src/DHTFindNodeMessage.cc
  9911. * src/DHTFindNodeMessage.h
  9912. * src/DHTFindNodeReplyMessage.cc
  9913. * src/DHTFindNodeReplyMessage.h
  9914. * src/DHTGetPeersMessage.cc
  9915. * src/DHTGetPeersMessage.h
  9916. * src/DHTGetPeersReplyMessage.cc
  9917. * src/DHTGetPeersReplyMessage.h
  9918. * src/DHTMessage.cc
  9919. * src/DHTMessage.h
  9920. * src/DHTMessageFactoryImpl.cc
  9921. * src/DHTMessageReceiver.cc
  9922. * src/DHTPingMessage.cc
  9923. * src/DHTPingMessage.h
  9924. * src/DHTPingReplyMessage.cc
  9925. * src/DHTPingReplyMessage.h
  9926. * src/DHTQueryMessage.cc
  9927. * src/DHTQueryMessage.h
  9928. * src/DHTResponseMessage.cc
  9929. * src/DHTResponseMessage.h
  9930. * src/DHTUnknownMessage.cc
  9931. * src/DHTUnknownMessage.h
  9932. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Made string literal to static const std::string
  9934. * src/BtChokeMessage.cc (toString)
  9935. * src/BtHaveAllMessage.cc (toString)
  9936. * src/BtHaveNoneMessage.cc (toString)
  9937. * src/BtInterestedMessage.cc (toString)
  9938. * src/BtNotInterestedMessage.cc (toString)
  9939. * src/BtUnchokeMessage.cc (toString)
  9940. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Replaced "" with static const variable A2STR::NIL.
  9942. Replaced string comparison against "" with std::string::empty().
  9943. Added PROTO_* to Request class and use them as a protocol string
  9944. constant.
  9945. Made "started", "stopped", "completed" static const variable in
  9946. AnnounceList class.
  9947. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Updated translations. Great thanks to translators.
  9949. * po/ca.po
  9950. * po/de.po
  9951. * po/fr.po
  9952. * po/it.po
  9953. * po/ja.po
  9954. * po/ru.po
  9955. * po/zh_CN.po
  9956. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Updated man page; categorized options and fixed typo.
  9958. * doc/aria2c.1.txt
  9959. * doc/aria2c.1.html
  9960. * doc/aria2c.1
  9961. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Removed const ref
  9963. * src/MetalinkEntry.cc (AddProtocolPreference)
  9964. * src/RequestGroup.cc (FindServerHostByHostname)
  9965. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9966. Rewritten Accept-Features handling.
  9967. * src/HttpRequestCommand.cc (createHttpRequest)
  9968. * src/a2functional.h
  9969. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Changed method signature:
  9971. DHTAbstractNodeLookupTask::toEntries
  9972. * src/DHTAbstractNodeLookupTask.cc
  9973. * src/DHTAbstractNodeLookupTask.h
  9974. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. Changed method signature:
  9976. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9977. * src/BtContext.h
  9978. * src/DefaultBtContext.cc
  9979. * src/DefaultBtContext.h
  9980. * src/DefaultBtInteractive.cc
  9981. * test/DefaultBtContextTest.cc
  9982. * test/MockBtContext.h
  9983. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Changed method signature:
  9985. MultiFileAllocationIterator::makeDiskWriterEntries
  9986. * src/MultiFileAllocationIterator.cc
  9987. * src/MultiFileAllocationIterator.h
  9988. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Changed method sinature:
  9990. MetalinkEntry::toFileEntry,
  9991. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9992. Metalinker::queryEntry
  9993. * src/Metalink2RequestGroup.cc
  9994. * src/MetalinkEntry.cc
  9995. * src/MetalinkEntry.h
  9996. * src/MetalinkHelper.cc
  9997. * src/MetalinkHelper.h
  9998. * src/Metalinker.cc
  9999. * src/Metalinker.h
  10000. * src/main.cc
  10001. * test/MetalinkHelperTest.cc
  10002. * test/MetalinkerTest.cc
  10003. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Changed method sinature:
  10005. RequestGroup::getURIs
  10006. * src/RequestGroup.cc
  10007. * src/RequestGroup.h
  10008. * test/Metalink2RequestGroupTest.cc
  10009. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Changed method signature:
  10011. PeerListProcessor::extractPeer
  10012. * src/CompactPeerListProcessor.cc
  10013. * src/CompactPeerListProcessor.h
  10014. * src/DefaultBtAnnounce.cc
  10015. * src/DefaultPeerListProcessor.cc
  10016. * src/DefaultPeerListProcessor.h
  10017. * src/DelegatingPeerListProcessor.cc
  10018. * src/DelegatingPeerListProcessor.h
  10019. * src/PeerListProcessor.h
  10020. * src/UTPexExtensionMessage.cc
  10021. * test/DefaultPeerListProcessorTest.cc
  10022. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Changed method signature:
  10024. BtRequestFactory::createRequestMessages,
  10025. BtRequestFactory::createRequestMessagesOnEndGame
  10026. * src/BtRequestFactory.h
  10027. * src/DefaultBtInteractive.cc
  10028. * src/DefaultBtRequestFactory.cc
  10029. * src/DefaultBtRequestFactory.h
  10030. * test/DefaultBtRequestFactoryTest.cc
  10031. * test/MockBtRequestFactory.h
  10032. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Changed method signature:
  10034. PieceStorage::getInFlightPieces
  10035. * src/DefaultBtProgressInfoFile.cc
  10036. * src/DefaultPieceStorage.cc
  10037. * src/DefaultPieceStorage.h
  10038. * src/PieceStorage.h
  10039. * src/UnknownLengthPieceStorage.cc
  10040. * src/UnknownLengthPieceStorage.h
  10041. * test/DefaultBtProgressInfoFileTest.cc
  10042. * test/MockPieceStorage.h
  10043. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Changed method signature:
  10045. PostDownloadHandler::getNextRequestGroups
  10046. Metalink2RequestGroup::generate
  10047. RequestGroup::postDownloadProcessing
  10048. * src/BtPostDownloadHandler.cc
  10049. * src/BtPostDownloadHandler.h
  10050. * src/Metalink2RequestGroup.cc
  10051. * src/Metalink2RequestGroup.h
  10052. * src/MetalinkPostDownloadHandler.cc
  10053. * src/MetalinkPostDownloadHandler.h
  10054. * src/PostDownloadHandler.h
  10055. * src/RequestGroup.cc
  10056. * src/RequestGroup.h
  10057. * src/RequestGroupMan.cc
  10058. * src/main.cc
  10059. * test/BtPostDownloadHandlerTest.cc
  10060. * test/Metalink2RequestGroupTest.cc
  10061. * test/MetalinkPostDownloadHandlerTest.cc
  10062. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Rewritten AccRequestGroup
  10064. * src/main.cc
  10065. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10066. Rewritten.
  10067. * src/TaggedItem.cc (toTagString)
  10068. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Rewritten Accept-Features handling.
  10070. * src/HttpRequestCommand.cc (createHttpRequest)
  10071. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Rewritten accept types handling.
  10073. * HttpRequest.cc (createRequest)
  10074. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. Rewritten
  10076. * src/FeatureConfig.cc (featureSummary)
  10077. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Changed method signature:
  10079. PeerStorage::getActivePeers
  10080. * src/DHTPeerAnnounceEntry.cc
  10081. * src/DefaultPeerStorage.cc
  10082. * src/DefaultPeerStorage.h
  10083. * src/PeerStorage.h
  10084. * test/DefaultPeerStorageTest.cc
  10085. * test/MockPeerStorage.h
  10086. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Changed method signature:
  10088. DHTPeerAnnounceStorage::getPeers,
  10089. DHTPeerAnnounceEntry::getPeers
  10090. * src/DHTGetPeersMessage.cc
  10091. * src/DHTPeerAnnounceEntry.cc
  10092. * src/DHTPeerAnnounceEntry.h
  10093. * src/DHTPeerAnnounceStorage.cc
  10094. * src/DHTPeerAnnounceStorage.h
  10095. * test/DHTAnnouncePeerMessageTest.cc
  10096. * test/DHTPeerAnnounceEntryTest.cc
  10097. * test/DHTPeerAnnounceStorageTest.cc
  10098. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Changed method signature:
  10100. NameResolver::resolve
  10101. * src/DHTEntryPointNameResolveCommand.cc
  10102. * src/InitiateConnectionCommand.cc
  10103. * src/NameResolver.cc
  10104. * src/NameResolver.h
  10105. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Changed method signature:
  10107. PieceStorage::getAdvertisedPieceIndexes
  10108. * src/DefaultBtInteractive.cc
  10109. * src/DefaultPieceStorage.cc
  10110. * src/DefaultPieceStorage.h
  10111. * src/PieceStorage.h
  10112. * src/UnknownLengthPieceStorage.h
  10113. * test/MockPieceStorage.h
  10114. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10115. Changed method signature:
  10116. SegmentMan::getInFlightSegment
  10117. * src/AbstractCommand.cc
  10118. * src/SegmentMan.cc
  10119. * src/SegmentMan.h
  10120. * test/SegmentManTest.cc
  10121. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Changed method signature:
  10123. DHTAbstractNodeLookupTask::getNodesFromMessage
  10124. * src/DHTAbstractNodeLookupTask.cc
  10125. * src/DHTAbstractNodeLookupTask.h
  10126. * src/DHTNodeLookupTask.cc
  10127. * src/DHTNodeLookupTask.h
  10128. * src/DHTPeerLookupTask.cc
  10129. * src/DHTPeerLookupTask.h
  10130. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10132. * src/AbstractCommand.cc
  10133. * src/BtCheckIntegrityEntry.cc
  10134. * src/BtCheckIntegrityEntry.h
  10135. * src/BtFileAllocationEntry.cc
  10136. * src/BtFileAllocationEntry.h
  10137. * src/BtSetup.cc
  10138. * src/BtSetup.h
  10139. * src/CheckIntegrityCommand.cc
  10140. * src/CheckIntegrityEntry.h
  10141. * src/ChecksumCheckIntegrityEntry.cc
  10142. * src/ChecksumCheckIntegrityEntry.h
  10143. * src/DHTSetup.cc
  10144. * src/DHTSetup.h
  10145. * src/DownloadEngine.cc
  10146. * src/FileAllocationCommand.cc
  10147. * src/FileAllocationEntry.h
  10148. * src/RequestGroup.cc
  10149. * src/RequestGroup.h
  10150. * src/RequestGroupMan.cc
  10151. * src/RequestGroupMan.h
  10152. * src/StreamCheckIntegrityEntry.cc
  10153. * src/StreamCheckIntegrityEntry.h
  10154. * src/StreamFileAllocationEntry.cc
  10155. * src/StreamFileAllocationEntry.h
  10156. * src/TrackerWatcherCommand.cc
  10157. * src/a2functional.h
  10158. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. Changed method signature:
  10160. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10161. DHTBucket::getGoodNodes,
  10162. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10163. * src/BNode.cc
  10164. * src/BNode.h
  10165. * src/DHTAbstractNodeLookupTask.cc
  10166. * src/DHTAutoSaveCommand.cc
  10167. * src/DHTBucket.cc
  10168. * src/DHTBucket.h
  10169. * src/DHTBucketRefreshTask.cc
  10170. * src/DHTFindNodeMessage.cc
  10171. * src/DHTGetPeersMessage.cc
  10172. * src/DHTRoutingTable.cc
  10173. * src/DHTRoutingTable.h
  10174. * test/BNodeTest.cc
  10175. * test/DHTBucketTest.cc
  10176. * test/DHTRoutingTableTest.cc
  10177. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. In piece selection functions, Pass std::deque<...> by reference rather
  10179. than returning it.
  10180. * src/BitfieldMan.cc
  10181. * src/BitfieldMan.h
  10182. * src/DefaultBtRequestFactory.cc
  10183. * src/DefaultPieceStorage.cc
  10184. * src/Piece.cc
  10185. * src/Piece.h
  10186. * test/BitfieldManTest.cc
  10187. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Implemented rarest piece first piece selection strategy.
  10189. * src/AbstractBtMessage.cc
  10190. * src/AbstractBtMessage.h
  10191. * src/BitfieldMan.cc
  10192. * src/BitfieldMan.h
  10193. * src/BtBitfieldMessage.cc
  10194. * src/BtHaveAllMessage.cc
  10195. * src/BtHaveMessage.cc
  10196. * src/DefaultPieceStorage.cc
  10197. * src/DefaultPieceStorage.h
  10198. * src/PeerInteractionCommand.cc
  10199. * src/PieceStorage.h
  10200. * src/UnknownLengthPieceStorage.h
  10201. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Rewritten readData and writeData.
  10203. * src/MultiDiskAdaptor.cc
  10204. * src/MultiDiskAdaptor.h
  10205. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Move \n out of the message "Usage: ...".
  10207. * src/version_usage.cc
  10208. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Bump up version number to 0.13.2b.
  10210. * configure.ac
  10211. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. Added const qualifier to argument Exception& e.
  10213. * src/Logger.h
  10214. * src/SimpleLogger.cc
  10215. * src/SimpleLogger.h
  10216. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Pool connection when CWD, SIZE command fails.
  10218. * src/FtpNegotiationCommand.cc
  10219. * src/FtpNegotiationCommand.h
  10220. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10222. * src/HttpResponseCommand.cc
  10223. * src/HttpSkipResponseCommand.cc
  10224. * src/HttpSkipResponseCommand.h
  10225. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Pool connection when a server returns 4xx, 5xx responses.
  10227. * src/HttpNullDownloadCommand.cc
  10228. * src/HttpNullDownloadCommand.h
  10229. * src/HttpResponse.cc
  10230. * src/HttpResponse.h
  10231. * src/HttpResponseCommand.cc
  10232. * src/HttpResponseCommand.h
  10233. * test/HttpResponseTest.cc
  10234. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Print usage when no URL is specifed or bad command-line option is
  10236. specified.
  10237. * src/HelpItemFactory.cc
  10238. * src/help_tags.h
  10239. * src/option_processing.cc
  10240. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. Removed duplicate log message.
  10242. * src/AbstractCommand.cc (asyncResolveHostname)
  10243. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10244. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10245. Changed -j option's default value from 5 to 1.
  10246. Added new examples using protocol auto detection feature.
  10247. Removed -T, -M usage where it can be omitted.
  10248. * doc/aria2c.1.txt
  10249. * doc/aria2c.1.html
  10250. * doc/aria2c.1.txt
  10251. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Updated command-line usage text, so that it tells users that they
  10253. can specify any number of torrent files and metalink files in
  10254. command-line.
  10255. * src/version_usage.cc
  10256. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Changed the default value of -j option to 1.
  10258. * src/HelpItemFactory.cc
  10259. * src/option_processing.cc
  10260. * src/usage_text.h
  10261. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Added the ability to reuse connection in FTP and it is enabled by
  10263. default. It can be disabled by --ftp-reuse-connection=false option.
  10264. * src/Command.cc
  10265. * src/DownloadCommand.cc
  10266. * src/FtpDownloadCommand.cc
  10267. * src/FtpDownloadCommand.h
  10268. * src/FtpFinishDownloadCommand.cc
  10269. * src/FtpFinishDownloadCommand.h
  10270. * src/FtpInitiateConnectionCommand.cc
  10271. * src/FtpNegotiationCommand.cc
  10272. * src/FtpNegotiationCommand.h
  10273. * src/HelpItemFactory.cc
  10274. * src/Makefile.am
  10275. * src/Makefile.in
  10276. * src/OptionHandlerFactory.cc
  10277. * src/option_processing.cc
  10278. * src/prefs.h
  10279. * src/usage_text.h
  10280. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Call Command::transitStatus() before calling Command::execute(),
  10282. so that the status change made in execute() is not cleared.
  10283. * src/DownloadEngine.cc
  10284. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Removed forward declaration of SocketCore class.
  10286. * src/HttpDownloadCommand.h
  10287. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10289. in InitiateConnectionCommandFactory. They should be set only when
  10290. the protocol is HTTP or HTTPS.
  10291. * src/InitiateConnectionCommandFactory.cc
  10292. * src/RequestGroup.cc
  10293. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Fixed infinite loop in checksum checking.
  10295. * src/IteratableChecksumValidator.cc
  10296. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Set _supportsPersistentConnection to true by default.
  10298. * src/Request.cc
  10299. * src/RequestGroup.cc
  10300. * test/HttpRequestTest.cc
  10301. * test/RequestTest.cc
  10302. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Added timeout to socket pool. The default timeout is 15 seconds,
  10304. which is the same value Apache uses.
  10305. * src/DownloadEngine.cc
  10306. * src/DownloadEngine.h
  10307. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Fixed misuse of multimap::find()
  10309. * src/HttpHeader.cc
  10310. * test/HttpHeaderTest.cc
  10311. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10313. option.
  10314. The asynchronous DNS is not capable of IPv6 yet.
  10315. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10316. least for HTTP download.
  10317. * src/AbstractCommand.cc
  10318. * src/AbstractCommand.h
  10319. * src/AsyncNameResolver.cc
  10320. * src/AsyncNameResolver.h
  10321. * src/DHTEntryPointNameResolveCommand.cc
  10322. * src/DHTEntryPointNameResolveCommand.h
  10323. * src/DownloadEngine.cc
  10324. * src/DownloadEngine.h
  10325. * src/FtpInitiateConnectionCommand.cc
  10326. * src/FtpInitiateConnectionCommand.h
  10327. * src/HelpItemFactory.cc
  10328. * src/HttpInitiateConnectionCommand.cc
  10329. * src/HttpInitiateConnectionCommand.h
  10330. * src/InitiateConnectionCommand.cc
  10331. * src/InitiateConnectionCommand.h
  10332. * src/Makefile.am
  10333. * src/Makefile.in
  10334. * src/NameResolver.cc
  10335. * src/NameResolver.h
  10336. * src/OptionHandlerFactory.cc
  10337. * src/SocketCore.cc
  10338. * src/SocketCore.h
  10339. * src/Util.cc
  10340. * src/Util.h
  10341. * src/option_processing.cc
  10342. * src/prefs.h
  10343. * src/usage_text.h
  10344. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Updated man page: --quiet, --header were added.
  10346. --metalink-servers and --enable-http-keep-alive option were updated.
  10347. * doc/aria2c.1
  10348. * doc/aria2c.1.html
  10349. * doc/aria2c.1.txt
  10350. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Enable HTTP keep-alive by default.
  10352. * src/HelpItemFactory.cc
  10353. * src/option_processing.cc
  10354. * src/usage_text.h
  10355. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. Disable http keep-alive if the remote server is not HTTP/1.1.
  10357. * src/HttpConnection.cc
  10358. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Receive content body of 302 response so that the connection can be
  10360. reused later when http keep-alive is enabled.
  10361. * src/HttpNullDownloadCommand.cc
  10362. * src/HttpNullDownloadCommand.h
  10363. * src/HttpResponseCommand.cc
  10364. * src/HttpResponseCommand.h
  10365. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. const SharedHandle<Request> -> const SharedHandle<Request>&
  10367. * src/FtpDowndloadCommand.cc
  10368. * src/FtpDowndloadCommand.h
  10369. * src/HttpDownloadCommand.cc
  10370. * src/HttpDownloadCommand.h
  10371. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Fixed the bug that the control file(.aria2 file) is not renamed
  10373. according to tryAutoFileRenaming().
  10374. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10375. its control file exist, use them and continue download.
  10376. The old implementation didn't take into account of control file's
  10377. existence, so basically you couldn't continue download of renamed file.
  10378. * src/BtProgressInfoFile.h
  10379. * src/DefaultBtProgressInfoFile.cc
  10380. * src/DefaultBtProgressInfoFile.h
  10381. * src/NullProgressInfoFile.h
  10382. * src/RequestGroup.cc
  10383. * test/DefaultBtProgressInfoFileTest.cc
  10384. * test/MockBtProgressInfoFile.h
  10385. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Change the default value of --metalink-servers option from `5' to `1'.
  10387. * src/HelpItemFactory.cc
  10388. * src/option_processing.cc
  10389. * src/usage_text.h
  10390. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. Reimplemented transparent metalink using Accept request header.
  10392. * src/HttpRequest.cc
  10393. * src/HttpRequest.h
  10394. * src/HttpRequestCommand.cc
  10395. * src/Metalink2RequestGroup.cc
  10396. * src/RequestGroup.cc
  10397. * src/RequestGroup.h
  10398. * test/HttpRequestTest.cc
  10399. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Bump up version number to 0.13.2a
  10401. * configure.ac
  10402. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Updated configure.ac using the result of autoscan.
  10404. * configure.ac
  10405. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Fixed compilation error without gcrypt/openssl.
  10407. * src/DownloadCommand.cc
  10408. * src/DownloadCommand.h
  10409. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Reorganized version information so that it can be displayed in a
  10411. standard terminal screen without scrolling.
  10412. Removed http, ftp from Configuration section, because they are always
  10413. enabled.
  10414. * src/FeatureConfig.cc
  10415. * src/FeatureConfig.h
  10416. * src/main.cc
  10417. * src/messageDigest.cc
  10418. * src/messageDigest.h
  10419. * src/version_usage.cc
  10420. * test/FeatureConfigTest.cc
  10421. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Masked user ID in log.
  10423. * src/FtpConnection.cc (sendUser)
  10424. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Removed query part from filename in HTTP download. The query part means
  10426. the substring after "?" in URL. Firefox seems do the same thing.
  10427. A query part is sometimes very long and not suitable to filename,
  10428. so I think it is better to remove it from filename.
  10429. * src/HttpRequest.cc
  10430. * src/HttpRequest.h
  10431. * src/Request.cc
  10432. * src/Request.h
  10433. * test/HttpRequestTest.cc
  10434. * test/RequestTest.cc
  10435. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Rewritten Exception class. Throw exception object, not its pointer and
  10437. catch by reference, so that remove problematic delete operator for
  10438. catched exception.
  10439. * src/Exception.cc
  10440. * src/Exception.h
  10441. * test/ExceptionTest.cc
  10442. * src/*: All files throwing/catching exception.
  10443. * test/*: All files throwing/catching exception.
  10444. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Now auto protocol detection is enabled without -Z option.
  10446. But there is a important difference between with/without -Z optoin.
  10447. For example, if you type:
  10448. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10449. then, aria2 interprets there are 3 request groups:
  10450. (1) http://host/file, http://mirror/file <-- multi-source download
  10451. (2) file1.torrent
  10452. (3) file2.metalink
  10453. On the other hand, if you invoke above command with -Z option, it is
  10454. interpreted as 4 request groups:
  10455. (1) http://host/file
  10456. (2) file1.torrent
  10457. (3) file2.metalink
  10458. (4) http://mirror/file
  10459. I think usually user don't mix multi-source URLs and torrent files, so
  10460. there is no big problem here.
  10461. * src/main.cc
  10462. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Fixed the bug that causes segmentaion fault when reading XML containing
  10464. unescapsed character like '&'.
  10465. Also a modification was made which avoids adding unnecessary
  10466. characters stack and appending unused string.
  10467. * src/ExpatMetalinkProcessor.cc
  10468. * src/FileMetalinkParserState.h
  10469. * src/FilesMetalinkParserState.h
  10470. * src/FinMetalinkParserState.h
  10471. * src/HashMetalinkParserState.h
  10472. * src/InitialMetalinkParserState.h
  10473. * src/LanguageMetalinkParserState.h
  10474. * src/MetalinkMetalinkParserState.h
  10475. * src/MetalinkParserState.h
  10476. * src/MetalinkParserStateMachine.cc
  10477. * src/MetalinkParserStateMachine.h
  10478. * src/OSMetalinkParserState.h
  10479. * src/PieceHashMetalinkParserState.h
  10480. * src/PiecesMetalinkParserState.h
  10481. * src/ResourcesMetalinkParserState.h
  10482. * src/SizeMetalinkParserState.h
  10483. * src/SkipTagMetalinkParserState.h
  10484. * src/URLMetalinkParserState.h
  10485. * src/VerificationMetalinkParserState.h
  10486. * src/VersionMetalinkParserState.h
  10487. * src/XML2SAXMetalinkProcessor.cc
  10488. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Added StringFormat class, which internally calls vasprintf.
  10490. operator<< is defined for this class, so it can be used with iostream
  10491. classes nicely. SimpleLogger and following functions are rewritten
  10492. using StringFormat class.
  10493. Besides, now Logger class's methods are non-const, many classes
  10494. that has a const Logger* as a member variable are modified to remove
  10495. const qualifier from the variable declaration.
  10496. * src/HelpItemFactory.cc
  10497. * src/Request.cc
  10498. * src/SimpleLogger.cc
  10499. * src/StringFormat.cc
  10500. * src/StringFormat.h
  10501. * src/Util.cc
  10502. * src/option_processing.cc
  10503. * src/version_usage.cc
  10504. * test/StringFormatTest.cc
  10505. * src/*.h: The classes that has const Logger* as a member variable.
  10506. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10508. failed. Also fixed memory link when exception is thrown there.
  10509. * src/main.cc (AccRequestGroup)
  10510. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Added build-in "Accept-Features" support. For now only "metalink" is
  10512. used in this header field.
  10513. This "metalink" value is removed from the list when connecting URLs
  10514. fed by metalink file to avoid loop in "transparent" metlaink.
  10515. * src/HttpRequest.cc
  10516. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10517. header is also held in this variable. Also renamed setUserHeaders as
  10518. addHeader and it was rewritten to add header not just to clear the old
  10519. value.
  10520. * src/HttpRequestCommand.cc
  10521. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10522. from "Accept-Features" list.
  10523. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10524. default.
  10525. * src/RequestGroup.h
  10526. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10527. * src/a2functional.h: Included <string> because Concat class depends on
  10528. it.
  10529. * test/HttpRequestTest.cc
  10530. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Added comment
  10532. * src/RequestGroup.cc (createNextCommand)
  10533. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Capitalized METHOD_GET and METHOD_HEAD
  10535. * src/Request.cc
  10536. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Added getDownloadResults() method
  10538. * src/RequestGroupMan.cc
  10539. * src/RequestGroupMan.h
  10540. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Fixed the bug that aria2 exits when commands is empty() but
  10542. _routineCommands are not.
  10543. * src/DownloadEngine.cc
  10544. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Use the default value pulled from Option object in HelpItemFactory.
  10546. except options whose defualt value is embedded in a usage text.
  10547. * src/HelpItemFactory.cc
  10548. * src/HelpItemFactory.h
  10549. * src/option_processing.cc
  10550. * src/version_usage.cc
  10551. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Added --quiet option to make aria2 quiet (no console output).
  10553. --quiet option is tagged with ADVANCED.
  10554. * src/HelpItemFactory.cc
  10555. * src/LogFactory.cc
  10556. * src/LogFactory.h
  10557. * src/MultiUrlRequestInfo.cc
  10558. * src/MultiUrlRequestInfo.h
  10559. * src/NullStatCalc.h: New class. This class prints nothing.
  10560. * src/OptionHandlerFactory.cc
  10561. * src/main.cc
  10562. * src/option_processing.cc
  10563. * src/prefs.h
  10564. * src/usage_text.h
  10565. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10567. * src/HelpItemFactory.cc (createHelpItems):
  10568. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. Fixed compilation error in ExpatMetalinkProcessor.cc
  10570. * src/ExpatMetalinkProcessor.cc
  10571. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Reuse socket if the origin server supports HTTP keep-alive and
  10573. --enable-http-keep-alive or --enable-http-pipelining is given.
  10574. The current implementation doesn't reuse the connections established
  10575. against proxy server.
  10576. * src/AbstractCommand.cc
  10577. * src/DownloadEngine.cc
  10578. * src/DownloadEngine.h
  10579. * src/HttpDownloadCommand.cc
  10580. * src/HttpInitiateConnectionCommand.cc
  10581. * src/HttpResponseCommand.cc
  10582. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Rewritten HTTP keep-alive and pipelining routine.
  10584. * src/AbstractCommand.cc
  10585. * src/HttpConnection.cc
  10586. * src/HttpDownloadCommand.cc
  10587. * src/HttpRequest.cc
  10588. * src/HttpRequestCommand.cc
  10589. * src/HttpResponseCommand.cc
  10590. * src/Request.cc
  10591. * src/Request.h
  10592. * src/RequestGroup.cc
  10593. * test/HttpRequestTest.cc
  10594. * test/HttpResponseTest.cc
  10595. * test/RequestTest.cc
  10596. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Added missing setUserHeaders call
  10598. * src/HttpRequestCommand.cc
  10599. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10601. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10602. waste of time because it is more likey false.
  10603. * src/FileAllocationDispatcherCommand.cc (execute)
  10604. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10605. Now HTTP status and version are a member variable of HttpHeader.
  10606. HTTP status is processed as a string, not integer.
  10607. * src/AbstractProxyResponseCommand.cc
  10608. * src/HttpConnection.cc
  10609. * src/HttpHeader.cc
  10610. * src/HttpHeader.h
  10611. * src/HttpHeaderProcessor.cc
  10612. * src/HttpHeaderProcessor.h
  10613. * src/HttpResponse.cc
  10614. * src/HttpResponse.h
  10615. * test/HttpHeaderProcessorTest.cc
  10616. * test/HttpResponseTest.cc
  10617. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Added --header option. You can specify any number of additional HTTP headers
  10619. like:
  10620. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10621. Unlike other commad-line option, you can use --header option multiple times.
  10622. * src/HelpItemFactory.cc
  10623. * src/HttpRequest.{cc, h}
  10624. * src/HttpRequestCommand.cc
  10625. * src/OptionHandlerFactory.cc
  10626. * src/OptionHandlerImpl.h
  10627. * src/option_processing.cc
  10628. * src/prefs.h
  10629. * src/usage_text.h
  10630. * test/HttpRequestTest.cc (testUserHeaders)
  10631. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. Eliminates the time lag between sequential downloads and commands in
  10633. the same RequestGroup.
  10634. In old implementation, aria2 occasionally waits 1 seconds before
  10635. executing next command or RequestGroup.
  10636. This is really a waste of time, and new implementation eliminates
  10637. this unnecessary time lag.
  10638. * src/AbstractCommand.cc
  10639. * src/AutoSaveCommand.cc
  10640. * src/CheckIntegrityCommand.cc
  10641. * src/Command.{cc, h}
  10642. * src/DownloadEngine.{cc, h}
  10643. * src/DownloadEngineFactory.cc
  10644. * src/FileAllocationCommand.cc
  10645. * src/FileAllocationDispatcherCommand.cc
  10646. * src/FillRequestGroupCommand.cc
  10647. * src/FtpInitiateConnectionCommand.cc
  10648. * src/HaveEraseCommand.cc
  10649. * src/HttpInitiateConnectionCommand.cc
  10650. * src/HttpResponseCommand.cc
  10651. * src/RealtimeCommand.cc
  10652. * src/RequestGroup.cc
  10653. * src/RequestGroupMan.cc
  10654. * src/StreamFileAllocationEntry.cc
  10655. * src/TimeBasedCommand.{cc, h}
  10656. * src/TimedHaltCommand.cc
  10657. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10659. keyword explicit and SharedHandle's default constructor initializes
  10660. its internal obj to null, old implementation initializes it using
  10661. obj's default constructor.
  10662. To assign null, write SharedHandle<T> x(...); x.reset();
  10663. TODO: test/SharedHandleTest.cc needs more tests.
  10664. * src/SharedHandle.h
  10665. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Fixed type in man page.
  10667. * doc/aria2c.1.txt
  10668. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10670. * src/SimpleLogger.{cc, h}
  10671. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Implemented auto protocol detection.
  10673. Now you can do:
  10674. aria2c -Z http://host/file file1.torrent file2.metalink
  10675. (Note: -Z option is required for auto protcol detection.)
  10676. Then aria2c downloads 3 files simultaneously:
  10677. 1. http://host/file
  10678. 2. file1.torrent <-- read local torrent file
  10679. 3. file2.metalink <-- read local Metalink file.
  10680. Same thing goes with -i option. Assume your uris.txt contans:
  10681. http://host/file
  10682. file1.torrent
  10683. file2.metalink
  10684. Then you can do: aria2c -i uris.txt
  10685. (Note: -Z option is not needed if -i option is given.)
  10686. * src/main.cc
  10687. * src/ProtocolDetector.{cc, h}
  10688. * test/ProtocolDetectorTest.cc
  10689. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10691. installed
  10692. * src/ARC4Encryptor.h
  10693. * src/ARC4Decryptor.h
  10694. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Renamed argument from 'errno' to 'err', since errno is confused with
  10696. errno defined in errno.h.
  10697. * src/LibgcryptARC4Decryptor.h
  10698. * src/LibgcryptARC4Context.h
  10699. * src/LibgcryptDHKeyExchange.h
  10700. * src/LibgcryptARC4Encryptor.h
  10701. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Rewritten choking algorithm.
  10703. * src/PeerChokeCommand.{cc, h}
  10704. * src/BtInterestedMessage.cc
  10705. * src/PeerSessionResource.{cc, h}
  10706. * src/DefaultPeerStorage.{cc, h}
  10707. * src/BtNotInterestedMessage.cc
  10708. * src/DefaultBtMessageDispatcher.{cc, h}
  10709. * src/BtMessageDispatcher.h
  10710. * src/Peer.{cc, h}
  10711. * src/BtLeecherStateChoke.{cc, h}
  10712. * src/BtSetup.cc
  10713. * src/BtSeederStateChoke.{cc, h}
  10714. * src/PeerStorage.h
  10715. * test/MockPeerStorage.h
  10716. * test/MockBtMessageDispatcher.h
  10717. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Fixed compilation error on x84-64 platform.
  10719. * src/AuthConfig.cc: Included ostream.
  10720. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Rewritten getBasename() and getDirname(), without standard library
  10722. basename(), dirname().
  10723. * src/File.cc
  10724. * test/FileTest.cc
  10725. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Added Simplified Chinese translation. Also updated the following
  10727. translations: Polish, Dutch, German. Great thanks to all translators.
  10728. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Suppress content-range error when 'Content-Range' response header
  10730. doesn't contains bytes-unit specifier 'bytes'
  10731. * src/HttpHeader.cc (getRange)
  10732. * test/HttpHeaderTest.cc
  10733. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Fixed compilation error with g++-4.3
  10735. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Added missing include files for MinGW
  10737. * test/HttpHeaderProcessorTest.cc
  10738. * test/DHTRoutingTableSerializerTest.cc
  10739. * test/DHTRoutingTableDeserializerTest.cc
  10740. * test/UriListParserTest.cc
  10741. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10742. Now download line is printed nicely with no garbage at the end of
  10743. line. I use ioctl to get the columns of terminal.
  10744. If stdout is redirected to another device, instead of carriage return,
  10745. end of line '\n' character is used. This is feature request#1909659
  10746. * src/ConsoleStatCalc.cc (calculateStat)
  10747. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Included a2time.h
  10749. * src/DHTMessageDispatcher.h
  10750. * src/DHTMessageEntry.h
  10751. * src/DHTReplaceNodeTask.h
  10752. * src/DHTMessageTracker.h
  10753. * src/Util.h
  10754. * src/CookieBox.h
  10755. * src/SocketCore.h
  10756. * src/DefaultBtMessageDispatcher.h
  10757. * src/SocketCore.cc
  10758. * src/Util.cc
  10759. * src/DHTPingTask.h
  10760. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Fixed high memory footprint when DHT is enabled.
  10762. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10763. queued than it is processed and the queue is getting longer. As a
  10764. consequence, momory usage is increased.
  10765. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10766. replacement cache in DHTBucket which is described in Kademlia paper.
  10767. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10768. DHTReplaceNodeTask.
  10769. * src/DHTBucket.{h, cc}
  10770. (cacheNode): New function.
  10771. (getCachedNodes): New function.
  10772. (dropNode): Push back cached node to _nodes.
  10773. * test/DHTBucketTest.cc
  10774. (testCacheNode): New test
  10775. (testDropNode): New test
  10776. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10778. the unused 4KB memory when ssl is not used.
  10779. * src/SocketCore.cc
  10780. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Added summary log for peer announce storage.
  10782. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10783. Removed cast
  10784. * src/DefaultPeerStorage.cc (addPeer)
  10785. Log exception message
  10786. * src/DHTMessageTracker.cc (handleTimeout)
  10787. Fixed casting
  10788. * test/HttpRequestTest.cc
  10789. * test/MetalinkProcessorTest.cc
  10790. * test/PieceTest.cc
  10791. * test/MetalinkEntryTest.cc
  10792. * test/SequenceTest.cc
  10793. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. * src/ParameterizedStringParser.cc (createLoop):
  10795. Removed unused variable sstep.
  10796. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10797. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. * src/Util.{h, cc}
  10799. (parseUInt): New function.
  10800. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10801. The actual range is uint32_t.
  10802. * test/UtilTest.cc
  10803. * src/ParameterizedStringParser.cc:
  10804. Use Util::parseUInt() for loop variables.
  10805. * test/ParameterizedStringParserTest.cc
  10806. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10807. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Rewritten the functions for binding port.
  10809. * src/DHTConnectionImpl.{h, cc}
  10810. * src/PeerListenCommand.{h, cc}
  10811. * src/DHTSetup.cc
  10812. * src/BtSetup.cc
  10813. * test/DHTConnectionImplTest.cc
  10814. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. type cleanup for allmost all remaining files.
  10816. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Type clarification
  10818. * src/PeerSessionResource.{h, cc}
  10819. * src/DefaultPieceStorage.{h, cc}
  10820. * src/Peer.{h, cc}
  10821. * test/PeerSessionResourceTest.cc
  10822. Use div function
  10823. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10824. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Type clarification
  10826. * src/DefaultPeerStorage.{h, cc}
  10827. * test/DefaultPeerStorageTest.cc
  10828. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. Type clarification: size_t for length or size, uint64_t for file
  10830. length, off_t for file offset.
  10831. * src/DefaultBtProgressInfoFile.cc
  10832. * src/DefaultBtContext.{h, cc}
  10833. * src/DefaultBtInteractive.cc
  10834. * src/DownloadCommand.{h, cc}
  10835. * src/IteratableChunkChecksumValidator.{h, cc}
  10836. * src/SegmentMan.{h, cc}
  10837. * src/SingleFileDownloadContext.{h, cc}
  10838. * src/IteratableChecksumValidator.{h, cc}
  10839. * src/BtContext.h
  10840. * src/IteratableValidator.h
  10841. * src/DownloadContext.h
  10842. * test/SingleFileDownloadContextTest.cc
  10843. * test/DefaultBtContextTest.cc
  10844. * test/MockBtContext.h
  10845. * test/Metalink2RequestGroupTest.cc
  10846. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Type clarification: size_t for length or size, uint64_t for file
  10848. length, off_t for file offset.
  10849. * src/PiecedSegment.cc
  10850. * src/GrowSegment.h
  10851. * src/DefaultBtRequestFactory.h
  10852. * src/DefaultBtProgressInfoFile.cc
  10853. * src/UnknownLengthPieceStorage.h
  10854. * src/DefaultPieceStorage.cc
  10855. * src/UnknownLengthPieceStorage.cc
  10856. * src/DefaultBtInteractive.cc
  10857. * src/GrowSegment.cc
  10858. * src/BitfieldMan.h
  10859. * src/DownloadCommand.cc
  10860. * src/BtRequestFactory.h
  10861. * src/PiecedSegment.h
  10862. * src/DefaultPieceStorage.h
  10863. * src/Piece.cc
  10864. * src/DefaultBtRequestFactory.cc
  10865. * src/PieceStorage.h
  10866. * src/Segment.h
  10867. * src/Piece.h
  10868. * src/BitfieldMan.cc
  10869. * src/Util.cc
  10870. * test/DefaultBtProgressInfoFileTest.cc
  10871. * test/DefaultPieceStorageTest.cc
  10872. * test/MockPieceStorage.h
  10873. * test/BtRequestMessageTest.cc
  10874. * test/DefaultBtMessageDispatcherTest.cc
  10875. * test/BitfieldManTest.cc
  10876. * test/GrowSegmentTest.cc
  10877. * test/PieceTest.cc
  10878. * test/SegmentTest.cc
  10879. * test/SegmentManTest.cc
  10880. * test/DefaultBtRequestFactoryTest.cc
  10881. * test/MockBtRequestFactory.h
  10882. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Fixed compilation error with --disable-nls
  10884. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10885. in gettext.h causes the problem.
  10886. * src/common.h
  10887. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. Removed subPiece related functions.
  10889. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10890. * src/DefaultPieceStorage.{h, cc}
  10891. * test/PieceTest.cc
  10892. * test/DefaultPieceStorageTest.cc
  10893. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Use unsigned char for data store.
  10895. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10896. Bump up version number to 0.13.0+1
  10897. * configure.ac
  10898. * Release 0.13.0+1
  10899. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Changed inactive connection timeout to 120.
  10901. To accept more mulually interested peers, disconnect peer when there
  10902. is no interest between us after certain time passed.
  10903. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10904. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10906. when compiled with async DNS support.
  10907. * src/DownloadEngine.cc
  10908. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10909. value '10' will be a little bit short when some DNS servers are
  10910. offline and several DNS servers are tried. It should be configured
  10911. by command-line option.
  10912. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10913. Merged Ross's mingw patch.
  10914. * src/DHTRoutingTableDeserializer.cc
  10915. * src/DHTRoutingTableSerializer.cc
  10916. * src/Platform.{h, cc}
  10917. * src/timegm.h
  10918. * src/gettimeofday.h
  10919. * src/getaddrinfo.h
  10920. * src/SocketCore.h
  10921. * src/common.h
  10922. * src/inet_aton.h
  10923. * src/DownloadEngine.h
  10924. * src/gai_strerror.h
  10925. * src/a2netcompat.h
  10926. * configure.ac
  10927. * configure
  10928. * aclocal.m4
  10929. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Included missing iostream.
  10931. * test/AllTest.cc
  10932. * test/BtDependencyTest.cc
  10933. * test/BtExtendedMessageTest.cc
  10934. * test/DHTConnectionImplTest.cc
  10935. * test/DHTMessageFactoryImplTest.cc
  10936. * test/DHTMessageTrackerEntryTest.cc
  10937. * test/DHTNodeTest.cc
  10938. * test/DHTRoutingTableSerializerTest.cc
  10939. * test/DefaultBtAnnounceTest.cc
  10940. * test/DefaultBtContextTest.cc
  10941. * test/DefaultBtMessageFactoryTest.cc
  10942. * test/DefaultExtensionMessageFactoryTest.cc
  10943. * test/HandshakeExtensionMessageTest.cc
  10944. * test/HttpResponseTest.cc
  10945. * test/MetalinkProcessorTest.cc
  10946. * test/MultiFileAllocationIteratorTest.cc
  10947. * test/SocketCoreTest.cc
  10948. * test/UTPexExtensionMessageTest.cc
  10949. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. Reorganized includes.
  10951. * src/NameResolver.cc
  10952. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Fixed compilation error without ares/c-ares
  10954. * src/NameResolver.h:
  10955. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Added a test for large file.
  10957. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10958. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. Fixed the bug that file size is ignored if size > INT32_MAX
  10960. * src/SizeMetalinkParserState.cc (endElement):
  10961. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. Bump up version number to 0.13.0
  10963. * configure.ac
  10964. * Release 0.13.0
  10965. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10966. Updated Makfefile.am to make 'make dist' work.
  10967. Now packaged filename is aria2c-VERSION.tar.bz2.
  10968. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10969. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10970. Large file support is now configured by configure script.
  10971. * configure.ac
  10972. Removed unsused source files
  10973. * src/
  10974. * test/
  10975. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10976. Peer.h and BtContext.h respectively.
  10977. * src/Peer.h
  10978. * src/BtContext.h
  10979. Updated translations.
  10980. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10981. translations. Great thanks to all translators!;)
  10982. * po/*.{po, gmo}
  10983. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10985. statically declared sha1 MessageDigestContext.
  10986. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10987. initialization of short-lived MessageDigestContext.
  10988. * src/MessageDigestHelper.{h, cc}
  10989. * src/main.cc
  10990. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10991. the initialization of MessageDigestContext every time in validating
  10992. chunk checksum.
  10993. * src/DownloadCommand.{h, cc}
  10994. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Add a file descriptor which connected to fast peer(latency<1500) to
  10996. select(). This change reduced CPU load.
  10997. * src/PeerInteractionCommand.cc
  10998. * src/DefaultBtInteractive.{h, cc}
  10999. * src/BtInteractive.h
  11000. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. Fixed the previous insufficient fix for possible busy loop.
  11002. * src/MSEHandshake.cc (identifyHandshakeType)
  11003. Removed unused functions.
  11004. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11005. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. Fixed possible busy loop if first 20 bytes are not received for a few
  11007. minutes.
  11008. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11009. * src/ReceiverMSEHandshakeCommand.cc
  11010. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. Fixed compilation error
  11012. * src/ExpatMetalinkProcessor.cc
  11013. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11015. * src/DHTBucket.cc
  11016. Removed unnecessary cast.
  11017. * src/HandshakeExtensionMessage.cc
  11018. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11020. is missing.
  11021. * src/OptionHandlerFactory.cc
  11022. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11023. Fixed the bug that HAVE message is not sent for a piece they are
  11024. downloaded fom http/ftp server before any BitTorrent handshake is done
  11025. with peers.
  11026. * src/DefaultBtInteractive.cc
  11027. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11029. * src/Makefile.am
  11030. * src/Makefile.in
  11031. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Updated README. Added html version of README and man page.
  11033. * README
  11034. * README.html
  11035. * readme2html: Shell script to generate README.html from README using
  11036. asciidoc.
  11037. * doc/aria2c.1.html
  11038. * doc/makeman: Added the line to generate aria2c.1.html
  11039. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Fixed offset calculation.
  11041. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11042. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11043. Rewritten itos and uitos using template. llitos and ullitos are
  11044. replaced with itos and uitos respectively.
  11045. * src/Util.{h, cc}
  11046. * test/UtilTest.cc
  11047. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11049. of the number of bytes required for storing public key and shared
  11050. secret.
  11051. * src/LibgcryptDHKeyExchange.h
  11052. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11053. * src/MSEHandshake.cc
  11054. * test/DHKeyExchangeTest.cc
  11055. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Removed since they are not used.
  11057. * src/Xml2MetalinkProcessor.{h, cc}
  11058. * src/Socket.cc
  11059. * src/SegmentSplitter.{h, cc}
  11060. * test/Xml2MetalinkProcessorTest.cc
  11061. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Fixed the bug that prevents aria2 from stopping other than by pressing
  11063. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11064. option. aria2 doesn't stop even after --seed-time is satisfied and
  11065. continues to output blank lines in the console.
  11066. * src/ReceiverMSEHandshakeCommand.cc
  11067. * src/PeerReceiveHandshakeCommand.cc
  11068. * src/PeerListenCommand.cc
  11069. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Bump up version number to 0.13.0rc
  11071. * configure.ac
  11072. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Updated man page and some usage text.
  11074. * doc/aria2c.1.txt
  11075. * src/usage_text.h
  11076. * po/*.{po, gmo}
  11077. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Updated translations. Added Finnish and Hebrew translations.
  11079. Great thanks to all translators!
  11080. * po/*.{po, gmo}
  11081. * po/LINGUAS
  11082. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Log more detailed information about each message.
  11084. * src/DHTQueryMessage.{h, cc}
  11085. * src/DHTGetPeersMessage.{h, cc}
  11086. * src/DHTFindNodeReplyMessage.{h, cc}
  11087. * src/DHTGetPeersReplyMessage.{h, cc}
  11088. * src/DHTAnnouncePeerMessage.{h, cc}
  11089. * src/DHTResponseMessage.{h, cc}
  11090. * src/DHTFindNodeMessage.{h, cc}
  11091. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Use constants defined in prefs.h
  11093. * src/option_processing.cc
  11094. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11096. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. Make room for future enchancements for IPv6 addresses.
  11098. Bump up version number of dht.dat file format to 2.
  11099. Not compatible with previous version.
  11100. * src/DHTRoutingTableSerializer.cc
  11101. * src/DHTRoutingTableDeserializer.cc
  11102. * test/DHTRoutingTableSerializerTest.cc
  11103. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11104. Added handling for the return values from
  11105. PeerMessageUtil::createcompact().
  11106. * src/DefaultBtContext.cc (computeFastSet):
  11107. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Fixed abort when peer's ip address is IPv4-mapped address.
  11109. * src/DefaultBtContext.cc (computeFastSet)
  11110. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11111. cannot handle IPv4-mapped addresses.
  11112. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11113. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. Proper return value handling for OpenSSL functions.
  11115. * src/LibsslDHKeyExchange.h
  11116. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Random bytes generation using libgcrypt and OpenSSL.
  11118. * src/DHTUtil.{h, cc}
  11119. * test/DHTUtilTest.cc
  11120. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11122. received.
  11123. * src/DHTMessageReceiver.cc (receiveMessage)
  11124. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Fixed the bug that a return code is always 0. BUG#1897704
  11126. If error occurred during the download or there exist unfinished
  11127. downloads, aria2 returns with code 1.
  11128. * src/RequestGroupMan.{h, cc}
  11129. * src/MultiUrlRequestInfo.{h, cc}
  11130. * src/main.cc
  11131. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11132. IPv6 support for SocketCore class.
  11133. TODO: In SocketCore::establishConnection(), this is insufficient to
  11134. determin the failure of connect() here because the socket is
  11135. non-blocking state. The next addresses should be tried after select().
  11136. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11137. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11138. instead which address family independent.
  11139. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11140. information in a compact peer format which is for IPv4 only.
  11141. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11142. this is a spec of BitTorrent protocol.
  11143. * src/SocketCore.{h, cc}
  11144. * src/PeerMessageUtil.cc
  11145. * test/SocketCoreTest.cc
  11146. * test/PeerMessageUtilTest.cc
  11147. * test/DHTConnectionImplTest.cc
  11148. Handle IPv4-mapped addresses.
  11149. * src/DHTNode.cc: Now identity is determined by node id.
  11150. * src/DHTMessageTrackerEntry.cc
  11151. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11152. should handle it.
  11153. * src/DHTRoutingTableDeserializer.cc
  11154. * src/DHTMessageFactoryImpl.cc
  11155. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. Change the unit of --stop option from a minute to a second.
  11157. * src/usage_text.h
  11158. * src/DownloadEngineFactory.cc
  11159. * src/OptionHandlerFactory.cc
  11160. * src/message.h
  11161. * src/TimedHaltCommand.cc
  11162. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Make listening socket non-block mode.
  11164. * src/FtpConnection.cc
  11165. * src/FtpNegotiationCommand.{h, cc}
  11166. * src/PeerListenCommand.cc
  11167. Fixed the bug that cause slow ftp negotiation.
  11168. * src/FtpNegotiationCommand.{h, cc}
  11169. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Added basic tag to --enable-dht, --dht-listen-port option.
  11171. * src/HelpItemFactory.cc (createHelpItems)
  11172. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Updated text.
  11174. * src/usage_text.h
  11175. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11177. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Determin _threadtholdSpeed in each constructor for
  11179. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11180. * src/ActivePeerConnectionCommand.{h, cc}
  11181. * src/PeerReceiveHandshakeCommand.{h, cc}
  11182. * src/BtSetup.cc
  11183. * src/BtConstants.h
  11184. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11185. Added --bt-min-crypto-level and --bt-require-crypto options.
  11186. * src/OptionHandlerFactory.cc
  11187. * src/MSEHandshake.cc
  11188. * src/HelpItemFactory.cc
  11189. * src/option_processing.cc
  11190. * src/ReceiverMSEHandshakeCommand.cc
  11191. * src/prefs.h
  11192. * src/DefaultBtAnnounce.cc
  11193. * src/InitiatorMSEHandshakeCommand.cc
  11194. * src/usage_text.h
  11195. * test/MSEHandshakeTest.cc
  11196. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Bump version number to 0.13.0b
  11198. * configure.ac
  11199. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Updated doc.
  11201. * src/MessageDigestHelper.h:
  11202. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Use raw message digest as a token instead of its hexadecimal
  11204. representation.
  11205. * src/DHTTokenTracker.cc (generateToken)
  11206. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Added Message Stream Encryption(MSE) support.
  11208. Currently, aria2 accepts incoming connections with Obfuscation Header
  11209. and legacy BitTorrent Header and establishes connections with
  11210. Obfuscation Header first and if failed then retry with legacy
  11211. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11212. choose ARC4. The new option to change the default behavior is planned.
  11213. For tracker extension, "supportcrypto=1" is added statically.
  11214. * src/PeerInitiateConnectionCommand.{h, cc}
  11215. * src/PeerConnection.{h, cc}
  11216. * src/HandleRegistry.h
  11217. * src/SocketCore.h
  11218. * src/PeerReceiveHandshakeCommand.{h, cc}
  11219. * src/BtRegistry.{h, cc}
  11220. * src/PeerListenCommand.cc
  11221. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11222. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11223. * src/MSEHandshake.{h, cc}
  11224. * src/ARC4Encryptor.h
  11225. * src/ARC4Decryptor.h
  11226. * src/LibgcryptARC4Encryptor.h
  11227. * src/LibgcryptARC4Decryptor.h
  11228. * src/LibgcryptARC4Context.h
  11229. * src/LibsslARC4Encryptor.h
  11230. * src/LibsslARC4Decryptor.h
  11231. * src/LibsslARC4Context.h
  11232. * src/DHKeyExchange.h
  11233. * src/LibgcryptDHKeyExchange.h
  11234. * src/LibsslDHKeyExchange.h
  11235. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11236. * test/DefaultBtAnnounceTest.cc
  11237. * test/ARC4Test.cc
  11238. * test/DHKeyExchangeTest.cc
  11239. Removed prepareForRetry() because it is not used.
  11240. * src/PeerAbstractCommand.{h, cc}
  11241. * src/PeerInteractionCommand.{h, cc}
  11242. * src/PeerInitiateConnectionCommand.{h, cc}
  11243. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11244. Added the ability to load nodes from torrent file. These nodes are
  11245. added to the routing table when downloading that torrent.
  11246. * src/BtContext.h
  11247. * src/DefaultBtContext.{h, cc}
  11248. * src/DHTSetup.cc
  11249. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11250. hostname and port pair, and resolves all of them.
  11251. * src/NameResolver.{h, cc}: Added reset().
  11252. * src/RequestGroup.cc
  11253. * test/DefaultBtContextTest.cc
  11254. * test/MockBtContext.h
  11255. Removed assert() from DefaultBtContext and throw exception instead.
  11256. * src/DefaultBtContext.cc
  11257. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Fixed segmentation fault bug when exiting if dht is disabled.
  11259. * src/RequestGroup.cc
  11260. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Fixed typo in log message and define the message in message.h
  11262. * src/TimedHaltCommand.cc
  11263. * src/message.h
  11264. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. Included RecoverableException.h to fix compilation error.
  11266. * test/DHTMessageFactoryImplTest.cc
  11267. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11269. * test/DHTPingMessageTest.cc
  11270. * test/DHTGetPeersMessageTest.cc
  11271. * test/DHTFindNodeMessageTest.cc
  11272. * test/DHTAnnouncePeerMessageTest.cc
  11273. * test/MockDHTMessage.h
  11274. * test/MockDHTMessageFactory.h
  11275. * test/MockDHTMessageDispatcher.h: New class.
  11276. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11278. virtual.
  11279. * src/DHTMessageDispatcher.h
  11280. * src/DHTMessageDispatcherImpl.{h, cc}
  11281. * src/DHTSetup.cc
  11282. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Adding handling of DHT error message. Just log error message and
  11284. throw exception.
  11285. * src/DHTMessageFactoryImpl.cc
  11286. * test/DHTMessageFactoryImplTest.cc
  11287. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11288. Added handling of dynamic cast failure.
  11289. * src/DHTNodeLookupTask.cc
  11290. * src/DHTPeerLookupTask.cc
  11291. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Added the ability to stop aria2 itself when given time has passed
  11293. from start. Use --stop option to specify time in minutes.
  11294. When 0 is given, this feature is disabled.
  11295. * src/OptionHandlerFactory.cc
  11296. * src/TimeBasedCommand.h: Make _interval protected scope.
  11297. * src/HelpItemFactory.cc
  11298. * src/option_processing.cc
  11299. * src/prefs.h
  11300. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11301. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11302. Without this modification, the result list shows "ERR" when aria2 is
  11303. stopped by --stop option. It should be "INPR".
  11304. * src/DownloadEngine.{h, cc}
  11305. * src/DownloadEngineFactory.cc
  11306. * src/usage_text.h
  11307. * src/TimedHaltCommand.{h, cc}: New class.
  11308. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Bootstrap through node added by port message.
  11310. Currently bootstrap is executed if the number of buckets in routing
  11311. table is 1.
  11312. * src/BtPortMessage.{h, cc}
  11313. * src/DefaultBtMessageFactory.{h, cc}
  11314. * src/PeerInteractionCommand.cc
  11315. * test/BtPortMessageTest.cc
  11316. * test/MockDHTTask.h
  11317. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Extract the Peer class's member variables, which are only needed after
  11319. PeerInteractionCommand, into PeerSessionResource class.
  11320. This class is instantiated in PeerInteractionCommand class's ctor and
  11321. released in its dtor.
  11322. This will make Peer class lightweight and uses less memory for peers
  11323. which are not connected and wait in the queue.
  11324. * src/PeerChokeCommand.cc
  11325. * src/PeerSessionResource.{h, cc}
  11326. * src/PeerInteractionCommand.cc
  11327. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11328. * src/DefaultBtInteractive.cc
  11329. * src/BtPieceMessage.cc
  11330. * src/BtInterestedMessage.cc
  11331. * src/BtUnchokeMessage.cc
  11332. * src/DefaultPeerStorage.{h, cc}
  11333. * src/PeerInitiateConnectionCommand.cc
  11334. * src/ActivePeerConnectionCommand.cc
  11335. * src/BtNotInterestedMessage.cc
  11336. * src/DefaultBtMessageDispatcher.cc
  11337. * src/BtChokeMessage.cc
  11338. * src/BtRequestMessage.cc
  11339. * src/Peer.{h, cc}
  11340. * src/BtRegistry.h
  11341. * src/TrackerWatcherCommand.cc
  11342. * src/PeerReceiveHandshakeCommand.cc
  11343. * test/BtExtendedMessageTest.cc
  11344. * test/BtAllowedFastMessageTest.cc
  11345. * test/BtCancelMessageTest.cc
  11346. * test/DefaultPieceStorageTest.cc
  11347. * test/BtBitfieldMessageTest.cc
  11348. * test/BtHaveMessageTest.cc
  11349. * test/BtNotInterestedMessageTest.cc
  11350. * test/BtRequestMessageTest.cc
  11351. * test/PeerSessionResourceTest.cc
  11352. * test/DefaultBtMessageDispatcherTest.cc
  11353. * test/PeerTest.cc
  11354. * test/BtInterestedMessageTest.cc
  11355. * test/BtRejectMessageTest.cc
  11356. * test/BtChokeMessageTest.cc
  11357. * test/DefaultPeerStorageTest.cc
  11358. * test/BtHaveNoneMessageTest.cc
  11359. * test/BtHaveAllMessageTest.cc
  11360. * test/DefaultExtensionMessageFactoryTest.cc
  11361. * test/BtUnchokeMessageTest.cc
  11362. * test/DefaultBtMessageFactoryTest.cc
  11363. * test/HandshakeExtensionMessageTest.cc
  11364. * test/UTPexExtensionMessageTest.cc
  11365. * test/DefaultBtRequestFactoryTest.cc
  11366. * test/BtPieceMessageTest.cc
  11367. Removed typedef PeerStats.
  11368. * src/PeerStat.h
  11369. * src/SegmentMan.cc
  11370. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. Added std namespace to copy, remove_copy, back_inserter,
  11372. front_inserter.
  11373. * src/RequestGroupMan.cc
  11374. * src/DefaultPieceStorage.cc
  11375. * src/StreamFileAllocationEntry.cc
  11376. * src/BtFileAllocationEntry.cc
  11377. * src/RequestGroup.cc
  11378. * src/MetalinkEntry.cc
  11379. * src/DelegatingPeerListProcessor.cc
  11380. * src/DefaultBtRequestFactory.cc
  11381. * src/DefaultBtMessageDispatcher.cc
  11382. * src/version_usage.cc: Included <algorithm>
  11383. * src/main.cc
  11384. * src/MetalinkParserController.cc
  11385. * src/DefaultBtContext.cc
  11386. * src/DownloadEngineFactory.cc
  11387. * src/a2algo.h
  11388. Removed.
  11389. * test/StreamUriListParserTest.cc
  11390. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11391. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11392. ActivePeerConnectionCommand when it is given and
  11393. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11394. * src/ActivePeerConnectionCommand.{h, cc}
  11395. * src/BtSetup.cc
  11396. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. Only add socket to DownloadEngine's select routine when peer or
  11398. localhost is unchoked and interested. This lowers CPU usage a
  11399. little bit.
  11400. * src/PeerInteractionCommand.cc
  11401. * src/PeerAbstractCommand.{h, cc}
  11402. * src/BtInteractive.h
  11403. * src/DefaultBtInteractive.{h, cc}
  11404. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Revert previous change because get_peers message is needed for
  11406. announce_peer anyway.
  11407. * src/DHTGetPeersCommand.cc
  11408. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. Request peers thought DHT only when download hasn't finished.
  11410. * src/DHTGetPeersCommand.cc
  11411. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11413. * src/DHTBucketRefreshTask.{h, cc}
  11414. * src/DHTSetup.cc
  11415. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11416. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11417. standard classes.
  11418. Included string.h where mem* function are used.
  11419. Added namespace aria2.
  11420. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Create directory before saving DHT routing table.
  11422. Now ios::failure is now handled properly.
  11423. * src/DHTAutoSaveCommand.cc
  11424. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11425. Removed unnecessary cerr.
  11426. * src/DownloadEngine.cc
  11427. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. Catch exception inside DHTMessageReceiver::receiveMessage().
  11429. Log unknown message.
  11430. * src/DHTMessageReceiver.{h, cc}
  11431. * src/DHTMessageFactory.h
  11432. * src/DHTMessageFactoryImpl.{h, cc}
  11433. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11434. * src/DHTInteractionCommand.cc
  11435. * src/DHTUnknownMessage.{h, cc}
  11436. * test/DHTUnknownMessageTest.cc
  11437. * test/MockDHTMessageFactory.h
  11438. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11439. Commented out ip address comparison because a host can have multiple
  11440. ip addresses and it is hard to predict the hostname is resolved into
  11441. which one.
  11442. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11443. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. * po/Makefile.in: Removed since this is generated by configure.
  11445. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11446. Fixed compiler warning about redefinition of SIZE_MAX.
  11447. Use common.h instead of config.h directly here.
  11448. * src/Platform.{h, cc}
  11449. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11450. here.
  11451. * common.h
  11452. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11453. Updated gettext related files.
  11454. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11455. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11456. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11457. Added DHT functionality, compatible with mainline.
  11458. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11459. You may need to specify entry point to DHT network using
  11460. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11461. Use --dht-listen-port to specify port number. Make sure that your
  11462. firewall configuration can pass through UDP traffic to the port.
  11463. The routing table is saved in $HOME/.aria2/dht.dat.
  11464. * src/DHT*
  11465. * src/BNode.{h, cc}
  11466. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11467. particular torrent.
  11468. * src/Data.cc: Rewritten ctor.
  11469. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11470. --dht-entry-point.
  11471. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11472. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11473. ends, remove BtContext from DHTPeerAnnounceStorage.
  11474. * src/BtPortMessage.{h, cc}: Rewritten.
  11475. * src/message.h
  11476. * src/OptionHandlerImpl.cc
  11477. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11478. --dht-entry-point.
  11479. * src/Dictionary.{h, cc} (remove): New function.
  11480. * src/prefs.h
  11481. * src/DefaultBtMessageFactory.h
  11482. * src/BtHandshakeMessage.cc
  11483. * src/ActivePeerConnectionCommand.cc
  11484. * src/SocketCore.{h, cc}: Added datagram socket support.
  11485. * src/DefaultBtMessageFactory.cc
  11486. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11487. Create DHT commands.
  11488. * src/BtMessageFactory.h
  11489. * src/PeerMessageUtil.{h, cc}
  11490. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. Fixed the bug that log file is not written when configuration file doesn't exist.
  11492. This is caused by using Logger class before LogFactory is not configured.
  11493. BUG #1875079
  11494. * src/option_processing.cc
  11495. Warning message "configuration doesn't exist" is only printed when --conf is
  11496. given.
  11497. * src/option_processing.cc
  11498. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11500. ShaVisitor is now deprecated and slated to be removed.
  11501. * src/DefaultBtContext.cc
  11502. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11503. Externalize message to message.h
  11504. * src/Platform.cc
  11505. * src/message.h
  11506. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11507. Set default domain and default path to cookie.
  11508. * src/HttpResponse.cc
  11509. * src/CookieBox.{h, cc}
  11510. * src/CookieParser.{h, cc}
  11511. * test/CookieParserTest.cc
  11512. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. Added --no-conf and --conf-path command-line option.
  11514. --no-conf option disables loading aria2.conf file.
  11515. --conf-path option changes the configuration file path. The default
  11516. file path is $HOME/.aria2/aria2.conf
  11517. Added a warning message when the configuration file is not found.
  11518. * src/HelpItemFactory.cc
  11519. * src/option_processing.cc
  11520. * src/prefs.h
  11521. * src/usage_text.h
  11522. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11523. Added the message to inform users that other help categories are
  11524. available in -h option.
  11525. * src/version_usage.cc
  11526. * src/TagContainer.{h, cc}
  11527. * test/TagContainerTest.cc
  11528. * src/TaggedItem.{h, cc}
  11529. * test/TaggedItemTest.cc
  11530. * src/HelpItem.h
  11531. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11533. from PiecedSegment's ctor.
  11534. Previously Piece::getAllMissingBlockIndexes() is called from
  11535. PiecedSegment() but it is rather expensive since only first element is
  11536. used.
  11537. * src/PiecedSegment.cc
  11538. * src/Piece.{h, cc}
  11539. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11540. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11541. each time these functions are called.
  11542. * src/BitfieldMan.{h, cc}
  11543. * test/BitfieldManTest.cc
  11544. * src/array_fun.h
  11545. * test/array_funTest.cc
  11546. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11547. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11548. filtered. Removed unnecessary cast to int32_t.
  11549. * src/BitfieldMan.{h, cc}
  11550. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11552. payload length(4bytes) are received. This happens because lenbufLength
  11553. is not updated in this particular case and successive call of
  11554. receiveMessage() overwrites payload length with bytes recieved which
  11555. are payload body.
  11556. * src/PeerConnection.{h, cc}
  11557. * src/message.h
  11558. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11559. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11560. peer if there are peers that have same ipaddr and port.
  11561. I've experiened segmentation fault and "pure virtual function was
  11562. called" error.
  11563. * src/Peer.h
  11564. * test/PeerTest.cc
  11565. * src/DefaultPeerStorage.cc
  11566. * test/DefaultPeerStorageTest.cc
  11567. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Removed a call to isPowerOf() because it is no longer necessary here
  11569. and a request block is not always power of 2.
  11570. BUG#1866924
  11571. * src/PeerMessageUtil.cc (checkLength)
  11572. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11573. Fixed the bug that always first found Segment is removed from
  11574. usedSegmentEntries. Removed unused functions.
  11575. * src/SegmentMan.{h, cc}
  11576. * test/SegmentManTest.cc
  11577. Fixed the bug that ServerHost is not removed.
  11578. * src/RequestGroup.cc
  11579. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Fixed the bug that SegmentMan::completeSegment() is not called
  11581. even if Segment is complete when --lowest-speed-limit is enabled.
  11582. BUG#1864525
  11583. * src/DownloadCommand.{h, cc}
  11584. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Fixed: hash algorithm 'sha1' is always used.
  11586. * src/DownloadCommand.cc (validatePieceHash)
  11587. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Added --enable-peer-exchange command-line option.
  11589. * src/OptionHandlerFactory.cc
  11590. * src/HelpItemFactory.cc
  11591. * src/option_processing.cc
  11592. * src/usage_text.h
  11593. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11594. Move extension from BtRuntime to ExtensionMessageFactory, because
  11595. extension can be specified per peer, not per torrent.
  11596. * src/DefaultBtInteractive.cc
  11597. * src/BtRuntime.h
  11598. * src/ExtendedMessagingAware.h
  11599. * src/ExtensionMessageFactory.h
  11600. * src/DefaultExtensionMessageFactory.cc
  11601. * test/DefaultExtensionMessageFactoryTest.cc
  11602. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11603. Added categorized option help. Specify category using --help option.
  11604. Also added the ability to search options in forward match.
  11605. * src/HelpItem.{h, cc}
  11606. * test/HelpItemTest.cc
  11607. * src/HelpItemFactory.{h, cc}
  11608. * src/TagContainer.{h, cc}
  11609. * test/TagContainerTest.cc
  11610. * src/option_processing.cc
  11611. * src/prefs.h
  11612. * src/TaggedItem.{h, cc}
  11613. * test/TaggedItemTest.cc
  11614. * src/version_usage.cc
  11615. * src/help_tags.h
  11616. * src/usage_text.h
  11617. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. Fixed segmentation fault when bad torrent metainfo is parsed.
  11619. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11620. and then throw exception or skip it.
  11621. * src/DefaultBtContext.{h, cc}
  11622. * test/DefaultBtContextTest.cc
  11623. * src/AnnounceList.cc
  11624. * src/CompactPeerListProcessor.cc
  11625. * src/message.h
  11626. * src/DefaultBtAnnounce.{h, cc}
  11627. * test/DefaultBtAnnounceTest.cc
  11628. * src/BencodeVisitor.cc
  11629. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Added missing "B"(=Byte). So now the message looks like this:
  11631. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11632. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11633. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11634. Show the seed ratio after torrent downloads.
  11635. For example, after torrent download completed and --seed-time and
  11636. --seed-ratio conditions are fulfilled, following message is printed
  11637. right after "Download complete: .....":
  11638. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11639. * src/RequestGroupMan.cc
  11640. * src/RequestGroup.{h, cc}
  11641. * src/message.h
  11642. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Remove a defunct control file. A defunct control file means that while
  11644. it exists, but the corresponding download file is missing.
  11645. After its removal, a download restarts from the beginning.
  11646. * src/RequestGroup.cc
  11647. * src/message.h
  11648. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Allocate bitfield in Peer when it is really used. More specifically,
  11650. bitfield in Peer is allocated after the connection is established and
  11651. deallocated when the connection is dropped.
  11652. Since 2 parameters(piece length and total length) was removed from the
  11653. constructor of Peer class, many test classes were modified accordingly.
  11654. See svn log for more detailed information.
  11655. * src/PeerInteractionCommand.cc
  11656. * src/CompactPeerListProcessor.cc
  11657. * src/Peer.cc
  11658. * src/DefaultPeerListProcessor.cc
  11659. * src/PeerListenCommand.cc
  11660. * src/PeerReceiveHandshakeCommand.cc
  11661. Fixed memory leak
  11662. * src/Piece.cc
  11663. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11665. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11666. command-line options.
  11667. * src/option_processing.cc
  11668. * src/ActivePeerConnectionCommand.cc
  11669. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Send have message to peer if it already has the piece.
  11671. * src/BtHaveMessage.{h, cc}
  11672. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11674. port.
  11675. * src/DefaultPeerStorage.{h, cc}
  11676. * test/DefaultPeerStorageTest.cc
  11677. * src/HandshakeExtensionMessage.cc
  11678. * test/HandshakeExtensionMessageTest.cc
  11679. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11680. * src/PeerStorage.h
  11681. * test/MockPeerStorage.h
  11682. * src/PeerListenCommand.cc
  11683. * src/PeerReceiveHandshakeCommand.cc
  11684. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Added --metalink-enable-unique-protocol option.
  11686. * src/Metalink2RequestGroup.cc
  11687. * src/option_processing.cc
  11688. * src/prefs.h
  11689. * src/version_usage.cc
  11690. * doc/aria2c.1.txt
  11691. * doc/aria2c.1
  11692. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Allow a peer in incomingPeer to be added peers.
  11694. * src/DefaultPeerStorage.cc
  11695. * test/DefaultPeerStorageTest.cc
  11696. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11697. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11698. I could reproduce this bug in following procedure:
  11699. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11700. 2. Restart aria2.
  11701. 3. You see the download stopped around 99%.
  11702. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11703. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11704. If timeout is reached, then _nextCommand is unused and it may contains
  11705. segments and they won't be canceled. Actually, timeout is not needed
  11706. here because if the server dropped connection, then retry is made.
  11707. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11708. Added uTorrent compatible Peer Exchange.
  11709. * src/BencodeVisitor.{h, cc}
  11710. * test/BencodeVisitorTest.cc
  11711. * src/BtConstants.h
  11712. * src/BtContext.h: Added 'private' flag.
  11713. * src/BtExtendedMessage.{h, cc}
  11714. * test/BtExtendedMessageTest.cc
  11715. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11716. reserved field.
  11717. * test/BtHandshakeMessageTest.cc
  11718. * src/BtMessageFactory.h
  11719. * src/BtRegistry.h
  11720. * src/BtRuntime.h: This class holds default extension message IDs for
  11721. aria2. By default, aria2 uses ID 8 for ut_pex.
  11722. * src/DefaultBtContext.cc
  11723. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11724. When it is true, aria2 enables ut_pex. This value is set by
  11725. PeerInteractionCommand.
  11726. * src/DefaultBtMessageFactory.{h, cc}
  11727. * test/DefaultBtMessageFactoryTest.cc
  11728. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11729. handling to DefaultBtInteractive class.
  11730. * src/DefaultExtensionMessageFactory.{h, cc}
  11731. * test/DefaultExtensionMessageFactoryTest.cc
  11732. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11733. the container(peers and incomingPeers. The equality is determined by
  11734. Peer::id).
  11735. * test/DefaultPeerStorageTest.cc
  11736. * src/ExtensionMessage.h
  11737. * test/MockExtensionMessage.h
  11738. * src/ExtensionMessageFactory.h
  11739. * test/MockExtensionMessageFactory.h
  11740. * src/HandshakeExtensionMessage.{h, cc}
  11741. * test/HandshakeExtensionMessageTest.cc
  11742. * src/MetaEntry.h
  11743. * src/Peer.{h, cc}
  11744. * src/PeerInteractionCommand.cc
  11745. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11746. addIncomingPeer.
  11747. * src/PeerMessageUtil.{h, cc}
  11748. * src/PeerObject.h
  11749. * src/UTPexExtensionMessage.{h, cc}
  11750. * test/UTPexExtensionMessageTest.cc
  11751. * src/message.h
  11752. * src/prefs.h
  11753. Fixed the bug that returns incomplete data when it contains null
  11754. character. A convenient constructor was also added.
  11755. * src/Data.{h, cc}
  11756. Rewritten.
  11757. * src/CompactPeerListProcessor.cc
  11758. Fixed typos.
  11759. * src/message.h
  11760. * src/MetaFileUtil.cc
  11761. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11762. Added "Status Legend" label to the explanation text of 'stat' in
  11763. download result and moved it to the last. BUG#1848214
  11764. * src/RequestGroupMan.cc
  11765. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11766. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11767. * src/Makefie.am
  11768. * test/Makefile.am
  11769. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11770. Fixed the bug that prevents aria2 from loading cookie file when expire
  11771. value is greater than 2^31-1. BUG#1851066
  11772. * src/CookieBoxFactory.cc
  11773. * test/CookieBoxFactoryTest.cc
  11774. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. Fixed possible memory leak when an exception is thrown.
  11776. * src/XML2SAXMetalinkProcessor.cc
  11777. Added Expat support. If both libxml2 and Expat are installed, then
  11778. libxml2 is used by default.
  11779. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11780. ExpatMetalinkProcessor according to the configuration.
  11781. * src/ExpatMetalinkProcessor.{h, cc}
  11782. * src/main.cc: Removed libxml2 specific header and init/free function.
  11783. * src/MetalinkProcessorFactory.{h, cc}
  11784. * src/MetalinkHelper.cc
  11785. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11786. * src/MetalinkProcessor.h
  11787. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11788. MetalinkProcessorTest is used instead.
  11789. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11790. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11791. MetalinkProcessorFactory::newInstance().
  11792. * m4/libexpat.m4
  11793. * configure.ac: Added configuration options for libexpat.
  11794. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. Disabled -s option in metalink download.
  11796. * src/Metalink2RequestGroup.cc
  11797. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11798. If several protocols are available for a mirror in metalink file,
  11799. aria2 now use one of them. --metalink-preferred-protocol option was
  11800. added to specify the preference of protocol.
  11801. * src/AbstractCommand.cc
  11802. * src/OptionHandlerFactory.cc
  11803. * src/ServerHost.{h, cc}
  11804. * src/Metalink2RequestGroup.cc
  11805. * src/RequestGroup.{h, cc}
  11806. * test/RequestGroupTest.cc
  11807. * src/option_processing.cc
  11808. * src/prefs.h
  11809. * src/HttpResponseCommand.cc
  11810. * src/MetalinkResource.{h, cc}
  11811. * src/FtpNegotiationCommand.cc
  11812. * src/MetalinkEntry.{h, cc}
  11813. * src/MetalinkEntryTest.cc
  11814. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11815. Code cleanup and added debug log.
  11816. * src/PeerConnection.cc
  11817. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. Compiler error fix: applied the patch by Tiziano Mueller
  11819. * src/RequestGroup.cc
  11820. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11822. in stopped and completed event.
  11823. * src/AnnounceList.{h, cc}
  11824. * test/AnnounceListTest.cc
  11825. * src/DefaultBtAnnounce.cc
  11826. * test/DefaultBtAnnounceTest.cc
  11827. Sorted URLs.
  11828. * test/Metalink2RequestGroupTest.cc
  11829. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Removed unnecessary string copy. Updated doc and corrected indentation.
  11831. * src/Base64.cc
  11832. Fixed compilation warnings
  11833. * test/DataTest.cc
  11834. * test/HttpRequestTest.cc
  11835. * test/MetaFileUtilTest.cc
  11836. * test/RequestTest.cc
  11837. * Release 0.12.0
  11838. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Updated translations
  11840. * po/{de,fr,ja,nl,ru}.po
  11841. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11842. translations. Many thanks to translators.
  11843. * po/{ca,es,it,pt_BR,sv}.po
  11844. * po/LINGUAS
  11845. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Added a notice about URL
  11847. * src/version_usage.cc
  11848. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11849. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11850. aria2 repeatedly sends stopped request when tracker returns error code.
  11851. * src/AnnounceList.cc
  11852. * test/AnnounceListTest.cc
  11853. * src/AnnounceTier.h
  11854. Added a message when ctrl-c is hit.
  11855. Now second ctrl-c is also handled in signal handler.
  11856. * src/RequestGroupMan.{h, cc}
  11857. * src/RequestGroup.{h, cc}
  11858. * src/MultiUrlRequestInfo.cc
  11859. * src/DownloadEngine.cc
  11860. * src/TrackerWatcherCommand.cc
  11861. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11862. Code cleanup
  11863. * src/Base64.cc (encode)
  11864. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. Changed Direct/IO enable/disable procesure in file allocation routine.
  11866. * src/SingleFileAllocationIterator.cc
  11867. (SingleFileAllocationIterator):
  11868. Disable directIO if offset is not multiple of 512.
  11869. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11870. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11871. Enable created SingleFileAllocationIterator's directIO.
  11872. * src/FileAllocationEntry.cc
  11873. (FileAllocationEntry): Enable directIO here.
  11874. (~FileAllocationEntry): Disable directIO here.
  11875. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11877. * src/Peer.{h, cc}
  11878. * src/DefaultPieceStorage.cc
  11879. * test/DefaultPieceStorageTest.cc
  11880. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Rewritten direct I/O support routine
  11882. * src/SingleFileAllocationIterator.cc
  11883. * src/MultiDiskAdaptor.{h, cc}
  11884. * src/ByteArrayDiskWriter.h
  11885. * src/AbstractSingleDiskAdaptor.h
  11886. * src/AbstractDiskWriter.cc
  11887. * src/DefaultPieceStorage.cc
  11888. * src/DiskWriter.h
  11889. * src/BinaryStream.h
  11890. * src/IteratableChunkChecksumValidator.cc
  11891. * src/IteratableChecksumValidator.cc
  11892. * src/CheckIntegrityEntry.cc
  11893. * src/FileAllocationEntry.cc
  11894. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. Fixed typo
  11896. * src/version_usage.cc
  11897. Updated doc
  11898. * doc/aria2c.1.txt
  11899. * doc/aria2c.1
  11900. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. Fixed compile error without message digest support.
  11902. * src/FileMetalinkParserState.cc
  11903. * src/MetalinkParserController.{h, cc}
  11904. * test/XML2SAXMetalinkProcessorTest.cc
  11905. * test/MetalinkParserControllerTest.cc
  11906. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. Enable direct I/O support in checksum checking.
  11908. * src/IteratableChunkChecksumValidator.{h, cc}
  11909. * test/IteratableChunkChecksumValidatorTest.cc
  11910. * src/CheckIntegrityEntry.cc
  11911. * src/PieceHashCheckIntegrityEntry.cc
  11912. * src/IteratableChecksumValidator.{h, cc}
  11913. * src/BtCheckIntegrityEntry.cc: Added doc.
  11914. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Added --allow-piece-length-change option.
  11916. * src/DefaultBtProgressInfoFile.cc
  11917. * test/DefaultBtProgressInfoFileTest.cc
  11918. * src/OptionHandlerFactory.cc
  11919. * src/option_processing.cc
  11920. * src/prefs.h
  11921. * src/version_usage.cc
  11922. * doc/aria2c.1.txt
  11923. * doc/aria2c.1
  11924. Fixed: duplicated result entry appears when exception is thrown in
  11925. RequestGroup::createInitiateConnectionCommand().
  11926. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11927. Add RequestGroup to _requestGroup after RequetGroup::
  11928. createInitiateConnectionCommand() succeeds.
  11929. Externalized message
  11930. * src/XML2SAXMetalinkProcessor.cc
  11931. * src/message.h
  11932. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Forced download abort when received negative response from http/ftp
  11934. server.
  11935. * src/HttpResponseCommand.cc
  11936. * src/FtpNegotiationCommand.cc
  11937. * src/HttpResponse.cc
  11938. * src/FtpConnection.cc
  11939. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11940. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11941. the predecessor, Xml2MetalinkParser class.
  11942. I tested them against 94KB metalink file with 1234 chunk checksums.
  11943. The new one parsed it in 22msec, while it took 6000msec with old one.
  11944. * src/XML2SAXMetalinkProcessor.{h, cc}
  11945. * test/XML2SAXMetalinkProcessorTest.cc
  11946. * src/MetalinkParserController.{h, cc}
  11947. * test/MetalinkParserControllerTest.cc
  11948. * src/MetalinkParserState.h: Also added 16 subclasses.
  11949. * src/main.cc
  11950. * src/Metalink2RequestGroup.cc
  11951. * src/MetalinkHelper.cc
  11952. * src/MetalinkEntry.cc
  11953. * src/ChunkChecksum.h
  11954. Rewritten Base64 class for better performance.
  11955. * src/Base64.{h, cc}
  11956. * test/Base64Test.cc
  11957. * src/HttpRequest.cc
  11958. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11959. Fixed the bug#1841757: aria2 will connect to server to only get
  11960. file size.
  11961. * src/StreamFileAllocationEntry.cc
  11962. * src/option_processing.cc
  11963. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11964. downloads.
  11965. * src/FtpNegotiationCommand.cc
  11966. Suppressed wrong message when finding PreDownloadHandler
  11967. * src/RequestGroup.cc
  11968. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. Updated usage
  11970. * src/version_usage.cc
  11971. Updated man page
  11972. * doc/aria2c.1.txt
  11973. * doc/aria2c.1
  11974. Updated po files
  11975. * po/aria2c.pot
  11976. * po/*.po
  11977. * po/*.gmo
  11978. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11979. Eliminated g++-4.2 warning
  11980. * src/DownloadHandlerConstants.{h, cc}
  11981. * src/Util.cc
  11982. * test/MetaFileUtilTest.cc
  11983. * test/PStringBuildVisitorTest.cc
  11984. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11985. * src/RequestGroup.cc
  11986. * src/BtCheckIntegrityEntry.cc
  11987. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11988. Fixed a2io.h
  11989. * src/a2io.h
  11990. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Added direct I/O support. The current implementation uses O_DIRECT,
  11992. which is not posix standard and is tested on linux 2.6.21.
  11993. Currently only file allocation uses direct I/O.
  11994. * src/SingleFileAllocationIterator.{h, cc}
  11995. * test/SingleFileAllocationIteratorTest.cc
  11996. * src/MultiFileAllocationIterator.{h, cc}
  11997. * test/MultiFileAllocationIteratorTest.cc
  11998. * src/BinaryStream.h
  11999. * src/DiskWriter.h
  12000. * src/AbstractDiskWriter.{h, cc}
  12001. * src/ByteArrayDiskWriter.h
  12002. * src/DiskAdaptor.h
  12003. * src/AbstractSingleDiskAdaptor.{h, cc}
  12004. * src/MultiDiskAdaptor.{h, cc}
  12005. * src/FileAllocationEntry.cc
  12006. * src/Util.{h, cc}
  12007. * src/OptionHandlerFactory.cc
  12008. * src/prefs.h
  12009. * src/version_usage.cc
  12010. * src/option_processing.cc
  12011. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12012. handleException.
  12013. * src/MultiFileAllocationIterator.cc
  12014. Added EINTR handling
  12015. * src/SocketCore.cc
  12016. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12017. Updated usage
  12018. * src/version_usage.cc
  12019. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12020. Applied Ross's patch for MinGW port.
  12021. * src/DownloadEngine.h
  12022. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. Set Content-Type to SingleFileDownloadContext when http response is
  12024. received.
  12025. * src/HttpResponseCommand.cc
  12026. * src/HttpResponse.{h, cc}
  12027. * test/HttpResponseTest.cc
  12028. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12029. Rewritten to add content-type support.
  12030. * src/DownloadHandler.{h, cc}
  12031. * src/BtPostDownloadHandler.{h, cc}
  12032. * test/BtPostDownloadHandlerTest.cc
  12033. * src/MetalinkPostDownloadHandler.{h, cc}
  12034. * test/MetalinkPostDownloadHandlerTest.cc
  12035. * src/PostDownloadHandler.{h, cc}
  12036. * src/DownloadHandlerConstants.{h, cc}
  12037. * src/RequestGroup.cc
  12038. * src/HttpResponseCommand.cc
  12039. * src/FtpNegotiationCommand.cc
  12040. * src/SingleFileDownloadContext.{h, cc}
  12041. * src/RequestGroup.h
  12042. * src/RequestGroupCriteria.h
  12043. * src/ContentTypeRequestGroupCriteria.h
  12044. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12045. If it is give, metalink/torrent file is not written to the disk, but
  12046. just is kept in memory. Parsing is occurred on memory.
  12047. * src/MetalinkHelper.{h, cc}
  12048. * src/MetalinkProcessor.h
  12049. * src/Xml2MetalinkProcessor.{h, cc}
  12050. * test/Xml2MetalinkProcessorTest.cc
  12051. * src/DownloadHandlerFactory.{h, cc}
  12052. * test/DownloadHandlerFactoryTest.cc
  12053. * src/PreDownloadHandler.{h, cc}
  12054. * src/OptionHandlerFactory.cc
  12055. * src/DefaultBtContext.{h, cc}
  12056. * test/DefaultBtContextTest.cc
  12057. * src/version_usage.cc
  12058. * src/Metalink2RequestGroup.{h, cc}
  12059. * src/RequestGroup.{h, cc}
  12060. * src/a2functional.h
  12061. * test/a2functionalTest.cc
  12062. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12063. * src/OptionHandlerImpl.h
  12064. * src/prefs.h
  12065. * src/Util.{h, cc}
  12066. * test/UtilTest.cc
  12067. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12068. memory usage.
  12069. * src/RequestGroupMan.{h, cc}
  12070. * src/DownloadEngine.cc
  12071. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12072. WeakHandle to SharedHandle because WeakHandle could be null.
  12073. * src/RequestGroup.{h, cc}
  12074. * src/DownloadEngineFactory.cc
  12075. * src/DownloadResult.h
  12076. Set totalLength after download finished
  12077. * src/UnknownLengthPieceStorage.{h, cc}
  12078. Keep torrent file specified in metalink in memory.
  12079. * src/Metalink2RequestGroup.cc
  12080. * src/BtDependency.cc
  12081. * src/TrueRequestGroupCriteria.h
  12082. Fixed the bug: seekg is used where seekp should be used.
  12083. * src/ByteArrayDiskWriter.cc
  12084. * test/ByteArraydiskWriterTest.cc
  12085. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Fixed syntax error
  12087. * test/SequenceTest.cc
  12088. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12090. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12091. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12092. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12093. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. Added the check to see whether ares_host_callback accepts timeouts
  12095. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12096. * src/NameResolver.{h, cc}
  12097. * m4/libcares.m4
  12098. * configure.ac: Set C++ for language choice.
  12099. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12100. Fixed: compilation fails without c-ares/ares
  12101. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12102. Generate http/ftp commands only when download is incomplete.
  12103. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12104. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. Corrected typo. Examples are removed since they are available in man
  12106. page.
  12107. * src/version_usage.cc
  12108. Updated man page.
  12109. * doc/aria2c.1
  12110. * doc/aria2c.1.txt
  12111. * doc/makeman: Commented out sed command.
  12112. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12113. Throw DlAbortEx when a remote file is not found.
  12114. * src/HttpResponse.cc
  12115. * src/FtpNegotiationCommand.cc
  12116. * src/message.h
  12117. Overwrite an existing file if --allow-overwrite=true is given.
  12118. * src/RequestGroup.cc
  12119. Removed unused functions
  12120. * src/AbstractCommand.h
  12121. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12122. Removed 'extern' from 'extern typedef ...' in src/*.h
  12123. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12124. Updated usage
  12125. * src/version_usage.cc
  12126. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12127. Trim announce URL
  12128. * src/DefaultBtContext.cc
  12129. * test/ShaVisitorTest.cc
  12130. Trim argument s. Give trimed s to exception constructor.
  12131. * src/Util.cc (parseInt)(parseLLInt)
  12132. * test/UtilTest.cc
  12133. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12134. Set precision back to 1.
  12135. * src/ConsoleStatCalc.cc (calculateStat)
  12136. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Replaced strtol with Util::parseInt
  12138. * src/ChunkedEncoding.cc
  12139. * src/HttpConnection.cc
  12140. * src/CookieBoxFactory.cc
  12141. * src/ParameterizedStringParser.cc
  12142. * src/Util.cc
  12143. * test/UtilTest.cc
  12144. * test/OptionHandlerTest.cc
  12145. * src/Request.cc
  12146. Throw exception when empty string is given. The message for exception
  12147. changed.
  12148. * src/Util.cc (parseInt)(parseLLInt)
  12149. * src/message.h
  12150. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12152. set to 1.
  12153. * src/ConsoleStatCalc.cc (calculateStat)
  12154. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12155. Preallocate non-requested file which is adjacent forward to requested
  12156. file('requested' files means the files given in --select-file option)
  12157. if they share a same piece.
  12158. This fixes long pause in the file system which doesn't support sparse
  12159. files like FAT32 while downloading.
  12160. * src/MultiFileAllocationIterator.{h, cc}
  12161. * test/MultiFileAllocationIteratorTest.cc
  12162. * src/FileEntry.{h, cc}
  12163. Removed unused _option.
  12164. * src/MultiDiskAdaptor.h
  12165. * test/MultiDiskAdaptorTest.cc
  12166. * src/DefaultPieceStorage.cc
  12167. Set the default value of --seed-ratio to 1.0.
  12168. If 0.0 is given, then seeding continues regardless of share ratio.
  12169. * src/version_usage.cc
  12170. * src/option_processing.cc
  12171. * src/BtSetup.cc
  12172. * doc/aria2c.1.txt
  12173. * doc/aria2c.1
  12174. Fixed: Selective download is not working in BitTorrent
  12175. * src/RequestGroup.cc
  12176. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12177. * src/PieceStorage.h
  12178. * test/MockPieceStorage.h
  12179. * src/UnknownLengthPieceStorage.h
  12180. * src/DefaultPieceStorage.{h, cc}
  12181. * src/Metalink2RequestGroup.cc
  12182. * src/RequestGroup.cc
  12183. * src/Sequence.h
  12184. * test/SequenceTest.cc
  12185. * src/IntSequence.h
  12186. * src/message.h
  12187. * src/Util.{h, cc}
  12188. * test/UtilTest.cc
  12189. Added new function 'parse' to catch exception thrown by subclass's
  12190. parseArg
  12191. * src/OptionHandler.h
  12192. * src/OptionParser.cc
  12193. * src/NameMatchOptionHandler.h
  12194. * src/OptionHandlerImpl.h
  12195. * test/OptionHandlerTest.cc
  12196. Added IntegerRangeOptionHandler. Used for --listen-port and
  12197. --select-file. Now --listen-port accepts range of port.
  12198. * src/OptionHandlerFactory.cc
  12199. * src/version_usage.cc
  12200. * src/OptionHandlerImpl.h
  12201. * src/option_processing.cc
  12202. * src/BtSetup.cc
  12203. * src/PeerListenCommand.{h, cc}
  12204. * doc/aria2c.1.txt
  12205. * doc/aria2c.1
  12206. Implemented operator< for Exception class to provide easy way to print
  12207. exception stack trace.
  12208. * src/Exception.{h, cc}
  12209. * src/main.cc
  12210. * src/option_processing.cc
  12211. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12212. * src/version_usage.cc
  12213. (showVersion): Reworked.
  12214. (showUsage): Added examples.
  12215. Removed Hint for total length and file name.
  12216. * src/Metalink2RequestGroup.cc
  12217. * src/RequestGroup.{h, cc}
  12218. * src/HttpResponseCommand.cc
  12219. * src/FtpNegotiationCommand.cc
  12220. Now --follow-torrent and --follow-metalink option work properly.
  12221. * src/RequestGroup.cc
  12222. Updated man page
  12223. * doc/aria2c.1.txt
  12224. * doc/aria2c.1
  12225. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12226. Removed.
  12227. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12228. Use Segment::operator==()
  12229. * src/HttpConnection.cc
  12230. * src/Segment.h
  12231. Updated usage
  12232. * src/version_usage.cc
  12233. Added EINTR treatment.
  12234. * src/SocketCore.cc
  12235. * src/AbstractDiskWriter.cc
  12236. Rewritten.
  12237. * src/Util.cc (rangedFileCopy)
  12238. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12239. Fixed typo.
  12240. * src/version_usage.cc
  12241. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Implemented. Now -c option works fine.
  12243. * src/DefaultPieceStorage.cc (markPiecesDone)
  12244. * test/DefaultPieceStorageTest.cc
  12245. Removed.
  12246. * src/SegmentMan.{h, cc}
  12247. (markAllPiecesDone)
  12248. (markPieceDone)
  12249. Synchronized po files with
  12250. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12251. * src/fr.po
  12252. * src/ru.po
  12253. * src/de.po
  12254. * src/ja.po
  12255. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12256. Added ifdef and some modifications to compile without BitTorrent,
  12257. Metalink, MessageDigest
  12258. support.
  12259. * src/PieceHashCheckIntegrityEntry.cc
  12260. * src/MetalinkEntry.h
  12261. * src/version_usage.cc
  12262. * src/main.cc
  12263. * src/DownloadEngine.{h, cc}
  12264. * src/Metalink2RequestGroup.cc
  12265. * src/Peer.cc
  12266. * src/RequestGroup.cc
  12267. * src/MetalinkHelper.cc
  12268. * test/DefaultPieceStorageTest.cc
  12269. * test/MetalinkPostDownloadHandlerTest.cc
  12270. * test/Metalink2RequestGroupTest.cc
  12271. Hide TOTAL SPD when all downloads complete.
  12272. * src/ConsoleStatCalc.cc
  12273. Log target system information.
  12274. * src/main.cc
  12275. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. Now --metalink-location accepts a comma-deliminated list of locations.
  12277. * src/MetalinkEntry.{h, cc}
  12278. * test/MetalinkEntryTest.cc
  12279. * src/version_usage.cc
  12280. * src/Metalink2RequestGroup.cc
  12281. * src/Xml2MetalinkProcessor.cc
  12282. * test/Xml2MetalinkProcessorTest.cc
  12283. * doc/aria2c.1.txt
  12284. * doc/aria2c.1
  12285. * src/Util.cc (toUpper)(toLower): Rewritten.
  12286. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12287. Added the ability to detect duplicate download entry which is about to
  12288. download the same file other RequestGroup is downloading.
  12289. * src/RequestGroup.cc
  12290. * src/HttpResponseCommand.cc
  12291. * src/FtpNegotiationCommand.cc
  12292. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. Recalculates download progress when loading a control file,
  12294. if the piece length of DownloadContext is different from the one saved
  12295. in the control file. Currently in-flight pieces are ignored.
  12296. * src/DefaultBtProgressInfoFile.cc
  12297. * test/DefaultBtProgressInfoFileTest.cc
  12298. * src/Util.{h, cc}
  12299. * test/UtilTest.cc
  12300. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12301. Do not rotate tiers in announce-list.
  12302. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12303. AnnounceList::allTiersFailed() used instead to detect whether all
  12304. tiers are tried and failed.
  12305. * test/DefaultBtAnnounceTest.cc
  12306. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12307. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12308. * test/AnnounceListTest.cc
  12309. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12310. clause. Catch RecoverableException instead of DlRetryEx instead.
  12311. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12312. Implemented checksum validation feature(1 checksum for each file)
  12313. The validation takes place after the download.
  12314. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12315. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12316. * src/CheckIntegrityCommand.cc: Changed log message.
  12317. * src/Metalink2RequestGroup.cc: Set checksum to
  12318. SingleFileDownloadContext.
  12319. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12320. PieceHashCheckIntegrity class.
  12321. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12322. PieceHashCheckIntegrity class.
  12323. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12324. * src/IteratableValidator.h: New class.
  12325. * src/message.h
  12326. * src/CheckIntegrityEntry.{h, cc}
  12327. * src/IteratableChunkChecksumValidator.{h, cc}
  12328. * src/SingleFileDownloadContext.h
  12329. * src/DownloadCommand.cc
  12330. --allow-overwrite=true is no longer needed to check file integrity
  12331. before download in BitTorrent download.
  12332. * src/RequestGroup.cc (getInitialCommand)
  12333. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12334. throws exception.
  12335. * src/RequestGroupMan.cc (getInitialCommands)
  12336. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12337. urlencode the given url inside Request::parseUrl(...)
  12338. * src/Request.{h, cc}
  12339. * src/Util.{h, cc}
  12340. * test/RequestTest.cc
  12341. Removed #!metalink3! notation support because it is deleted from
  12342. the metalink specification.
  12343. * src/Request.{h, cc}
  12344. * test/RequestTest.cc
  12345. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. Don't connect server before checking file integrity at startup, if
  12347. filesize and output file path are known.
  12348. * src/AbstractCommand.cc
  12349. * src/StreamFileAllocationEntry.cc
  12350. * src/Metalink2RequestGroup.cc
  12351. * src/RequestGroup.{h, cc}
  12352. * src/HttpResponseCommand.cc
  12353. * src/FtpNegotiationCommand.cc
  12354. Added DownloadFailureException. If it is thrown, RequestGroup should
  12355. halt.
  12356. * src/AbstractCommand.cc
  12357. * src/DownloadFailureException.h
  12358. * src/RequestGroup.cc
  12359. Catch RecoverableException, instead of DlAbortEx.
  12360. * src/RequestGroupMan.cc
  12361. * src/FillRequestGroupCommand.cc
  12362. * src/MetaFileUtil.cc
  12363. * src/IteratableChunkChecksumValidator.cc
  12364. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12365. getGID())
  12366. * src/CheckIntegrityCommand.cc
  12367. * src/message.h
  12368. Print gid instead of idx.
  12369. * src/RequestGroupMan.cc
  12370. Removed exception throwers declaration.
  12371. * src/DirectDiskAdaptor.{h, cc}
  12372. * src/SocketCore.{h, cc}
  12373. * src/MultiDiskAdaptor.{h, cc}
  12374. * src/HttpConnection.{h, cc}
  12375. * src/HttpResponse.{h, cc}
  12376. * src/DiskAdaptor.{h, cc}
  12377. * src/CopyDiskAdaptor.{h, cc}
  12378. * src/MultiDiskAdaptor.{h, cc}
  12379. * src/HttpHeaderProcessor.{h, cc}
  12380. * src/AbstractSingleDiskAdaptor.{h, cc}
  12381. * src/Util.{h, cc}
  12382. * test/UtilTest.cc
  12383. * src/DefaultDiskWriter.{h, cc}
  12384. * src/FtpConnection.{h, cc}
  12385. * src/AbstractDiskWriter.{h, cc}
  12386. Removed duplicate code.
  12387. * src/StreamCheckIntegrityEntry.cc
  12388. Removed unnecessary include.
  12389. * src/DiskWriter.h
  12390. Included Exception.h
  12391. * src/option_processing.cc
  12392. Included 2 files and added doc
  12393. * src/TrackerWatcherCommand.cc
  12394. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12395. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. Changed CheckIntegrityEntry interface so that it can define
  12397. the action when all the chunk checksums are valid.
  12398. * src/CheckIntegrityEntry.h
  12399. * src/StreamCheckIntegrityEntry.{h, cc}
  12400. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12401. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12402. to exit rather than doing seeding. So, it would be good to toggle this
  12403. behavior.
  12404. * src/CheckIntegrityCommand.cc
  12405. * src/AbstractCommand.cc
  12406. * src/RequestGroup.cc
  12407. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12408. Reflect the download length of in-flight pieces.
  12409. It makes the download length readout more precise.
  12410. * src/DefaultPieceStorage.{h, cc}
  12411. * test/DefaultPieceStorageTest.cc
  12412. * src/a2functional.h
  12413. * test/a2functionalTest.cc
  12414. Lower CPU load when --max-download-limit is used.
  12415. There is up and down in speed indicator when enabling
  12416. http-pipelining but a download goes well. I think the problem is that
  12417. because http-pipelining is enabled, DownloadCommand is created for
  12418. each segment and in its constructor, PeerStat::downloadStart() is
  12419. called. In PeerStat::downloadStart(), speed calculation object is
  12420. reseted, which makes download speed zero.
  12421. * src/DownloadCommand.cc
  12422. Rewritten using accumulate.
  12423. * src/RequestGroupMan.cc (calculateStat)
  12424. Code clearnup.
  12425. * src/FtpNegotiationCommand.cc
  12426. * src/HttpResponseCommand.cc
  12427. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. Fixed: Can not resume: aria2 reports download already finished.
  12429. * src/AbstractCommand.{h, cc}
  12430. * src/HttpResponseCommand.cc
  12431. * src/FtpNegotiateCommand.cc
  12432. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12433. Now a file is stored in the directory specified in .metalnk file
  12434. (file[@name]).
  12435. * src/Metalink2RequestGroup.cc
  12436. Create the directory structure when opening the file if it doesn't
  12437. exist.
  12438. * src/AbstractDiskWriter.cc
  12439. * src/Util.{h, cc}
  12440. * src/File.h
  12441. * test/UtilTest.cc
  12442. Removed file name comparison
  12443. * src/Metalink2RequestGroup.cc
  12444. * src/HttpResponseCommand.cc
  12445. Rewritten using Util::mkdirs()
  12446. * src/FileEntry.cc (setupDir)
  12447. * test/FileEntryTest.cc
  12448. Updated doc
  12449. * src/SingleFileDownloadContext.h
  12450. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12451. Now SleepCommand dispatches nextCommand when halt is requested.
  12452. It avoids a possible long wait after hitting CTRL-C.
  12453. * src/SleepCommand.{h, cc}
  12454. * src/RequestGroupAware.{h, cc}
  12455. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12456. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12457. to open listen port, then remove the port number from the tracker
  12458. request.
  12459. * src/DefaultBtAnnounce.cc
  12460. * test/DefaultBtAnnounceTest.cc
  12461. * test/MockPieceStorage.h
  12462. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12463. them more testable.
  12464. * src/DefaultBtAnnounce.{h, cc}
  12465. * src/DefaultBtContext.{h, cc}
  12466. * src/Util.{h, cc}
  12467. * test/DefaultBtAnnounceTest.cc
  12468. * test/DefaultBtContextTest.cc
  12469. * test/UtilTest.cc
  12470. Added 'B' to upload bytes readout.
  12471. * src/ConsoleStatCalc.cc
  12472. Now the listen port for BitTorrent download is opened when it is
  12473. needed.
  12474. * src/DownloadEngineFactory.cc
  12475. * src/BtSetup.{h, cc}
  12476. * src/PeerListenCommand.{h, cc}
  12477. Now an exception thrown while parsing tracker response is now logged.
  12478. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12479. called, which means no retry is made in this case, assuming a tracker
  12480. has a problem.
  12481. * src/TrackerWatcherCommand.cc
  12482. Fixed: downloading a file whose length is unkown fails.
  12483. * src/DownloadCommand.cc
  12484. Simplified prepareForNextSegment()
  12485. * src/DownloadCommand.cc
  12486. Updated
  12487. * po/POTFILES.in
  12488. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12489. Re-implemented a file listing for Metalink, which was dropped while
  12490. http/ftp/torrent integration was being implemented.
  12491. * src/MetalinkHelper.{h, cc}: New class.
  12492. * test/MetalinkHelperTest.cc
  12493. * src/main.cc
  12494. * src/Metalink2RequestGroup.cc
  12495. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12496. Added the ability to display the detailed torrent file information.
  12497. Now -S option gives not only a file listing, but also total download
  12498. length, info hash, announce URI, piece length, the number of pieces,
  12499. and mode(single or multi-torrent).
  12500. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12501. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12502. KiB)
  12503. * test/UtilTest.cc
  12504. * src/main.cc
  12505. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12506. Added ftp://USER:PASSWD@Servername automatic parsing.
  12507. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12508. _password. Recognize username and password in URI.
  12509. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12510. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12511. * src/RequestFactory.{h, cc}: Removed.
  12512. * src/AuthConfigFactory.{h, cc}: New class.
  12513. * src/FtpConnection.cc: Use AuthConfigFactory.
  12514. * src/HttpRequest.cc: Use AuthConfigFactory.
  12515. * test/HttpRequestTest.cc: Updated.
  12516. * test/RequestTest.cc: Updated.
  12517. * test/AuthConfigFactoryTest.cc: New class.
  12518. * test/RequestFactoryTest.cc: Removed.
  12519. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12520. Use RequestGroup::allDownloadFinished() to decide whether the control
  12521. file should be removed or saved.
  12522. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12523. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12524. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. Use File::renameTo()
  12526. * src/DefaultBtProgressInfoFile.cc
  12527. Added --no-file-allocation-limit command-line option.
  12528. * src/version_usage.cc
  12529. * src/option_processing.cc
  12530. * src/OptionHandlerFactory.cc
  12531. * src/RequestGroup.{h, cc}
  12532. * src/BtCheckIntegrityEntry.cc
  12533. * src/StreamCheckIntegrityEntry.cc
  12534. * src/prefs.h
  12535. * doc/aria2c.1.txt
  12536. * doc/aria2c.1
  12537. Now prealloc is the default value for --file-allocation option.
  12538. * src/version_usage.cc
  12539. * src/option_processing.cc
  12540. * doc/aria2c.1.txt
  12541. * doc/aria2c.1
  12542. Don't URL-encode user-agent.
  12543. * src/HttpRequest.cc
  12544. Updated translations
  12545. * po/LINGUAS: Added nl for Dutch translation.
  12546. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12547. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12548. * po/POTFILES.in: Updated.
  12549. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12550. Added the ability to recognize url-list in a torrent file.
  12551. The retrieved URLs are attached to the corresponding FileEntry.
  12552. * src/DefaultBtContext.{h, cc}
  12553. * src/FileEntry.{h, cc}
  12554. * test/DefaultBtContextTest.cc
  12555. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12556. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12557. after the download finishes.
  12558. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12560. the data smaller than block length.
  12561. A block length can be specified by constructor's argument.
  12562. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12563. Get a missing piece in the range of given FileEntry. This function is
  12564. not used in the program yet.
  12565. * src/Util.h: Added some macros.
  12566. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. Added HTTP/1.1 keep alive and pipelining support.
  12568. See --enable-http-keep-alive and --enable-http-pipelining option.
  12569. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12570. Segment.
  12571. * src/HttpDownloadCommand.{h, cc}
  12572. * src/OptionHandlerFactory.cc
  12573. * src/HttpConnection.{h, cc}
  12574. * src/version_usage.cc
  12575. * src/HttpInitiateConnectionCommand.cc
  12576. * src/FtpInitiateConnectionCommand.cc
  12577. * src/Segment.h
  12578. * src/HttpRequestCommand.{h, cc}
  12579. * src/option_processing.cc
  12580. * src/prefs.h
  12581. * src/HttpResponseCommand.cc
  12582. * src/SegmentMan.{h, cc}
  12583. * src/FtpNegotiateCommand.cc
  12584. * src/HttpProxyResponseCommand.cc
  12585. * src/Request.cc
  12586. * src/HttpRequest.cc
  12587. * src/DownloadCommand.cc
  12588. * test/HttpRequestTest.cc
  12589. * test/RequestTest.cc
  12590. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12591. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12592. finished.
  12593. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12594. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12595. catching it inside the method.
  12596. When no file entry is found in a metalink without querying user
  12597. preferences, throw the exception with the error message that suggests
  12598. metalink file is probably broken.
  12599. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12600. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12602. processed.
  12603. * src/RequestGroupMan.cc (removeStoppedGroup)
  12604. Added debug message.
  12605. * src/BtPostDownloadHandler.cc
  12606. * src/MetalinkPostDownloadHandler.cc
  12607. * src/PostDownloadHandler.{h, cc}
  12608. * src/RequestGroup.cc
  12609. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12610. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12611. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12613. stops and there are any unfinished or in-progress downloads.
  12614. Added the legend of "stat".
  12615. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. Throw exception when chunck checksum verification fails.
  12617. * src/DownloadCommand.cc (validatePieceHash): New function.
  12618. * src/PiecedSegment.{h, cc} (clear): New function.
  12619. * src/GrowSegment.{h, cc} (clear): New function.
  12620. * src/Segment.h (clear): New function.
  12621. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12622. * test/SegmentTest.cc
  12623. * test/GrowSegmentTest.cc
  12624. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. Do not send referer when redirected.
  12626. * src/Request.cc (redirectUrl)
  12627. * test/RequestTest.cc
  12628. * test/HttpRequestTest.cc
  12629. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Implemented BitTorrent/http/ftp integrated download.
  12631. I've rewritten lots of files and now some headers have forward
  12632. class declarations to reduce compile time.
  12633. The implementation is extremely alpha stage, I recommend to use this
  12634. for testing purpose only.
  12635. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. Fixed the compilation error on 64bit platform.
  12637. * test/HttpHeaderProcessorTest.cc
  12638. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. Merged Ross's patch that fixes compilation problem in MinGW
  12640. * test/DefaultBtProgressInfoFileTest.cc
  12641. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12642. Updated fr.po by sebone
  12643. * po/fr.po
  12644. Updated man page.
  12645. * doc/aria2c.1.txt
  12646. * Release 0.11.3
  12647. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12649. failure in Metalink.
  12650. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Automatically save *.aria2 control file of http/ftp download in every
  12652. 60 seconds.
  12653. * src/AutoSaveCommand.{h, cc}: New class.
  12654. * src/TimeBasedCommand.{h, cc}: New class.
  12655. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12656. Disable parameterized URI support by default. Added -P option to
  12657. enable the feature.
  12658. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12659. * src/OptionHandlerFactory.cc
  12660. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12661. Updated Japanese translation.
  12662. * po/ja.po
  12663. Updated man page.
  12664. * doc/aria2c.1.txt
  12665. * Release 0.11.3-rc
  12666. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12668. it is successful, then renamed to *.aria2.
  12669. This prevents *.aria2 file from being truncated or corrupted when
  12670. file system becomes out of space.
  12671. * src/DefaultBtProgressInfoFile.cc (save)
  12672. * src/SegmentMan.cc (save)
  12673. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12674. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. Reduced the fragmentation of bitfield in http/ftp download.
  12676. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12677. * test/BitfieldManTest.cc
  12678. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12679. Added the ability to disable segmented download in .metalink.
  12680. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12681. 'url' tag.
  12682. * src/MetalinkEntry.{h, cc}
  12683. * src/RequestResource.{h, cc}
  12684. * src/MetalinkRequestInfo.cc
  12685. * src/Xml2MetalinkProcessor.cc
  12686. * test/Xml2MetalinkProcessorTest.cc
  12687. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. Added parameterized URI support.
  12689. * src/main.cc: -Z option added.
  12690. * src/OptionHandlerFactory.cc
  12691. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12692. * src/PStringDatum.h: New class.
  12693. * src/PStringSegment.{h,cc}: New class.
  12694. * src/PStringNumLoop.h: New class.
  12695. * src/PStringSelect.h: New class.
  12696. * src/NumberDecorator.h: New class.
  12697. * src/FixedWidthNumberDecorator.h: New class.
  12698. * src/AlphaNumberDecorator.h: New class.
  12699. * src/PStringVisitor.h: New class.
  12700. * src/PStringBuildVisitor.{h,cc}: New class.
  12701. * src/ParameterizedStringParser.{h,cc}: New class.
  12702. * src/Util.{h,cc}
  12703. (isNumber): New function.
  12704. (isLowercase): New function.
  12705. (isUppercase): New function.
  12706. (alphaToNum): New function.
  12707. * test/ParameterizedStringParserTest.cc: New class.
  12708. * test/AlphaNumberDecoratorTest.cc: New class.
  12709. * test/PStringBuildVisitorTest.cc: New class.
  12710. * test/UtilTest.cc
  12711. (testIsNumber): New function.
  12712. (testIsLowercase): New function.
  12713. (testIsUppercase): New function.
  12714. (testAlphaToNum): New function.
  12715. Added '\n' after the error message
  12716. * src/RequestInfo.h (printDownloadAbortMessage)
  12717. Added auto file renaming feature in http(s)/ftp download.
  12718. * src/main.cc: Added --auto-file-renaming command-line option.
  12719. * src/OptionHandlerFactory.cc
  12720. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12721. * src/RequestGroup.{h, cc}
  12722. (shouldCancelDownloadForSafety): Rewritten
  12723. (tryAutoFileRenaming): New function.
  12724. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12725. * src/HttpResponseCommand.cc
  12726. (executeInternal): Removed the call to RequestGroupMan::
  12727. isSameFileBeingDownloaded()
  12728. * src/FtpNegotiateCommand.cc
  12729. (recvSize): Removed the call to RequestGroupMan::
  12730. isSameFileBeingDownloaded()
  12731. * test/RequestGroupTest.cc: New class.
  12732. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12733. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12734. IO.
  12735. * src/DefaultBtProgressInfoFile.cc
  12736. * src/MetaFileUtil.cc
  12737. * src/SimpleLogger.cc
  12738. * src/SegmentMan.cc
  12739. * src/Util.cc
  12740. * src/Platform.cc
  12741. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12742. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12743. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12744. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12745. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12746. Fixed the bug that prevents file allocation is not done when
  12747. dowloading multi-torrent file.
  12748. * src/AbstractDiskWriter.cc (openFile)
  12749. Increase the maximum number of -j option from 15 to 45.
  12750. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12751. Added fr.po, thanks to Charles Landemaine.
  12752. * po/fr.po
  12753. * po/LINGUAS
  12754. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12755. gcc 3.4.4 support:
  12756. * src/DefaultBtContext.cc: int32_t -> int
  12757. * src/main.cc: int -> int32_t, int32_t -> int
  12758. * src/messageDigest.h: uint32_t -> unsigned int
  12759. * src/NameResolver.h: int32_t -> int
  12760. * src/PeerConnection.cc: int -> int32_t
  12761. * src/SpeedCalc.cc: int32_t -> int
  12762. * src/TrackerUpdateCommand.h: int -> int32_t
  12763. * src/Util.cc: int32_t -> int
  12764. * src/Util.h: int32_t -> int
  12765. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12766. * test/AnnounceListTest.cc: int -> int32_t
  12767. * test/ChunkedEncodingTest.cc: int -> int32_t
  12768. * test/DataTest.cc: int -> int32_t
  12769. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12770. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12771. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12772. * test/FeatureConfigTest.cc: int -> int32_t
  12773. * test/MetalinkEntryTest.cc: int -> int32_t
  12774. * test/MockBtRequestFactory.h: int -> int32_t
  12775. * test/MockPieceStorage.h: int -> int32_t
  12776. * test/OptionTest.cc: int -> int32_t
  12777. * test/RequestTest.cc: int -> int32_t
  12778. * test/SegmentManTest.cc: int -> int32_t
  12779. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12780. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12781. Move sleep functions to Util class:
  12782. * src/Util.cc
  12783. (sleep): New function.
  12784. (usleep): New function.
  12785. * src/DownloadCommand.cc: sleep -> Util::sleep
  12786. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12787. MinGW build enhancements. The following files are added:
  12788. * src/timegm.{c,h}
  12789. Changes to support the above new files:
  12790. * configure.ac
  12791. * src/Makefile.am
  12792. * src/a2time.h
  12793. * src/Util.cc:
  12794. * src/strptime.c: Added support for %Z option.
  12795. Fixed MinGW non-blocking bug.
  12796. * src/SocketCore.cc
  12797. * src/HttpRequestCommand.cc
  12798. Miscellenous build fixes/enhancements.
  12799. * configure.ac: Added summary report.
  12800. * src/Platform.h: Tweaked #include's.
  12801. * src/a2netcompat.h: Tweaked #include's.
  12802. * src/strptime.h: Tweaked #include's.
  12803. * src/gai_strerror.c: Tweaked #include's.
  12804. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12805. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12806. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12807. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12808. Increased the initial connection size in BitTorrent download to 40.
  12809. * src/BtRuntime.h
  12810. Added the usage message of --peer-id-prefix option.
  12811. * src/main.cc
  12812. * Release 0.11.2
  12813. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12814. MessageDigestHelper is introduced in order to simplify the use
  12815. of message digest. Removed repeated code.
  12816. The message digest algorithm is now specified by string, like "sha1",
  12817. "md5".
  12818. * src/messageDigest.{h, cc}
  12819. * src/MessageDigestHelper.{h, cc}: New class.
  12820. * src/DefaultPieceStorage.cc
  12821. * src/DefaultBtContext.{h, cc}
  12822. (computeFastSet): New function.
  12823. (setInfoHash): Added for unit testing.
  12824. (setNumPieces): Added for unit testing.
  12825. * src/DefaultBtInteractive.cc
  12826. * src/BtPieceMessage.cc
  12827. * src/Peer.cc
  12828. * src/Checksum.h
  12829. * src/message.h
  12830. * src/IteratableChecksumValidator.h
  12831. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12832. inside it.
  12833. * src/SegmentMan.{h, cc}
  12834. (checkIntegrity): Removed.
  12835. * src/IteratableChunkChecksumValidator.{h, cc}
  12836. * src/Util.h
  12837. (sha1Sum): Removed.
  12838. (simpleMessageDigest): Removed.
  12839. (fileChecksum): Removed.
  12840. (computeFastSet): Removed.
  12841. * src/ShaVisitor.cc
  12842. * src/ChunkChecksum.h
  12843. * src/DownloadCommand.cc
  12844. Removed messageDigest virtual functions.
  12845. * src/MultiDiskAdaptor.{h, cc}
  12846. * src/DiskAdaptor.h
  12847. * src/ByteArrayDiskWriter.h
  12848. * src/DiskWriter.h
  12849. * src/DiskAdaptorWriter.h
  12850. * src/AbstractSingleDiskAdaptor.{h, cc}
  12851. * src/AbstractDiskWriter.{h, cc}
  12852. Fixed comilation error when message digest is disabled.
  12853. * src/MetalinkEntry.{h, cc}
  12854. * src/MetalinkRequestInfo.cc
  12855. Removed srandom and random.
  12856. * src/SimpleRandomizer.h
  12857. Added size() virtual function to DiskAdaptor
  12858. * src/MultiDiskAdaptor.h
  12859. Fixed the bug that causes that files are not opened correctly in
  12860. multi-file torrent.
  12861. * src/TorrentRequestInfo.cc
  12862. * src/MultiDiskAdaptor.cc
  12863. Added SHA256 support
  12864. * src/messageDigest.cc
  12865. * src/Xml2MetalinkProcessor.cc
  12866. Show supported message digest algorithms
  12867. * src/main.cc
  12868. Updated contact info.
  12869. * src/main.cc
  12870. Applied Ross's patch
  12871. * src/a2netcompat.h
  12872. * src/main.cc
  12873. Fixed the bug that prevents a remote metalink from not being processed
  12874. even if '-o foo.metalink' is specified.
  12875. * src/MetalinkRequestInfo.cc
  12876. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12877. Merged Dan's patch:
  12878. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12879. Use va_copy to avoid core dump on amd64:
  12880. * src/SimpleLogger.cc
  12881. Updated contact info.
  12882. * src/main.cc
  12883. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12884. digest is not available.
  12885. * src/MetalinkEntry.h
  12886. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Make a2netcompat.h include a2io.h to fix compilation error:
  12888. * src/a2netcompat.h
  12889. * src/SocketCore.cc: Removed include of a2io.h
  12890. * src/Util.cc: Removed include of a2io.h
  12891. Gather time related functions to a2time.h:
  12892. * src/a2time.h: New file.
  12893. * src/DefaultPeerStorage.cc
  12894. * src/SimpleLogger.cc
  12895. * src/Util.{h, cc}
  12896. * src/SimpleRandomizer.h
  12897. * src/TimeA2.{h,cc}
  12898. * src/DownloadCommand.cc
  12899. * src/main.cc
  12900. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12901. a2netcompat.h:
  12902. * src/NameResolver.cc
  12903. Fixed compilation error without openssl:
  12904. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12905. Added default block to suppress compiler warnings:
  12906. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12907. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12908. MinGW build enhancements. The following files are added:
  12909. * src/gai_strerror.{c,h}
  12910. * src/gettimeofday.{c,h}
  12911. Changes to support the above new files:
  12912. * configure.ac
  12913. * src/Makefile.am
  12914. * src/a2netcompat.h
  12915. * src/TimeA2.cc
  12916. * src/DefaultPeerStorage.cc
  12917. * src/NameResolver.cc: removed mingw_strerror() function.
  12918. * src/SocketCore.cc: removed mingw_strerror() function.
  12919. Miscellaneous MinGW build fixes.
  12920. * src/a2io.h: Use _lseeki64() instead of lseek()
  12921. * src/common.h
  12922. * src/DefaultFileAllocator.cc
  12923. * src/GlowFileAllocator.cc
  12924. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12925. * src/NameResolver.cc
  12926. (callback): Changed int32_t to int.
  12927. (resolve): Changed int32_t to int.
  12928. * src/Platform.cc
  12929. * src/Platform.h
  12930. * test/MultiDiskWriterTest.cc
  12931. * test/PeerMessageUtilTest.cc
  12932. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12933. Other enhancements and fixes.
  12934. * src/HttpRequestCommand.cc
  12935. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12936. * src/SocketCore.cc:
  12937. (error): New function to abstract errno/WSAGetLastError().
  12938. (errorMsg): New function to abstract errno/WSAGetLastError().
  12939. (initiateSecureConnection): Added more detailed error reporting.
  12940. * src/SocketCore.h: Added private variable blocking, to allow
  12941. proper handling of OpenSSL psuedo-errors.
  12942. * src/message.h
  12943. (EX_SSL_INIT_FAILURE)
  12944. (EX_SSL_IO_ERROR)
  12945. (EX_SSL_PROTOCOL_ERROR)
  12946. (EX_SSL_UNKNOWN_ERROR)
  12947. (EX_SSL_CONNECT_ERROR)
  12948. (EX_SOCKET_BLOCKING)
  12949. (EX_SOCKET_NONBLOCKING)
  12950. (EX_SOCKET_UNKNOWN_ERROR)
  12951. * src/Util.cc
  12952. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12953. reserved name.
  12954. (httpGMT): Fixed typo.
  12955. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. Merged Ross's win32 patch(manually)
  12957. In the course of merging, following files are added.
  12958. * src/strptime.{h,c}
  12959. * src/libgen.{h,c}
  12960. * src/inet_aton.{h,c}
  12961. * src/Platform.{h,cc}
  12962. * src/localtime_r.{h,c}
  12963. * src/getaddrinfo.{h,c}
  12964. I've gethered network related things, and put them to following file:
  12965. * src/a2netcompat.h
  12966. Also io related things are put to following file:
  12967. * src/a2io.h
  12968. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12969. * src/message.h
  12970. (MSG_ALLOCATION_COMPLETED)
  12971. (EX_TOO_LARGE_FILE)
  12972. (EX_SIZE_MISMATCH)
  12973. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12974. (EX_INVALID_CHUNK_CHECKSUM)
  12975. (EX_INVALID_RANGE_HEADER)
  12976. * src/FileAllocationCommand.cc
  12977. * src/HttpResponse.cc
  12978. * src/RequestGroup.cc
  12979. * src/MultiDiskAdaptor.cc
  12980. * src/OptionHandlerImpl.h
  12981. * src/HttpResponseCommand.cc
  12982. * src/FtpNegotiateCommand.cc
  12983. * src/IteratableChecksumValidator.cc
  12984. * src/SegmentMan.cc
  12985. * src/ChunkChecksumValidator.cc
  12986. Added Randomizer::getRandomNumber(long int)
  12987. * src/Randomizer.h (getRandomNumber)
  12988. * src/SimpleRandomizer.h (getRandomNumber)
  12989. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12990. * src/Util.cc (randomAlpha): Use this new function.
  12991. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12992. Converted int's to in32_t. long long int's are also converted to
  12993. int64_t
  12994. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12995. Fixed the bug that prevents cookies from being sent to the server
  12996. if the domain of cookie is FQDN and starts with ".".
  12997. * src/Cookie.cc (match)
  12998. To add the ability to change peer id.
  12999. * src/DefaultBtContext.h
  13000. (_peerIdPrefix): New variable
  13001. (setPeerIdPrefix): New function.
  13002. * src/torrentRequestInfo.cc
  13003. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13004. DefaultBtContext.
  13005. * src/main.cc (main): Added peer-id-prefix command-line option.
  13006. The usage message is not added yet.
  13007. * src/DefaultBtContext.cc
  13008. (generatePeerId): Use _peerIdPrefix.
  13009. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13010. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13011. Fixed the bug that prevents filename in content-disposition from
  13012. being retrieved when filename is not quoted.
  13013. * src/Util.cc (getContentDispositionFilename)
  13014. Fixed the bug that causes infinate loop and memory leak when file open
  13015. operation failed.
  13016. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13017. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13018. Fixed the bug that causes segfault when all URIs specified are
  13019. unsupported.
  13020. * src/RequestGroupMan.cc (getInitialCommands)
  13021. Check if RequestGroup::createNextCommand() returns empty list of
  13022. commands.
  13023. * src/RequestGroup.cc (createNextCommand)
  13024. Change log level from info to error so that users can notice that
  13025. an error occurred.
  13026. Fixed the bug that causes segfault when a zero-sized file is
  13027. downloaded.
  13028. * src/BitfieldMan.cc (isAllBitSet)
  13029. Return true if bitfieldLength is 0.
  13030. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13031. * src/main.cc
  13032. (showUsage): Added 3 usage examples for metalink download.
  13033. Replace MetalinkChunkChecksum with ChunkChecksum.
  13034. * src/MetalinkChunkChecksum.h: Removed.
  13035. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13036. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13037. * src/Xml2MetalinkProcessor.cc
  13038. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13039. * src/MetalinkRequestInfo.cc (execute)
  13040. * Release 0.11.1
  13041. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. Reads URIs from stdin when "-i -" is specified.
  13043. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13044. * src/UriListParser.h, src/UriListParser.cc: New class.
  13045. * src/StreamUriListParser.h: New class.
  13046. * src/FileUriListParser.h: New class.
  13047. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13048. instead of UriFileListParser.
  13049. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13050. Made console readout more readable.
  13051. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13052. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13053. Fix the bug that causes -s option not to work.
  13054. * src/main.cc (main)
  13055. * src/a2algo.h: New file.
  13056. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. Create directory structure specified in metalink file.
  13058. * src/RequestGroup.h, src/RequestGroup.cc
  13059. (initAndOpenFile): Create a directory to store files if it does not
  13060. exist.
  13061. (getDir): New function.
  13062. Added ETA and download speed for an individual file to readout.
  13063. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13064. * src/RequestGroup.h
  13065. (calculateDownloadSpeed): New function.
  13066. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. Made -S option work with metalink file and provided selective download
  13068. to metalink.
  13069. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13070. (filename): Removed.
  13071. (file): New variable.
  13072. (size): Removed.
  13073. (operator=): Updated.
  13074. (getPath): New function.
  13075. (getLength): New function.
  13076. (toFileEntry): New function.
  13077. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13078. (execute): Use toStream.
  13079. (showFileEntry): Removed.
  13080. * src/MetalinkRequestInfo.h
  13081. (targetFiles): New variable.
  13082. (setTargetFiles): New variable.
  13083. * src/MetalinkRequestInfo.cc
  13084. (execute): Added the ability to print file information included in
  13085. a metalink file.
  13086. Added selective download mode to metalink.
  13087. * src/main.cc
  13088. (showUsage): Updated to denote that -S and --select-file options are
  13089. applicable to metalink.
  13090. * src/FileEntry.h
  13091. (operator=): New function.
  13092. (getBasename): New function.
  13093. (getDirname): New function.
  13094. * src/Util.h, src/Util.cc
  13095. (toStream): New function.
  13096. * src/Xml2MetalinkProcessor.cc: Updated.
  13097. Made aria2 work with metalink with directory structure.
  13098. * src/File.h, src/File.cc
  13099. (getBasename): New function.
  13100. (getDirname): New function.
  13101. * src/RequestGroup.h, src/RequestGroup.cc
  13102. (_topDir): New variable.
  13103. (setTopDir): New function.
  13104. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13105. Rewrote HTTP header parsing with stringstream.
  13106. * src/HttpConnection.h, src/HttpConnection.cc
  13107. (HttpRequestEntry): New class.
  13108. (headerBuf): Removed.
  13109. (headerBufLength): Removed.
  13110. (outstandingHttpRequests): Now its element type is
  13111. HttpRequestEntryHandle.
  13112. (findEndOfHeader): Removed.
  13113. (receiveResponse): Rewritten.
  13114. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13115. Updated doc for -j option to notice that it should be used with -i
  13116. option.
  13117. * src/main.cc (showUsage)
  13118. Removed unused classes.
  13119. * src/RequestInfo.h
  13120. (FileInfo): Removed.
  13121. (checksum): Removed.
  13122. (fileInfo): Removed.
  13123. (setChecksum): Removed.
  13124. (getChecksum): Removed.
  13125. (getFileInfo): Removed.
  13126. Use ISO units.
  13127. * src/ConsoleDownloadEngine.cc
  13128. * src/TorrentConsoleDownloadEngine.cc
  13129. * src/Util.cc (abbrevSize)
  13130. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13131. Added the default listening ports to the help message.
  13132. * src/main.cc (showUsage)
  13133. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13134. Reduce the number of calls to gettimeofday to lower CPU load.
  13135. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13136. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13137. * src/Peer.h (calculateUploadSpeed): New function.
  13138. (calculateDownloadSpeed): New function.
  13139. * src/DefaultPeerStorage.cc
  13140. (CalculateStat): Added _now variable.
  13141. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13142. and Peer::calculateUploadSpeed(const struct timeval&)
  13143. Drop connection if no request or piece message is exchanged in
  13144. a certain interval.
  13145. * src/DefaultBtInteractive.h
  13146. (btRuntime): New variable.
  13147. (inactiveCheckPoint): New variable.
  13148. (checkActiveInteraction): New function.
  13149. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13150. request or piece message is received.
  13151. (checkActiveInteraction): New function.
  13152. (doInteractionProcessing): Call checkActiveInteraction.
  13153. Fixed the bug that causes remote Metalink and Torrent files are not
  13154. processed.
  13155. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13156. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13157. Changed format of log file.
  13158. * src/SimpleLogger.cc
  13159. * Release 0.11.0
  13160. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13161. * src/AbstractCommand.cc
  13162. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13163. MSG_MAX_TRY from error to info.
  13164. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13165. * src/message.h
  13166. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13167. (MSG_DOWNLOAD_ABORTED): Added %s.
  13168. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13169. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13170. * src/PeerAbstractCommand.cc
  13171. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13172. * src/Request.h
  13173. (cookieBox): Made ShardHandle.
  13174. * src/RequestGroup.h, src/RequestGroup.cc
  13175. (createNextCommandWithAdj): New function.
  13176. * src/FileAllocationCommand.cc
  13177. (executeInternal): Use createNextCommandWithAdj().
  13178. * src/CheckIntegrityCommand.cc
  13179. (executeInternal): Use createNextCommandWithAdj().
  13180. Added --load-cookies command-option.
  13181. * src/OptionHandlerFactory.cc
  13182. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13183. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13184. Now aria2 can handle cookie's expiration date.
  13185. * src/Cookie.h (expires): Changed its type to time_t.
  13186. * src/main.cc: Added --load-cookies command-line option.
  13187. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13188. * src/Util.h, src/Util.cc (httpGMT): New function.
  13189. * src/Request.cc (Request): Initialize cookieBox using
  13190. CookieBoxFactory.
  13191. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13192. * src/CookieParser.h, src/CookieParser.cc: New class.
  13193. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13194. * src/HttpResponseCommand.cc
  13195. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13196. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13197. download.
  13198. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13199. Added -j command-line option.
  13200. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13201. * src/main.cc
  13202. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13203. Rewritten using stringstream.
  13204. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13205. Rewritten using stringstream.
  13206. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13207. Make download size shown in MB, KB.
  13208. * src/ConsoleDownloadEngine.h (sendStatistics)
  13209. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13210. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13211. Accept incoming connections if download rate is low.
  13212. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13213. (_lowestSpeedLimit): New variable.
  13214. (setLowestSpeedLimit): New function.
  13215. (execute): Accept incoming connections if download rate is low.
  13216. MAX_PEERS is ignored in this case.
  13217. Disable PREF_OUT in multiple concurrent download:
  13218. * src/RequestGroup.h, src/RequestGroup.cc
  13219. (setUserDefinedFilename): New function.
  13220. * src/DownloadEngineFactory.cc
  13221. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13222. concurrent download.
  13223. * src/DefaultSegmentManFactory.cc
  13224. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13225. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13226. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13227. Added its overloaded method.
  13228. * src/RequestGroup.h
  13229. (_numConcurrentCommand): New variable.
  13230. (setNumConcurrentCommand): New function.
  13231. * src/RequestGroup.cc
  13232. Abort download if same file is being downloaded concurrently.
  13233. * src/RequestGroup.h, src/RequestGroupMan.cc
  13234. (isSameFileBeingDownloaded): New function.
  13235. * src/HttpResponseCommand.cc (executeInternal)
  13236. * src/FtpNegotiateCommand.cc (recvSize)
  13237. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13238. * main.cc: Added help message for -i option.
  13239. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13240. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13241. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13242. * src/MetalinkEntry.h
  13243. (checksum): Changed to ChecksumHandle
  13244. * src/MetalinkRequestInfo.cc
  13245. (checksum): Changed to ChecksumHandle
  13246. * src/File.cc
  13247. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13248. * src/common.h
  13249. (DIR_OPEN_MODE): New definition
  13250. * src/RequestGroup.cc
  13251. (prepareForNextAction): Added an argument.
  13252. * src/message.h
  13253. (MSG_GOOD_CHECKSUM): New definition
  13254. (MSG_BAD_CHECKSUM): New definition
  13255. * src/HttpResponseCommand.cc
  13256. (handleDefaultEncoding): Continue download sequence in new
  13257. non-segmented download.
  13258. * src/FileAllocationEntry.h
  13259. (_nextDownloadCommand): New variable.
  13260. * src/DownloadCommand.cc
  13261. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13262. available.
  13263. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13264. * src/IteratableChecksumValidator.h,
  13265. src/IteratableChecksumValidator.cc: New class.
  13266. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13267. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13268. Change file mode to 666:
  13269. * src/common.h (OPEN_MODE): New definition.
  13270. * src/File.cc
  13271. * src/Util.cc
  13272. * src/Directry.cc
  13273. * src/AbstractDiskWriter.cc
  13274. Change the level of log message "download aborted" to debug:
  13275. * src/PeerAbstractCommand.cc (execute)
  13276. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13277. * src/TrackerWatcherCommand.cc
  13278. (createCommand): Sleep some seconds after request failed.
  13279. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13280. then abort tracker request.
  13281. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. * Added the simultaneous download feature.
  13283. * src/main.cc: Print "Exception caught: " when exception is caught.
  13284. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13285. * src/ActivePeerConnectionCommand.cc
  13286. * src/PeerInteractionCommand.cc
  13287. * src/BtRuntime.h
  13288. (cuidCounter): Removed.
  13289. (getNewCuid): Removed.
  13290. * src/DownloadEngineFactory.cc
  13291. * src/PeerListenCommand.cc
  13292. * src/TrackerUpdateCommand.cc
  13293. * src/PeerInitiateConnectionCommand.cc
  13294. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13295. * src/PeerAbstractCommand.cc
  13296. (onAbort): Call PeerStorage::returnPeer()
  13297. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13298. (incomingPeers): New variable.
  13299. (addIncomingPeer): New function.
  13300. (returnPeer): New function.
  13301. (onErasingPeer): New function.
  13302. (addPeer): push_back -> push_front
  13303. (getActivePeers): Rewritten.
  13304. (calculateStat): Rewritten.
  13305. * src/PeerStorage.h
  13306. (TransferStat::copy): New function.
  13307. (TransferStat::TransferStat): New function.
  13308. (TransferStat::operator=): New function.
  13309. (addIncomingPeer): New function.
  13310. (returnPeer): New function.
  13311. * src/PeerListenCommand.cc
  13312. (execute): Use PeerStorage::addIncomingPeer() instead of
  13313. Peer::addPeer().
  13314. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13315. Connect to a peer actively when download speed is lower than specified
  13316. speed in torrent download:
  13317. * src/ActivePeerConnectionCommand.h: New class.
  13318. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13319. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13320. * src/main.cc: Fixed the bug that prevents download if .netrc
  13321. doesn't exist.
  13322. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13323. To cache resolved hostname:
  13324. * src/AbstractCommand.h, src/AbstractCommand.cc
  13325. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13326. Added dns cache.
  13327. * src/FtpInitiateConnectionCommand.cc
  13328. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13329. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13330. NameResolver working without ares.
  13331. * src/TorrentRequestInfo.cc
  13332. (execute): Don't cache dns in torrent download.
  13333. * src/HttpInitiateConnectionCommand.cc
  13334. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13335. * src/DNSCache.h: New class.
  13336. * src/UrlRequestInfo.cc
  13337. (execute): Use dns cache.
  13338. In http request, suppress port number in http request header if port
  13339. is 80 or 443:
  13340. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13341. request header if port is 80 or 443.
  13342. (createProxyRequest): Allways send port number.
  13343. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13344. To add the command-line option which disables netrc support:
  13345. * src/OptionHandlerFactory.cc
  13346. (createOptionHandlers): Added PREF_NO_NETRC.
  13347. * src/main.cc: Added -n option.
  13348. * src/prefs.h (PREF_NO_NETRC): New definition.
  13349. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13350. V_TRUE.
  13351. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13352. is V_FALSE. This may get configurable in the future release.
  13353. To clear peer's error status by time basis:
  13354. * src/PeerAbstractCommand.cc
  13355. (onAbort): Call Peer::startBadCondition().
  13356. * src/Peer.h, src/Peer.cc
  13357. (error): Removed.
  13358. (_badConditionStartTime): New variable.
  13359. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13360. (startBadCondition): New function.
  13361. (isGood): New function.
  13362. * src/DefaultPeerStorage.cc
  13363. (addPeer): Use Peer::isGood().
  13364. (FindFinePeer): Use Peer::isGood().
  13365. Always include port number in http request header:
  13366. * src/HttpRequest.cc (getHostText): Always include port number in
  13367. http request header.
  13368. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13369. To the ability to read options from a config file:
  13370. * src/main.cc: Command-line parameter validation is delegated to
  13371. OptionHandler class.
  13372. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13373. * src/Option.h, src/Option.cc (clear): New function.
  13374. * src/OptionParser.h, src/OptionParser.cc: New class.
  13375. * src/OptionHandler.h: New class.
  13376. * src/NameMatchOptionHandler.h: New class.
  13377. * src/OptionHandlerImpl.h: New classes.
  13378. * src/prefs.h: '_' -> '-'
  13379. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13380. (FTP_PASV): New definition.
  13381. * src/Util.h, src/Util.cc (getRealSize): New function.
  13382. To disable netrc support if .netrc file does not have correct
  13383. permissions:
  13384. * src/File.h, src/File.cc (mode): New function.
  13385. To prevent confidential information to be logged:
  13386. * src/HttpConnection.h, src/HttpConnection.cc
  13387. (eraseConfidentialInfo): New function.
  13388. (sendRequest): Call eraseConfidentialInfo().
  13389. (sendProxyRequest): Call eraseConfidentialInfo().
  13390. * src/main.cc: Validate permissions of .netrc file.
  13391. To add --user-agent command-line option:
  13392. * src/main.cc: Added new command line option: --user-agent
  13393. * src/prefs.h (PREF_USER_AGENT): New definition.
  13394. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13395. parameter to HttpRequest object.
  13396. * src/AbstractProxyRequestCommand.cc
  13397. (executeInternal): Set user-agent option parameter to HttpRequest
  13398. object.
  13399. Marged the patches from Dan Fandrich.
  13400. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13401. Use filename and size from Metalink file instead of sending HEAD
  13402. request:
  13403. * src/UrlRequestInfo.h
  13404. (_filename): New variable.
  13405. (_totalLength): New variable.
  13406. (setTotalLength): New variable.
  13407. (setFilename): New variable.
  13408. * src/MetalinkRequestInfo.cc
  13409. (execute): Set filename and size to UrlRequestInfo
  13410. * src/UrlRequestInfo.cc
  13411. (execute): Use filename and size from Metalink instead of seding
  13412. HEAD request to servers.
  13413. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13414. To add the ability to resume downloading a partially downloaded file
  13415. which is downloaded from the beginning:
  13416. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13417. takes this role.
  13418. * src/main.cc: Added -c option.
  13419. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13420. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13421. * src/prefs.h (PREF_CONTINUE): New definition.
  13422. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13423. * src/DefaultDiskWriter.cc
  13424. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13425. * src/AbstractDiskWriter.h
  13426. (glowFileAllocator): New variable.
  13427. * src/AbstractDiskWriter.cc
  13428. (openExistingFile): Now preallocate file space from the end of the
  13429. existing file if totalLength argument is specified and grater than 0.
  13430. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13431. to download exists in local, continue the download of the file.
  13432. --allow-overwrite=true is assumed in this context.
  13433. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13434. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13435. Throw exception if --check-integrity=true is specified but chunk
  13436. checksums are not provided:
  13437. * src/UrlRequestInfo.cc
  13438. Do not print URLs to stdout:
  13439. * src/UrlRequestInfo.cc
  13440. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13441. * src/Request.h: Use AuthResolver to get authentication information.
  13442. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13443. set to RequestFactory object.
  13444. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13445. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13446. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13447. create Request object.
  13448. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13449. To integrate Netrc into exsiting classes:
  13450. * src/Request.h
  13451. (_userDefinedAuthConfig): New variable.
  13452. (findNetrcAuthenticator): New function.
  13453. (segment): Removed.
  13454. (setUserDefinedAuthConfig): New function.
  13455. (resolveHttpAuthConfigItem): New function.
  13456. (resolveFtpAuthConfigItem): New function.
  13457. (resolveHttpProxyAuthConfigItem): New function.
  13458. * src/HttpRequest.h
  13459. (authConfig): Removed.
  13460. (proxyAuthConfig): Removed.
  13461. (setAuthConfig): Removed.
  13462. (setProxyAuthConfig): Removed.
  13463. * src/UrlRequest.h
  13464. (getHeadResult): Added a parameter: authConfigHandle
  13465. * src/common.h
  13466. (SingletonHolder.h): New include.
  13467. * src/main.cc
  13468. (Netrc.h): New include.
  13469. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13470. Added initial value of PREF_NETRC_PATH.
  13471. Added the initialization of netrc.
  13472. * src/AuthConfig.h: New class.
  13473. * src/prefs.h
  13474. (PREF_NETRC_PATH): New definition.
  13475. * src/HttpAuthConfig.h: Removed.
  13476. * src/Netrc.cc
  13477. (getRequiredNextToken): New function.
  13478. (skipMacdef): New function.
  13479. (parse): Rewritten.
  13480. * src/Netrc.h
  13481. (getRequiredNextToken): New function.
  13482. (skipMacdef): New function.
  13483. * src/Util.h, src/Util.cc
  13484. (getHomeDir): New function.
  13485. * src/TrackerWatcherComand.cc
  13486. (createRequestCommand): Use AuthConfig.
  13487. * src/FtpConnection.cc
  13488. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13489. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13490. * src/Request.cc
  13491. (findNetrcAuthenticator): New function.
  13492. (resolveHttpAuthConfigItem): New function.
  13493. (resolveFtpAuthConfigItem): New function.
  13494. (resolveHttpProxyAuthConfigItem): New function.
  13495. * src/UrlRequestInfo.cc: Use AuthConfig.
  13496. * src/HttpRequest.cc
  13497. (createRequest): Use authConfig.
  13498. (getProxyAuthString): Use authConfig.
  13499. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13500. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13501. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13502. To reduce overhead to find commands whose socket is either
  13503. readable or writable in the download engine loop:
  13504. * src/Command.h, src/Command.cc
  13505. (STATUS): New enum.
  13506. (status): New variable.
  13507. (statusMatch): New function.
  13508. (setStatusActive): New function.
  13509. (setStatusInactive): New function.
  13510. * src/DownloadEngine.h, src/DownloadEngine.cc
  13511. (executeCommand): New function.
  13512. (run): Simplified.
  13513. (waitData): Call Command::setStatusActive() when command's socket is
  13514. readable or writable.
  13515. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13516. To handle Segment as SegmentHandle:
  13517. * src/AbstractCommand.cc (execute): Rewritten.
  13518. * src/SegmentMan.h: Segment -> SegmentHandle
  13519. Introducded HttpResponse class, HttpRequest class to improve code
  13520. extensiveness and make it clear:
  13521. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13522. HttpResponse class.
  13523. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13524. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13525. * src/HttpConnection.cc: Contruction of http request were moved to
  13526. HttpRequest class.
  13527. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13528. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13529. * src/HttpAuthConfig.h: New class.
  13530. * src/Range.h: New class.
  13531. To make FtpTunnel{Request, Response}Command and
  13532. HttpProxy{Request, Response}Command derived from
  13533. AbstractProxy{Request, Response}Command:
  13534. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13535. Derived from AbstractProxyRequestCommand class.
  13536. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13537. Derived from AbstractProxyResponseCommand class.
  13538. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13539. Derived from AbstractProxyRequestCommand class.
  13540. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13541. Derived from AbstractProxyResponseCommand class.
  13542. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13543. : New class.
  13544. * src/AbstractProxyResponseCommand.h,
  13545. src/AbstractProxyResponseCommand.cc: New class.
  13546. To add netrc support:
  13547. * src/Netrc.h, src/Netrc.cc: New class.
  13548. * src/Util.h, src/Util.cc (split): New function.
  13549. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13550. "Content-Range" header instead of "Range" header.
  13551. * src/HttpHeader.h
  13552. (getStatus): Removed.
  13553. (setStatus): Removed.
  13554. * src/Segment.h
  13555. (getPositionToWrite): New function.
  13556. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13557. * src/HttpHeader.h
  13558. (Range.h): New include.
  13559. (status): New variable.
  13560. (HttpHeader): Initialized status with 0.
  13561. (getStatus): New function.
  13562. (setStatus): New function.
  13563. (getRange): New function.
  13564. (HttpHeaderHandle): New function.
  13565. * src/HttpHeader.cc
  13566. (getRange): New function.
  13567. * src/Request.h
  13568. (RequestWeakHandle): New definition.
  13569. * src/HttpConnection.h
  13570. (HttpConnectionHandle): New type definition.
  13571. * src/HttpConnection.cc
  13572. (receiveResponse): Set HTTP status to headers.
  13573. * src/main.cc
  13574. (showUsage): Fixed typo.
  13575. * src/Segment.h
  13576. (SegmentHandle): New type definition.
  13577. * src/BitfieldMan.h
  13578. (getMissingUnusedLength): New function.
  13579. * src/BitfieldMan.cc
  13580. (getMissingUnusedLength): New function.
  13581. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13582. To fix static initialization order problem:
  13583. * src/BitfieldManFactory.h
  13584. (defaultRandomizer): Removed.
  13585. (factory): New variable.
  13586. (getNewFactory): Removed.
  13587. (getFactoryInstance): New function.
  13588. (setDefaultRandomizer): Rewritten.
  13589. (getDefaultRandomizer): Rewritten.
  13590. * src/BitfieldManFactory.cc
  13591. (defaultRandomizer): Removed.
  13592. (factory): Initialized to 0.
  13593. (BitfieldManFactory): Initialized randomizer to 0.
  13594. * src/DefaultPieceStorage.cc
  13595. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13596. * src/Peer.cc
  13597. (Peer): getNewFactory() -> getFactoryInstance()
  13598. * src/SegmentMan.cc
  13599. (initBitfield): getNewFactory() -> getFactoryInstance()
  13600. * src/Piece.cc
  13601. (Piece): getNewFactory() -> getFactoryInstance()
  13602. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13603. To fix the bug that causes crash on Max OS X:
  13604. * src/SimpleRandomizer.h
  13605. (getInstance): Create new instance if the static variable is null.
  13606. * src/SimpleRandomizer.cc
  13607. (randomizer): Initialized to 0.
  13608. * src/BitfieldManFactory.h
  13609. (getNewFactory): Removed the call to setRandomizer().
  13610. To fix the miscalculation of the range of checksum:
  13611. * src/BitfieldMan.h
  13612. (isBitSetOffsetRange): New function.
  13613. * src/BitfieldMan.cc
  13614. (isBitSetOffsetRange): New function.
  13615. * src/SegmentMan.cc
  13616. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13617. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13618. * Release 0.10.1
  13619. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13620. To lower CPU usage in BitTorrent download when --max-upload-limit
  13621. command-line option specified:
  13622. * src/DefaultBtMessageDispatcher.cc
  13623. (sendMessages): Calculate uploading speed only when current message
  13624. is uploading data and is not sent yet.
  13625. * src/DefaultPeerStorage.h
  13626. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13627. * src/HttpResponseCommand.cc
  13628. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13629. This fixes compile error in Soralis 10.
  13630. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13631. To fix segfault in Metalink download:
  13632. * src/UrlRequestInfo.h
  13633. (filename): Removed.
  13634. (totalLength): Removed.
  13635. (setTotalLength): Removed.
  13636. (setFilename): Removed.
  13637. * src/MetalinkRequestInfo.cc
  13638. (execute): Do not set filename and totalLength to reqInfo.
  13639. Set chunk checksum to reqInfo if it is not null.
  13640. * src/HttpResponseCommand.cc
  13641. (executeInternal): Fixed filename in log.
  13642. (handleDefaultEncoding): Removed the call to initBitfield() and
  13643. markAllPiecesDone().
  13644. (handleOtherEncoding): Added HEAD method handling.
  13645. * src/FtpNegotiateCommand.cc
  13646. (executeInternal): Added SEQ_HEAD_OK handling.
  13647. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13648. return false.
  13649. * src/FtpNegotiateCommand.h
  13650. (SEQ_HEAD_OK): New definition.
  13651. * src/SegmentMan.cc
  13652. (initBitfield): Delete bitfield.
  13653. (isChunkChecksumValidationReady): Fixed the condition.
  13654. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13655. works fine.
  13656. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13657. * src/Xml2MetalinkProcessor.h
  13658. (xpathExists): New function.
  13659. * src/Xml2MetalinkProcessor.cc
  13660. (xpathExists): New function.
  13661. Not to send HEAD request if filename and size are available in Metalink
  13662. file:
  13663. * src/UrlRequestInfo.h
  13664. (filename): New variable.
  13665. (totalLength): New variable.
  13666. (setTotalLength): New function.
  13667. (setFilename): New function.
  13668. * src/MetalinkRequestInfo.cc
  13669. (execute): Set filename and size to UrlRequestInfo.
  13670. * src/MetalinkEntry.cc
  13671. (MetalinkEntry): Initialize size with 0.
  13672. * src/UrlRequestInfo.cc
  13673. (execute): Set filename and size to SegmentMan.
  13674. Not to download rest of the files after selected files are downloaded
  13675. in BitTorrent:
  13676. * src/PieceStorage.h
  13677. (allDownloadFinished): New function.
  13678. * src/DefaultBtAnnounce.cc
  13679. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13680. downloadFinished.
  13681. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13682. * src/DefaultPieceStorage.cc
  13683. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13684. Commented out the call to finishSelectiveDownloadingMode().
  13685. (downloadFinished): Call isFilteredAllBitSet() instead of
  13686. isAllBitSet().
  13687. (allDownloadFinished): New function.
  13688. * src/DefaultBtInteractive.cc
  13689. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13690. downloadFinished().
  13691. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13692. * src/TorrentDownloadEngine.cc
  13693. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13694. * src/BitfieldMan.h
  13695. (isFilteredAllBitSet): New function.
  13696. * src/ShareRatioSeedCriteria.h
  13697. (PieceStorage.h): New include.
  13698. (pieceStorage): New variable.
  13699. (evaluate):
  13700. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13701. * src/BitfieldMan.cc
  13702. (isFilteredAllBitSet): New function.
  13703. (isAllBitSet): Filter is not took into account.
  13704. Rename --force-truncate as --allow-overwrite:
  13705. * src/TorrentRequestInfo.cc
  13706. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13707. * src/main.cc
  13708. (showUsage): --force-truncate -> --allow-overwrite
  13709. * src/message.h
  13710. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13711. * src/prefs.h
  13712. (PREF_FORCE_TRUNCATE): Removed.
  13713. (PREF_ALLOW_OVERWRITE): New definition.
  13714. * src/SegmentMan.cc
  13715. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13716. * src/MetalinkRequestInfo.cc
  13717. (execute): Queueing message are now logged in info level.
  13718. * src/common.h
  13719. (LONG_LONG_MAX): Removed.
  13720. (LONG_LONG_MIN): Removed.
  13721. * src/HttpResponseCommand.cc
  13722. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13723. * src/FtpNegotiateCommand.cc
  13724. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13725. * src/main.cc
  13726. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13727. command-line option.
  13728. (main): Added --check-integriy and --realtime-chunk-checksum
  13729. command-line option.
  13730. --force-truncate -> --allow-overwrite
  13731. Set initial value of --check-integrity option to false.
  13732. Don't show usage when error occurs while persing command-line options.
  13733. Removed deprecated --upload-limit option.
  13734. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13735. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13736. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13737. * src/BtAllowedFastMessage.cc:
  13738. * src/BtBitfieldMessage.cc
  13739. * src/BtCancelMessage.cc
  13740. * src/BtChokeMessage.cc
  13741. * src/BtHaveAllMessage.cc
  13742. * src/BtHaveMessage.cc
  13743. * src/BtHaveNoneMessage.cc
  13744. * src/BtInterestedMessage.cc
  13745. * src/BtNotInterestedMessage.cc
  13746. * src/BtPieceMessage.cc
  13747. * src/BtPortMessage.cc
  13748. * src/BtRejectMessage.cc
  13749. * src/BtRequestMessage.cc
  13750. * src/BtSuggestPieceMessage.cc
  13751. * src/BtUnchokeMessage.cc
  13752. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13753. files are affected.
  13754. * src/ChunkChecksumValidator.cc
  13755. * src/SegmentMan.cc
  13756. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13757. To add chunk checksum validation:
  13758. * src/MetalinkEntry.h
  13759. (MetalinkChunkChecksum.h): New include.
  13760. (chunkChecksum): New variable.
  13761. * src/Request.h
  13762. (method): New variable.
  13763. (setMethod): New function.
  13764. (getMethod): New function.
  13765. (METHOD_GET): New static constant.
  13766. (METHOD_HEAD): New static constant.
  13767. * src/Xml2MetalinkProcessor.h
  13768. (getPieceHash): New function.
  13769. * src/PieceStorage.h
  13770. (markAllPiecesDone): New function.
  13771. (checkIntegrity): New function.
  13772. * src/FileAllocator.h
  13773. (NullFileAllocationMonitor.h): New include.
  13774. (FileAllocator): Initialize fileAllocationMonitor with new
  13775. NullFileAllocationMonitor().
  13776. * src/MultiDiskAdaptor.h
  13777. (messageDigest.h): Remove include.
  13778. (ctx): Removed.
  13779. (hashUpdate): Added ctx.
  13780. (MultiDiskAdaptor): Removed ctx.
  13781. (sha1Sum): Renamed as messageDigest.
  13782. (messageDigest): New function.
  13783. * src/UrlRequestInfo.h
  13784. (HeadResult): New class.
  13785. (digestAlgo): New variable.
  13786. (chunkChecksumLength): New variable.
  13787. (chunkChecksums): New variable.
  13788. (getHeadResult): New function.
  13789. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13790. (setDigestAlgo): New function.
  13791. (setChunkChecksumLength): New function.
  13792. (setChunkChecksums): New function.
  13793. * src/DefaultPieceStorage.cc
  13794. (DiskAdaptorWriter.h): New include.
  13795. (ChunkChecksumValidator.h): New include.
  13796. (markAllPiecesDone): New function.
  13797. (checkIntegrity): New function.
  13798. * src/DefaultBtContext.h
  13799. (getPieceHashes): New function.
  13800. * src/TorrentRequestInfo.cc
  13801. (execute): Try to validate chunk checksum if file already exists and
  13802. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13803. * src/messageDigest.h
  13804. (~MessageDigestContext): Added digestFree().
  13805. * src/MetalinkRequestInfo.cc
  13806. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13807. * src/DiskAdaptor.h
  13808. (messageDigest.h): New include.
  13809. (sha1Sum): Renamed as messageDigest.
  13810. (messageDigest): New function.
  13811. * src/DownloadCommand.h
  13812. (PeerStat.h): New include.
  13813. (maxDownloadSpeedLimit): New variable.
  13814. (startupIdleTime): New variable.
  13815. (lowestDownloadSpeedLimit): New variable.
  13816. (peerStat): New variable.
  13817. (setMaxDownloadSpeedLimit): New function.
  13818. (setStartupIdleTime): New function.
  13819. (setLowestDownloadSPeedLimit): New function.
  13820. * src/BtContext.h
  13821. (getPieceHashes): New function.
  13822. * src/main.cc
  13823. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13824. option to true for testing purpose.
  13825. * src/BtPieceMessage.cc
  13826. (checkPieceHash): Use messageDigest
  13827. * src/DownloadEngine.cc
  13828. (SetDescriptor): Removed.
  13829. (AccumulateActiveCommand): Removed.
  13830. (waitData): Rewritten.
  13831. (updateFdSet): Rewritten.
  13832. * src/MultiDiskAdaptor.cc
  13833. (hashUpdate): Added ctx.
  13834. (sha1Sum): Renamed as messageDigest.
  13835. (messageDigest): New function.
  13836. * src/BitfieldMan.h
  13837. (isBitRangeSet): New function.
  13838. (unsetBitRange): New function.
  13839. * src/ByteArrayDiskWriter.h
  13840. (sha1Sum): Renamed as messageDigest.
  13841. (messageDigest): New function.
  13842. * src/ConsoleDownloadEngine.cc
  13843. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13844. * src/DiskWriter.h
  13845. (messageDigest.h): New include.
  13846. (sha1Sum): Renamed as messageDigest.
  13847. (messageDigest): New function.
  13848. * src/ChunkChecksumValidator.h: New class.
  13849. * src/DiskAdaptorWriter.h: New class.
  13850. * src/prefs.h
  13851. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13852. (PREF_CHECK_INTEGRITY): New definition.
  13853. * src/HttpResponseCommand.cc
  13854. (handleDefaultEncoding): Added method "HEAD" handling.
  13855. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13856. (handleOtherEncoding):
  13857. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13858. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13859. startupIdleTime, lowestDownloadSpeedLimit to command.
  13860. * src/SegmentMan.h
  13861. (getSegmentEntryByIndex): New function.
  13862. (getSegmentEntryByCuid): New function.
  13863. (getSegmentEntryIteratorByCuid): New function.
  13864. (diskWriter): DiskWriter -> DiskWriterHandle
  13865. (pieceHashes): New variable.
  13866. (chunkHashLength): New variable.
  13867. (digestAlgo): New variable.
  13868. (FindPeerStat): Removed.
  13869. (getPeerStat): Rewritten.
  13870. (markAllPiecesDone): New function.
  13871. (checkIntegrity): New function.
  13872. (tryChunkChecksumValidation): New function.
  13873. (isChunkChecksumValidationReady): New function.
  13874. * src/BitfieldMan.cc
  13875. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13876. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13877. blocks to 0.
  13878. (isBitRangeSet): New function.
  13879. (unsetBitRange): New function.
  13880. * src/FtpNegotiateCommand.cc
  13881. (executeInternal): Set maxDownloadSpeedLimit,
  13882. startupIdleTime, lowestDownloadSpeedLimit to command.
  13883. (recvSize): Added method "HEAD" handling.
  13884. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13885. * src/AbstractSingleDiskAdaptor.cc
  13886. (sha1Sum): Renamed as messageDigest.
  13887. (messageDigest): New function.
  13888. * src/AbstractSingleDiskAdaptor.h
  13889. (sha1Sum): Renamed as messageDigest.
  13890. (messageDigest): New function.
  13891. * src/Util.h
  13892. (indexRange): New function.
  13893. * src/MetalinkEntry.cc
  13894. (MetalinkEntry): Initialized chunkChecksum to 0.
  13895. * src/ShaVisitor.cc
  13896. (~ShaVisitor): Removed the call to ctx.digestFree().
  13897. * src/SegmentMan.cc
  13898. (ChunkChecksumValidator.h): New include.
  13899. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13900. to DIGEST_ALGO_SHA1.
  13901. (~SegmentMan): Removed diskWriter.
  13902. (FindSegmentEntryByIndex): Removed.
  13903. (FindSegmentEntryByCuid): Removed.
  13904. (checkoutSegment): Rewritten.
  13905. (findSlowerSegmentEntry): Rewritten.
  13906. (getSegment): Rewritten.
  13907. (updateSegment): Rewritten.
  13908. (completeSegment): Rewritten.
  13909. (markAllPiecesDone): New function.
  13910. (checkIntegrity): New function.
  13911. (isChunkChecksumValidationReady): New function.
  13912. (tryChunkChecksumValidation): New function.
  13913. * src/Xml2MetalinkProcessor.cc
  13914. (getEntry): Get size and set it to entry.
  13915. Get chunk checksum and set it to entry.
  13916. (getPieceHash): New function.
  13917. * src/Util.cc
  13918. (sha1Sum): Removed ctx.digestFree()
  13919. (fileChecksum): Removed ctx.digestFree()
  13920. (indexRange): New function.
  13921. * src/Request.cc
  13922. (METHOD_GET): New variable.
  13923. (METHOD_HEAD): New variable.
  13924. (Request): Added method.
  13925. * src/UrlRequestInfo.cc
  13926. (FatalException.h): New include.
  13927. (message.h): New include.
  13928. (operator<<): Added operator<< for class HeadResult.
  13929. (getHeadResult): New function.
  13930. (execute): Get filename and size in separate download engine.
  13931. * src/ChunkChecksumValidator.cc: New class.
  13932. * src/DownloadCommand.cc:
  13933. (DownloadCommand): Added peerStat.
  13934. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13935. the value from Option.
  13936. The buffer size is now 16KB.
  13937. Use peerStat member instead of getting it from SegmentMan.
  13938. Use startupIdleTime member instead of gettingit from Option.
  13939. Added chunk checksum validation.
  13940. * src/AbstractDiskWriter.cc
  13941. (AbstractDiskWriter): Removed ctx.
  13942. (~AbstractDiskWriter): Removed ctx.digestFree()
  13943. (writeDataInternal): Returns the return value of write.
  13944. (readDataInternal): Returns the return value of read.
  13945. (sha1Sum): Renamed as messageDigest
  13946. (messageDigest): New function.
  13947. * src/AbstractDiwkWriter.h
  13948. (messageDigest.h): Removed include.
  13949. (ctx): Removed.
  13950. (sha1Sum): Renamed as messageDigest
  13951. (messageDigest): New function.
  13952. * src/DefaultPieceStorage.h
  13953. (markAllPiecesDone): New function.
  13954. (checkIntegrity): New function.
  13955. * src/NullFileAllocationMonitor.h: New class.
  13956. * src/MetalinkChunkChecksum.h: New class.
  13957. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13958. To decrease CPU usage in bittorrent download, calculation results in
  13959. BitfieldMan were cached and realtime fetching PeerObject was removed
  13960. with WeakHandle introduced. Option values are set to the objects
  13961. by setter before download begins.
  13962. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13963. * src/DefaultBtRequestFactory.h
  13964. (dispatcher): BtMessageDispatcherHandle ->
  13965. BtMessageDispatcherWeakHandle.
  13966. (messageFactory): New variable.
  13967. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13968. BtMessageDispatcherWeakHandle.
  13969. (setBtMessageFactory): New function.
  13970. * src/DefaultBtMessageDispatcher.cc:
  13971. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13972. from Option.
  13973. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13974. feating the value from Option.
  13975. Use messageFactory member.
  13976. * src/PeerInteractionCommand.cc
  13977. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13978. Add reverse dependencies to factory object.
  13979. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13980. dispatcher.
  13981. Set messageFactory to receiver.
  13982. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13983. btInteractive.
  13984. Set receiver to peerObject.
  13985. Set maxDownloadSpeedLimit to this.
  13986. (executeInternal): Use maxDownloadSpeedLimit member.
  13987. * src/BtChokeMessage.cc
  13988. (doReceivedAction): Use dispatcher, requestFactory member.
  13989. (onSendComplete): Use dispatcher member.
  13990. * src/PeerInteractionCommand.h
  13991. (maxDownloadSpeedLimit): New variable.
  13992. * src/DefaultBtMessageReceiver.h
  13993. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13994. (dispatcher):
  13995. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13996. (messageFactory): New variable.
  13997. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13998. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13999. (setDispatcher):
  14000. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14001. (setBtMessageFactory): New function.
  14002. * src/DefaultBtInteractive.cc
  14003. (initiateHandshake): Use messageFactory member.
  14004. (addBitfieldMessageToQueue): Use messageFactory member.
  14005. (addAllowedFastMessageToQueue): Use messageFactory member.
  14006. (decideChoking): Use messageFactory member.
  14007. (checkHave): Use messageFactory member.
  14008. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14009. (receiveMessages): Use maxDownloadSpeedLimit member.
  14010. (decideInterest): Use messageFactory member.
  14011. * src/BtRequestMessage.cc
  14012. (doReceivedAction): Use messageFactory, dispatcher member.
  14013. (onQueued): Use dispatcher member.
  14014. * src/BtPieceMessage.cc
  14015. (doReceivedAction): Use dispatcher member.
  14016. (send): Use peerConnection member.
  14017. (onWrongPiece): Use requestFactory member.
  14018. (handleChokingEvent): Use messageFactory, dispatcher member.
  14019. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14020. * src/BtMessageDispatcher.h
  14021. (BtMessageDispatcherWeakHandle): New type definition.
  14022. * src/SimpleBtMessage.cc
  14023. (send): Use peerConnection member.
  14024. * src/BtRejectMessage.cc
  14025. (doReceivedAction): Use dispatcher member.
  14026. * src/DefaultBtMessageDispatcher.h
  14027. (Option.h): Removed include.
  14028. (messageFactory): New variable.
  14029. (option): Removed.
  14030. (maxUploadSpeedLimit): New variable.
  14031. (requestTimeout): New variable.
  14032. (DefaultBtMessageDispatcher): Removed option.
  14033. Added maxUploadSpeedLimit, requestTimeout.
  14034. (setOption): Removed.
  14035. (getOption): Removed.
  14036. (setMaxUploadSpeedLimit): New function.
  14037. (setRequestTimeout): New function.
  14038. (setBtMessageFactory): New function.
  14039. * src/DefaultBtInteractive.h
  14040. (btMessageReceiver):
  14041. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14042. (dispatcher):
  14043. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14044. (btRequestFactory):
  14045. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14046. (peerConnection):
  14047. PeerConnectionHandle -> PeerConnectionWeakHandle
  14048. (messageFactory): New variable.
  14049. (option): Removed.
  14050. (keepAliveInterval): New variable.
  14051. (maxDownloadSpeedLimit): New variable.
  14052. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14053. (setBtMessageReceiver):
  14054. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14055. (setDispatcher):
  14056. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14057. (setBtRequestFactory):
  14058. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14059. (setPeerConnection):
  14060. PeerConnectionHandle -> PeerConnectionWeakHandle
  14061. (setOption): Removed.
  14062. (setKeepAliveInterval): New function.
  14063. (setMaxDownloadSpeedLimit): New function.
  14064. (setBtMessageFactory): New function.
  14065. * src/BitfieldMan.h
  14066. (cachedNumMissingBlock): New variable.
  14067. (cachedNumFilteredBlock): New variable.
  14068. (cachedCompletedLength): New variable.
  14069. (cachedFilteredComletedLength): New variable.
  14070. (cachedFilteredTotalLength): New variable.
  14071. (countMissingBlockNow): New function.
  14072. (countFilteredBlockNow): New function.
  14073. (getFilteredTotalLengthNow): New function.
  14074. (getCompletedLengthNow): New function.
  14075. (getFilteredCompletedLengthNow): New function.
  14076. (updateCache): New function.
  14077. * src/AbstractBtMessage.h
  14078. (BtMessageDispatcher.h): New include.
  14079. (PeerConnection.h): New include.
  14080. (BtRequestFactory.h): New include
  14081. (BtMessageFactory.h): New include.
  14082. (dispatcher): New variable.
  14083. (messageFactory): New variable.
  14084. (peerConnection: New variable.
  14085. (setBtMessageDispatcher): New function.
  14086. (setPeerConnection): New function.
  14087. (setBtMessageFactory): New function.
  14088. (setBtRequestFactory): New function.
  14089. * src/DefaultBtMessageFactory.cc
  14090. (setCommonProperty): Set dispatcher, requestFactory, this,
  14091. peerConnection to msg.
  14092. * src/BtRegistry.h
  14093. (BT_MESSAGE_RECEIVER): New macro.
  14094. * src/PeerConnection.h
  14095. (PeerConnectionWeakHandle): New type definition.
  14096. * src/BtMessageFactory.h
  14097. (BtMessageFactoryWeakHandle): New type definition.
  14098. * src/BitfieldMan.cc
  14099. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14100. cachedCompletedLength, cachedFilteredComletedLength,
  14101. cachedFilteredTotalLength.
  14102. Call updateCache().
  14103. (countMissingBlock): Return cachedNumMissingBlock.
  14104. (countMissingBlockNow): New function.
  14105. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14106. (countFilteredBlockNow): New function.
  14107. (setBit): Call updateCache().
  14108. (unsetBit): Call updateCache().
  14109. (setBitfield): Call updateCache().
  14110. (clearAllBit): Call updateCache().
  14111. (setAllBit): Use setBitInternal instead of setBit.
  14112. Call updateCache().
  14113. (addFilter): Call updateCache().
  14114. (enableFilter): Call updateCache().
  14115. (disableFilter): Call updateCache().
  14116. (clearFilter): Call updateCache().
  14117. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14118. (getFilteredTotalLengthNow): New function.
  14119. (getCompletedLength): Return cachedCompletedLength.
  14120. (getCompletedLengthNow): New function.
  14121. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14122. (getFilteredCompletedLengthNow): New function.
  14123. (updateCache): New function.
  14124. * src/BtMessageReceiver.h
  14125. (BtMessageReceiverWeakHandle): New type definition.
  14126. * src/DefaultBtMessageReceiver.cc
  14127. (receiveHandshake): Use messageFactory member.
  14128. (sendHandshake): Use messageFactory member.
  14129. (receiveMessage): Use messageFactory member.
  14130. * src/DefaultBtMessageFactory.h
  14131. (dispatcher): New variable.
  14132. (requestFactory): New variable.
  14133. (peerConnection): New variablle.
  14134. (setBtMessageDispatcher): New function.
  14135. (setBtRequestFactory): New function.
  14136. (setPeerConnection): New function.
  14137. * src/SharedHandle.h
  14138. (RefCount): New class.
  14139. (WeakHandle): New class.
  14140. * src/PeerObject.h
  14141. (BtMessageReceiver.h): New include.
  14142. (PeerObject): Added btMessageReceiver.
  14143. (btMessageReceiver): New variable.
  14144. * src/Util.cc
  14145. (countBit): Simplified.
  14146. * src/BtCancelMessage.cc
  14147. (doReceivedAction): Use dispatcher member.
  14148. * src/BtRequestFactory.h
  14149. (BtRequestFactoryWeakHandle): New type definition.
  14150. * src/PeerStorage.h
  14151. (downloadSpeed): int -> uint32_t
  14152. (uploadSpeed): int -> uint32_t
  14153. (sessionDownloadLength): long long int -> uint64_t
  14154. (sessionUploadLength): long long int -> uint64_t
  14155. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14156. To add RecoverableException, FatalException:
  14157. * src/AbstractCommand.cc
  14158. (onAbort): Exception -> RecoverableException
  14159. * src/PeerAbstractCommand.h
  14160. (RecoverableException.h): New include.
  14161. (onAbort): Exception -> RecoverableException.
  14162. * src/PeerInteractionCommand.cc
  14163. (onAbort): Exception -> RecoverableException.
  14164. * src/PeerAbstractCommand.cc
  14165. (execute): Exception -> RecoverableException.
  14166. (onAbort): Exception -> RecoverableException.
  14167. * src/TorrentRequestInfo.cc
  14168. (execute): Exception -> RecoverableException.
  14169. * src/MetalinkRequestInfo.cc
  14170. (execute): Exception -> RecoverableException.
  14171. * src/MetaFileUtil.cc: RecoverableException.
  14172. * src/AbstractCommand.h
  14173. (onAbort): Exception -> RecoverableException.
  14174. * src/DlRetryEx.h: Exception -> RecoverableException.
  14175. * src/DlAbortEx.h: Exception -> RecoverableException.
  14176. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14177. * src/Util.cc: Exception -> RecoverableException.
  14178. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14179. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14180. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14181. To make ID static const int
  14182. * src/BtInterestedMessage.h
  14183. (ID_t): Removed.
  14184. (ID): New variable.
  14185. (getId): Made non-const.
  14186. * src/BtPieceMessage.h
  14187. (ID_t): Removed.
  14188. (ID): New variable.
  14189. (getId): Made non-const.
  14190. * src/BtChokeMessage.h
  14191. (ID_t): Removed.
  14192. (ID): New variable.
  14193. (getId): Made non-const.
  14194. * src/BtHaveAllMessage.h
  14195. (ID_t): Removed.
  14196. (ID): New variable.
  14197. (getId): Made non-const.
  14198. * src/BtKeepAliveMessage.h
  14199. (ID_t): Removed.
  14200. (ID): New variable.
  14201. (getId): Made non-const.
  14202. * src/BtHandshakeMessage.h
  14203. (ID): New variable.
  14204. (getId): Made non-const.
  14205. * src/BtSuggestPieceMessage.h
  14206. (ID_t): Removed.
  14207. (ID): New variable.
  14208. (getId): Made non-const.
  14209. * src/BtPortMessage.h
  14210. (ID_t): Removed.
  14211. (ID): New variable.
  14212. (getId): Made non-const.
  14213. * src/AbstractBtMessage.h
  14214. (id): Removed.
  14215. (AbstractBtMessage): Removed id.
  14216. (getId): Removed.
  14217. * src/BtHaveMessage.h
  14218. (ID_t): Removed.
  14219. (ID): New variable.
  14220. (getId): Made non-const.
  14221. * src/BtAllowedFastMessage.h
  14222. (ID_t): Removed.
  14223. (ID): New variable.
  14224. (getId): Made non-const.
  14225. * src/BtCancelMessage.h
  14226. (ID_t): Removed.
  14227. (ID): New variable.
  14228. (getId): Made non-const.
  14229. * src/BtNotInterestedMessage.h
  14230. (ID_t): Removed.
  14231. (ID): New variable.
  14232. (getId): Made non-const.
  14233. * src/BtChokeMessage.h
  14234. (ID_t): Removed.
  14235. (ID): New variable.
  14236. (getId): Made non-const.
  14237. * src/BtRejectMessage.h
  14238. (ID_t): Removed.
  14239. (ID): New variable.
  14240. (getId): Made non-const.
  14241. * src/BtBitfieldMessage.h
  14242. (ID_t): Removed.
  14243. (ID): New variable.
  14244. (getId): Made non-const.
  14245. * src/BtUnchokeMessage.h
  14246. (ID_t): Removed.
  14247. (ID): New variable.
  14248. (getId): Made non-const.
  14249. * src/BtRequestMessage.h
  14250. (ID_t): Removed.
  14251. (ID): New variable.
  14252. (getId): Made non-const.
  14253. * src/BtHaveMessage.h
  14254. (ID_t): Removed.
  14255. (ID): New variable.
  14256. (getId): Made non-const.
  14257. To add --force-truncate command-line option and a check whether
  14258. the file already exists:
  14259. * src/DirectDiskAdaptor.h
  14260. (getFilePath): Made virtual public.
  14261. * src/MultiDiskAdaptor.h
  14262. (File.h): New include.
  14263. (DiskWriterEntry::fileEntry): Made private.
  14264. (DiskWriterEntry::fileExists): New function.
  14265. (DiskWriterEntry::getFileEntry): New function.
  14266. (fileExists): New function.
  14267. (getFilePath): New function.
  14268. * src/TorrentRequestInfo.cc
  14269. (FatalException.h): New include.
  14270. (message.h): New include.
  14271. (RecoverableException.h): New include.
  14272. (execute): Added a check whether file is already exists or not.
  14273. * src/DiskAdaptor.h
  14274. (fileExists): New function.
  14275. (getFilePath): New function.
  14276. * src/main.cc
  14277. (showUsage): Added an explanation of --force-truncate command-line
  14278. option.
  14279. (main): Added --force-truncate command-line option.
  14280. * src/Exception.h
  14281. (setMsg): buf[256] -> buf[1024]
  14282. * src/CopyDiskWriter.h
  14283. (getFilePath): Made public virtual.
  14284. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14285. (fileExists): New function.
  14286. * src/DownloadEngineFactory.cc
  14287. (newTorrentConsoleEngine): Don't open file here.
  14288. * src/message.h
  14289. (EX_FILE_ALREADY_EXISTS): New definition.
  14290. * src/prefs.h
  14291. (PREF_FOECE_TRUNCATE): New definition.
  14292. * src/HttpResponseCommand.cc
  14293. (handleDefaultEncoding): Added a check whether the file already exists.
  14294. * src/SegmentMan.h
  14295. (fileExists): New function.
  14296. (shouldCancelDownloadForSafety): New function.
  14297. * src/FtpNegotiateCommand.cc
  14298. (recvSize): Added a check whether the file already exists.
  14299. * src/AbstractSingleDiskAdaptor.cc
  14300. (File.h): New include.
  14301. (fileExists): New function.
  14302. * src/AbstractSingleDiskAdaptor.h
  14303. (getFilePath): Removed.
  14304. (fileExists): New function.
  14305. * src/SegmentMan.cc
  14306. (fileExists): New function.
  14307. (shouldCancelDownloadForSafety): New function.
  14308. To fix regression bug in torrent downloading:
  14309. * src/DefaultBtRequestFactory.cc
  14310. (doChokedAction): New function.
  14311. * src/DefaultBtRequestFactory.h
  14312. (doChokedAction): New function.
  14313. * src/DefaultBtMessageDispatcher.cc
  14314. (doChokedAction): Do not delete request if its target is in allowed
  14315. fast set.
  14316. * src/DefaultBtInteractive.cc
  14317. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14318. (sendKeepAlive): Send keep alive message even if the outgoing message
  14319. queue is not empty.
  14320. (decideInterest): Simplified the code.
  14321. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14322. it is already called when BtChokeMessage is received from a peer.
  14323. * src/BtRequestFactory.h
  14324. (doChokedAction): New function.
  14325. To clean up code:
  14326. * src/PeerInteractionCommand.h
  14327. (executeInternal): Added virtual keyword explicitly.
  14328. (prepareForRetry): Added virtual keyword explicitly.
  14329. (prepareForNextPeer): Added virtual keyword explicitly.
  14330. (onAbort): Added virtual keyword explicitly.
  14331. * src/RequestSlot.cc
  14332. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14333. * src/BtPieceMessage.cc
  14334. (doReceivedAction): Added a debug log of piece's bitfield.
  14335. * src/Piece.h
  14336. (getBitfieldLength): New function.
  14337. * src/ByteArrayDiskWriter.cc
  14338. (clear): Added buf = 0 to avoid double free corruption.
  14339. * src/FileAllocator.cc
  14340. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14341. Added cp.reset().
  14342. * src/BitfieldMan.h
  14343. (operator=): Rewritten.
  14344. * src/BitfieldMan.cc
  14345. (BitfieldMan): Initialized bitfield, useBitfield.
  14346. * src/PeerConnection.cc
  14347. (receiveMessage): Added a call to socket->readable() after getting
  14348. message length to avoid possible EOF.
  14349. * src/Util.cc
  14350. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14351. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14352. To add an ability to pre-allocate file space:
  14353. * src/DirectDiskAdaptor.h: Rewritten.
  14354. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14355. * src/MultiDiskAdaptor.h: Rewritten.
  14356. * src/DefaultPieceStorage.cc
  14357. (MultiDiskWriter.h): Removed include.
  14358. (PreAllocationDiskWriter.h): Removed include.
  14359. (FileAllocationMonitor.h): New include.
  14360. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14361. (initStorage): Rewritten.
  14362. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14363. * src/FileAllocator.h: New class.
  14364. * src/FileAllocator.cc: New class.
  14365. * src/FileAllocationMonitor.h: New class.
  14366. * src/FileAllocationMonitor.cc: New class.
  14367. * src/ConsoleFileAllocationMonitor.h: New class.
  14368. * src/ConsoleFileAllocationMonitor.cc: New class.
  14369. * src/AbstractSingleDiskAdaptor.h: New class.
  14370. * src/AbstractSingleDiskAdaptor.cc: New class.
  14371. * src/DiskAdaptor.h
  14372. (Directory.h): Removed include.
  14373. (DiskWriter.h): Removed include.
  14374. (FileEntry.h): Removed include.
  14375. (diskWriter): Removed.
  14376. (DiskAdaptor): Removed diskWriter.
  14377. (openFile): Made pure virtual.
  14378. (closeFile): Made pure virtual.
  14379. (openExistingFile): Made pure virtual.
  14380. (initAndOpenFile): Made pure virtual.
  14381. (writeData): Made pure virtual.
  14382. (readData): Made pure virtual.
  14383. (sha1Sum): Made pure virtual.
  14384. (getStoreDir): Returns const reference of storeDir.
  14385. (DiskAdaptorHandle): New type definition.
  14386. * src/main.cc
  14387. (ConsoleFileAllocationMonitor.h): New include.
  14388. (showUsage): Added default value description of -s option.
  14389. Added the description of --file-allocation option.
  14390. (main): Set default value of --file-allocation option to 'none'.
  14391. Added --file-allocation command-line option.
  14392. Setup FileAllocationMonitorFactory.
  14393. * src/FtpInitiateConnectionCommand.cc
  14394. (executeInternal): Removed diskWriter related processing, which was
  14395. moved to FtpNegotiationCommand.cc.
  14396. * src/DirectDiskAdaptor.cc
  14397. (getFilePath): Made non-const.
  14398. * src/CopyDiskAdaptor.h
  14399. (DiskAdaptor.h): Removed include.
  14400. (DiskWriter.h): Removed include.
  14401. (AbstractSingleDiskAdaptor.h): New include.
  14402. (getFilePath): Made non-const. Added virtual keyword.
  14403. (CopyDiskAdaptor): Removed diskWriter.
  14404. (getTempFile): Returns const reference.
  14405. (CopyDiskAdaptorHandle): New type definition.
  14406. * src/ByteArrayDiskWriter.cc
  14407. (clear): Simplified.
  14408. (initAndOpenFile): Rewritten.
  14409. (openFile): Call initAndOpenFile()
  14410. * src/MultiDiskAdaptor.cc: Rewritten.
  14411. * src/DownloadEngineFactory.cc
  14412. (FileAllocator.h): New include.
  14413. (FileAllocationMonitor.h): New include.
  14414. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14415. create DefaultDiskWriter with file allocator.
  14416. * src/DiskWriter.h
  14417. (initAndOpenFile): Added totalLength argument.
  14418. (openFile): Added totalLength argument.
  14419. * src/prefs.h
  14420. (PREF_FILE_ALLOCATION): New definition.
  14421. (V_PREALLOC): New definition.
  14422. (V_NONE): New definition.
  14423. * src/HttpResponseCommand.cc
  14424. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14425. size.
  14426. * src/FtpNegotiateCommand.cc
  14427. (Util.h): New include.
  14428. (recvSize): Open file here.
  14429. * src/Util.h
  14430. (ullitos): New function.
  14431. * src/CopyDiskWriter.h
  14432. (getFilePath): Made non-const.
  14433. * src/DefaultDiskWriter.h
  14434. (Option.h): New include.
  14435. (totalLength): Removed.
  14436. (DefaultDiskWriter): Removed totalLength.
  14437. (initAndOpenFile): Added totalLength argument.
  14438. (DefaultDiskWriterHandle): New type definition.
  14439. (createNewDiskWriter): New function.
  14440. * src/Util.cc
  14441. (ullitos): New function.
  14442. * src/DefaultDiskWriter.cc
  14443. (message.h): New include.
  14444. (FileAllocator.h): New include.
  14445. (prefs.h): New include.
  14446. (Util.h): New include.
  14447. (DefaultDiskWriter): Removed totalLength.
  14448. (initAndOpenFile): Added file allocation.
  14449. (createNewDiskWriter): New function. Just for temporary solution.
  14450. It will be rewritten later.
  14451. * src/DiskAdaptor.cc
  14452. (DiskAdaptor): Removed diskWriter.
  14453. * src/AbstractDiskWriter.cc
  14454. (LogFactory.h): New include.
  14455. (AbstractDiskWriter): Added fileAllocator, logger.
  14456. (openFile): Added totalLength argument.
  14457. * src/AbstractDiskWriter.h
  14458. (FileAllocator.h): New include.
  14459. (Logger.h): New include.
  14460. (fileAllocator): New variable.
  14461. (logger): New variable.
  14462. (openFile): Added totalLength argument. Added virtual keyword
  14463. explicitly.
  14464. (openExistingFile): Added totalLength argument. Added virtual keyword
  14465. explicitly.
  14466. (closeFile): Added virtual keyword explicitly.
  14467. (sha1Sum): Added virtual keyword explicitly.
  14468. (writeData): Added virtual keyword explicitly.
  14469. (readData): Added virtual keyword explicitly.
  14470. (setFileAllocator): New function.
  14471. * src/DefaultPieceStorage.h
  14472. (FileAllocator.h): New include.
  14473. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14474. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14475. * src/FileProgressMonitor.h: New class.
  14476. To compile aria2 on PC-BSD:
  14477. * src/DefaultBtContext.cc
  14478. (libgen.h): New include.
  14479. To fix memory leak:
  14480. * src/Exception.h
  14481. (~Exception): Delete cause. Fixed memory leak.
  14482. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14483. Rewritten a portion of bittorrent implementation:
  14484. * src/BtMessageValidator.h: New class.
  14485. * src/BtBitfieldMessageValidator.h: New class.
  14486. * src/BtHandshakeMessageValidator.h: New class.
  14487. * src/BtRequestMessageValidator.h: New class.
  14488. * src/BtSuggestPieceMessageValidator.h: New class.
  14489. * src/BtAllowedFastMessageValidator.h: New class.
  14490. * src/BtRejectMessageValidator.h: New class.
  14491. * src/BtCancelMessageValidator.h: New class.
  14492. * src/BtPieceMessageValidator.h: New class.
  14493. * src/BtHaveMessageValidator.h: New class.
  14494. * src/BtEventListener.h: New class.
  14495. * src/AbstractBtEventListener.h: New class.
  14496. * src/BtEvent.h: New class.
  14497. * src/BtChokingEvent.h: New class.
  14498. * src/BtChokedEvent.h: New class.
  14499. * src/BtCancelSendingPieceEvent.h: New class.
  14500. * src/BtAbortOutstandingRequestEvent.h: New class.
  14501. * src/Randomizer.h: New class.
  14502. * src/SimpleRandomizer.h: New class.
  14503. * src/BtMessage.h: New class.
  14504. * src/AbstractBtMessage.h: New class.
  14505. * src/SimpleBtMessage.h: New class.
  14506. * src/BtHaveMessage.h: New class.
  14507. * src/BtInterestedMessage.h: New class.
  14508. * src/BtAllowedFastMessage.h: New class.
  14509. * src/BtUnchokeMessage.h: New class.
  14510. * src/BtCancelMessage.h: New class.
  14511. * src/BtNotInterestedMessage.h: New class.
  14512. * src/BtChokeMessage.h: New class.
  14513. * src/BtHaveNoneMessage.h: New class.
  14514. * src/BtHandshakeMessage.h: New class.
  14515. * src/BtSuggestPieceMessage.h: New class.
  14516. * src/BtHaveMessage.h: New class.
  14517. * src/BtPieceMessage.h: New class.
  14518. * src/BtHaveAllMessage.h: New class.
  14519. * src/BtKeepAliveMessage.h: New class.
  14520. * src/BtPortMessage.h: New class.
  14521. * src/BtRejectMessage.h: New class.
  14522. * src/BtBitfieldMessage.h: New class.
  14523. * src/BtRequestMessage.h: New class.
  14524. * src/DefaultBtRequestFactory.h: New class.
  14525. * src/DefaultBtMessageReceiver.h: New class.
  14526. * src/BtInteractive.h: New class.
  14527. * src/BtMessageDispatcher.h: New class.
  14528. * src/DefaultBtMessageDispatcher.h: New class.
  14529. * src/DefaultBtInteractive.h: New class.
  14530. * src/BitfieldManFactory.h: New class.
  14531. * src/HandleRegistry.h: New class.
  14532. * src/BtMessageFactory.h: New class.
  14533. * src/BtMessageReceiver.h: New class.
  14534. * src/DefaultBtMessageFactory.h: New class.
  14535. * src/PeerObject.h: New class.
  14536. * src/BtRequestFactory.h: New class.
  14537. * src/SuggestPieceMessage.h: Removed.
  14538. * src/PortMessage.h: Removed.
  14539. * src/SuggestPieceMessage.h: Removed.
  14540. * src/KeepAliveMessage.h: Removed.
  14541. * src/HandshakeMessage.h: Removed.
  14542. * src/PeerInteraction.h: Removed.
  14543. * src/UnchokeMessage.h: Removed.
  14544. * src/PieceMessage.h: Removed.
  14545. * src/RequestMessage.h: Removed.
  14546. * src/InterestedMessage.h: Removed.
  14547. * src/HaveMessage.h: Removed.
  14548. * src/CancelMessage.h: Removed.
  14549. * src/RejectMessage.h: Removed.
  14550. * src/AllowedFastMessage.h: Removed.
  14551. * src/HaveNoneMessage.h: Removed.
  14552. * src/SimplePeerMessage.h: Removed.
  14553. * src/HaveAllMessage.h: Removed.
  14554. * src/BitfieldMessage.h: Removed.
  14555. * src/PeerMessageFactory.h: Removed.
  14556. * src/NotInterestedMessage.h: Removed.
  14557. * src/ChokeMessage.h: Removed.
  14558. * src/PeerMessage.h: Removed.
  14559. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14560. To know root cause of exception:
  14561. * src/Exception.h
  14562. (cause): New variable.
  14563. (Exception): Added a parameter.
  14564. (getMsg): Return const reference to msg.
  14565. (getCause): New function.
  14566. * src/DlRetryEx.h
  14567. (DlRetryEx): Added a parameter 'cause'.
  14568. Added an overloaded constructor.
  14569. (DlAbortEx): Added a parameter 'cause'.
  14570. Added an overloaded constructor.
  14571. * src/SimpleLogger.cc
  14572. (writeLog): Log nested exception messages recursively.
  14573. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14574. * src/DefaultBtProgressInfoFile.cc
  14575. (load): Fixed memory leak when the infohash doesn't match.
  14576. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14577. * src/DefaultPeerStorage.cc
  14578. (calculateStat): Simplified the code by combining 2 loops into 1.
  14579. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14580. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14581. for BitTorrent download:
  14582. * src/PeerAbstractCommand.cc
  14583. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14584. * src/main.cc:
  14585. (timeoutSpecified): Removed.
  14586. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14587. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14588. * src/TorrentRequestInfo.cc
  14589. (timeoutSpecified): Removed.
  14590. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14591. timeout value.
  14592. * src/prefs.h
  14593. (PREF_BT_TIMEOUT): New definition.
  14594. Delete unused variables:
  14595. * src/TorrentRequestInfo.cc
  14596. (requestInfo): Removed.
  14597. Move setSignalHander to Util::setGlobalSignalHandler:
  14598. * src/TorrentRequestInfo.cc:
  14599. setSignalHander -> Util::setGlobalSignalHandler
  14600. * src/main.cc
  14601. (setSignalHander): Removed.
  14602. (main): setSignalHander -> Util::setGlobalSignalHandler
  14603. * src/Util.h
  14604. (setGlobalSignalHandler): New function.
  14605. * src/Util.cc
  14606. (setGlobalSignalHandler): New function.
  14607. * src/UrlRequestInfo.cc:
  14608. setSignalHander -> Util::setGlobalSignalHandler
  14609. Reset peer status in order to exit gracefully:
  14610. * src/PeerAbstractCommand.cc
  14611. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14612. To fix the bug that causes the number of bytes uploaded is not saved
  14613. to .aria2 file:
  14614. * src/DefaultPeerStorage.h
  14615. (removedPeerSessionDownloadLength): New variable.
  14616. (removedPeerSessionUploadLength): New variable.
  14617. * src/DefaultPeerStorage.cc
  14618. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14619. removedPeerSessionUploadLength(0).
  14620. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14621. through all peers, and then add removedPeerSessionDownloadLength(
  14622. removedPeerSessionUploadLength) to it.
  14623. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14624. (to) the peer to removedPeerSessionDownloadLength
  14625. (removedPeerSessionUploadLength).
  14626. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14627. To add Metalink location option:
  14628. * src/MetalinkRequestInfo.cc
  14629. (execute): Call MetalinkEntry::setLocationPreference()
  14630. * src/main.cc
  14631. (showUsage): Added the help message for --metalink-location option.
  14632. (main): Added --metalink-location option.
  14633. * src/prefs.h
  14634. (PREF_METALINK_LOCATION): New definition.
  14635. * src/MetalinkEntry.cc
  14636. (AddLocationPreference): New function object.
  14637. (setLocationPreference): New function.
  14638. * src/Xml2MetalinkProcessor.cc
  14639. (getResource): Set location attribute to MetalinkResource
  14640. To show URLs to download
  14641. * src/UrlRequestInfo.h
  14642. (printUrls): New function.
  14643. To add multiple <file> Metalink support:
  14644. * src/MetalinkEntry.h
  14645. (MetalinkResources): Removed.
  14646. (setLocationPreference): New function.
  14647. (MetalinkEntryHandle): New type definition.
  14648. (MetalinkEntries): New type definition.
  14649. * src/Xml2MetalinkProcessor.h
  14650. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14651. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14652. (parseFile): Metalinker* -> MetalinkerHandle
  14653. * src/UrlRequestInfo.h
  14654. (execute): RequestInfo* -> RequestInfos
  14655. * src/MetalinkRequestInfo.cc
  14656. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14657. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14658. (execute): RequestInfo* -> RequestInfos
  14659. Added multiple <file> support. Print filename when it is queued.
  14660. * src/MetalinkRequestInfo.h
  14661. (execute): RequestInfo* -> RequestInfos
  14662. (getDownloadEngine): Removed.
  14663. * src/RequestInfo.h
  14664. (RequestInfoHandle): New type definition.
  14665. (RequestInfos): New type definition.
  14666. (execute): RequestInfo* -> RequestInfos
  14667. (getDownloadEngine): Removed.
  14668. * src/MetalinkResource.h
  14669. (MetalinkResourceHandle): New type definition.
  14670. (MetalinkResources): New type definition.
  14671. * src/MetalinkEntry.cc
  14672. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14673. because the element is now of type MetalinkResourceHandle.
  14674. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14675. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14676. (dropUnsupportedResource): Removed the deletion of the elements of
  14677. resources because the element is now of type MetalinkResourceHandle.
  14678. * src/Xml2MetalinkProcessor.cc
  14679. (parseFile): Metalinker* -> MetalinkerHandle
  14680. MetalinkEntry* -> MetalinkEntryHandle
  14681. Removed try-catch block.
  14682. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14683. MetalinkResource* -> MetalinkResourceHandle
  14684. Removed try-catch block.
  14685. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14686. Free result by using xmlXPathFreeObject()
  14687. * src/Metalinker.cc
  14688. (~Metalinker): Removed the deletion of entries.
  14689. MetalinkEntry* -> MetalinkEntryHandle
  14690. (queryEntry): Add multiple <file> Metalink support.
  14691. * src/Metalinker.h
  14692. (MetalinkEntries): Removed.
  14693. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14694. * src/MetalinkProcessor.h
  14695. (parseFile): Metalinker* -> MetalinkerHandle
  14696. Bug fixes:
  14697. * src/PeerChokeCommand.cc
  14698. (execute): cat01->cat02
  14699. * src/DefaultPieceStorage.cc
  14700. (DefaultPieceStorage): Added diskAdaptor(0)
  14701. * src/TrackerWatcherComand.cc:
  14702. (execute): Use btAnnounce->noMoreAnnounce()
  14703. to determin whether the function returns true or not.
  14704. * src/TrackerUpdateCommand.cc:
  14705. (execute): Use btAnnounce->noMoreAnnounce()
  14706. to determin whether the function returns true or not.
  14707. * src/FtpConnection.cc
  14708. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14709. This is the fix of the busy loop bug.
  14710. * src/DownloadCommand.cc
  14711. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14712. cached PeerStat.
  14713. The value of "name" entry in torrent file is now set by
  14714. *DiskAdaptor::setTopDir(...) methods.
  14715. * src/MultiDiskAdaptor.h
  14716. (topDir): New variable.
  14717. (setTopDir): New function.
  14718. (getTopDir): New function.
  14719. * src/MultiDiskAdaptor.cc
  14720. (getFilePath): Concat storDir, "/" and topDir.
  14721. (mkdir): Use getFilePath() to get the directory path for output.
  14722. * src/DefaultPieceStorage.cc
  14723. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14724. CopyDiskAdaptor.
  14725. * src/CopyDiskAdaptor.h
  14726. (topDir): New variable.
  14727. (setTopDir): New function.
  14728. (getTopDir): New function.
  14729. * src/CopyDiskAdaptor.cc
  14730. (fixFilename): Updated.
  14731. Misc
  14732. * src/UrlRequestInfo.h
  14733. (e): Removed.
  14734. (UrlRequestInfo): Removed e.
  14735. (getDownloadEngine): Removed.
  14736. * src/UrlRequestInfo.cc
  14737. (handler): Rewritten.
  14738. (printUrls): New function.
  14739. (execute): Call printUrls().
  14740. * src/HandshakeMessage.cc
  14741. (check): peerinteraction->getBtContext() -> btContext
  14742. * src/PeerInteraction.h
  14743. (getBtContext): Removed.
  14744. * src/TorrentRequestInfo.h
  14745. (execute): RequestInfo* -> RequestInfos
  14746. (getDownloadEngine): Removed.
  14747. * src/TorrentRequestInfo.cc
  14748. (haltRequested): Removed.
  14749. (btHaltRequested): New variable.
  14750. (torrentHandler): haltRequested -> btHaltRequested
  14751. (execute): RequestInfo* -> RequestInfos
  14752. * src/TorrentConsoleDownloadEngine.cc
  14753. (afterEachIteration): haltRequested -> btHaltRequested.
  14754. * src/ConsoleDownloadEngine.h
  14755. (initStatistics): Added virtual.
  14756. (calculateStatistics): Added virtual.
  14757. (onEndOfRun): Added virtual.
  14758. (afterEachIteration): Added virtual.
  14759. * src/ConsoleDownloadEngine.cc
  14760. (haltRequested): New variable.
  14761. (afterEachIteration): New function.
  14762. * src/main.cc
  14763. (requestInfo): Removed.
  14764. * src/SegmentMan.cc
  14765. (findSlowerSegmentEntry): Refactored.
  14766. * Release 0.9.0
  14767. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14768. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14769. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14770. * src/TorrentMan.h: Removed.
  14771. * src/TorrentMan.cc: Removed.
  14772. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14773. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14774. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14775. * src/PeerAbstractCommand.cc: Use btRuntime.
  14776. * src/BtContextAwareCommand.h: New class.
  14777. * src/FileEntry.h: Added accessor methods for following variables.
  14778. (path): Made private.
  14779. (length): Made private.
  14780. (offset): Made private.
  14781. (extracted): Made private.
  14782. (requested): Made private.
  14783. (FileEntries): New definition.
  14784. (FileEntryHandle): New definition.
  14785. * src/FileEntry.cc: New file.
  14786. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14787. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14788. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14789. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14790. * src/PieceStorage.h: New file.
  14791. * src/PeerInteractionCommand.h: Use btContext.
  14792. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14793. btRuntime.
  14794. * src/DefaultBtProgressInfoFile.h: New file.
  14795. * src/DefaultBtProgressInfoFile.cc: New file.
  14796. * src/File.cc
  14797. (Util.h): New include.
  14798. (mkdirs): New function.
  14799. * src/MultiDiskAdaptor.h
  14800. (mkdir): New function.
  14801. * src/PeerListProcessor.h
  14802. (Peers): Removed.
  14803. * src/PeerInteraction.h
  14804. (torrentMan): Removed.
  14805. (btContext): New variable.
  14806. (peerStorage): New variable.
  14807. (pieceStorage): New variable.
  14808. (btAnnounce): New variable.
  14809. (getTorrentMan): Removed.
  14810. (getBtContext): New function.
  14811. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14812. btAnnounce.
  14813. * src/HandshakeMessage.h
  14814. (TorrentMan.h): Removed.
  14815. * src/HandshakeMessage.cc: Use btContext.
  14816. * src/DefaultBtAnnounce.cc: New file.
  14817. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14818. * src/DefaultPieceStorage.cc: New file.
  14819. * src/DefaultBtContext.h: New file.
  14820. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14821. Use the accessor methods of FileEntry.
  14822. * src/CookieBox.cc: Updated to use Util::slice().
  14823. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14824. * src/common.h (SharedHandle.h): New include.
  14825. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14826. pieceStorage.
  14827. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14828. * src/DiskAdaptor.h
  14829. (topDir): Removed.
  14830. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14831. (setTopDir): Removed.
  14832. (getTopDir): Removed.
  14833. * src/BtContext.h: New file.
  14834. * src/DefaultPeerStorage.h: New file.
  14835. * src/PieceMessage.h (TorrentMan.h): Removed.
  14836. * src/RequestMessage.h (TorrentMan.h): Removed.
  14837. * src/TorrentDownloadEngine.h
  14838. (uploadLength): New variable.
  14839. (btContext): New variable.
  14840. (btRuntime): New variable.
  14841. (pieceStorage): New variable.
  14842. (peerStorage): New variable.
  14843. (btAnnounce): New variable.
  14844. (btProgressInfoFile): New variable.
  14845. (torrentMan): Removed.
  14846. (setBtContext): New function.
  14847. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14848. peerStorage, btAnnounce, btProgressInfoFile.
  14849. * src/Piece.h
  14850. (toString): New function.
  14851. (Pieces): New type definition.
  14852. * src/Peer.h
  14853. (active): New variable.
  14854. (Peer): Added active.
  14855. (activate): Set active to true.
  14856. (deactivate): Set active to false.
  14857. (isActive): New function.
  14858. (Peers): New type definition.
  14859. * src/DirectDiskAdaptor.cc
  14860. (getFilePath): Use the accessor methods of FileEntry.
  14861. * src/TorrentConsoleDownloadEngine.h
  14862. (afterEachIteration): New function.
  14863. * src/TorrentConsoleDownloadEngine.cc
  14864. (haltRequested): New variable.
  14865. (sendStatistics): Use pieceStorage, btRuntime.
  14866. (afterEachIteration): New function.
  14867. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14868. * src/Directry.h
  14869. (Directory): New function.
  14870. (DirectoryHandle): New type definition.
  14871. * src/BtProgressInfoFile.h: New file.
  14872. * src/RequestMessage.cc: Use pieceStorage.
  14873. * src/BtRuntime.h: New file.
  14874. * src/DefaultBtContext.cc: New file.
  14875. * src/BitfieldMan.h
  14876. (getCompletedLength): New function(private).
  14877. (getCompletedLength): New function.
  14878. (getFilteredCompletedLength): New function.
  14879. * src/BitfieldMan.h
  14880. (getCompletedLength): New function(private).
  14881. (getCompletedLength): New function.
  14882. (getFilteredCompletedLength): New function.
  14883. * src/MultiDiskAdaptor.cc
  14884. (mkdir): New function.
  14885. (openFile): Call mkdir().
  14886. (initAndOpenFile): Call mkdir().
  14887. * src/CancelMessage.h
  14888. (TorrentMan.h): Removed.
  14889. * src/RejectMessage.h
  14890. (TorrentMan.h): Removed.
  14891. * src/DownloadEngineFactory.cc
  14892. (DefaultPieceStorage.h): New include.
  14893. (DefaultPeerStorage.h): New include.
  14894. (DefaultBtAnnounce.h): New include.
  14895. (DefaultBtProgressInfoFile.h): New include.
  14896. (newTorrentConsoleEngine): Rewritten.
  14897. * src/ShareRatioSeedCriteria.h
  14898. (torrentMan): Removed.
  14899. (btContext): New variable.
  14900. (peerStorage): New variable.
  14901. (btRuntime): New variable.
  14902. (evaluate): Use btContext, btRuntime, peerStorage.
  14903. * src/AnnounceTier.h: New file.
  14904. * src/BtAnnounce.h: New file.
  14905. * src/BtRegistry.h: New file.
  14906. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14907. * src/PeerConnection.h (TorrentMan.h): Removed.
  14908. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14909. * src/Util.h
  14910. (slice): Added an argument.
  14911. * src/Util.cc
  14912. (slice): Added an argument to control whether trim is made or not.
  14913. * src/PeerStorage.h: New file.
  14914. * src/BtRegistry.cc: New file.
  14915. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14916. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14917. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14918. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14919. * src/TorrentRequestInfo.h
  14920. (e): Removed.
  14921. (showFileEntry): Added an argument.
  14922. (getDownloadEngine): Return 0.
  14923. * src/DefaultBtAnnounce.h: New file.
  14924. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14925. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14926. * src/PeerMessageFactory.h
  14927. (btContext): New variable.
  14928. (pieceStorage): New variable.
  14929. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14930. btAnnounce.
  14931. * src/DiskAdaptor.cc
  14932. (DiskAdaptor): Removed topDir.
  14933. (~DiskAdaptor): Removed topDir.
  14934. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14935. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14936. * src/File.h (mkdirs): New function.
  14937. * src/DefaultPeerStorage): New file.
  14938. * src/DownloadEngineFactory.h
  14939. (newTorrentConsoleEngine): Use btContext.
  14940. * src/BtContextAwareCommand.cc: New file.
  14941. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14942. * src/PeerMessage.h
  14943. (btContext): New variable.
  14944. (peerStorage): New variable.
  14945. (pieceStorage): New variable.
  14946. (setBtContext): New function.
  14947. * src/Directry.cc
  14948. (Directory): New function.
  14949. (createDir): Do nothing if name.size() == 0.
  14950. * src/AnnounceList.h
  14951. (AnnounceTier): Removed.
  14952. (AnnounceTiers): Removed.
  14953. * src/DefaultPieceStorage.h: New file.
  14954. * src/Piece.cc (toString): New function.
  14955. To fix typo:
  14956. * src/main.cc (showVersion): Fixed typo.
  14957. To fix compile warning:
  14958. * src/DelegatingPeerListProcessor.cc
  14959. (canHandle): Added "return false".
  14960. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14961. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14962. make the process of announce request testable.
  14963. * src/TrackerWatcherCommand.h
  14964. (TimeA2.h): Removed.
  14965. (interval): Removed.
  14966. (checkPoint): Removed.
  14967. (createRequestCommand): Added an argument 'url'.
  14968. (TrackerWatherCommand): Removed interval.
  14969. (createCommand): New function.
  14970. * src/DownloadEngineFactory.cc
  14971. (newTorrentConsoleEngine): Updated according to the changes in
  14972. TrackerWatherCommand.
  14973. * src/TorrentMan.cc
  14974. (DelegatingPeerListProcessor.h): New includes.
  14975. (TorrentMan): Added the initialization of announceInterval.
  14976. (isStoppedAnnounceReady): New function.
  14977. (isCompletedAnnounceReady): New function.
  14978. (isDefaultAnnounceReady): New function.
  14979. (isAnnounceReady): New function.
  14980. (getAnnounceUrl): New function.
  14981. (announceStart): New function.
  14982. (announceFailure): New function.
  14983. (announceSuccess): New function.
  14984. (isAllAnnounceFailed): New function.
  14985. (resetAnnounce): New function.
  14986. (processAnnounceResponse): New function.
  14987. (needMorePeerConnection): New function.
  14988. (noMoreAnnounce): New function.
  14989. * src/TrackerUpdateCommand.h
  14990. (getTrackerResponse): int->size_t
  14991. * src/TorrentMan.h
  14992. (isStoppedAnnounceReady): New function.
  14993. (isCompletedAnnounceReady): New function.
  14994. (isDefaultAnnounceReady): New function.
  14995. (announceInterval): New variable.
  14996. (isAnnounceReady): New function.
  14997. (getAnnounceUrl): New function.
  14998. (announceStart): New function.
  14999. (announceFailure): New function.
  15000. (announceSuccess): New function.
  15001. (isAllAnnounceFailed): New function.
  15002. (resetAnnounce): New function.
  15003. (processAnnounceResponse): New function.
  15004. (needMorePeerConnection): New function.
  15005. (noMoreAnnounce): New function.
  15006. * src/TrackerWatcherCommand.cc
  15007. (TrackerWatherCommand): Removed interval and checkPoint.
  15008. (execute): Rewritten.
  15009. (createCommand): New function.
  15010. (createRequestCommand): Rewritten.
  15011. * src/TrackerUpdateCommand.cc
  15012. (MetaFileUtil.h): Removed.
  15013. (DelegatingPeerListProcessor.h): Removed.
  15014. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15015. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15016. Request -> RequestHandle:
  15017. * src/HttpResponseCommand.h: Request->RequestHandle
  15018. * src/AbstractCommand.cc: Request->RequestHandle
  15019. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15020. * src/HttpRequestCommand.cc: Request->RequestHandle
  15021. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15022. * src/AbstractCommand.h: Request->RequestHandle
  15023. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15024. * src/HttpResponseCommand.cc: Request->RequestHandle
  15025. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15026. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15027. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15028. * src/HttpConnection.h: Request->RequestHandle
  15029. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15030. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15031. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15032. * src/DownloadCommand.h: Request->RequestHandle
  15033. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15034. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15035. * src/HttpRequestCommand.h: Request->RequestHandle
  15036. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15037. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15038. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15039. * src/HttpDownloadCommand.h: Request->RequestHandle
  15040. * src/FtpConnection.cc: Request->RequestHandle
  15041. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15042. * src/UrlRequestInfo.cc: Request->RequestHandle
  15043. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15044. * src/HttpConnection.h: Request->RequestHandle
  15045. * src/DownloadCommand.cc: Request->RequestHandle
  15046. * src/FtpConnection.h: Request->RequestHandle
  15047. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15048. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15049. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15050. * src/Request.h
  15051. (SharedHandle.h): New include.
  15052. (RequestHandle): New type definition.
  15053. (Requests): Redefined.
  15054. To add MULTITRACKER support:
  15055. * src/TrackerWatcherCommand.h
  15056. (createRequestCommand): New function.
  15057. * src/DownloadEngineFactory.cc
  15058. (newTorrentConsoleEngine): Removed req.
  15059. * src/prefs.h
  15060. (PREF_TRACKER_MAX_TRIES): New definition.
  15061. * src/TorrentMan.cc
  15062. (TorrentMan): Removed req. Added trackerNumTry.
  15063. (~TorrentMan): Removed req.
  15064. (setupInternal1): Added announceList.
  15065. * src/TorrentRequestInfo.cc
  15066. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15067. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15068. * src/main.cc
  15069. (main): Added PREF_TRACKER_MAX_TRIES.
  15070. * src/TorrentMan.h
  15071. (Request.h): Removed.
  15072. (AnnounceList.h): New include.
  15073. (trackerNumTry): New variable.
  15074. (req): Removed.
  15075. (announceList): New variable.
  15076. * src/TrackerWatcherCommand.cc
  15077. (execute): Rewritten.
  15078. (createRequestCommand): New function.
  15079. * src/TrackerUpdateCommand.cc
  15080. (execute): Updated with the use of AnnounceList.
  15081. * src/AnnounceList.cc: New class.
  15082. * src/AnnounceList.h: New class.
  15083. To fix typo:
  15084. * src/prefs.h
  15085. (PREF_MAX_TRIES): max_try->max_tries
  15086. To not to decode "+" as space in URL decode:
  15087. * src/Util.cc
  15088. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15089. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15090. To add timeout to async name resolution:
  15091. * src/AbstractCommand.h
  15092. (nameResolveFinished): New function. This is not elegant way. It needs
  15093. to be more refined.
  15094. (nameResolverCheck): New variable.
  15095. * src/AbstractCommand.cc
  15096. (AbstractCommand): Added nameResolverCheck.
  15097. (execute): Added the check whether the name resolution has finished.
  15098. (setNameResolverCheck): Set nameResolverCheck to true.
  15099. (disableNameResolverCheck): Set nameResolverCheck to false.
  15100. (nameResolverFinished): New function.
  15101. * src/FtpInitiateConnectionCommand.h
  15102. (nameResolverFinished): New function.
  15103. * src/FtpInitiateConnectionCommand.cc
  15104. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15105. * src/HttpInitiateConnectionCommand.h
  15106. (nameResolverFinished): New function.
  15107. * src/HttpInitiateConnectionCommand.cc
  15108. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15109. * src/prefs.h
  15110. (PREF_DNS_TIMEOUT): New definition.
  15111. * src/main.cc
  15112. (main): Added PREF_DNS_TIMEOUT.
  15113. To add the support for a non-compact response from a tracker:
  15114. * src/PeerListProcessor.h: New class.
  15115. * src/DefaultPeerListProcessor.h: New class.
  15116. * src/DefaultPeerListProcessor.cc: New class.
  15117. * src/CompactPeerListProcessor.h: New class.
  15118. * src/CompactPeerListProcessor.cc: New class.
  15119. * src/DelegatingPeerListProcessor.h: New class.
  15120. * src/DelegatingPeerListProcessor.cc: New class.
  15121. * src/TorrentMan.cc
  15122. (addPeer): New function(overload).
  15123. (addPeer): Delete unused peers only when new peer is added.
  15124. * src/TorrentMan.h
  15125. (PeerListProcessor.h): Included.
  15126. (Peers): Removed.
  15127. (addPeer): New function(overload).
  15128. * src/TrackerUpdateCommand.cc
  15129. (netinet/in.h): Removed.
  15130. (DelegatingPeerListProcessor.h): Included.
  15131. (execute): Updated to use DelegatingPeerListProcessor.
  15132. To fix the memory leak in TorrentMan::peers:
  15133. * src/PeerAbstractCommand.cc
  15134. (onAbort): Added peer->resetStatus().
  15135. * src/Peer.h
  15136. (resetStatus): Made public.
  15137. To improve the precision of the speed calculation:
  15138. * src/SpeedCalc.h
  15139. (nextInterval): New variable.
  15140. * src/SpeedCalc.cc
  15141. (reset): Added nextInterval.
  15142. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15143. (changeSw): Set nextInterval to 15 seconds relative to the current
  15144. instant time.
  15145. * src/main.cc
  15146. (showVersion): Updated.
  15147. (showUsage): Updated.
  15148. * Release 0.8.1
  15149. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15150. * src/main.cc
  15151. (showUsage): Commented out --min-segment-size option.
  15152. (main): Commented out --min-segment-size option.
  15153. * Release 0.8.0
  15154. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15155. * src/*.{h,cc}:
  15156. Added an exception to the license which allows linking with OpenSSL.
  15157. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15158. * src/AbstractCommand.cc
  15159. (execute): Check whether the download has finished before checking
  15160. socket status.
  15161. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15162. Do not exit even if no segment is available.
  15163. * src/prefs.h
  15164. (PREF_STARTUP_IDLE_TIME): New definition.
  15165. * src/PeerInteractionCommand.cc
  15166. (executeInternal): Removed max speed limit. Because it performs bad.
  15167. (receiveMessages): Added max speed limit. This was better than above,
  15168. but still a little bit to be desired. Sometimes the download speed
  15169. became much faster than I specified.
  15170. * src/SpeedCalc.h
  15171. (start): New variable.
  15172. (accumulatedLength): New variable.
  15173. (getAvgSpeed): New function.
  15174. * src/SpeedCalc.cc
  15175. (reset): Added start, accumulatedLength.
  15176. (update): Added calculation of an average speed.
  15177. (getAvgSpeed): New function.
  15178. * src/DownloadCommand.h
  15179. (sw): Removed.
  15180. * src/main.cc
  15181. (main): Added PREF_STARTUP_IDLE_TIME.
  15182. * src/PeerStat.h
  15183. (STATUS): Added REQUEST_IDLE.
  15184. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15185. (getAvgDownloadSpeed): New function
  15186. (requestIdle): New function.
  15187. * src/SegmentMan.h
  15188. (SegmentEntryHandle): New type definition.
  15189. (SegmentEntries): Now holds SegmentEntryHandle.
  15190. (findSlowerSegmentEntry): New funtion.
  15191. * src/SegmentMan.cc
  15192. (save): Updated according to the changes in SegmentEntries.
  15193. (read): Updated according to the changes in SegmentEntries.
  15194. (FindSegmentEntryByIndex): Updated according to the changes in
  15195. SegmentEntries.
  15196. (FindSegmentEntryByCuid): Updated according to the changes in
  15197. SegmentEntries.
  15198. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15199. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15200. Renamed uitr as itr.
  15201. (findSlowerSegmentEntry): New function.
  15202. (getSegment): Updated according to the changes in SegmentEntries.
  15203. Added the feature that cancels the segment with slow server and fast
  15204. one takes it over.
  15205. (cancelSegment): Updated according to the changes in SegmentEntries.
  15206. (getDownloadLength): Updated according to the changes in
  15207. SegmentEntries.
  15208. (init): Assigned 0 to bitfield after deleting it.
  15209. * src/DownloadCommand.cc
  15210. (STARTUP_IDLE_TIME): Removed.
  15211. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15212. * src/PeerChokeCommand.cc
  15213. (optUnchokingPeer): Updated according to the changes in Peer.
  15214. (ResetDelta): Removed.
  15215. (UploadFaster): Updated according to the changes in Peer.
  15216. (DownloadFaster): Updated according to the changes in Peer.
  15217. (execute): I clarify the meaning of "upload" and "download" here.
  15218. "upload" means the transfer from localhost to remote host.
  15219. "download" means the transfer from remote host to localhost.
  15220. Based on this rule, I swapped orderByUploadRate and
  15221. orderByDownloadRate.
  15222. * src/PeerInteractionCommand.cc
  15223. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15224. (executeInternal): Removed the argument of
  15225. peerInteraction->sendMessages().
  15226. (receiveMessages): Rewritten download speed limit.
  15227. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15228. * src/HttpResponseCommand.cc
  15229. (handleDefaultEncoding): If file size is unknown in torrent request,
  15230. do not call segmentMan->initBitfield() here.
  15231. Disabled persistent connection feature in torrent request.
  15232. * src/UrlRequestInfo.h
  15233. (UrlRequestInfo): Removed const qualifier from option.
  15234. * src/TorrentMan.h
  15235. (TransferStat): New class.
  15236. (deltaDownloadLength): Removed.
  15237. (deltaUploadLength): Removed.
  15238. (addDeltaDownloadLength): Removed.
  15239. (getDeltaDownloadLength): Removed.
  15240. (resetDeltaDownloadLength): Removed.
  15241. (addDeltaUploadLength): Removed.
  15242. (getDeltaUploadLength): Removed.
  15243. (resetDeltaUploadLength): Removed.
  15244. (addActivePeer): Added peer->activate().
  15245. (deleteActivePeer): Added peer->deactivate().
  15246. (calculateStat): New function.
  15247. * src/TorrentMan.cc
  15248. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15249. (calculateStat): New function.
  15250. * src/PeerInteraction.h
  15251. (uploadLimit): Removed.
  15252. (option): New variable.
  15253. (setUploadLimit): Removed.
  15254. (getUploadSpeed): Removed.
  15255. (sendMessages): Removed the argument "currentUploadSpeed".
  15256. * src/PeerInteraction.cc
  15257. (prefs.h): Included.
  15258. (PeerInteraction): Removed uploadLimit. Added option.
  15259. (sendMessages): Rewritten upload speed limit.
  15260. (sendHandshake): Removed the argument from sendMessages().
  15261. (sendBitfield): Removed the argument from sendMessages().
  15262. * src/PeerAbstractCommand.cc
  15263. (execute): Commented out the portion of upload limit.
  15264. (onAbort): Removed peer->resetStatus().
  15265. * src/TorrentRequestInfo.cc
  15266. (timeoutSpecified): Declared extern.
  15267. (execute): Set timeout to 180 if timeout is not specified by.
  15268. command-line.
  15269. * src/PieceMessage.cc
  15270. (receivedAction): Added peer->updateDownloadLength().
  15271. Removed peer->addPeerUpload().
  15272. Removed torrentMan->addDeltaDownloadLength().
  15273. (send): Added peer->updateUploadLength().
  15274. Removed peer->addPeerDownload().
  15275. Removed torrentMan->addDeltaUploadLength().
  15276. * src/main.cc
  15277. (timeoutSpecified): New variable.
  15278. (main): Set timeoutSpecified to false.
  15279. If the command-line option "--upload-limit" is specified, then
  15280. timeoutSpecified is set to true. This option will remain in the next
  15281. release, but be deprecated in the future release.
  15282. * src/TorrentRequestInfo.h
  15283. (TorrentRequestInfo): Removed const qualifier from op.
  15284. * src/PeerStat.h
  15285. (uploadSpeed): New variable.
  15286. (PeerStat): Added default value to cuid.
  15287. (calculateUploadSpeed): New function.
  15288. (updateUploadLength): New function.
  15289. (getMaxUploadSpeed): New function.
  15290. (getAvgUploadSpeed): New function.
  15291. (reset): Added uploadSpeed. Set status to IDLE.
  15292. * src/TorrentDownloadEngine.h
  15293. (cp): Declared as Time.
  15294. (sessionDownloadLengthArray): Removed.
  15295. (sessionUploadLengthArray): Removed.
  15296. (currentCp): Removed.
  15297. (lastCalcStat): New variable
  15298. (lastElapsed): Removed.
  15299. (sessionDownloadLength): Removed.
  15300. (calculateStat): New function.
  15301. * src/TorrentDownloadEngine.cc
  15302. (initStatistics): Removed lastElapsed, cp[],
  15303. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15304. currentCp, sessionDownloadLength.
  15305. Added cp.reset() and lastCalcStat.reset().
  15306. (calculateSpeed): Changed the name of the argument.
  15307. (calculateStatistics): Rewritten.
  15308. (calculateStat): New function.
  15309. * src/Peer.h
  15310. (PeerStat.h): Included.
  15311. (peerUpload): Removed.
  15312. (peerDownload): Removed.
  15313. (peerStat): New variable.
  15314. (sessionUploadLength): New variable.
  15315. (sessionDownloadLength): New variable.
  15316. (deltaUpload): Removed.
  15317. (deltaDownload): Removed.
  15318. (resetStatus): Made private.
  15319. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15320. Removed peerUpload, peerDownload.
  15321. (updateUploadLength): New function.
  15322. (addDeltaUpload): Removed.
  15323. (updateDownloadLength): New function.
  15324. (resetDeltaUpload): Removed.
  15325. (getDeltaUpload): Removed.
  15326. (addDeltaDownload): Removed.
  15327. (calculateUploadSpeed): New function.
  15328. (resetDeltaDownload): Removed.
  15329. (getDeltaDownload): Removed.
  15330. (calculateDownloadSpeed): New function.
  15331. (getSessionUploadLength): New function.
  15332. (getSessionDownloadLength): New function.
  15333. (activate): New function.
  15334. (deactivate): New function.
  15335. (addPeerUpload): Removed.
  15336. (setPeerUpload): Removed.
  15337. (getPeerUpload): Removed.
  15338. (addPeerDownload): Removed.
  15339. (setPeerDownload): Removed.
  15340. (getPeerDownload): Removed.
  15341. * src/Peer.cc
  15342. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15343. * src/MetalinkRequestInfo.h
  15344. (MetalinkRequestInfo): Removed const qualifier from op.
  15345. * src/RequestInfo.h
  15346. (op): Removed const qualifier.
  15347. (RequestInfo): Removed const qualifier from op.
  15348. * src/prefs.h
  15349. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15350. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15351. * src/PeerInteractionCommand.cc
  15352. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15353. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15354. * src/PeerInteraction.cc
  15355. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15356. * src/main.cc
  15357. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15358. Added the description of "--max-download-limit" option.
  15359. Removed the description of "--upload-limit" option.
  15360. Added the description of "--max-upload-limit" option.
  15361. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15362. Added "--max-download-limit" option and "--max-upload-limit" option.
  15363. Added the warning message if "--upload-limit" option is used.
  15364. * src/DownloadCommand.cc
  15365. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15366. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15367. To rewrite segment download mechanism for HTTP/FTP download.
  15368. Use BitfieldMan to manage segment download.
  15369. * src/HttpResponseCommand.h
  15370. (executeInternal): Pass the reference of segment.
  15371. * src/AbstractCommand.cc
  15372. (prepareForRetry): Call segmentMan->cancelSegment here.
  15373. (onAbort): Call segmentMan->cancelSegment here.
  15374. * src/HttpDownloadCommand.cc
  15375. (prepareForNextSegment): New function.
  15376. * src/DownloadEngineFactory.cc
  15377. (newConsoleEngine): Removed splitter.
  15378. (newTorrentConsoleEngine): Removed splitter.
  15379. * src/Request.h
  15380. (segment): Renamed from seg.
  15381. * src/FtpInitiateConnectionCommand.h
  15382. (executeInternal): Pass the reference of segment.
  15383. * src/AbstractCommand.h
  15384. (executeInternal): Pass the reference of segment.
  15385. * src/pref.h
  15386. (PREF_SEGMENT_SIZE): New definition.
  15387. * src/HttpProxyRequestCommand.h
  15388. (executeInternal): Pass the reference of segment.
  15389. * src/HttpResponseCommand.cc
  15390. (checkResponse): Allowed status 206 when a request range starts 0.
  15391. (handleDefaultEncoding): Rewritten the code related to Segment.
  15392. (handleOtherEncoding): Rewritten the code related to Segment.
  15393. * src/SegmentMan.h
  15394. (SegmentEntry): New class.
  15395. (SegmentEntries): New type definition.
  15396. (bitfield): New variable.
  15397. (usedSegmentEntries): New variable.
  15398. (onNullBitfield): New function.
  15399. (checkoutSegment): New function.
  15400. (segments): Removed.
  15401. (splitter): Removed.
  15402. (unregisterId): Removed.
  15403. (getSegment): New function(overload)
  15404. (getDownloadedSize): Removed.
  15405. (cancelSegment): New function.
  15406. (completeSegment): New function.
  15407. (initBitfield): New function.
  15408. (hasSegment): New function.
  15409. (getDownloadLength): New function.
  15410. * src/BitfieldMan.h
  15411. (getStartIndex): New function.
  15412. (getEndIndex): New function.
  15413. (getMissingUnusedIndex): New function(overload).
  15414. (getSparseMissingUnusedIndex): New function.
  15415. * src/BitfieldMan.cc
  15416. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15417. (getMissingUnusedIndex): New function(overload).
  15418. (Range): New class.
  15419. (getStartIndex): New function.
  15420. (getEndIndex): New function.
  15421. (getSparseMissingUnusedIndex): New function.
  15422. (isBitSetInternal): Return false if the given index is less than 0.
  15423. * src/HttpInitiateConnectionCommand.h
  15424. (executeInternal): Pass the reference of segment.
  15425. * src/FtpNegotiateCommand.h
  15426. (executeInternal): Pass the reference of segment.
  15427. * src/FtpNegotiateCommand.cc
  15428. (recvSize): Initialize bitfield here.
  15429. * src/FtpTunnelResponseCommand.h
  15430. (executeInternal): Pass the reference of segment.
  15431. * src/HttpConnection.cc
  15432. (createRequest): Rewritten range header processing.
  15433. * src/DownloadCommand.h
  15434. (executeInternal): Pass the reference of segment.
  15435. (prepareForRetry): Removed.
  15436. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15437. function.
  15438. * src/main.cc
  15439. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15440. * src/SegmentMan.cc
  15441. (SegmentMan): Added bitfield. Removed splitter.
  15442. (~SegmentMan): Added bitfield. Removed splitter.
  15443. (unregisterId): Removed.
  15444. (getSegment): Rewritten.
  15445. (updateSegment): Rewritten.
  15446. (save): Rewritten.
  15447. (read): Rewritten.
  15448. (finished): Rewritten.
  15449. (getDownloadedSize): Removed.
  15450. (initBitfield): New function.
  15451. (FindSegmentEntryByIndex): New function object.
  15452. (FindSegmentEntryByCuid): New function object.
  15453. (checkoutSegment): New function.
  15454. (onNullBitfield): New function.
  15455. (getSegment): New function(overload).
  15456. (CancelSegment): New function object.
  15457. (cancelSegment): New function.
  15458. (completeSegment): New function.
  15459. (hasSegment): New function.
  15460. (getDownloadLength): New function.
  15461. * src/FtpInitiateConnectionCommand.cc
  15462. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15463. * src/Segment.h: Rewritten.
  15464. * src/Segment.cc (operator<<): New function.
  15465. * src/HttpDownloadCommand.h
  15466. (prepareForNextSegment): New function.
  15467. * src/Request.cc
  15468. (resetUrl): Made segment null.
  15469. * src/DownloadEngine.cc
  15470. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15471. * src/HttpProxyRequestCommand.h
  15472. (executeInternal): Pass the reference of segment.
  15473. * src/DownloadCommand.cc
  15474. (executeInternal): Rewritten the code related to Segment.
  15475. (prepareForRetry): Removed.
  15476. (prepareForNextSegment): Rewritten.
  15477. * src/FtpTunnelResponseCommand.h
  15478. (executeInternal): Pass the reference of segment.
  15479. To add HTTP 1.1 persistent connection support(experimental)
  15480. * src/HttpRequestCommand.cc
  15481. (executeInternal): Disable keep alive if it is disabled by
  15482. configuration.
  15483. * src/Request.h
  15484. (keepAlive): New variable.
  15485. (isKeepAlive): New function.
  15486. (setKeepAlive): New function.
  15487. * src/pref.h
  15488. (PREF_HTTP_KEEP_ALIVE): New definition.
  15489. * src/HttpResponseCommand.cc
  15490. (executeInternal): Check the remote server supports keep alive.
  15491. * src/HttpConnection.cc
  15492. (createRequest): Send "Connection: close" only if keep alive is
  15493. disabled.
  15494. * src/main.cc
  15495. (main):
  15496. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15497. To add max download speed limit:
  15498. * src/pref.h
  15499. (PREF_MAX_SPEED_LIMIT): New definition.
  15500. * src/PeerInteractionCommand.cc
  15501. (executeInternal): Added max download speed limit. Not tested yet.
  15502. * src/SegmentMan.h
  15503. (PeerStats): New type definition.
  15504. (peerStats): New variable.
  15505. (registerPeerStat): New function.
  15506. (FindPeerStat): New function object.
  15507. (getPeerStat): New function.
  15508. (calculateDownloadSpeed): New function.
  15509. * src/SpeedCalc.h: New class.
  15510. * src/SpeedCalc.cc: New class.
  15511. * src/main.cc
  15512. (main):
  15513. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15514. download speed is not restricted).
  15515. * src/PeerStat.h: New class.
  15516. * src/SegmentMan.cc
  15517. (registerPeerStat): New function.
  15518. (calculateDownloadSpeed): New function.
  15519. * src/DownloadCommand.cc
  15520. (STARTUP_IDLE_TIME): New definition.
  15521. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15522. downloadStart.
  15523. (~DownloadCommand): Call peerStat->downloadStop.
  15524. (executeInternal): Added download speed limitter. Rewritten lowest
  15525. speed limitter.
  15526. * src/HttpConnection.cc
  15527. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15528. * src/AbstractCommand.cc
  15529. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15530. Added hostname to the error message.
  15531. * src/ConsoleDownloadEngine.cc
  15532. (calculateStatistics): Initialize psize with dlSize.
  15533. * src/PieceMessage.cc
  15534. (receivedAction): Do not call peerInteraction->abortPiece here.
  15535. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15536. * src/BitfieldMan.h
  15537. (clearAllUseBit): New function.
  15538. (setAllUseBit): New function.
  15539. * src/BitfieldMan.cc
  15540. (clearAllBit): Do not clear useBitfield here.
  15541. (clearAllUseBit): New function.
  15542. (setAllUseBit): New function.
  15543. * src/Piece.cc
  15544. (clearAllBlock): Call bitfield->clearAllUseBit().
  15545. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15546. To make filename URL-decoded:
  15547. * src/HttpResponseCommand.h: Updated doc.
  15548. * src/HttpResponseCommand.cc
  15549. (determinFilename): Made filename URL-decoded.
  15550. * src/FtpInitiateConnectionCommand.cc
  15551. (executeInternal): Made filename URL-decoded.
  15552. * src/Util.h (urldecode): New function.
  15553. * src/Util.cc (urldecode): New function.
  15554. To fix a bug that caused assertion failure in ares_strerror:
  15555. * src/NameResolver.cc (callback): Fixed the bug.
  15556. * Release 0.7.3
  15557. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15558. To add --seed-time and --seed-ratio command-line option:
  15559. * src/Option.h (getAsDouble): New function.
  15560. * src/Option.cc (getAsDouble): New function.
  15561. * src/SeedCheckCommand.h: New class.
  15562. * src/SeedCheckCommand.cc: New class.
  15563. * src/DownloadEngineFactory.cc
  15564. (SeedCheckCommand.h): Included.
  15565. (UnionSeedCriteria.h): Included.
  15566. (TimeSeedCriteria.h): Included.
  15567. (ShareRatioSeedCriteria.h): Included.
  15568. (newTorrentConsoleEngine): Added the processing of seed option.
  15569. * src/SeedCriteria.h: New class.
  15570. * src/ShareRatioSeedCriteria.h: New class.
  15571. * src/TimeSeedCriteria.h: New class.
  15572. * src/UnionSeedCriteria.h: New class.
  15573. * src/prefs.h
  15574. (PREF_SEED_TIME): New definition.
  15575. (PREF_SEED_RATIO): New definition.
  15576. * src/main.cc
  15577. (showUsage): Added --seed-time and --seed-ratio option.
  15578. (main): Added --seed-time and --seed-ratio option.
  15579. Made default log file name "/dev/null".
  15580. * src/SharedHandle.h
  15581. (SharedHandle): Copy constructor. Made it assignable from the
  15582. SharedHandle of the subclasses.
  15583. (operator=): Made it assignable from the SharedHandle of the
  15584. subclasses.
  15585. (getRefCount): New function.
  15586. To add notice log level and the switch to write log to stdout. This
  15587. switch is configurable per log level.
  15588. * src/Logger.h
  15589. (notice): New function.
  15590. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15591. constant.
  15592. * src/LogFactory.cc
  15593. (getInstance): The use of NullLogger was removed. A log message with
  15594. notice log level was made written to stdout along with log file.
  15595. * src/NullLogger.h
  15596. (notice): New function.
  15597. * src/SimpleLogger.h
  15598. (writeHeader): Added the 'file' argument.
  15599. (writeLog): Added the 'file' argument.
  15600. (writeFile): New function.
  15601. (stdoutField): New variable.
  15602. (SimpleLogger): Removed the default constructor.
  15603. (SimpleLogger): Made the default value of logfile 0.
  15604. (debug): Added 'virtual' keyword.
  15605. (info): Added 'virtual' keyword.
  15606. (warn): Added 'virtual' keyword.
  15607. (error): Added 'virtual' keyword.
  15608. (notice): New function.
  15609. (setStdout): New function.
  15610. * src/SimpleLogger.cc
  15611. (WRITE_LOG): Replaced writeLog with writeFile.
  15612. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15613. (SimpleLogger): Removed the default constructor.
  15614. (setStdout): New function.
  15615. (writeLog): Added the handling of NOTICE log level.
  15616. (writeFile): New function.
  15617. (notice): New function.
  15618. * src/TorrentMan.h: Updated doc.
  15619. * src/BitfieldMan.h: Updated doc.
  15620. * src/TrackerWatcherCommand.cc
  15621. (execute): Return true if error occurred in the request to the tracker
  15622. and halt is requested.
  15623. * src/TrackerUpdateCommand.cc
  15624. (execute): Return true if error occurred in the request to the tracker
  15625. and halt is requested.
  15626. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15627. DownloadEngine:
  15628. * src/TorrentConsoleDownloadEngine.h
  15629. (onSelectiveDownloadingCompletes): Removed.
  15630. * src/TorrentConsoleDownloadEngine.cc
  15631. (onSelectiveDownloadingCompletes): Removed.
  15632. * src/TorrentDownloadEngine.h
  15633. (onEndOfRun): Added 'virtual' keyword.
  15634. (afterEachIteration): Removed.
  15635. (onSelectiveDownloadingCompletes): Removed.
  15636. * src/TorrentDownloadEngine.cc
  15637. (onEndOfRun): Removed filenameFixed.
  15638. (afterEachIteration): Removed.
  15639. * src/TorrentMan.cc
  15640. (completePiece): Call onDownloadComplete here.
  15641. (onDownloadComplete): Added 2 log messages.
  15642. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15643. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15644. * src/NameResolver.h: Added the prototype declaration of callback().
  15645. To support c-ares library:
  15646. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15647. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15648. * src/FtpInitiateConnectionCommand.h:
  15649. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15650. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15651. * src/HttpInitiateConnectionCommand.h:
  15652. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15653. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15654. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15655. #1542285 by tizianomueller)
  15656. * src/HttpInitiateConnectionCommand.cc:
  15657. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15658. * src/FtpInitiateConnectionCommand.cc:
  15659. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15660. * src/DownloadEngine.h:
  15661. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15662. * src/DownloadEngine.cc:
  15663. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15664. To fix the bug that causes compilation failure with metalink-support
  15665. disabled(bug#1543587):
  15666. * src/main.cc: Fixed with the patch by tizianomueller.
  15667. * Release 0.7.2
  15668. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15669. * src/main.cc
  15670. (main): Added a message to inform users that aria2 is starting to
  15671. verify checksum.
  15672. * src/RequestInfo.cc
  15673. (printDownloadAbortMessage): Added a message to inform users that
  15674. transfer can be resumed.
  15675. * src/FeatureConfig.cc
  15676. (FEATURE_ASYNC_DNS): New definition.
  15677. (FeatureConfig): Added aysnc DNS entry.
  15678. To replace CommandUuid with Command* in SocketEntry and
  15679. NameResolverEntry:
  15680. * src/DownloadEngine.h
  15681. (CommandUuids): Removed.
  15682. (SocketEntry::commandUuid): Removed.
  15683. (SocketEntry::command): New variable.
  15684. (SocketEntry::SocketEntry): Updated.
  15685. (SocketEntry::operator==): Updated.
  15686. (NameResolverEntry::commandUuid): Removed.
  15687. (NameResolverEntry::command): New variable.
  15688. (NameResolverEntry::NameResolverEntry): Updated.
  15689. (NameResolverEntry::operator==): Updated.
  15690. (waitData): Changed the argument type.
  15691. (addSocketForReadCheck): Changed the argument type.
  15692. (deleteSocketForReadCheck): Changed the argument type.
  15693. (addSocketForWriteCheck): Changed the argument type.
  15694. (deleteSocketForWriteCheck): Changed the argument type.
  15695. (addNameResolverCheck): Changed the argument type.
  15696. (deleteNameResolverCheck): Changed the argument type.
  15697. * src/DownloadEngine.cc
  15698. (FindCommand): Removed.
  15699. (run): Removed activeUuid. Added activeCommands instead.
  15700. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15701. (AccumulateActiveCommand): New function object.
  15702. (waitData): Use AccumulateActiveCommand.
  15703. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15704. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15705. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15706. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15707. (addNameResolverCheck): Use Command instead of CommandUuid.
  15708. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15709. * src/AbstractCommand.cc
  15710. (disableReadCheckSocket): Updated according to the changes in
  15711. DownloadEngine.
  15712. (setReadCheckSocket): Updated according to the changes in
  15713. DownloadEngine.
  15714. (disableWriteCheckSocket): Updated according to the changes in
  15715. DownloadEngine.
  15716. (setWriteCheckSocket): Updated according to the changes in
  15717. DownloadEngine.
  15718. (setNameResolverCheck): Updated according to the changes in
  15719. DownloadEngine.
  15720. (disableNameResolverCheck): Updated according to the changes in
  15721. DownloadEngine.
  15722. * src/AbstractCommand.cc
  15723. (disableReadCheckSocket): Updated according to the changes in
  15724. DownloadEngine.
  15725. (setReadCheckSocket): Updated according to the changes in
  15726. DownloadEngine.
  15727. (disableWriteCheckSocket): Updated according to the changes in
  15728. DownloadEngine.
  15729. (setWriteCheckSocket): Updated according to the changes in
  15730. DownloadEngine.
  15731. * release 0.7.1
  15732. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15733. To handle the case where some BitTorrent tracker requires all letters
  15734. except for [A-Za-z0-9] is URL encoded.
  15735. * src/Util.h
  15736. (torrentUrlencode): New function.
  15737. * src/Util.cc
  15738. (ctype.h): Included.
  15739. (torrentUrlencode): New function.
  15740. * src/TrackerWatcherCommand.cc
  15741. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15742. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15743. To add asynchronous DNS support(libares):
  15744. * src/AbstractCommand.h
  15745. (setNameResolverCheck): New function.
  15746. (disableNameResolverCheck): New function
  15747. (resolveHostname): New function.
  15748. * src/AbstractCommand.cc
  15749. (setNameResolverCheck): New function.
  15750. (disableNameResolverCheck): New function
  15751. (resolveHostname): New function.
  15752. * src/FtpInitiateConnectionCommand.h
  15753. (nameResolver): New function.
  15754. * src/FtpInitiateConnectionCommand.cc
  15755. (Util.h): Included.
  15756. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15757. disableWriteCheckSocket.
  15758. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15759. (executeInternal): Added async DNS support.
  15760. * src/HttpInitiateConnectionCommand.h
  15761. (nameResolver): New function.
  15762. * src/HttpInitiateConnectionCommand.cc
  15763. (DlRetryEx.h): Included.
  15764. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15765. disableWriteCheckSocket.
  15766. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15767. (executeInternal): Added async DNS support.
  15768. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15769. by extern "C" declaration.
  15770. * src/NameResolver.cc: New class.
  15771. * src/Util.h:
  15772. (isNumberAndDotsNotation): New function
  15773. * src/Util.cc
  15774. (isNumberAndDotsNotation): New function.
  15775. * src/DownloadEngine.h
  15776. (NameResolver.h): Included.
  15777. (NameResolverEntry): New class.
  15778. (NameResolverEntries): New type definition.
  15779. (addNameResolverCheck): New function.
  15780. (deleteNameResolverCheck): New function.
  15781. * src/DownloadEngine.cc
  15782. (run): Initialize cp with 0.
  15783. (SetDescriptor::operator()): Added for NameResolverEntry.
  15784. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15785. (waitData): Check nameResolver entries.
  15786. (updateFdSet): Update fds in nameResolver entries.
  15787. (addNameResolverCheck): New function.
  15788. (deleteNameResolverCheck): new function.
  15789. * src/PeerInteractionCommand.cc
  15790. (executeInternal): Fixed wrong socket handling.
  15791. * src/main.cc
  15792. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15793. * src/Util.cc
  15794. (fileChecksum): Removed the call to ctx.digestReset().
  15795. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15796. * po/ru.po: Azamat sent me Russian translation.
  15797. * src/FtpNegotiateCommand.cc
  15798. (recvGreeting): Call disableWriteCheckSocket just after
  15799. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15800. (recvRetr): Recognized status code 125 as a acceptable response code.
  15801. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15802. case-insesitive filesystem(BUG#1531057).
  15803. * src/Time.h: Renamed as TimeA2.h.
  15804. * src/Time.cc: Renamed as TimeA2.cc.
  15805. * src/TimeA2.h: New class.
  15806. * src/TimeA2.cc: New class.
  15807. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15808. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15809. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15810. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15811. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15812. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15813. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15814. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15815. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15816. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15817. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15818. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15819. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15820. * release 0.7.0
  15821. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15822. * src/PeerChokeCommand.h
  15823. (PeerChokeCommand): Rearranged the arguments.
  15824. * src/PeerChokeCommand.cc
  15825. (PeerChokeCommand): Rearranged the arguments.
  15826. * src/MetalinkEntry.h
  15827. (Checksum.h): Included.
  15828. (md5): Removed.
  15829. (sha1): Removed.
  15830. (checksum): New variable.
  15831. (operator=): Updated.
  15832. (check): Removed.
  15833. * src/prefs.h
  15834. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15835. (PREF_FOLLOW_TORRENT): New definition.
  15836. (PREF_SELECT_FILE): New definition.
  15837. (PREF_FOLLOW_METALINK): New definition.
  15838. * src/MetalinkResource.h
  15839. (TYPE_HTTPS): Added to enum TYPE.
  15840. * src/TorrentMan.cc
  15841. (~TorrentMan): Rewritten.
  15842. * src/MultiDiskWriter.cc
  15843. (MultiDiskAdaptor): Updated according to the changes in
  15844. MessageDigestContext.
  15845. (~MultiDiskAdaptor): Updated according to the changes in
  15846. MessageDigestContext.
  15847. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15848. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15849. * src/Util.h
  15850. (fileChecksum): Updated according to the changes in
  15851. MessageDigestContext.
  15852. * src/Util.cc
  15853. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15854. (fileChecksum): Updated according to the changes in
  15855. MessageDigestContext.
  15856. * src/messageDigest.h: Rewritten.
  15857. * src/MetalinkEntry.cc
  15858. (check): Removed.
  15859. (Supported): Updated.
  15860. (dropUnsupportedResource): Fixed a memory leak.
  15861. * src/ShaVisitor.cc
  15862. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15863. (~ShaVisitor): Updated according to the changes in
  15864. MessageDigestContext.
  15865. (visit): Updated according to the changes in MessageDigestContext.
  15866. * src/main.cc
  15867. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15868. command-line option added.
  15869. * src/DownloadEngine.h
  15870. (SocketEntry): New class.
  15871. (SocketEntries): New definition.
  15872. (PairFind): Removed.
  15873. (SockCmdMap): Removed.
  15874. * src/DownloadEngine.cc
  15875. (DownloadEngine): Rewritten.
  15876. (~DownloadEngine): Rewritten.
  15877. (run): Renamed activeCommandUuids as activeUuids.
  15878. (SetDescriptor): Rewritten.
  15879. (AccumulateActiveCommandUuid): Removed.
  15880. (AccumulateActiveUuid): New function object.
  15881. (waitData): Rewritten.
  15882. (updateFdSet): Rewritten.
  15883. (addSocket): Rewritten.
  15884. (deleteSocket): Rewritten.
  15885. (addSocketForReadCheck): Rewritten.
  15886. (deleteSocketForReadCheck): Rewritten.
  15887. (addSocketForWriteCheck): Rewritten.
  15888. (deleteSocketForWriteCheck): Rewritten.
  15889. * src/Xml2MetalinkProcessor.cc
  15890. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15891. * src/DownloadCommand.cc
  15892. (executeInternal): Added the check routine for lowest speed limit.
  15893. * src/AbstractDiskWriter.cc
  15894. (AbstractDiskWriter): Updated according to the changes in
  15895. MessageDigestContext.
  15896. (~AbstractDiskWriter): Updated according to the changes in
  15897. MessageDigestContext.
  15898. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15899. * src/RequestInfo.h: New class.
  15900. * src/UrlRequestInfo.h: New class.
  15901. * src/UrlRequestInfo.cc: New class.
  15902. * src/TorrentRequestInfo.h: New class.
  15903. * src/TorrentRequestInfo.cc: New class.
  15904. * src/MetalinkRequestInfo.h: New class.
  15905. * src/MetalinkRequestInfo.cc: New class.
  15906. * src/Checksum.h: New class.
  15907. * src/DownloadEngineFactory.h: New class.
  15908. * src/DownloadEngineFactory.cc: New class.
  15909. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15910. * src/Option.h
  15911. (getAsBool): New function.
  15912. * src/Option.cc
  15913. (prefs.h): Included.
  15914. (defined): 0-length value is now recognized as undefined.
  15915. (getAsInt): Rewritten.
  15916. (getAsLLInt): Rewritten.
  15917. (getAsBool): New function.
  15918. * src/FeatureConfig.h: Rewritten.
  15919. * src/FeatureConfig.cc: Rewritten.
  15920. * src/prefs.h
  15921. (PREF_STDOUT_LOG): New definition.
  15922. (PREF_LOG): New definition.
  15923. (PREF_DIR): New definition.
  15924. (PREF_OUT): New definition.
  15925. (PREF_SPLIT): New definition.
  15926. (PREF_DAEMON): New definition.
  15927. (PREF_REFERER): New definition.
  15928. (PREF_TORRENT_FILE): New definition.
  15929. (PREF_LISTEN_PORT): New definition.
  15930. (PREF_METALINK_FILE): New definition.
  15931. (PREF_METALINK_VERSION): New definition.
  15932. (PREF_METALINK_LANGUAGE): New definition.
  15933. (PREF_METALINK_OS): New definition.
  15934. (PREF_METALINK_SERVERS): New definition.
  15935. * src/main.cc
  15936. (main): Following command-line parameters are now put into Option
  15937. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15938. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15939. metalinkLanguage, metalinkOs, metalinkServers
  15940. To fix the bug that aria2 can not handle http response header properly.
  15941. * src/HttpHeader.cc
  15942. (put): Made name lowercased.
  15943. (defined): Made name lowercased.
  15944. (getFirst): Made name lowercased.
  15945. (get): Made name lowercased.
  15946. (getFirstAsInt): Rewritten.
  15947. (getFirstAsLLInt): Rewritten.
  15948. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15949. * src/TorrentMan.h:
  15950. (advertisePiece): Updated doc.
  15951. (getAdvertisedPieceIndexes): Updated doc.
  15952. (removeAdvertisedPiece); New function.
  15953. * src/TorrentMan.cc
  15954. (FindElapsedHave): New function object.
  15955. (removeAdvertisedPiece): New function.
  15956. * src/HaveEraseCommand.h: New class.
  15957. * src/HaveEraseCommand.cc: New class.
  15958. * src/FeatureConfig.h: New class.
  15959. * src/FeatureConfig.cc: New class.
  15960. * src/Request.h
  15961. (defaultPorts): Removed.
  15962. * src/Request.cc
  15963. (FeatureConfig.h): Included.
  15964. (Request): Removed the statements related to defaultPorts.
  15965. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15966. A default port number is now retrieved from FeatureConfig.
  15967. * src/main.cc
  15968. (HaveEraseCommand.h): Included.
  15969. (showVersion): Added the output of feature list.
  15970. (main): Added HaveEraseCommand to command queue in BitTorrent
  15971. downloading.
  15972. * src/PeerInteractionCommand.h
  15973. (chokeCheckPoint): Commented out.
  15974. (periodicExecPoint): New variable.
  15975. * src/PeerInteractionCommand.cc
  15976. (executeInternal): Following methods are now called in at least every
  15977. 0.5 seconds to reduce CPU usage:
  15978. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15979. checkHave(), sendKeepAlive().
  15980. (checkLongTimePeerChoking): Commented out.
  15981. * src/BitfieldMan.h
  15982. (getNthBitIndex): Changed the method signature.
  15983. (getMissingIndexRandomly): Changed the method signature.
  15984. * src/BitfieldMan.cc
  15985. (getNthBitIndex): Rewritten
  15986. (getMissingIndexRandomly): Rewritten.
  15987. (hasMissingPiece): Rewritten.
  15988. (getMissingIndex): Refactored.
  15989. (getMissingUnusedIndex); Refactored.
  15990. (getMissingIndex): Refactored.
  15991. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15992. * src/PeerMessage.h
  15993. (Piece.h): Included.
  15994. (SharedHandle.h): Included.
  15995. (invalidate): New variable.
  15996. (uploading): New variable.
  15997. (isInvalidate): New function.
  15998. (isUploading): New function.
  15999. (onPush): New function.
  16000. (onChoked): New function.
  16001. (onCanceled): New function.
  16002. (onAbortPiece): New function.
  16003. (PeerMessageHandle): New type definition.
  16004. * src/PeerMessage.cc
  16005. (PeerMessage): Added the initialization for invalidate and uploading.
  16006. * src/CancelMessage.h
  16007. (CancelMessage): Rewritten.
  16008. * src/RejectMessage.h
  16009. (RejectMessage): Rewritten.
  16010. * src/Metalinker.h
  16011. (operator=): Defined.
  16012. * src/MetaEntry.h
  16013. (operator=): Defined.
  16014. * src/MetalinkResource.h
  16015. (operator=): Defined.
  16016. * src/AllowedFastMessage.h
  16017. (AllowedFastMessage): Rewritten.
  16018. * src/HandshakeMessage.h
  16019. (HandshakeMessage): New function(overload).
  16020. * src/HandshakeMessage.cc
  16021. (HandshakeMessage): Rewritten.
  16022. (init): New function.
  16023. * src/HaveMessage.h
  16024. (HaveMessage): Rewritten.
  16025. * src/Time.h
  16026. (operator=): Defined the function body here.
  16027. * src/Time.cc
  16028. (operator=): Removed.
  16029. * src/SocketCore.h
  16030. (operator==): Defined here.
  16031. (operator!=): Defined here.
  16032. (operator<): Defined here.
  16033. * src/SocketCore.cc
  16034. (operator==): Removed.
  16035. (operator<): Removed.
  16036. * src/BitfieldMan.h
  16037. (operator=): Defined the function body here.
  16038. * src/BitfieldMan.cc
  16039. (operator=): Removed.
  16040. * src/TorrentMan.h
  16041. (deleteErrorPeer): Removed.
  16042. (deleteUnusedPeer); New function.
  16043. * src/TorrentMan.cc
  16044. (addPeer): Call deleteUnusedPeer.
  16045. (deleteErrorPeer): Removed.
  16046. (deleteUnusedPeer): New function.
  16047. * src/PeerAbstractCommand.h
  16048. (setNoCheck): New function.
  16049. (noCheck): New variable.
  16050. * src/PeerAbstractCommand.cc
  16051. (PeerAbstractCommand): Added the initialization of noCheck.
  16052. (execute): Added a check for noCheck.
  16053. (setNoCheck): New function.
  16054. * src/Util.h
  16055. (stdio.h): Included.
  16056. * src/Util.cc
  16057. (unistd.h): Included.
  16058. * src/DefaultDiskWriter.cc
  16059. (unistd.h): Included.
  16060. * src/Peer.h
  16061. (operator==): Defined the function body here.
  16062. (operator!=): Defined the function body here.
  16063. * src/Peer.cc
  16064. (operator==): Removed.
  16065. (operator!=): Removed.
  16066. * src/Piece.h
  16067. (Piece): Defined the function body here(copy constructor).
  16068. (operator=): Defined the function body here.
  16069. (operator==): Defined the function body here.
  16070. * src/Piece.cc
  16071. (Piece): Removed(copy constructor).
  16072. (operator=): Removed.
  16073. (operator==): Removed.
  16074. * src/PeerMessageUtil.h
  16075. (ChokeMessage.h): Removed.
  16076. (UnchokeMessage.h): Removed.
  16077. (InterestedMessage.h): Removed.
  16078. (NotInterestedMessage.h): Removed.
  16079. (HaveMessage.h): Removed.
  16080. (BitfieldMessage.h): Removed.
  16081. (RequestMessage.h): Removed.
  16082. (CancelMessage.h): Removed.
  16083. (PieceMessage.h): Removed.
  16084. (HandshakeMessage.h): Removed.
  16085. (KeepAliveMessage.h): Removed.
  16086. (PortMessage.h): Removed.
  16087. (HaveAllMessage.h): Removed.
  16088. (HaveNoneMessage.h): Removed.
  16089. (PeerConnection.h): Removed.
  16090. (HandshakeMessage.h): Included.
  16091. * src/BitfieldMessage.h
  16092. (init): New function.
  16093. (BitfieldMessage): Rewritten.
  16094. (BitfieldMessage): New function(overload).
  16095. * src/RequestSlot.h
  16096. (operator=): Defined the function body here.
  16097. (operator==): Defined the function body here.
  16098. * src/RequestSlot.cc
  16099. (operator=): Removed.
  16100. (operator==): Removed.
  16101. To remove the dependency on the PeerMessage subclass from
  16102. PeerInteraction:
  16103. * src/PeerMessageFactory.h: New class.
  16104. * src/PeerMessageFactory.cc: New class.
  16105. * src/SimplePeerMessage.cc
  16106. (send): If invalidate is true then do nothing.
  16107. * src/PeerInteractionCommand.cc
  16108. (HandshakeMessage.h): Included.
  16109. (KeepAliveMessage.h): Included.
  16110. (ChokeMessage.h): Included.
  16111. (UnchokeMessage.h): Included.
  16112. (HaveMessage.h): Included.
  16113. (executeInternal): Call setNoCheck().
  16114. Removed setWriteCheckSocket(socket).
  16115. * src/PeerInteraction.h
  16116. (ChokeMessage.h): Removed.
  16117. (UnchokeMessage.h): Removed.
  16118. (InterestedMessage.h): Removed.
  16119. (NotInterestedMessage.h): Removed.
  16120. (HaveMessage.h): Removed.
  16121. (BitfieldMessage.h): Removed.
  16122. (RequestMessage.h): Removed.
  16123. (CancelMessage.h): Removed.
  16124. (PieceMessage.h): Removed.
  16125. (HandshakeMessage.h): Removed.
  16126. (KeepAliveMessage.h): Removed.
  16127. (PortMessage.h): Removed.
  16128. (HaveAllMessage.h): Removed.
  16129. (HaveNoneMessage.h): Removed.
  16130. (RejectMessage.h): Removed.
  16131. (AllowedFastMessage.h): Removed.
  16132. (SuggestPieceMessage.h): Removed.
  16133. (PeerMessageFactory.h): Included.
  16134. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16135. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16136. (PeerMessageFactory): New variable.
  16137. (createPeerMessage): Removed.
  16138. (createHandshakeMessage): Removed.
  16139. (setPeerMessageCommonProperty): Removed.
  16140. (addRequestSlot): New function.
  16141. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16142. (getPeerMessageFactory): New function.
  16143. (createRequestMessage): Removed.
  16144. (createCancelMessage): Removed.
  16145. (createPieceMessage): Removed.
  16146. (createHaveMessage): Removed.
  16147. (createChokeMessage): Removed.
  16148. (createUnchokeMessage): Removed.
  16149. (createInterestedMessage): Removed.
  16150. (createNotInterestedMessage): Removed.
  16151. (createBitfieldMessage): Removed.
  16152. (createKeepAliveMessage): Removed.
  16153. (createHaveAllMessage): Removed.
  16154. (createHaveNoneMessage): Removed.
  16155. (createRejectMessage): Removed.
  16156. (createAllowedFastMessage): Removed.
  16157. * src/PeerInteraction.cc
  16158. (PeerInteraction): Allocate PeerMessageFactory here.
  16159. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16160. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16161. PieceMessage::ID.
  16162. (addMessage): Simplified by using PeerMessage::onPush().
  16163. (addRequestSlot): New function.
  16164. (rejectAllPieceMessageInQueue): Simplified by using
  16165. PeerMessage::onChoked().
  16166. (rejectPieceMessageInQueue): Simplified by using
  16167. PeerMessage::onCanceled().
  16168. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16169. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16170. (createHandshakeMessage): Removed.
  16171. (createPeerMessage): Removed.
  16172. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16173. (setPeerMessageCommonProperty): Removed.
  16174. (createRequestMessage): Removed.
  16175. (createCancelMessage): Removed.
  16176. (createPieceMessage): Removed.
  16177. (createHaveMessage): Removed.
  16178. (createChokeMessage): Removed.
  16179. (createUnchokeMessage): Removed.
  16180. (createInterestedMessage): Removed.
  16181. (createNotInterestedMessage): Removed.
  16182. (createBitfieldMessage): Removed.
  16183. (createKeepAliveMessage): Removed.
  16184. (createHaveAllMessage): Removed.
  16185. (createHaveNoneMessage): Removed.
  16186. (createRejectMessage): Removed.
  16187. (createAllowedFastMessage): Removed.
  16188. * src/PieceMessage.h
  16189. (createRejectMessage): New function.
  16190. (PieceMessage): Rewritten.
  16191. (onChoked): New function.
  16192. (onCanceled): New function.
  16193. * src/PieceMessage.cc
  16194. (send): If invalidate is true then do nothing, just return.
  16195. (createRejectMessage): New function.
  16196. (onChoked): New function.
  16197. (onCanceled): New function.
  16198. * src/RequestMessage.h
  16199. (RequestMessage): Rewritten.
  16200. (onPush): New function.
  16201. (onAbortPiece): New function.
  16202. * src/RequestMessage.cc
  16203. (onPush): New function.
  16204. (onAbortPiece): New function.
  16205. Update fd_set when a socket is added or deleted in order to improve
  16206. performance:
  16207. * src/DownloadEngine.h
  16208. (rfdset): New variable.
  16209. (wfdset): New variable.
  16210. (updateFdSet): New function.
  16211. * src/DownloadEngine.cc
  16212. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16213. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16214. (waitData): Copy rfdset and wfdset.
  16215. (updateFdSet): New function.
  16216. (addSocket): Call updateFdSet.
  16217. (deleteSocket): Call updateFdSet.
  16218. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16219. To add the support for Metalink3.0 backward compatible links:
  16220. * src/Request.h
  16221. (SAFE_CHARS): Added '#'.
  16222. (METALINK_MARK): New definition.
  16223. * src/Request.cc
  16224. (parseUrl): Added the support for Metalink3.0 backward compatible
  16225. links.
  16226. etc
  16227. * src/PeerInteraction.cc
  16228. (MsgPushBack): Removed.
  16229. (sendMessages): Use STL copy and back_inserter.
  16230. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16231. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16232. * src/TorrentMan.h
  16233. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16234. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16235. * src/SharedHandle.h: New class.
  16236. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16237. * src/HttpResponseCommand.h
  16238. (HttpResponseCommand): Wrapped Socket.
  16239. * src/SocketCore.h
  16240. (operator==): New function.
  16241. (operator!=): New function.
  16242. (operator<): New function.
  16243. (getSockfd): New function.
  16244. (isOpen): New function.
  16245. (writeData): New function.
  16246. * src/SocketCore.cc
  16247. (operator==): New function.
  16248. (operator!=): New function.
  16249. (operator<): New function.
  16250. * src/AbstractCommand.h
  16251. (socket): Changed its type to SocketHandle.
  16252. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16253. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16254. (disableReadCheckSocket): New function.
  16255. (disableWriteCheckSocket): New function.
  16256. (readCheckTarget): Changed its type to SocketHandle.
  16257. (writeCheckTarget): Changed its type to SocketHandle.
  16258. (AbstractCommand): Replaced Socket with SocketHandle.
  16259. * src/AbstractCommand.cc
  16260. (AbstractCommand): Replaced Socket with SocketHandle.
  16261. (~AbstractCommand): Removed the deallocation for Socket object.
  16262. (disableReadCheckSocket): New function.
  16263. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16264. (disableWriteCheckSocket): New function.
  16265. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16266. * src/HttpDownloadCommand.cc
  16267. (DownloadCommand): Replaced Socket with SocketHandle.
  16268. * src/PeerAbstractCommand.h
  16269. (socket): Changed its type to SocketHandle.
  16270. (peer): Changed its type to PeerHandle.
  16271. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16272. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16273. (disableReadCheckSocket): New function.
  16274. (disableWriteCheckSocket): New function.
  16275. (readCheckTarget): Changed its type to SocketHandle.
  16276. (writeCheckTarget): Changed its type to SocketHandle.
  16277. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16278. Replaced Peer with PeerHandle.
  16279. * src/HttpRequestCommand.cc
  16280. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16281. Use disableReadCheckSocket.
  16282. * src/PeerInitiateConnectionCommand.h
  16283. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16284. * src/PeerChokeCommand.cc
  16285. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16286. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16287. (execute): Use PeerHandle.
  16288. * src/PeerConnection.h
  16289. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16290. (socket): Changed its type to SocketHandle.
  16291. (PeerConnection): Replaced Socket with SocketHandle.
  16292. * src/PeerConnection.cc
  16293. (PeerConnection): Replaced Socket with SocketHandle.
  16294. * src/PeerInteractionCommand.h
  16295. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16296. Replaced Peer with PeerHandle.
  16297. * src/PeerInteractionCommand.cc
  16298. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16299. Replaced Peer with PeerHandle.
  16300. (executeInternal): Use disableWriteCheckSocket.
  16301. Use HandshakeMessageHandle.
  16302. (receiveMessages): Use PeerMessageHandle.
  16303. (prepareForNextPeer): Use PeerHandle.
  16304. * src/HttpProxyRequestCommand.h
  16305. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16306. * src/HttpResponseCommand.cc
  16307. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16308. * src/TorrentMan.cc
  16309. (nullPeer): Added external reference.
  16310. (~TorrentMan): Removed the deallocation of the elements of peers.
  16311. (addPeer): Rewritten.
  16312. (isPeerAvailable): Use nullPeer.
  16313. (deleteOldpeers): Replaced with deleteErrorPeer.
  16314. (deleteErrorPeer): New function.
  16315. (getPeer): Use PeerHandle and nullPeer.
  16316. (hasMissingPiece): Replaced Peer with PeerHandle.
  16317. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16318. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16319. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16320. (getMissingPiece): Replaced Peer with PeerHandle.
  16321. * src/FtpNegotiateCommand.cc
  16322. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16323. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16324. (recvGreeting): Use disableWriteCheckSocket.
  16325. (recvPasv): Removed the allocation of Socket.
  16326. Use disableReadCheckSocket.
  16327. (sendRestPasv): Use disableWriteCheckSocket.
  16328. (recvRetr): Changed assertion.
  16329. * src/PeerInteraction.h
  16330. (SharedHandle.h): Included SharedHandle.h.
  16331. (PeerMessageHandle): New type definition.
  16332. (HandshakeMessageHandle): New type definition.
  16333. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16334. (peer): Changed its type to PeerHandle.
  16335. (createHandshakeMessage): Replaced HandshakeMessage with
  16336. HandshakeMessageHandle.
  16337. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16338. (PeerInteraction): Replaced Peer with PeerHandle.
  16339. Replaced Socket with SocketHandle.
  16340. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16341. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16342. (receiveHandshake): Replaced HandshakeMessage with
  16343. HandshakeMessageHandle.
  16344. * src/PeerInteraction.cc
  16345. (PeerInteraction): Replaced Peer with PeerHandle.
  16346. Replaced Socket with SocketHandle.
  16347. (~PeerInteraction): Removed the deallocation of the elements of
  16348. messageQueue.
  16349. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16350. (isSendingMessageInProgress): Replaced PeerMessage with
  16351. PeerMessageHandle.
  16352. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16353. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16354. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16355. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16356. (abortPiece): Use PeerMessageHandle.
  16357. (receiveHandshake): Replaced HandshakeMessage with
  16358. HandshakeMessageHandle. Removed try-catch block.
  16359. (createHandshakeMessage): Replaced HandshakeMessage with
  16360. HandshakeMessageHandle.
  16361. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16362. Removed try-catch block.
  16363. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16364. * src/HttpProxyResponseCommand.cc
  16365. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16366. * src/FtpTunnelResponseCommand.h
  16367. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16368. * src/HttpConnection.cc
  16369. (HttpConnection): Replaced Socket with SocketHandle.
  16370. * src/PeerAbstractCommand.cc
  16371. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16372. (~PeerAbstractCommand): Removed the deallocation of socket.
  16373. Use disableReadCheckSocket, disableWriteCheckSocket.
  16374. (disableReadCheckSocket): New function.
  16375. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16376. (disableWriteCheckSocket): New function.
  16377. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16378. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16379. * src/FtpTunnelRequestCommand.cc
  16380. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16381. (~FtpTunnelRequestCommand): Corrected indentation.
  16382. * src/DownloadCommand.h
  16383. (DownloadCommand): Replaced Socket with SocketHandle.
  16384. * src/PeerListenCommand.cc
  16385. (PeerListenCommand): Removed the initialization of socket.
  16386. (~PeerListenCommand): Removed the deallocation of socket.
  16387. (bindPort): Use SocketHandle.
  16388. (execute): Use SocketHandle and PeerHandle.
  16389. * src/FtpDowndloadCommand.cc
  16390. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16391. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16392. * src/main.cc
  16393. (main): Corrected indentation.
  16394. * src/HttpInitiateConnectionCommand.cc
  16395. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16396. (executeInternal): Removed the allocation of socket.
  16397. * src/HttpRequestCommand.h
  16398. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16399. * src/FtpNegotiationCommand.h
  16400. (dataSocket): Changed its type to SocketHandle.
  16401. (serverSocket): Changed its type to SocketHandle.
  16402. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16403. * src/TorrentMan.h
  16404. (MAX_PEER_UPDATE): Removed.
  16405. (MAX_PEERS): New definition.
  16406. (Peers): The element is now of type PeerHandle.
  16407. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16408. (getPeer): Replaced Peer with PeerHandle.
  16409. (deleteOldErrorPeers): Removed.
  16410. (deleteErrorPeer): New function.
  16411. (hasMissingPiece): Replaced Peer with PeerHandle.
  16412. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16413. (getMissingPiece): Replaced Peer with PeerHandle.
  16414. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16415. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16416. (addActivePeer): Replaced Peer with PeerHandle.
  16417. (deleteActivePeer): Replaced Peer with PeerHandle.
  16418. Added a check for the return value of find.
  16419. * src/FtpTunnelResponseCommand.cc
  16420. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16421. * src/FtpInitiateConnectionCommand.cc
  16422. (executeInternal): Removed the allocation of socket.
  16423. * src/DownloadEngine.h
  16424. (Sockets): An element is now of type SocketHandle.
  16425. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16426. (CommandUuids): New type definition.
  16427. (rsockets): Changed its type to SockCmdMap.
  16428. (wsockets): Changed its type to SockCmdMap.
  16429. (addSocket): Rewritten.
  16430. (deleteSocket): Rewritten.
  16431. (addSocketForReadCheck): Rewritten.
  16432. (deleteSocketForReadCheck): Rewritten.
  16433. (addSocketForWriteCheck): Rewritten.
  16434. (deleteSocketForWriteCheck): Rewritten.
  16435. (PairFind): New template class.
  16436. * src/HttpDownloadCommand.h
  16437. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16438. * src/FtpConnection.cc
  16439. (FtpConnection): Replaced Socket with SocketHandle.
  16440. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16441. block.
  16442. * src/InitiateConnectionCommandFactory.cc
  16443. (DlAbortEx.h): Included DlAbortEx.h.
  16444. (createInitiateConnectionCommand): Throw exception if the protocol of
  16445. requested URI is not supported.
  16446. * src/Peer.cc
  16447. (nullPeer): Changed its type to PeerHandle.
  16448. (operator==): New function.
  16449. (operator!=): New function.
  16450. * src/Peer.h
  16451. (SharedHandle.h): Included SharedHandle.h.
  16452. (operator==): New function.
  16453. (operator!=): New function.
  16454. (Peer): Added the default constructor.
  16455. Use resetStatus() to initialize member variables.
  16456. (nullPeer): Removed.
  16457. * src/TrackerUpdateCommand.cc
  16458. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16459. with MIN_PEERS.
  16460. * src/PeerListenCommand.h
  16461. (socket): Changed its type to SocketHandle.
  16462. * src/Command.h
  16463. (CommandUuid): New type definition.
  16464. (uuid): New variable.
  16465. (uuidGen): New variable.
  16466. (Command): Added the initialization of uuid.
  16467. (getUuid): New function.
  16468. * src/Socket.h
  16469. (Socket): Removed.
  16470. (SocketHandle): New type definition.
  16471. * src/DownloadEngine.h
  16472. (FindCommand): New function object.
  16473. (run): The portion of socket check was rewritten.
  16474. (SetDescriptor): New function object.
  16475. (AccumulateActiveCommandUuid): New function object.
  16476. (waitData): Rewritten.
  16477. (addSocket): Rewritten.
  16478. (deleteSocket): Rewritten.
  16479. (addSocketForReadCheck): Rewritten.
  16480. (addSocketForWriteCheck): Rewritten.
  16481. (deleteSocketForReadCheck): Rewritten.
  16482. (deleteSocketForWriteCheck): Rewritten.
  16483. * src/HttpProxyResponseCommand.h
  16484. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16485. * src/HttpConnection.h
  16486. (socket): Changed its type to SocketHandle.
  16487. (HttpConnection): Replaced Socket with SocketHandle.
  16488. * src/PeerInitiateConnectionCommand.cc
  16489. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16490. (executeInternal): Removed the allocation of socket.
  16491. (prepareForNextPeer): Use PeerHandle.
  16492. * src/PeerMessage.h
  16493. (peer): Changed its type to PeerHandle.
  16494. (getPeer): Replaced Peer with PeerHandle.
  16495. (setPeer): Replaced Peer with PeerHandle.
  16496. * src/DownloadCommand.cc
  16497. (DownloadCommand): Replaced Socket with SocketHandle.
  16498. * src/FtpConnection.h
  16499. (socket): Changed its type to SocketHandle.
  16500. (FtpConnection): Replaced Socket with SocketHandle.
  16501. (sendPort); Replaced Socket with SocketHandle.
  16502. * src/FtpDowndloadCommand.h
  16503. (ctrlSocket): Changed its type to SocketHandle.
  16504. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16505. * src/HttpProxyRequestCommand.cc
  16506. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16507. * src/FtpTunnelRequestCommand.h
  16508. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16509. etc
  16510. * src/PeerChokeCommand.h
  16511. (setAllPeerChoked): Removed.
  16512. (setAllPeerResetDelta): Removed.
  16513. * src/PeerChokeCommand.cc
  16514. (setAllPeerChoked): Removed.
  16515. (ChokePeer): New function object.
  16516. (setAllPeerResetDelta): Removed.
  16517. (ResetDelta): New function object.
  16518. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16519. (execute): Show download speed when the local node is a seeder.
  16520. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16521. using STL.
  16522. * src/TrackerWatcherCommand.h
  16523. (MIN_PEERS): Removed.
  16524. * src/TorrentMan.cc
  16525. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16526. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16527. To fix the bug that .aria2 file is not saved if downloading is stopped
  16528. by the errors:it results that aria2 can not resume downloading:
  16529. * src/main.cc
  16530. (normalDownload): Added the call to save().
  16531. (main): Added the deletion of the elements in 'reserved'.
  16532. To fix log:
  16533. * src/PeerInteraction.cc
  16534. (receiveHandshake): Fixed log.
  16535. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16536. To improve download performance in BitTorrent:
  16537. * src/TorrentMan.cc
  16538. (getPeer): Check the number of connections. Return nullPeer if
  16539. it is greater than MAX_PEER_UPDATE.
  16540. This code was originally here, but was removed in 0.5.1.
  16541. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16542. To improve the conditional compilation:
  16543. * src/MultiDiskWriter.h:
  16544. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16545. * src/MultiDiskWriter.cc:
  16546. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16547. * src/Util.h:
  16548. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16549. Added ENABLE_BITTORRENT around computeFastSet().
  16550. * src/Util.cc:
  16551. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16552. Added ENABLE_BITTORRENT around computeFastSet().
  16553. * src/messageDigest.h:
  16554. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16555. * src/ShaVisitor.h:
  16556. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16557. * src/ShaVisitor.cc:
  16558. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16559. * src/main.cc:
  16560. Added ENABLE_BITTORRENT around includes and blocks related to
  16561. BitTorrent.
  16562. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16563. digest support is not available.
  16564. * src/AbstractDiskWriter.h:
  16565. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16566. * src/AbstractDiskWriter.cc:
  16567. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16568. * src/MetalinkEntry.cc
  16569. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16570. support is not available.
  16571. To add command-line options for Metalink:
  16572. * src/main.cc:
  16573. Added metalink-version, metalink-language, metalink-os,
  16574. follow-metalink.
  16575. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16576. * src/main.cc: Use these definition.
  16577. * Release 0.6.0
  16578. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16579. To add Metalink support(http/ftp only):
  16580. * src/AbstractCommand.h
  16581. (tryReserved): New function.
  16582. * src/AbstractCommand.cc
  16583. (execute): Call tryReserved().
  16584. (tryReserved): New function.
  16585. * src/Request.h
  16586. (Requests): New type definition.
  16587. * src/SegmentMan.h
  16588. (reserved): New variable.
  16589. * src/Util.h
  16590. (fileChecksum): New function.
  16591. (toUpper): New function.
  16592. (toLower): New function.
  16593. * src/Util.cc
  16594. (messageDigest.h): Included.
  16595. (trim): Trim \r\n\t.
  16596. (fileChecksum): New function.
  16597. (toUpper): New function.
  16598. (toLower): New function.
  16599. * src/main.cc
  16600. (normalDownload): New function.
  16601. (main): Added 2 command-line options: metalink-file,
  16602. metalink-connection. Their usage has not been written yet.
  16603. * src/MetalinkProcessor.h: New class.
  16604. * src/Xml2MetalinkProcessor.h: New class.
  16605. * src/Xml2MetalinkProcessor.cc: New class.
  16606. * src/MetalinkEntry.h: New class.
  16607. * src/MetalinkEntry.cc: New class.
  16608. * src/MetalinkResource.h: New class.
  16609. * src/MetalinkResource.cc: New class.
  16610. To add md5 message digest checking:
  16611. * src/messageDigest.h: Rewritten.
  16612. * src/MultiDiskWriter.cc: Updated according to the changes in
  16613. messageDigest.h.
  16614. * src/ShaVisitor.cc: Updated according to the changes in
  16615. messageDigest.h.
  16616. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16617. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16618. messageDigest.h.
  16619. To fix a bug that causes segfault when the payload length in peer
  16620. message is less than 0:
  16621. * src/PeerConnection.cc:
  16622. (receiveMessage): Fixed the bug.
  16623. * src/PeerMessageUtil.cc
  16624. (checkLength): Throw an exception if length is less than or equals to
  16625. 0.
  16626. To add new interfaces to Base64 encoding/decoding:
  16627. * src/Base64.h
  16628. (part_encode): Changed the method signature.
  16629. (encode): New function(overload).
  16630. (decode): New function(overload).
  16631. * src/Base64.cc
  16632. (part_encode): Rewritten.
  16633. (encode): Rewritten.
  16634. (encode): New function(overload).
  16635. To prevent a peer to download same piece if there is an error in
  16636. checksum:
  16637. * src/PieceMessage.cc
  16638. (receivedAction): Call peerInteraction->abortPiece().
  16639. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16640. To fix the bug that causes same have message is sent many times to
  16641. a single peer.
  16642. * src/Time.cc
  16643. (isNewer): Use Util::difftv().
  16644. * src/Util.cc
  16645. (difftv): Added a cast to (long long int).
  16646. * src/TorrentMan.cc
  16647. (advertisePiece): Use push_front.
  16648. (getAdvertisedPieceIndexes): A performance improvement was made.
  16649. To fix the bug that sends tracker requests without a sleep interval
  16650. when the number of connections is less than 15.
  16651. * src/TrackerWatcherCommand.cc
  16652. (execute): Now the number of connections is not a factor to decide
  16653. whether or not a tracker request should be sent or not.
  16654. * src/Time.h
  16655. (setTimeInSec): New function.
  16656. * src/Time.cc
  16657. (setTimeInSec): New function.
  16658. etc.
  16659. * src/ChokeMessage.cc
  16660. (receivedAction): Removed peer->snubbing = false
  16661. * src/PeerConnection.h
  16662. (receiveHandshake): Updated doc.
  16663. * src/TorrentMan.h
  16664. (getAdvertisedPieceIndexes): Updated the method signature.
  16665. * src/TorrentMan.cc
  16666. (getAdvertisedPieceIndexes): Updated the method signature.
  16667. * src/Time.h
  16668. (getTimeInMicros): Added a cast to (long long int).
  16669. (getTimeInMillis): Added a cast to (long long int).
  16670. * Release 0.5.2
  16671. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16672. To make a listening socket non-block:
  16673. * src/SocketCore.h
  16674. (setNonBlockingMode): New function.
  16675. * src/SocketCore.cc
  16676. (setNonBlockingMode): New function.
  16677. (beginListen): Added a call to setNonBlockingMode().
  16678. (acceptConnection): Call setNonBlockingMode().
  16679. (setBlockingMode): Updated.
  16680. To handle tracker's NAT-checking:
  16681. * src/PeerConnection.cc
  16682. (receiveHandshake): 'msg' param is filled with received data and
  16683. its length is assigned to 'length' param, even if all handshake
  16684. message is not yet received.
  16685. * src/PeerInteractionCommand.cc
  16686. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16687. a new peer connects to localhost.
  16688. A call to peerInteraction->sendHandshake() was removed because
  16689. it is called from peerInteraction->receiveHandshake(true).
  16690. * src/PeerInteraction.h
  16691. (quickReplied): New variable.
  16692. (receiveHandshake): Added an argument.
  16693. * src/PeerInteraction.cc
  16694. (PeerInteraction): Added the initialization of quickReplied.
  16695. (receiveHandshake): Send handshake message as soon as the info hash
  16696. in a handshake message from a peer is correct.
  16697. To change the random part of peer id and key parameter:
  16698. * src/TorrentMan.h
  16699. (key): New variable.
  16700. * src/TorrentMan.cc
  16701. (setupInternal1): Use Util::randomAlpha() to generate random part
  16702. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16703. key is also generated by Util::randomAlpha() and it is now 8 character
  16704. long.
  16705. * src/Util.h
  16706. (randomAlpha): New function.
  16707. * src/Util.cc
  16708. (randomAlpha): New function.
  16709. * src/TrackerWatcherCommand.cc
  16710. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16711. Added no_peer_id=1.
  16712. Set snubbing flag to false when a choke message is received from a
  16713. snubbed peer.
  16714. * src/ChokeMessage.cc
  16715. (receivedAction): Set snubbing flag to false.
  16716. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16717. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16718. * src/SimpleLogger.h (writeHeader): New function.
  16719. * src/SimpleLogger.cc (writeHeader): New function.
  16720. (writeLog): Fixed the bug that causes segfaults if exception message
  16721. contains an unescaped "%" character.
  16722. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16723. when a tracker request fails.
  16724. * src/Request.cc (parseUrl): Query string is now handled properly.
  16725. * Release 0.5.1
  16726. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16727. To add Time class which represents a specific instant in time and
  16728. its precision is microseconds. Time checking procedures were rewritten
  16729. using this object.
  16730. * src/Time.h: New class.
  16731. * src/Time.cc: New class.
  16732. * src/AbstractCommand.h
  16733. (updateCheckPoint): Removed.
  16734. (isTimeoutDetected): Removed.
  16735. (checkPoint): Changed the type to Time.
  16736. (timeout): New variable.
  16737. (setTimeout): New function.
  16738. * src/AbstractCommand.cc
  16739. (AbstractCommand): Removed the initialization of checkPoint.
  16740. Added the initialization of timeout.
  16741. (updateCheckPoint): Removed.
  16742. (isTimeoutDetected): Removed.
  16743. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16744. * src/PeerChokeCommand.h
  16745. (checkPoint): Changed the type to Time.
  16746. * src/PeerChokeCommand.cc
  16747. (PeerChokeCommand): Removed the initialization of checkPoint.
  16748. (execute): Rewritten using Time object.
  16749. * src/TrackerWatcherCommand.h
  16750. (checkPoint): Changed the type to Time.
  16751. * src/TrackerWatcherCommand.cc
  16752. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16753. (execute): Rewritten.
  16754. * src/ConsoleDownloadEngine.h
  16755. (cp): Changed the type to Time.
  16756. (startup): Changed the type to Time.
  16757. * src/ConsoleDownloadEngine.cc
  16758. (initStatistics): Use cp.reset(), startup.reset().
  16759. (calculateStatistics): Rewritten using Time object.
  16760. * src/PeerAbstractCommand.h
  16761. (updateCheckPoint): Removed.
  16762. (isTimeoutDetected): Removed.
  16763. (checkPoint): Changed the type to Time.
  16764. * src/PeerAbstractCommand.cc
  16765. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16766. (updateCheckPoint): Removed.
  16767. (isTimeoutDetected): Removed.
  16768. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16769. * src/PeerInteractionCommand.cc
  16770. (PeerInteractionCommand): Removed the initializations of struct
  16771. timeval variables.
  16772. * src/PeerInteractionCommand.h
  16773. (keepAliveCheckPoint): Changed the type to Time.
  16774. (chokeCheckPoint): Changed the type to Time.
  16775. (freqCheckPoint): Changed the type to Time.
  16776. (haveCheckTime): Changed the type to Time.
  16777. * src/PeerInteractionCommand.cc
  16778. (executeInternal): Rewritten using Time object.
  16779. (detectMessageFlooding): Rewritten using Time object.
  16780. (checkLongTimePeerChoking): Rewritten using Time object.
  16781. (sendKeepAlive): Rewritten using Time object.
  16782. (checkHave): Rewritten using Time object.
  16783. * src/SleepCommand.h
  16784. (checkPoint): Changed the type to Time.
  16785. * src/SleepCommand.cc
  16786. (SleepCommand): Removed the initialization of checkPoint.
  16787. (execute): Rewritten using Time object.
  16788. * src/TorrentAutoSaveCommand.h
  16789. (checkPoint): Changed the type to Time.
  16790. * src/TorrentAutoSaveCommand.cc
  16791. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16792. (execute): Rewritten.
  16793. * src/DownloadCommand.h
  16794. (sw): Changed the type to Time.
  16795. * src/DownloadCommand.cc
  16796. (DownloadCommand): Removed the initialization of sw.
  16797. (executeInternal): Rewritten.
  16798. * src/RequestSlot.h
  16799. (dispatchedTime): Changed the type to Time.
  16800. * src/RequestSlot.cc
  16801. (RequestSlot): Removed the call to setDispatchedTime().
  16802. (setDispatchedTime): Rewirtten.
  16803. (isTimeout): Rewritten.
  16804. (getLatencyInMillis): Rewritten.
  16805. * src/TorrentDownloadEngine.h
  16806. (cp): Changed the type to Time[2].
  16807. (startup): Changed the type to Time.
  16808. * src/TorrentDownloadEngine.cc
  16809. (initStatistics): Rewritten.
  16810. (calculateStatistics): Rewritten.
  16811. * src/DownloadEngine.cc
  16812. (run): Rewritten.
  16813. To detect all attempts to connect to the tracker are failed:
  16814. * src/AbstractCommand.cc
  16815. (execute): Increment e->segmentMan->errors if a command aborted.
  16816. * src/SegmentMan.h
  16817. (errors): New variable.
  16818. * src/SegmentMan.cc
  16819. (SegmentMan): Added the initialization of errors.
  16820. (init): Added the initialization of errors.
  16821. * src/TrackerWatcherCommand.cc
  16822. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16823. request was failed.
  16824. To handle snubbed peers:
  16825. * src/PeerChokeCommand.cc
  16826. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16827. (execute): Snubbed peers don't get unchoked.
  16828. * src/PeerInteraction.h
  16829. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16830. * src/PeerInteraction.cc
  16831. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16832. back the requested 16k block in 60 seconds.
  16833. * src/PieceMessage.cc
  16834. (receivedAction): A peer's snubbed state is cleard if it sends
  16835. the requested 16k block in 60 seconds.
  16836. * src/Peer.h
  16837. (snubbing): New variable.
  16838. * src/Peer.cc
  16839. (resetStatus): Added snubbed = false.
  16840. To fix the bug that causes have message is not sent:
  16841. * src/PeerInteractionCommand.cc
  16842. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16843. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16844. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16845. * src/TorrentMan.h
  16846. (HaveEntry): New class.
  16847. (advertisePiece): Rewritten.
  16848. (getAdvertisedPieceIndexes): Rewritten.
  16849. (Haves): Changed the type.
  16850. (getAdvertisedPieceIndexes): Added an argument.
  16851. Others:
  16852. * src/TorrentMan.h
  16853. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16854. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16855. * src/TorrentMan.cc
  16856. (getPeer): Don't check the number of connections here.
  16857. (setupInternal1): Changed peerId.
  16858. * src/PeerInteractionCommand.h
  16859. (KEEP_ALIVE_INTERVAL): New definition.
  16860. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16861. * src/main.cc
  16862. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16863. * src/DownloadEngine.h: Removed unnecessary header includes.
  16864. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16865. To fix the bug that causes segfaults if a tracker returns a zero-length
  16866. list as "peers":
  16867. * src/TrackerUpdateCommand.cc
  16868. (execute): Added a check to see wether the type of peers is Data*.
  16869. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16870. * Release 0.5.0
  16871. To fix compile issue with gcc3:
  16872. * src/CancelMessage.h
  16873. (ID): Renamed as ID_t
  16874. (ID_t): New enum.
  16875. * src/RejectMessage.h
  16876. (ID): Renamed as ID_t
  16877. (ID_t): New enum.
  16878. * src/SuggestPieceMessage.h
  16879. (ID): Renamed as ID_t
  16880. (ID_t): New enum.
  16881. * src/AllowedFastMessage.h
  16882. (ID): Renamed as ID_t
  16883. (ID_t): New enum.
  16884. * src/PortMessage.h
  16885. (ID): Renamed as ID_t
  16886. (ID_t): New enum.
  16887. * src/HaveNoneMessage.h
  16888. (ID): Renamed as ID_t
  16889. (ID_t): New enum.
  16890. * src/KeepAliveMessage.h
  16891. (ID): Renamed as ID_t
  16892. (ID_t): New enum.
  16893. * src/HaveAllMessage.h
  16894. (ID): Renamed as ID_t
  16895. (ID_t): New enum.
  16896. * src/UnchokeMessage.h
  16897. (ID): Renamed as ID_t
  16898. (ID_t): New enum.
  16899. * src/BitfieldMessage.h
  16900. (ID): Renamed as ID_t
  16901. (ID_t): New enum.
  16902. * src/PieceMessage.h
  16903. (ID): Renamed as ID_t
  16904. (ID_t): New enum.
  16905. * src/RequestMessage.h
  16906. (ID): Renamed as ID_t
  16907. (ID_t): New enum.
  16908. * src/NotInterestedMessage.h
  16909. (ID): Renamed as ID_t
  16910. (ID_t): New enum.
  16911. * src/ChokeMessage.h
  16912. (ID): Renamed as ID_t
  16913. (ID_t): New enum.
  16914. * src/InterestedMessage.h
  16915. (ID): Renamed as ID_t
  16916. (ID_t): New enum.
  16917. * src/HaveMessage.h
  16918. (ID): Renamed as ID_t
  16919. (ID_t): New enum.
  16920. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16921. * src/PeerAbstractCommand.h
  16922. (beforeSocketCheck): Removed.
  16923. * src/PeerAbstractCommand.cc
  16924. Modified in order to call executeInternal() even if socket check
  16925. and upload limit check fail.
  16926. * src/PeerInteractionCommand.h
  16927. (keepAlive): Removed.
  16928. (sendKeepAlive): New function.
  16929. (checkHave): New function.
  16930. (beforeSocketCheck): Removed.
  16931. * src/PeerInteractionCommand.cc
  16932. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16933. calls to checkHave() and sendKeepAlive().
  16934. (keepAlive): Renamed to sendKeepAlive().
  16935. (sendKeepAlive): New function.
  16936. (beforeSocketCheck): Removed.
  16937. (checkHave): New function.
  16938. * src/BitfieldMan.cc
  16939. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16940. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16941. 0.
  16942. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16943. * src/TorrentMan.h
  16944. (UsedPieces): Removed.
  16945. (Pieces): New type definition.
  16946. * src/Piece.h: Updated doc.
  16947. * src/Peer.h
  16948. (totalLength): Removed.
  16949. * src/Peer.cc
  16950. (updateLatency): Fixed the latency calculation.
  16951. * src/TorrentMan.cc
  16952. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16953. than or equal to MAX_PEER_LIST_SIZE.
  16954. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16955. then return false.
  16956. (deleteOldErrorPeers): Rewritten.
  16957. (deleteUsedPiece): Fixed the miss use of STL remove.
  16958. * src/PeerInteraction.h
  16959. (Pieces): Removed.
  16960. (deleteTimeoutRequestSlot): Removed.
  16961. (deleteCompletedRequestSlot): Removed.
  16962. (checkRequestSlot): New function.
  16963. * src/PeerInteraction.cc
  16964. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16965. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16966. (checkRequestSlot): New function.
  16967. * src/DownloadEngine.cc
  16968. (run): Clear activeSockets before calling waitData().
  16969. (waitData): Removed a call to activeSockets.clear().
  16970. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16971. To attempt to handle EINTR:
  16972. * src/SocketCore.cc
  16973. (isReadable): Added EINTR handling.
  16974. (isWritable): Added EINTR handling.
  16975. To improve the performance:
  16976. * src/AbstractCommand.cc
  16977. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16978. * src/PeerInteractionCommand.h
  16979. (receiveMessage): Renamed as receiveMessages().
  16980. (receiveMessages): New function.
  16981. * src/PeerInteractionCommand.cc
  16982. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16983. () function. detectMessageFlooding() is moved here.
  16984. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16985. (). The flooding detection for have message is comment out.
  16986. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16987. Util::difftv().
  16988. (receiveMessage): Renamed as receiveMessages().
  16989. (receiveMessages): New function.
  16990. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16991. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16992. * src/SleepCommand.cc
  16993. (execute): Use Util::difftvsec() instead of Util::difftv().
  16994. * src/BitfieldMan.h
  16995. (getNthBitIndex): New function.
  16996. (hasMissingPiece): New function.
  16997. (getAllMissingIndexes): New function.
  16998. * src/BitfieldMan.cc
  16999. (countSetBit): Rewritten.
  17000. (getNthBitIndex): New function.
  17001. (getMissingIndexRandomly): Rewritten.
  17002. (hasMissingPiece): New function.
  17003. (getAllMissingIndexes): New function.
  17004. * src/TorrentMan.cc
  17005. (hasMissingPiece): New function.
  17006. (deleteUsedPiece): Rewritten using STL.
  17007. * src/PeerInteraction.cc
  17008. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17009. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17010. (addRequests): Updated the number of pending requests.
  17011. * src/PeerAbstractCommand.cc
  17012. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17013. (execute): Returns true if TorrentMan::isHalt() is true.
  17014. Corrected the condition of upload limit checking.
  17015. * src/Util.h
  17016. (countBit): New function.
  17017. * src/Util.cc
  17018. (nbits): New variable.
  17019. (countBit): New function.
  17020. * src/DownloadEngine.h
  17021. (SockCmdMap): New type definition.
  17022. (waitData): Added an argument.
  17023. (addSocket): Added an argument.
  17024. (addSocketForReadCheck): Added an argument.
  17025. (addSocketForWriteCheck): Added an argument.
  17026. * src/DownloadEngine.cc
  17027. (run): Executes only commands whose sockets are ready to read or write.
  17028. All commands are executed in every 1 second.
  17029. (waitData): Calls select() again if it returned
  17030. EINTR.
  17031. (addSocket): Saves socket and command object pair to the map.
  17032. (deleteSocket): Deletes socket and command object pair from the map.
  17033. (addSocketForReadCheck): Added an argument.
  17034. (addSocketForWriteCheck): Added an argument.
  17035. * src/DownloadCommand.cc
  17036. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17037. To send "event=stopped" to the tracker when the application finishes:
  17038. * src/PeerChokeCommand.h
  17039. (checkPoint): New variable.
  17040. * src/PeerChokeCommand.cc
  17041. (PeerChokeCommand): Added the initialization of checkPoint.
  17042. (execute): The interval check is now done by checkPoint, not
  17043. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17044. * src/TorrentMan.h
  17045. (halt): New function.
  17046. (hasMissingPiece): New function.
  17047. (isHalt): New function.
  17048. (setHalt): New function.
  17049. * src/TorrentMan.cc
  17050. (TorrentMan): Added the initialization of halt.
  17051. * src/TorrentAutoSaveCommand.h
  17052. (checkPoint): New variable.
  17053. * src/PeerListenCommand.cc
  17054. (execute): Returns true if TorrentMan::isHalt() is true.
  17055. * src/main.cc
  17056. (setSignalHander): Added flags argument.
  17057. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17058. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17059. Removed printDownloadAbortMessage() after torrent downloading loop.
  17060. * src/TorrentAutoSaveCommand.cc
  17061. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17062. (execute): Returns true if TorrentMan::isHalt() is true.
  17063. The interval check is now done by checkPoint, not SleepCommand.
  17064. * src/TrackerWatcherCommand.cc
  17065. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17066. event=stopped.
  17067. * src/TrackerUpdateCommand.cc
  17068. (prepareForRetry): Do not use SleepCommand here.
  17069. (execute): Returns true if TorrentMan::isHalt() is true.
  17070. Others:
  17071. * src/TorrentMan.cc
  17072. (getMissingPieceIndex): Updated log message.
  17073. * src/PeerInteraction.cc
  17074. (createPeerMessag): Updated log message.
  17075. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17076. To add the ability to download several pieces in mix in a command and
  17077. increase the number of request slots according to request-cancel
  17078. latency:
  17079. * src/PeerInteractionCommand.cc
  17080. (executeInternal): The number of messages to be received at a time
  17081. is increased from 10 to 50.
  17082. * src/LogFactory
  17083. (getInstance): Added NullLogger.
  17084. * src/NullLogger.h: New class.
  17085. * src/BitfieldMan.h
  17086. (getMissingIndex): New function.
  17087. * src/BitfieldMan.cc
  17088. (getMissingIndex): New function.
  17089. * src/TorrentMan.h
  17090. (checkOutPiece): New function.
  17091. (getMissingPieceIndex): New function.
  17092. (getMissingFastPieceIndex): New function.
  17093. (getMissingFastPiece): New function.
  17094. * src/TorrentMan.cc
  17095. (updatePiece): Rewritten using STL.
  17096. (syncPiece): Rewritten using STL.
  17097. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17098. checkOutPiece().
  17099. (getMissingPieceIndex): New function.
  17100. (getMissingFastPieceIndex): New function.
  17101. (getMissingFastPiece): New function.
  17102. (checkOutPiece): New function.
  17103. * src/PeerInteraction.h
  17104. (Pieces): New type definition.
  17105. (piece): Removed.
  17106. (pieces): New variable.
  17107. (getNewPieceAndSendInterest): Added the "piece" argument.
  17108. (abortPiece): Added the "piece" argument.
  17109. (abortAllPieces): New function.
  17110. (isInRequestSlot): New function.
  17111. (hasDownloadPiece): Added the "index" argument.
  17112. (setDownloadPiece): Removed.
  17113. (getDownloadPiece): Added the "index" argument.
  17114. (updatePiece): New function.
  17115. (createRequestMessage): Added the "index" argument.
  17116. * src/PeerInteraction.cc
  17117. (onChoked): Rewritten.
  17118. (abortPiece): Rewirtten.
  17119. (abortAllPieces): New function.
  17120. (deleteTimeoutRequestSlot): Rewritten.
  17121. Clarified code a little bit.
  17122. (deleteCompletedRequestSlot): Rewritten.
  17123. (isInRequestSlot): New function.
  17124. (syncPiece): Rewritten.
  17125. (updatePiece): New function.
  17126. (getNewPieceAndSendInterest): Rewritten.
  17127. (addRequests): Rewritten.
  17128. (getDownloadPiece): Rewritten.
  17129. (hasDownloadPiece): Rewritten.
  17130. (createRequestMessage): Added the "index" argument.
  17131. * src/common.h
  17132. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17133. (DIV_FLOOR): New definition.
  17134. * src/PieceMessage.cc
  17135. (receivedAction): Update request-piece latency here.
  17136. * src/RequestSlot.h
  17137. (getLatencyInMillis): New function.
  17138. * src/RequestSlot.cc
  17139. (isTimeout): Rewritten using getLatencyInMillis.
  17140. (getLatencyInMillis): New function.
  17141. * src/Piece.h
  17142. (operator==): New function.
  17143. (getMissingBlockIndex): New function.
  17144. * src/Piece.cc
  17145. (operator==): New function.
  17146. (getMissingBlockIndex): New function.
  17147. * src/Peer.h
  17148. (DEFAULT_LATENCY): New definition.
  17149. (latency): New variable.
  17150. (updateLatency): New function.
  17151. (getLatency): New function.
  17152. * src/Peer.cc
  17153. (resetStatus): Reset latecy.
  17154. (updateLatency): New function.
  17155. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17156. * src/SocketCore.cc
  17157. (isReadable): Added secure to the condition.
  17158. * src/HttpConnection.cc
  17159. (receiveResponse): Fixed a bug that causes no response header
  17160. exception.
  17161. * src/Peer.h
  17162. (getFastSet): Fixed the return value type.
  17163. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17164. To remove a wait from download loop:
  17165. * src/DownloadEngine.cc
  17166. (run): Comment out shortSleep.
  17167. To rewrite the message handling:
  17168. * src/SimplePeerMessage.h: New class.
  17169. * src/SimplePeerMessage.cc: New class.
  17170. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17171. (msg): New variable.
  17172. (create): New function.
  17173. (send): Removed.
  17174. (getMessage): New function.
  17175. (getMessageLength): New function.
  17176. * src/CancelMessage.cc
  17177. (create): New function.
  17178. (receivedAction): Replaced deleteRequestMessageInQueue with
  17179. rejectPieceMessageInQueue.
  17180. (send): Removed.
  17181. (getMessage): New function.
  17182. (getMessageLength): New function.
  17183. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17184. (msg): New variable.
  17185. (msgLength): New variable.
  17186. (~BitfieldMessage): Deleted msg.
  17187. (send): Removed.
  17188. (getMessage): New function.
  17189. (getMessageLength): New function.
  17190. * src/BitfieldMessage.cc
  17191. (create): New function.
  17192. (send): Removed.
  17193. (getMessage): New function.
  17194. (getMessageLength): New function.
  17195. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17196. (msg): New variable.
  17197. (sendPredicate): New function.
  17198. (onSendComplete): New function.
  17199. (send): Removed.
  17200. (getMessage): New function.
  17201. (getMessageLength): New function.
  17202. (create): New function.
  17203. * src/ChokeMessage.cc
  17204. (create): New function.
  17205. (send): Removed.
  17206. (sendPredicate): New function.
  17207. (getMessage): New function.
  17208. (getMessageLength): New function.
  17209. (onSendComplete): New function.
  17210. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17211. (msg): New variable.
  17212. (send): Removed.
  17213. (getMessage): New function.
  17214. (getMessageLength): New function.
  17215. * src/KeepAliveMessage.cc
  17216. (send): Removed.
  17217. (getMessage): New function.
  17218. (getMessageLength): New function.
  17219. * src/PortMessage.h
  17220. (create): New function.
  17221. (receivedAction): Updated log message.
  17222. * src/PortMessage.cc: New file.
  17223. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17224. (msg): New variable.
  17225. (sendPredicate): New function.
  17226. (onSendComplete): New function.
  17227. (create): New function.
  17228. (send): Removed.
  17229. (getMessage): New function.
  17230. (getMessageLength): New function.
  17231. * src/UnchokeMessage.cc
  17232. (create): New function.
  17233. (send): Removed.
  17234. (sendPredicate): New function.
  17235. (getMessage): New function.
  17236. (getMessageLength): New function.
  17237. (onSendComplete): New function.
  17238. * src/PieceMessage.h
  17239. (leftPieceDataLength): Removed.
  17240. (leftDataLength): New variable.
  17241. (headerSend): New variable.
  17242. (pendingCount): New variable.
  17243. (msgHeader): New variable.
  17244. (sendPieceData): New function.
  17245. (incrementPendingCount): New function.
  17246. (isPendingCountMax): New function.
  17247. (create): New function.
  17248. (getMessageHeader): New function.
  17249. (getMessageHeaderLength): New function.
  17250. * src/PieceMessage.cc
  17251. (create): New function.
  17252. (getMessageHeader): New function.
  17253. (getMessageHeaderLength): New function.
  17254. (send): Rewritten.
  17255. (sendPieceData): New function.
  17256. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17257. (msg): New variable.
  17258. (create): New function.
  17259. (getMessage): New function.
  17260. (getMessageLength): New function.
  17261. * src/HaveMessage.cc
  17262. (create): New function.
  17263. (send): Removed.
  17264. (sendPieceData): New function.
  17265. (getMessage): New function.
  17266. (getMessageLength): New function.
  17267. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17268. (msg): New variable.
  17269. (create): New function.
  17270. (send): Removed.
  17271. (getMessage): New function.
  17272. (getMessageLength): New function.
  17273. * src/RequestMessage.cc
  17274. (create): New function.
  17275. (receivedAction): Added the handling of fast extension.
  17276. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17277. (send): Removed.
  17278. (getMessage): New function.
  17279. (getMessageLength): New function.
  17280. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17281. (msg): New variable.
  17282. (sendPredicate): New function.
  17283. (onSendComplete): New function.
  17284. (create): New function.
  17285. (getMessage): New function.
  17286. (getMessageLength): New function.
  17287. * src/InterestedMessage.cc
  17288. (create): New function.
  17289. (send): Removed.
  17290. (sendPieceData): New function.
  17291. (getMessage): New function.
  17292. (getMessageLength): New function.
  17293. (onSendComplete): New function.
  17294. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17295. (msg): New variable.
  17296. (sendPieceData): New function.
  17297. (onSendComplete): New function.
  17298. (create): New function.
  17299. (send): Removed.
  17300. (getMessage): New function.
  17301. (getMessageLength): New function.
  17302. * src/NotInterestedMessage.cc
  17303. (create): New function.
  17304. (send): Removed.
  17305. (sendPredicate): New function.
  17306. (getMessage): New function.
  17307. (getMessageLength): New function.
  17308. (onSendComplete): New function.
  17309. * src/AllowedFastMessage.h: New class.
  17310. * src/AllowedFastMessage.cc: New class.
  17311. * src/RejectMessage.h: New class.
  17312. * src/RejectMessage.cc: New class.
  17313. * src/SuggestPieceMessage.h: New class.
  17314. * src/SuggestPieceMessage.cc: New class.
  17315. * src/HaveAllMessage.h: New class.
  17316. * src/HaveAllMessage.cc: New class.
  17317. * src/HaveNoneMessage.h: New class.
  17318. * src/HaveNoneMessage.cc: New class.
  17319. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17320. (msg): New variable.
  17321. (reserved): New variable.
  17322. (create): New function.
  17323. (getId): New function.
  17324. (receivedAction): New function.
  17325. (getMessage): New function.
  17326. (getMessageLength): New function.
  17327. (isFastExtensionSupported): New function.
  17328. * src/HandshakeMessage.cc
  17329. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17330. (create): New function.
  17331. (getMessage): New function.
  17332. (getMessageLength): New function.
  17333. (toString): Added the output of reserved field.
  17334. (check): Added const qualifier.
  17335. (isFastExtensionSupported): New function.
  17336. * src/PeerMessageUtil.h
  17337. (createChokeMessage): Removed.
  17338. (createUnchokeMessage): Removed.
  17339. (createInterestedMessage): Removed.
  17340. (createNotInterestedMessage): Removed.
  17341. (createHaveMessage): Removed.
  17342. (createBitfieldMessage): Removed.
  17343. (createRequestMessage): Removed.
  17344. (createCancelMessage): Removed.
  17345. (createPieceMessage): Removed.
  17346. (createPortMessage): Removed.
  17347. (createChokeMessage): Removed.
  17348. (createUnchokeMessage): Removed.
  17349. (createInterestedMessage): Removed.
  17350. (createNotInterestedMessage): Removed.
  17351. (createHaveMessage): Removed.
  17352. (createBitfieldMessage): Removed.
  17353. (createRequestMessage): Removed.
  17354. (createCancelMessage): Removed.
  17355. (createPieceMessage): Removed.
  17356. (createKeepAliveMessage): Removed.
  17357. (createHandshakeMessage): Removed.
  17358. (setIntParam): New function.
  17359. (createPeerMessageString): New function.
  17360. * src/PeerMessageUtil.cc
  17361. (createChokeMessage): Removed.
  17362. (createUnchokeMessage): Removed.
  17363. (createInterestedMessage): Removed.
  17364. (createNotInterestedMessage): Removed.
  17365. (createHaveMessage): Removed.
  17366. (createBitfieldMessage): Removed.
  17367. (createRequestMessage): Removed.
  17368. (createCancelMessage): Removed.
  17369. (createPieceMessage): Removed.
  17370. (createPortMessage): Removed.
  17371. (createRequestMessage): Removed.
  17372. (createCancelMessage): Removed.
  17373. (createPieceMessage): Removed.
  17374. (createHaveMessage): Removed.
  17375. (createChokeMessage): Removed.
  17376. (createUnchokeMessage): Removed.
  17377. (createInterestedMessage): Removed.
  17378. (createNotInterestedMessage): Removed.
  17379. (createBitfieldMessage): Removed.
  17380. (createKeepAliveMessage): Removed.
  17381. (createHandshakeMessage): Removed.
  17382. (setIntParam): New function.
  17383. (createPeerMessageString): New function.
  17384. * src/PeerConnection.h
  17385. (peer): Removed.
  17386. (torrentMan): Removed.
  17387. (createNLengthMessage): Removed.
  17388. (setIntParam): Removed.
  17389. (writeOutgoingMessageLog): Removed all overloaded functions.
  17390. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17391. (sendMessage): New function.
  17392. (sendHandshake): Removed.
  17393. (sendKeepAlive): Removed.
  17394. (sendChoke): Removed.
  17395. (sendUnchoke): Removed.
  17396. (sendInterested): Removed.
  17397. (sendNotInterested): Removed.
  17398. (sendHave): Removed.
  17399. (sendBitfield): Removed.
  17400. (sendRequest): Removed.
  17401. (sendPiece): Removed.
  17402. (sendPieceHeader): Removed.
  17403. (sendPieceData): Removed.
  17404. (sendCancel): Removed.
  17405. (getPeer): Removed.
  17406. * src/PeerConnection.cc
  17407. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17408. (sendHandshake): Removed.
  17409. (sendKeepAlive): Removed.
  17410. (createNLengthMessage): Removed.
  17411. (setIntParam): Removed.
  17412. (writeOutgoingMessageLog): Removed all overloaded functions.
  17413. (sendChoke): Removed.
  17414. (sendUnchoke): Removed.
  17415. (sendInterested): Removed.
  17416. (sendNotInterested): Removed.
  17417. (sendHave): Removed.
  17418. (sendBitfield): Removed.
  17419. (sendRequest): Removed.
  17420. (sendPiece): Removed.
  17421. (sendPieceHeader): Removed.
  17422. (sendPieceData): Removed.
  17423. (sendMessage): New function.
  17424. (sendCancel): Removed.
  17425. * src/PeerInteractionCommand.cc
  17426. (PeerInteractionCommand): Call setUploadLimit.
  17427. (executeInternal): Call setUploadLimit.
  17428. Added the handling of "inProgress" state of handshake message.
  17429. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17430. sendNow().
  17431. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17432. sendNow().
  17433. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17434. * src/TorrentMan.h
  17435. (PEER_ID_LENGTH): New definition.
  17436. (hasAllPieces): New function.
  17437. * src/TorrentMan.cc
  17438. (getMissingPiece): Added the handling of fast extension.
  17439. (cancelPiece): Call updatePiece().
  17440. (hasAllPieces): New function.
  17441. * src/PeerInteraction.h
  17442. (fastSet): New variable.
  17443. (getNewPieceAndSendInterest): Changed the return type to void.
  17444. (send): Renamed as sendMessages.
  17445. (deleteAllRequestSlot): Removed.
  17446. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17447. (cancelAllRequest): Removed all overloaded functions.
  17448. (deleteAllRequestSlot): Removed.
  17449. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17450. (rejectPieceMessageInQueue): New function.
  17451. (rejectAllPieceMessageInQueue): New function.
  17452. (onChoked): New function.
  17453. (isSendingMessageInProgress): New function.
  17454. (getCorrespondingRequestSlot): Changed its arguments.
  17455. (isInFastSet): New function.
  17456. (addFastSetIndex): New function.
  17457. (addRequests): New function.
  17458. (sendNow): Removed.
  17459. (trySendNow): Removed.
  17460. (sendBitfield): New function.
  17461. (sendAllowdFast): New function.
  17462. (createHaveAllMessage): New function.
  17463. (createHaveNoneMessage): New function.
  17464. (createRejectMessage): New function.
  17465. (createAllowedFastMessage): New function.
  17466. * src/PeerInteraction.cc
  17467. (send): Renamed as sendMessages.
  17468. (sendMessages): New function.
  17469. (MsgPushBack): New class.
  17470. (isSendingMessageInProgress): New function.
  17471. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17472. (rejectAllPieceMessageInQueue): New function.
  17473. Added the handling of fast extension.
  17474. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17475. (rejectPieceMessageInQueue): New function.
  17476. Added the handling of fast extension.
  17477. (deleteRequestSlot): Replaced for loop with std::find.
  17478. (onChoked): New function.
  17479. (deleteAllRequestSlot): Removed.
  17480. (abortPiece): Rewirtten.
  17481. (deleteTimeoutRequestSlot): Updated log messages.
  17482. (getCorrespondingRequestSlot): Changed its arguments.
  17483. (cancelAllRequest): Removed all overloaded functions.
  17484. (receiveHandshake): Added the check to see whether an incoming peer
  17485. supports fast extension.
  17486. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17487. PeerMessageUtil.
  17488. (createPeerMessage): Use create() of each message class instead of
  17489. PeerMessageUtil.
  17490. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17491. AllowedFastMessage were added.
  17492. (getNewPieceAndSendInterest): Changed its return value type to void.
  17493. Added the handling of fast extension.
  17494. (addRequests): New function.
  17495. (sendNow): Removed.
  17496. (sendHandshake): Rewritten.
  17497. (trySendNow): Removed.
  17498. (sendBitfield): New function.
  17499. (sendAllowdFast): New function.
  17500. (isInFastSet): New function.
  17501. (addFastSetIndex): New function.
  17502. (createRequestMessage): Use RequestMessage::create instead of
  17503. PeerMessageUtil.
  17504. (createCancelMessage): Use CancelMessage::create instead of
  17505. PeerMessageUtil.
  17506. (createPieceMessage): Use PieceMessage::create instead of
  17507. PeerMessageUtil.
  17508. (createHaveMessage): Use HaveMessage::create instead of
  17509. PeerMessageUtil.
  17510. (createChokeMessage): Use ChokeMessage::create instead of
  17511. PeerMessageUtil.
  17512. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17513. PeerMessageUtil.
  17514. (createInterestedMessage): Use InterestedMessage::create instead of
  17515. PeerMessageUtil.
  17516. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17517. of PeerMessageUtil.
  17518. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17519. PeerMessageUtil.
  17520. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17521. PeerMessageUtil.
  17522. (createHaveAllMessage): New function.
  17523. (createHaveNoneMessage): New function.
  17524. (createRejectMessage): New function.
  17525. (createAllowedFastMessage: New function.
  17526. * src/Util.h
  17527. (sha1Sum): New function.
  17528. (computeFastSet): New function.
  17529. * src/Util.cc
  17530. (sha1Sum): New function.
  17531. (computeFastSet): New function.
  17532. * src/Peer.h
  17533. (fastExtensionEnabled): New variable.
  17534. (fastSet): New variable.
  17535. (setAllBitfield): New function.
  17536. (setFastExtensionEnabled): New function.
  17537. (isFastExtensionEnabled): New function.
  17538. (addFastSetIndex): New function.
  17539. (getFastSet): New function.
  17540. (isInFastSet): New function.
  17541. (countFastSet): New function.
  17542. * src/Peer.cc
  17543. (isInFastSet): New function.
  17544. (addFastSetIndex): New function.
  17545. (setAllBitfield): New function.
  17546. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17547. sockets.
  17548. * src/PeerAbstractCommand.cc
  17549. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17550. and uploadLimit.
  17551. (execute): Changed the procedure of checking sockets. The upload speed
  17552. checking were added.
  17553. (setUploadLimit): New function.
  17554. (setUploadLimitCheck): New function.
  17555. * src/PeerAbstractCommand.h
  17556. (setUploadLimit): New function.
  17557. (setUploadLimitCheck): New function.
  17558. (uploadLimit): New variable.
  17559. (uploadLimitCheck): New variable.
  17560. To contact a tracker regularly:
  17561. * src/TrackerWatcherCommand.h (interval): New variable.
  17562. (checkPoint): New variable.
  17563. (TrackerWatcherCommand): Added interval argument.
  17564. * src/TrackerWatcherCommand.cc
  17565. (TrackerWatcherCommand): Initialized checkPoint.
  17566. (execute): Now a tracker is contacted in every specified period.
  17567. If peer list is not needed, send request with numwant=0.
  17568. * src/TrackerUpdateCommand.cc
  17569. (execute): Updated log messages.
  17570. * src/DownloadEngine.cc
  17571. (~DownloadEngine): Removed two asserts.
  17572. (waitData): Uncommented wfds. May be a bug fix.
  17573. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17574. * src/PeerInteractionCommand.h
  17575. (checkInactiveConnection): Removed.
  17576. * src/PeerInteractionCommand.cc
  17577. (executeInternal): Removed following function calls:
  17578. detectMessageFlooding(), checkLongTimePeerChoking and
  17579. checkInactiveConnection().
  17580. (checkInactiveConnection): Removed.
  17581. (detectMessageFlooding): Removed function call to
  17582. checkInactiveConnection().
  17583. * src/PeerMessageUtil.h
  17584. (createChokeMessage): New function. Overload.
  17585. (createUnchokeMessage): New function. Overload.
  17586. (createInterestedMessage): New function. Overload.
  17587. (createNotInterestedMessage): New function. Overload.
  17588. (createHaveMessage): New function. Overload.
  17589. (createBitfieldMessage): New function. Overload.
  17590. (createRequestMessage): New function. Overload.
  17591. (createCancelMessage): New function. Overload.
  17592. (createPieceMessage): New function. Overload.
  17593. (createKeepAliveMessage): New function. Overload.
  17594. * src/PeerMessageUtil.cc
  17595. (createChokeMessage): New function. Overload.
  17596. (createUnchokeMessage): New function. Overload.
  17597. (createInterestedMessage): New function. Overload.
  17598. (createNotInterestedMessage): New function. Overload.
  17599. (createHaveMessage): New function. Overload.
  17600. (createBitfieldMessage): New function. Overload.
  17601. (createRequestMessage): New function. Overload.
  17602. (createCancelMessage): New function. Overload.
  17603. (createPieceMessage): New function. Overload.
  17604. (createKeepAliveMessage): New function. Overload.
  17605. * src/SendMessageQueue.cc
  17606. (createRequestMessage): Use PeerMessageUtil.
  17607. (createCancelMessage): Use PeerMessageUtil.
  17608. (createPieceMessage): Use PeerMessageUtil.
  17609. (createHaveMessage): Use PeerMessageUtil.
  17610. (createChokeMessage): Use PeerMessageUtil.
  17611. (createUnchokeMessage): Use PeerMessageUtil.
  17612. (createInterestedMessage): Use PeerMessageUtil.
  17613. (createNotInterestedMessage): Use PeerMessageUtil.
  17614. (createBitfieldMessage): Use PeerMessageUtil.
  17615. (createKeepAliveMessage): Use PeerMessageUtil.
  17616. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17617. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17618. * src/PeerInteraction.h: New class.
  17619. * src/PeerInteraction.cc: New class.
  17620. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17621. Each peer message has its own class.
  17622. * src/PendingMessages.h: Removed.
  17623. * src/PendingMessages.cc: Removed. The sending process was moved to
  17624. each message class.
  17625. * src/RequestSlotMan.h: Removed.
  17626. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17627. SendMessageQueue.
  17628. * src/RequestMessage.h: New class.
  17629. * src/RequestMessage.cc: New class.
  17630. * src/CancelMessage.h: New class.
  17631. * src/CancelMessage.cc: New class.
  17632. * src/BitfieldMessage.h: New class.
  17633. * src/BitfieldMessage.cc: New class.
  17634. * src/ChokeMessage.h: New class.
  17635. * src/ChokeMessage.cc: New class.
  17636. * src/KeepAliveMessage.h: New class.
  17637. * src/KeepAliveMessage.cc: New class.
  17638. * src/PortMessage.h: New class.
  17639. * src/UnchokeMessage.h: New class.
  17640. * src/UnchokeMessage.cc: New class.
  17641. * src/PieceMessage.h: New class.
  17642. * src/PieceMessage.cc: New class.
  17643. * src/HaveMessage.h: New class.
  17644. * src/HaveMessage.cc: New class.
  17645. * src/BitfieldMessage.h: New class.
  17646. * src/BitfieldMessage.cc: New class.
  17647. * src/NotInterestedMessage.h: New class.
  17648. * src/NotInterestedMessage.cc: New class.
  17649. * src/InterestedMessage.h: New class.
  17650. * src/InterestedMessage.cc: New class.
  17651. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17652. (getSendMessageQueue): New function.
  17653. (setSendMessageQueue): New function.
  17654. * src/HandshakeMessage.cc: New class.
  17655. * src/PeerConnection.h (receiveMessage): Changed return value and
  17656. arguments.
  17657. (receiveHandshake): Changed return value and arguments.
  17658. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17659. here.
  17660. (receiveHandshake): Do not create handshake class here.
  17661. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17662. (piece): Removed.
  17663. (syncPiece): Removed.
  17664. (sendInterest): Removed.
  17665. (sendMessages): Removed.
  17666. (createRequestPendingMessage): Removed.
  17667. (checkPieceHash): Removed.
  17668. (erasePieceOnDisk): Removed.
  17669. (getNewPieceAndSendInterest): Removed.
  17670. (onGotNewPice): Removed.
  17671. (onGotWrongPiece): Removed.
  17672. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17673. Removed peerConnection, piece.
  17674. (~PeerInteractionCommand): Removed peerConnection.
  17675. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17676. (syncPiece): Moved to SendMessageQueue.
  17677. (decideChoking): Removed PendingMessage.
  17678. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17679. The action after receiving peer message was moved to each message
  17680. class.
  17681. (onGotNewPice): Moved to SendMessageQueue.
  17682. (onGotWrongPiece): Moved to SendMessageQueue.
  17683. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17684. (sendInterest): Moved to SendMessageQueue.
  17685. (createRequestPendingMessage): Removed.
  17686. (sendMessages): Moved to SendMessageQueue.
  17687. (onAbort): Use SendMessageQueue::abortPiece()
  17688. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17689. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17690. (checkPieceHash): Moved to SendMessageQueue.
  17691. (erasePieceOnDisk): Moved to SendMessageQueue.
  17692. * src/PeerMessageUtil.h
  17693. (createBitfieldMessage): Removed.
  17694. (createHaveMessage): Changed return value and arguments.
  17695. (createBitfieldMessage): Changed return value and arguments.
  17696. (createRequestCancelMessage): Removed.
  17697. (createPieceMessage): Changed return value and arguments.
  17698. (getShortIntParam): New function.
  17699. (checkIndex): Changed arguments.
  17700. (checkBegin): Changed arguments.
  17701. (checkLength): Changed arguments.
  17702. (checkPieceOffset): Removed.
  17703. (checkRange): New function.
  17704. (checkBitfield): Changed arguments.
  17705. (createPeerMessage): Removed.
  17706. (checkIntegrity): Removed.
  17707. (createHandshakeMessage): Changed arguments.
  17708. (createChokeMessage): New function.
  17709. (createUnchokeMessage): New function.
  17710. (createInterestedMessage): New function.
  17711. (createNotInterestedMessage): New function.
  17712. (createRequestMessage): New function.
  17713. (createCancelMessage): New function.
  17714. (createPortMessage): New function.
  17715. * src/PeerMessageUtil.cc
  17716. (createBitfieldMessage): Removed.
  17717. (createHaveMessage): Changed return value and arguments.
  17718. (createBitfieldMessage): Changed return value and arguments.
  17719. (createRequestCancelMessage): Removed.
  17720. (createPieceMessage): Changed return value and arguments.
  17721. (getShortIntParam): New function.
  17722. (checkIndex): Changed arguments.
  17723. (checkBegin): Changed arguments.
  17724. (checkLength): Changed arguments.
  17725. (checkPieceOffset): Removed.
  17726. (checkRange): New function.
  17727. (checkBitfield): Changed arguments.
  17728. (createPeerMessage): Removed.
  17729. (checkIntegrity): Removed.
  17730. (createHandshakeMessage): Changed arguments.
  17731. (createChokeMessage): New function.
  17732. (createUnchokeMessage): New function.
  17733. (createInterestedMessage): New function.
  17734. (createNotInterestedMessage): New function.
  17735. (createRequestMessage): New function.
  17736. (createCancelMessage): New function.
  17737. (createPortMessage): New function.
  17738. * src/PeerMessage.h
  17739. (id): Removed.
  17740. (index): Removed.
  17741. (begin): Removed.
  17742. (length): Removed.
  17743. (bitfield): Removed.
  17744. (bitfieldLength): Removed.
  17745. (block): Removed.
  17746. (blockLength): Removed.
  17747. (inProgress): New variable.
  17748. (cuid): New variable.
  17749. (peer): New variable.
  17750. (sendMessageQueue): New variable.
  17751. (logger): New variable.
  17752. (setBitfield): Removed.
  17753. (getBitfield): Removed.
  17754. (setBlock): Removed.
  17755. (getBlock): Removed.
  17756. (getBitfieldLength): Removed.
  17757. (getBlockLength): Removed.
  17758. (isInProgress): New function.
  17759. (toString): Made pure virtual.
  17760. (check): New function.
  17761. (send): New function.
  17762. (receivedAction): New function.
  17763. (getId): Made pure virtual.
  17764. (setId): Removed.
  17765. (getIndex): Removed.
  17766. (setIndex): Removed.
  17767. (getBegin): Removed.
  17768. (setBegin): Removed.
  17769. (getLength): Removed.
  17770. (setLength): Removed.
  17771. (getCuid): New function.
  17772. (setCuid): New function.
  17773. (getPeer): New function.
  17774. (setPeer): New function.
  17775. (getSendMessageQueue): New function.
  17776. (setSendMessageQueue): New function.
  17777. (ID): Removed.
  17778. * src/PeerMessage.cc
  17779. (setBitfield): Removed.
  17780. (setBlock): Removed.
  17781. (toString): Removed.
  17782. * src/TorrentMan.h
  17783. (getPieceLength): New function.
  17784. (getPieceLength): New function.
  17785. * src/SendMessageQueue.h
  17786. (REQUEST_TIME_OUT): New definition.
  17787. (RequestSlots): New definition.
  17788. (MessageQueue): New definition.
  17789. (requestSlotMan): Removed.
  17790. (pendingMessages): Removed.
  17791. (requestSlots): New variable.
  17792. (messageQueue): New variable.
  17793. (torrentMan): New variable.
  17794. (peerConnection): New variable.
  17795. (peer): New variable.
  17796. (piece): New variable.
  17797. (getNewPieceAndSendInterest): New function.
  17798. (createPeerMessage): New function.
  17799. (createHandshakeMessage): New function.
  17800. (send): Made private.
  17801. (setPeerMessageCommonProperty): New function.
  17802. (deleteAllRequestSlot): New function.
  17803. (deleteRequestMessageInQueue): New function.
  17804. (cancelAllRequest): Made private.
  17805. (cancelAllRequest): Made private.
  17806. (countRequestSlot): Made private.
  17807. (addPendingMessage): Removed.
  17808. (deletePendingPieceMessage): Removed.
  17809. (deletePendingRequestMessage): Removed.
  17810. (addMessage): New function.
  17811. (deletePieceMessageInQueue): New function.
  17812. (deleteTimeoutRequestSlot): Changed argument.
  17813. (deleteCompletedRequestSlot): Changed argument.
  17814. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17815. (getCorrespondingRequestSlot): New function.
  17816. (countPendingMessage): Removed.
  17817. (countMessageInQueue): New function.
  17818. (getTorrentMan): New function.
  17819. (getPeerConnection): New function.
  17820. (hasDownloadPiece): New function.
  17821. (getDownloadPiece): New function.
  17822. (setDownloadPiece): New function.
  17823. (syncPiece): New function.
  17824. (sendMessages): New function.
  17825. (sendNow): New function.
  17826. (trySendNow): New function.
  17827. (abortPiece): New function.
  17828. (sendHandshake): New function.
  17829. (receiveMessage): New function.
  17830. (receiveHandshake): New function.
  17831. (createRequestMessage): New function.
  17832. (createCancelMessage): New function.
  17833. (createPieceMessage): New function.
  17834. (createHaveMessage): New function.
  17835. (createChokeMessage): New function.
  17836. (createUnchokeMessage): New function.
  17837. (createInterestedMessage): New function.
  17838. (createNotInterestedMessage): New function.
  17839. (createBitfieldMessage): New function.
  17840. (createKeepAliveMessage): New function.
  17841. * src/SendMessageQueue.cc
  17842. (SendMessageQueue): Removed requestSlotMan.
  17843. Instantiated peerConnection here.
  17844. (~SendMessageQueue): Removed requestSlotMan.
  17845. Added deletion of peerConnection and the contents of messageQueue.
  17846. (send): Updated according to the change of messageQueue.
  17847. (addPendingMessage): Renamed to addMessage.
  17848. (addMessage): New function.
  17849. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17850. (deletePieceMessageInQueue): New function.
  17851. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17852. (deleteRequestMessageInQueue): New function.
  17853. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17854. here.
  17855. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17856. (...) was moved here.
  17857. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17858. moved here.
  17859. (deleteCompletedRequestSlot):
  17860. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17861. (getCorrespondingRequestSlot):
  17862. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17863. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17864. (countPendingMessage): Renamed to countMessageInQueue.
  17865. (countMessageInQueue): New function.
  17866. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17867. (receiveHandshake): New function.
  17868. (createHandshakeMessage): New function.
  17869. (receiveMessage): New function.
  17870. (createPeerMessage): New function.
  17871. (syncPiece): New function.
  17872. (getNewPieceAndSendInterest): New function.
  17873. (sendMessages): New function.
  17874. (sendNow): New function.
  17875. (trySendNow): New function.
  17876. (sendHandshake): New function.
  17877. (abortPiece): New function.
  17878. (getDownloadPiece): New function.
  17879. (getPeerMessageCommonProperty): New function.
  17880. (createRequestMessage): New function.
  17881. (createCancelMessage): New function.
  17882. (createPieceMessage): New function.
  17883. (createHaveMessage): New function.
  17884. (createChokeMessage): New function.
  17885. (createUnchokeMessage): New function.
  17886. (createInterestedMessage): New function.
  17887. (createNotInterestedMessage): New function.
  17888. (createBitfieldMessage): New function.
  17889. (createKeepAliveMessage): New function.
  17890. To add simple Content-Disposition support:
  17891. * src/HttpResponseCommand.h (determinFilename): New function.
  17892. * src/HttpResponseCommand.cc (executeInternal):
  17893. Use determinFilename(headers) instead of req->getFile() when comparing
  17894. filename.
  17895. (determinFilename): New function.
  17896. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17897. req->getFile().
  17898. (handleOtherEncoding): Use determinFilename(headers) instead of
  17899. req->getFile().
  17900. * src/Util.h (getContentDispositionFilename): New function.
  17901. * src/Util.cc (getContentDispositionFilename): New function.
  17902. * src/LogFactory.h (release): New function.
  17903. * src/LogFactory.cc (release): New function.
  17904. To fix a bug that causes out-of-bound exception when HTTP status
  17905. line is wrong:
  17906. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17907. size.
  17908. * src/common.h (Deleter): New class.
  17909. * src/SegmentMan.cc
  17910. (~SegmentMan): Added deletion of splitter and diskWriter.
  17911. * src/DownloadEngine.h
  17912. (Commands): Use deque.
  17913. (clearQueue): New function.
  17914. * src/DownloadEngine.cc
  17915. (~DownloadEngine): Added deletion of segmentMan.
  17916. (cleanQueue): New function.
  17917. * src/TorrentDownloadEngine.h
  17918. (TorrentDownloadEngine): The implementation was moved to
  17919. TorrentDownloadEngine.cc.
  17920. (~TorrentDownloadEngine): The implementation was moved to
  17921. TorrentDownloadEngine.cc.
  17922. * src/TorrentDownloadEngine.cc
  17923. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17924. * src/main.cc
  17925. (clearRequest): Removed.
  17926. (handler): Added deletion of e.
  17927. (torrentHandler): Added deletion of te.
  17928. (main): Do not share splitter.
  17929. Use Deleter instead of clearRequest.
  17930. Deletion of classes were updated.
  17931. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17932. * src/main.cc (main): Fixed typo.
  17933. * src/message.h: Fixed typo.
  17934. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17935. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17936. To add --select-file command-line option:
  17937. * src/Util.cc
  17938. (unfoldRange): New function.
  17939. (getNum): New function.
  17940. (unfoldSubRange): New function
  17941. * src/main.cc
  17942. (showUsage): Added help message.
  17943. (main): Added --select-file command-line option. Updated the layout of
  17944. file listing.
  17945. * src/common.h
  17946. (Integers): New definition.
  17947. * src/SocketCore.cc
  17948. (writeData): Removed timeout argument.
  17949. (readData): Removed timeout argument.
  17950. (peekData): Removed timeout argument.
  17951. * src/Socket.cc
  17952. (writeData): Removed timeout argument.
  17953. (readData): Removed timeout argument.
  17954. (peekData): Removed timeout argument.
  17955. * Release 0.4.1
  17956. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17957. To deploy upload rate based choking algorithm:
  17958. * src/PeerInteractionCommand.cc
  17959. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17960. peer currently used.
  17961. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17962. download completes. Simplified.
  17963. (receiveMessage): Updated.
  17964. * src/TorrentMan.h
  17965. (activePeers): New variable.
  17966. (addActivePeer): New function.
  17967. (getActivePeers): New function.
  17968. (deleteActivePeer): New function.
  17969. * src/TorrentMan.cc
  17970. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17971. * src/PeerAbstractCommand.cc
  17972. (onAbort): Use peer->resetStatus().
  17973. * src/main.cc
  17974. (PeerChokeCommand.h): Included.
  17975. (main): Added the instance of ChokingCommand to the command queue.
  17976. * src/Peer.h
  17977. (amChoking): Renamed from amChocking
  17978. (chokingRequired): New variable.
  17979. (optUnchoking): New variable.
  17980. (deltaUpload): New variable.
  17981. (deltaDownload): New variable.
  17982. (addDeltaUpload): New function.
  17983. (resetDeltaUpload): New function.
  17984. (addDeltaDownload): New function.
  17985. (resetDeltaDownload): New function.
  17986. (addPeerUpload): Added a call to addDeltaUpload.
  17987. (addPeerDownload): Added a call to addDeltaDownload.
  17988. * src/Peer.cc
  17989. (shouldBeChoking): Renamed from shouldChoke.
  17990. (resetStatus): New function.
  17991. * src/PeerChokeCommand.h: New class.
  17992. * src/PeerChokeCommand.cc: New class.
  17993. To add lazy upload speed limiter:
  17994. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17995. statistics calculation to TorrentDownloadEngine.
  17996. * src/TorrentConsoleDownloadEngine.cc
  17997. (sendStatistics): Renamed from printStatistics.
  17998. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17999. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18000. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18001. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18002. calculation.
  18003. (sendStatistics): New function as pure virtual function.
  18004. (getUploadSpeed): New function.
  18005. * src/TorrentDownloadEngine.cc
  18006. (initStatistics): New function.
  18007. (calculateSpeed): New function.
  18008. (calculateStatistics): New function.
  18009. * src/SendMessageQueue.h
  18010. (uploadLength): New variable.
  18011. (send): Added an argument.
  18012. (setUploadLimit): New function.
  18013. (getUploadLimit): New function.
  18014. * src/SendMessageQueue.cc
  18015. (send): Added upload speed limiter.
  18016. * src/prefs.h
  18017. (PREF_UPLOAD_LIMIT): New definition.
  18018. * src/PeerInteractionCommand.cc
  18019. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18020. * src/main.cc
  18021. (main): Added --upload-limit option
  18022. For bug fixes:
  18023. * src/main.cc
  18024. (showUsage): Corrected --listen-port help
  18025. Other changes:
  18026. * src/TorrentMan.cc
  18027. (getPeer): Return nullPeer if connection is grather than
  18028. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18029. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18030. To add some useful information to the exception message:
  18031. * src/SocketCore.cc : Updated messages.
  18032. * src/SegmentMan.cc :
  18033. * src/TorrentMan.cc : Updated messages.
  18034. * src/MultiDiskWriter.cc : Updated messages.
  18035. * src/Util.cc : Updated messages.
  18036. * src/AbstractDiskWriter.cc : Updated messages.
  18037. * src/PreAllocationDiskWriter.cc : Updated messages.
  18038. * src/message.cc : Added new messages. Updated some messages.
  18039. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18040. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18041. Updated threshold from 30 to 15.
  18042. * src/AbstractDiskWriter.h (filename): New variable.
  18043. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18044. (createFile): Assigned filename.
  18045. * src/main.cc: Updated the help message for http-auth-scheme.
  18046. * Release 0.4.0
  18047. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18048. To add TrackerUpdateCommand with which replaces
  18049. CompactTrackerResponseProcessor:
  18050. * src/TrackerWatcherCommand.h (req): Removed.
  18051. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18052. if the number of peer connections are less than 30.
  18053. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18054. * src/SegmentMan.h (diskWriter): New function.
  18055. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18056. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18057. (main): Use TrackerUpdateCommand.
  18058. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18059. (req): New variable.
  18060. (setTrackerResponseProcessor): Removed.
  18061. (getTrackerResponseProcessor): Removed.
  18062. (processTrackerResponse): Removed.
  18063. * src/DownloadEngine.h (diskWriter): Removed.
  18064. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18065. to torrentMan->processTrackerResponse().
  18066. To add Util::expandBuffer:
  18067. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18068. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18069. * src/Util.h (expandBuffer): New function.
  18070. To fix the bug that causes segmentation fault when "-l ." is specified
  18071. in command-line option:
  18072. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18073. (openFile): New function.
  18074. (closeFile): New function.
  18075. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18076. (~SimpleLogger): Call closeFile();
  18077. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18078. * src/main.cc (main): Added a check to see logger is configured
  18079. properly.
  18080. To enable HTTP authentication without specifying "--http-auth-scheme"
  18081. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18082. * src/HttpConnection.cc (createRequest): Send Authorization header
  18083. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18084. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18085. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18086. * src/Peer.cc (shouldChoke): Updated algorithm.
  18087. * src/message.h (EX_AUTH_FAILED): New definition.
  18088. (EX_FILE_OPEN): New definition.
  18089. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18090. if status == 401.
  18091. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18092. if req->isTorrent == true.
  18093. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18094. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18095. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18096. (createFile): Updated message.
  18097. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18098. To add a readout of estimated remaining time to normal HTTP/FTP
  18099. downloads:
  18100. * src/ConsoleDownloadEngine.h (startup): New variable.
  18101. (startupLength): New variable.
  18102. (isStartupLengthSet): New variable.
  18103. (avgSpeed): New variable.
  18104. (eta): New variable.
  18105. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18106. estimated remaining time.
  18107. (initStatistics): Initialized newly added variables.
  18108. (calculateStatistics): Calculate average speed and estimated remaining
  18109. time.
  18110. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18111. * src/TrackerDownloadCommand.h: Removed.
  18112. * src/TrackerDownloadCommand.cc: Removed.
  18113. * src/TrackerInitCommand.h: Removed.
  18114. * src/TrackerInitCommand.cc: Removed.
  18115. * src/TrackerUpdateCommand.h: Removed.
  18116. * src/TrackerUpdateCommand.cc: Removed.
  18117. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18118. url written in TrackerInitCommand was moved here. Do not create
  18119. tracker request command if torrentMan->trackers != 0.
  18120. * src/CompactTrackerResponseProcessor.h: New class.
  18121. * src/CompactTrackerResponseProcessor.cc: New class.
  18122. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18123. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18124. Decoupled TorrentDownloadEngine from this.
  18125. * src/SegmentMan.h (init): New function.
  18126. * src/SegmentMan.cc (init): New function.
  18127. * src/TorrentMan.h (responseProcessor): New variable.
  18128. (trackers): New variable.
  18129. (setTrackerResponseProcessor): New function.
  18130. (getTrackerResponseProcessor): New function.
  18131. (processTrackerResponse): New function.
  18132. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18133. (processTrackerResponse): New function.
  18134. * src/main.cc (main): Use ByteArrayDiskWriter and
  18135. CompactTrackerResponseProcessor.
  18136. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18137. processTrackerResponse().
  18138. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18139. readout.
  18140. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18141. which indicates download has completed.
  18142. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18143. (closeFile): fd >= 0, not fd > 0
  18144. * src/main.cc (main): Added short cut for show-files.
  18145. Added short cut for torrent-file.
  18146. Added new command-line option listen-port.
  18147. Updated i18n messages.
  18148. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18149. To add LogFactory which creates singleton logger:
  18150. * src/LogFactory.h: New class.
  18151. * src/LogFactory.cc: New class.
  18152. * src/Command.h (logger): New variable.
  18153. (Constructor): Use LogFactory.
  18154. * src/AbstractCommand.cc: Use Command::logger
  18155. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18156. Use LogFactory.
  18157. * src/SegmentSplitter.h : Made logger protected.
  18158. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18159. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18160. * src/DownloadEngine.h : Made logger protected.
  18161. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18162. * src/PeerInteractionCommand.cc : Use Command::logger.
  18163. * src/HttpResponseCommand.cc : Use Command::logger.
  18164. * src/SegmentMan.h : Made logger private.
  18165. * src/TorrentMan.h : Made logger private.
  18166. * src/TorrentMan.cc : Use LogFactory.
  18167. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18168. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18169. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18170. Use LogFactory.
  18171. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18172. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18173. Use LogFactory.
  18174. * src/DownloadCommand.cc : Use Command::logger.
  18175. * src/PeerAbstractCommand.cc : Use Command::logger.
  18176. * src/PeerListenCommand.cc : Use Command::logger.
  18177. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18178. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18179. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18180. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18181. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18182. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18183. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18184. Use LogFactory.
  18185. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18186. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18187. Use LogFactory.
  18188. * src/main.cc (main): Use LogFactory.
  18189. * src/DiskAdaptor.h (logger): New variable.
  18190. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18191. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18192. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18193. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18194. parameter to a tracker request.
  18195. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18196. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18197. * src/main.cc (setSignalHander): New function.
  18198. (main): Added a handler for SIGTERM.
  18199. (handler): Updated message.
  18200. (torrentHandler): Updated message.
  18201. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18202. * src/TorrentConsoleDownloadEngine.cc
  18203. (onPartialDownloadingCompletes): Renamed as
  18204. onSelectiveDownloadingCompletes.
  18205. (onSelectiveDownloadingCompletes): Updated message.
  18206. To add DiskAdaptor which abstract DiskWriter family:
  18207. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18208. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18209. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18210. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18211. MultiDiskAdaptor.h.
  18212. (readFileEntry): Changed its arguments.
  18213. (setup): setupDiskWriter is merged into this function.
  18214. (setupDiskWriter): Removed.
  18215. (setFileFilter): New function.
  18216. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18217. made in readFileEntry.
  18218. (getFilePath): Removed.
  18219. (getTempFilePath): Removed.
  18220. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18221. (fixFilename): Removed.
  18222. (copySingleFile): Removed.
  18223. (splitMultiFile): Removed.
  18224. (deleteTempFile): Removed.
  18225. (setFileEntriesToDownload): Removed.
  18226. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18227. (isSelectiveDownloadingMode): New function.
  18228. (setAllMultiFileRequestedState): Removed.
  18229. (finishPartialDownloadingMode): Renamed as
  18230. finishSelectiveDownloadingMode.
  18231. (finishSelectiveDownloadingMode): New function.
  18232. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18233. (getSelectedTotalLength): New function.
  18234. (onDownloadComplete): Use diskAdaptor.
  18235. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18236. (Range): Removed.
  18237. (setMultiFileEntries): Renamed as setFileEntries.
  18238. (setFileEntries): New function.
  18239. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18240. (pieceLength): New variable.
  18241. * src/main.cc (printDownloadCompeleteMessage): New function.
  18242. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18243. (main): Renamed torrent-show-files to show-files.
  18244. Rewritten file contents listing.
  18245. * src/TorrentMan.h (FileEntry): Removed.
  18246. (multiFileTopDir): Removed.
  18247. (multiFileEntries): Removed.
  18248. (diskWriter): Removed.
  18249. (diskAdaptor): New variable.
  18250. * src/DefaultDiskWriter.h (totalLength): New variable.
  18251. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18252. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18253. diskWriter.
  18254. * src/TorrentConsoleDownloadEngine.h
  18255. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18256. (partialTotalLength): Renamed as selectedTotalLength.
  18257. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18258. openExistingFile, otherwise call initAndOpenFile.
  18259. (closeFile): fd > 0, not fd != 0.
  18260. * src/DirectDiskAdaptor.h: New class.
  18261. * src/DirectDiskAdaptor.cc: New class.
  18262. * src/MultiDiskAdaptor.h: New class.
  18263. * src/MultiDiskAdaptor.cc: New class.
  18264. * src/CopyDiskAdaptor.h: New class.
  18265. * src/CopyDiskAdaptor.cc: New class.
  18266. * src/DiskAdaptor.h: New class.
  18267. * src/DiskAdaptor.cc: New class.
  18268. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18269. (PREF_SHOW_FILES): New definition.
  18270. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18271. To add the ability to download multi torrent into respective files
  18272. directly:
  18273. * src/DiskWriter.h (openFile): New function.
  18274. (seek): Removed.
  18275. * src/MultiDiskWriter.h: New class.
  18276. * src/MultiDiskWriter.cc: New class.
  18277. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18278. protected.
  18279. (openFile): New function.
  18280. * src/AbstractDiskWriter.cc (openFile): New function.
  18281. * src/prefs.h (V_FALSE): New definition.
  18282. (PREF_DIRECT_FILE_MAPPING): New definition.
  18283. * src/TorrentMan.h (setupDiskWriter): New function.
  18284. (setAllMultiFileRequestedState): New function.
  18285. (onDownloadComplete): New function.
  18286. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18287. (setupDiskWriter): New function.
  18288. (getFilePath): Updated.
  18289. (getTempFilePath): Updated.
  18290. (getSegmentFilePath): Updated.
  18291. (fixFilename): Updated.
  18292. (deleteTempFile): Updated.
  18293. (setAllMultiFileRequestedState): New function.
  18294. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18295. (finishPartialDownloadingMode): Reset requested flags.
  18296. (onDownloadComplete): New function.
  18297. * src/main.cc: Added --direct-file-mapping option.
  18298. Use TorrentMan::setupDiskWriter().
  18299. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18300. onDownloadComplete().
  18301. To fix ETA bug:
  18302. * src/Util.h (difftvsec): New function.
  18303. * src/Util.cc (difftvsec): New function.
  18304. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18305. type of "elapsed" instead of long long int.
  18306. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18307. The updates of statistics takes place every 1 seconds.
  18308. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18309. (calculateSpeed): Changed its argument signature.
  18310. * src/PeerMessage.cc (toString): Fixed message.
  18311. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18312. To print ETA:
  18313. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18314. completion handling when dealing with
  18315. TorrentMan::isPartialDownloadingMode() == true.
  18316. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18317. New function.
  18318. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18319. (sessionDownloadLength): New variable.
  18320. (avgSpeed): New variable.
  18321. (eta): New variable.
  18322. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18323. new variables: eta, avgSpeed, startup.
  18324. (calculateSpeed): Calculate average speed and ETA.
  18325. (printStatistics): Added ETA.
  18326. * src/Util.h (secfmt): New function.
  18327. * src/Util.cc (secfmt): New function.
  18328. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18329. To detect "keep alive" flooding:
  18330. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18331. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18332. variable: keepAliveCount.
  18333. (detectMessageFlooding): Added "keep alive" flooding detection.
  18334. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18335. received.
  18336. To add the ability to download only specified files in multi-file
  18337. torrent:
  18338. * src/BitfieldMan.h (filterBitfield): New variable.
  18339. (filterEnabled): New variable.
  18340. (setFilterBit): New function.
  18341. (enableFilter): New function.
  18342. (disableFilter): New function.
  18343. (isFilterEnabled): New function.
  18344. (getFilteredTotalLength): New function.
  18345. (getCompletedLength): New function.
  18346. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18347. filterBitfield, filterEnabled.
  18348. (CopyConstructor): Added filterBitfield and filterEnabled.
  18349. (operator==): Added filterBitfield and filterEnabled.
  18350. (Destructor): Added filterBitfield.
  18351. (getMissingIndex): Use filterBitfield.
  18352. (getMissingUnusedIndex): Use filterBitfield.
  18353. (getFirstMissingUnusedIndex): Use filterBitfield.
  18354. (getFirstMissingUnusedIndex): Use filterBitfield.
  18355. (getAllMissingIndexes): Use filterBitfield.
  18356. (countMissingBlock): Use filterBitfield.
  18357. (countBlock): Use filterBitfield.
  18358. (setBitInternal): Added new argument on.
  18359. (setUseBit): Use setBitInternal.
  18360. (unsetUseBit): Use setBitInternal.
  18361. (setBit): Use setBitInternal.
  18362. (unsetBit): Use setBitInternal.
  18363. (isAllBitSet): Use filterBitfield.
  18364. (setFilterBit): New function.
  18365. (addFilter): New function.
  18366. (enableFilter): New function.
  18367. (disableFilter): New function.
  18368. (clearFilter): New function.
  18369. (isFilterEnabled): New function.
  18370. (getFilteredTotalLength): New function.
  18371. (getCompletedLength): New function.
  18372. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18373. Initalized newly added variables.
  18374. [FileEntry](offset): New variable.
  18375. [FileEntry](extracted): New variable.
  18376. [FileEntry](requested): New variable.
  18377. (readFileEntry): New function.
  18378. (option): New variable.
  18379. (splitMultiFile): Removed const qualifier.
  18380. (fixFilename): Removed const qualifier.
  18381. (readFileEntryFromMetaInfoFile): New function.
  18382. (finishPartialDownloadingMode): New function.
  18383. (isPartialDownloadingMode): New function.
  18384. (setFileEntriesToDownload): New function.
  18385. (getCompletedLength): New function.
  18386. (getPartialTotalLength): New function.
  18387. * src/TorrentMan.cc (readFileEntry): New function.
  18388. (setup): Use readFileEntry. If no-preallocation option is specified,
  18389. use DefaultDiskWriter.
  18390. (readFileEntryFromMetaInfoFile): New function.
  18391. (fixFilename): Removed const qualifier.
  18392. (splitMultiFile): Removed const qualifier.
  18393. (setFileEntriesToDownload): New function.
  18394. (isPartialDownloadingMode): New function.
  18395. (finishPartialDownloadingMode): New function.
  18396. (getCompletedLength): New function.
  18397. (getPartialTotalLength): New function.
  18398. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18399. New variable.
  18400. (partialTotalLength): New variable.
  18401. (downloadLength): New variable.
  18402. (totalLength): New variable.
  18403. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18404. Added log.
  18405. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18406. partialTotalLength, downloadLength, totalLength.
  18407. (calculate): Calculate downloadLength and totalLength.
  18408. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18409. * src/main.cc (addCommand): Changed argument signature.
  18410. (main): Added new variable: args. Added new option "torrent-show-files"
  18411. "no-preallocation". Usage is not updated yet.
  18412. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18413. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18414. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18415. Attempt to add the ability to listing file entries in a .torrent file.
  18416. This feature is not yet complete.
  18417. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18418. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18419. (getName): New function.
  18420. * src/TorrentMan.h (getMultiFileEntries): New function.
  18421. (getName): New function.
  18422. * src/main.cc (main): Use above 2 funtion.
  18423. * Release 0.3.2
  18424. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18425. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18426. (detectMessageFlooding): Updated threshold value.
  18427. (checkLongTimePeerChoking): Updated timeout value.
  18428. (getNewPieceAndSendInterest): Added debug log.
  18429. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18430. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18431. (getPeer): Updated.
  18432. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18433. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18434. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18435. is localhost.
  18436. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18437. * src/PendingMessage.cc (processMessage): Not to send piece message
  18438. if peer is not interested in the pieces localhost has.
  18439. * src/Peer.cc (shouldChoke): Updated.
  18440. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18441. * src/Util.cc (isPowerOf): New function.
  18442. * src/Util.h (isPowerOf): New function.
  18443. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18444. whether or not it is power of 2.
  18445. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18446. Added new class SendMessageQueue that includes PendingMessages and
  18447. RequestSlotMan.
  18448. * src/SendMessageQueue.h: New class.
  18449. * src/SendMessageQueue.cc: New class.
  18450. * src/PendingMessage.h: Added new member variable blockIndex and its
  18451. accessors.
  18452. (createRequestMessage): Updated.
  18453. * src/PendingMessage.cc (createRequestMessage): Updated.
  18454. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18455. SendMessageQueue.
  18456. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18457. (receiveMessage): Updated with SendMessageQueue.
  18458. (deletePendingPieceMessage): Removed.
  18459. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18460. (sendInterest): Updated with SendMessageQueue.
  18461. (createRequestPendingMessage): Updated with SendMessageQueue.
  18462. (sendMessages): Updated with SendMessageQueue.
  18463. (onAbort): Updated with SendMessageQueue.
  18464. (keepAlive): Updated with SendMessageQueue.
  18465. (beforeSocketCheck): Updated SendMessageQueue.
  18466. * src/PeerInteractionCommand (sendMessages): Shuffle
  18467. missingBLockIndexes before using it.
  18468. Added its own timeout for peer connection.
  18469. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18470. setter.
  18471. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18472. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18473. Added setTimeout() call.
  18474. (executeInternal): Added setTimeout() call.
  18475. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18476. Added timeout.
  18477. (isTimeoutDetected): Updated.
  18478. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18479. option.
  18480. Added *simple* message flooding checker.
  18481. * src/PeerInteractionCommand.cc (executeInternal):
  18482. Added detectMessageFlooding() call.
  18483. (detectMessageFlooding): New function.
  18484. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18485. (beforeSocketCheck): Added detectMessageFlooding() call.
  18486. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18487. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18488. Removed deletePendingPieceMessage(), getRequestSlot(),
  18489. deleteRequestSlot(), deleteAllRequestSlot().
  18490. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18491. Added checkLongTimePeerChoking() call.
  18492. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18493. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18494. if duplicate == false.
  18495. The parameter "uploaded" and "downloaded" in the tracker request are
  18496. the size since the client sent the "started" event to the tracker.
  18497. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18498. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18499. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18500. getSessionDownloadedSize(), getSessionUploadedSize().
  18501. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18502. getSessionUploadedSize() instead of getDownloadedSize(),
  18503. getUploadedSize().
  18504. * src/PendingMessage.cc (processMessage): Do not send request message
  18505. if the peer is choking the client.
  18506. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18507. less than interval.
  18508. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18509. * configure.in: Added gnutls support. Added several CPP macros.
  18510. * m4/openssl.m4: Added.
  18511. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18512. readData(), peekData(). Added gnutls support.
  18513. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18514. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18515. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18516. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18517. Instead, added a check for whether setup method has executed
  18518. successfully.
  18519. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18520. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18521. * src/Makefile.am: Updated.
  18522. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18523. using whether OpenSSL or gcrypt, depending on the result of configure
  18524. script.
  18525. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18526. messageDigest.h.
  18527. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18528. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18529. Fixed memory leak.
  18530. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18531. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18532. Removed instantiation of TrackerInitCommand. Instead,
  18533. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18534. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18535. ENABLE_SSL.
  18536. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18537. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18538. If a piece is already acquired by another command, delete the request
  18539. slots for the piece.
  18540. * src/TrackerUpdateCommand.cc (execute):
  18541. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18542. Added a check whether peer list is null.
  18543. Fixed the bug that causes sending completed event to the tracker
  18544. several times.
  18545. * src/TrackerInitCommand.cc (execute):
  18546. Fixed the bug that causes sending completed event to the tracker
  18547. several times.
  18548. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18549. by using messageDigest.h.
  18550. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18551. * PeerConnection.cc: Replaced log message "keep-alive" with
  18552. "keep alive".
  18553. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18554. localhost long time.
  18555. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18556. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18557. at most 100 failure entry from the list. If with duplicate = false,
  18558. MAX_PEER_LIST is not checked.
  18559. * PeerListenCommand.cc: Fixed the argument order of log message.
  18560. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18561. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18562. Added warn().
  18563. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18564. Implemented warn().
  18565. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18566. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18567. * Request.h: Added AFTER_COMPLETED event.
  18568. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18569. instead of downloaded size and progress(%) after download completes.
  18570. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18571. message to the peer if it is interested in what localhost has
  18572. downloaded.
  18573. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18574. destination instead of just renaming it.
  18575. * TorrentMan.cc: Added deleteTempFile().
  18576. * PeerAbstractCommand.cc: do not stop execution after download
  18577. completes. This makes localhost a seeder.
  18578. * Util.{h,cc}: Added fileCopy().
  18579. * PeerListenCommand.cc: do not stop execution after download completes.
  18580. This makes localhost a seeder.
  18581. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18582. Added TorrentMan::deleteTempFile() to torrentHandler.
  18583. Initialized the variable dir as ".".
  18584. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18585. Deleted renameSingleFile().
  18586. Added copySingleFile(), deleteTempFile().
  18587. * DownloadEngine.h: Added virtual function afterEachIteration().
  18588. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18589. in onEndOfRun() to afterEachIteration().
  18590. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18591. true.
  18592. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18593. In rangedFileCopy(), added try-catch block to properly close file
  18594. descriptors.
  18595. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18596. Added afterEachIteration(), isFilenameFixed().
  18597. * Peer.cc: Changed choking strategy.
  18598. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18599. * TrackerInitCommand.cc: Send completed event only once.
  18600. * DownloadEngine.cc: Added a call to afterEachIteration().
  18601. * TrackerUpdateCommand.cc: Do not stop execution after download
  18602. completes.
  18603. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18604. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18605. received from a tracker.
  18606. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18607. Decreased the number of failure peers to delete to 0(just comment out
  18608. the line).
  18609. * Release 0.3.1
  18610. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18611. * PeerInteractionCommand.cc: added a call to
  18612. TorrentMan::unadvertisePiece in Destructor.
  18613. * PeerInteractionCommand.cc: make have message sent immediately
  18614. if the size of pending message queue is zero.
  18615. * TorrentMan.cc: set the maximum size of peer list to 250.
  18616. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18617. to deque.
  18618. * Util.cc: fixed rangedFileCopy.
  18619. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18620. to Constructor. Also, moved digest cleanup to Destructor.
  18621. * MetaFileUtil.cc: fixed memory leak
  18622. * replaced std::vector with std::deque.
  18623. * AbstractCommand.cc: casted timeout value to long long int.
  18624. * ChunkedEncoding.cc: fixed memory leak.
  18625. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18626. * SleepCommand.cc: casted timeout value to long long int.
  18627. * Data.cc: fixed memory leak.
  18628. * Data.cc: fixed toLLInt().
  18629. * BitfieldMan.cc: fixed memory leak.
  18630. * TorrentMan.cc: initialized storeDir to ".".
  18631. * TorrentMan.cc: fixed memory leak.
  18632. * TorrentMan.cc: corrected file paths of splitted files.
  18633. * PeerAbstractCommand.cc: casted timeout to long long int.
  18634. * main.cc: added delete(req) and delete(te->diskWriter).
  18635. * RequestSlot.cc: casted timeout value to long long int.
  18636. * Request.cc: fixed memory leak.
  18637. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18638. have the piece.
  18639. * Peer.{h,cc}: added hasPiece(int index).
  18640. * main.cc: corrected addCommand.
  18641. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18642. * BitTorrent protocol support added.
  18643. * Release 0.3.0
  18644. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18645. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18646. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18647. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18648. decoding did not work properly.
  18649. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18650. * DownloadEngine.h: included sys/time.h
  18651. * DownloadEngine.cc: remove sys/time.h
  18652. * Makefile.am (SUBDIRS): Add intl.
  18653. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18654. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18655. * main.cc: correct help message for --http-auth-scheme.
  18656. * main.cc: changed e-mail address for bug reports.
  18657. * ja.po: added japanese translation.
  18658. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18659. * SimpleLogger.cc: flush log file instead of stdout.
  18660. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18661. * main.cc: Fixed command-line option: max-tries
  18662. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18663. does not equal to seg.sp.
  18664. * DownloadCommand.cc: If EOF is got from the server and the total size
  18665. of file is not zero, then throw DlRetryEx.
  18666. * main.cc: Set the minium value of min-segment-size to 1024.
  18667. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18668. fails because of a regression since 0.2.0 release.
  18669. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18670. * HttpConnection.cc:
  18671. * common.h: defined the user agent name as macro
  18672. * DownloadEngine.{h, cc}:
  18673. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18674. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18675. * main.cc: Download complete/abort message is now generated by main.
  18676. * Makefile.am (SUBDIRS): Add m4.
  18677. (ACLOCAL_AMFLAGS): New variable.
  18678. (EXTRA_DIST): New variable.
  18679. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18680. * gettext: added gettext functionality
  18681. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18682. * AbstractCommand.cc:
  18683. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18684. unregister its cuid from SegmentMan.
  18685. * DownloadEngine.cc: .aria2 file was written when a downloading
  18686. failed with errors.
  18687. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18688. Added "User-Agent" header to CONNECT proxy request.
  18689. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18690. properly.
  18691. * Logger.h:
  18692. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18693. * ChunkedEncoding.cc: Added #include directive for strings.h
  18694. * Release 0.2.1
  18695. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18696. * Util.{h,cc}: added startsWith().
  18697. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18698. Util::endsWith().
  18699. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18700. * common.h: added #include directive of limit.h.
  18701. * DownloadEngine.cc: added #include directive of sys/time.h and
  18702. algorithm.
  18703. * Exception.h: added #include directive of stdio.h.
  18704. * AbstractCommand.h: added #include directive of sys/time.h.
  18705. * DownloadCommand.h: added #include directive of sys/time.h.
  18706. * *.h: added #include directive of common.h to all base classes.
  18707. subclasses' one was removed.
  18708. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18709. does not define these macros.
  18710. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18711. * Release 0.2.0
  18712. * main.cc:
  18713. * HttpInitiateConnectionCommand.{h,cc}:
  18714. * prefs.h:
  18715. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18716. We can now use GET command in http proxy.
  18717. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18718. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18719. that splits slowest segment of SegmentMan::commands vector.
  18720. This is the default split algorithm of aria2.
  18721. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18722. that splits first segment of SegmentMan::commands vector.
  18723. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18724. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18725. * Segment.h:
  18726. * SegmentMan.cc: Added speed field to Segment.h
  18727. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18728. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18729. * message.h: Change file size related %d to %lld.
  18730. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18731. * FtpInitiateConnectionCommand.{h,cc}:
  18732. * FtpNegotiationCommand.{h,cc}:
  18733. * FtpDownloadCommand.{h,cc}:
  18734. * FtpConnection.{h,cc}: Added FTP support
  18735. * SimpleLogger.cc: Log message now includes time information.
  18736. * main.cc: The value of --http-auth-scheme option is chagned from
  18737. 'BASIC' to 'basic'
  18738. * main.cc: Added --timeout command-line option.
  18739. * main.cc: Added --min-segment-size command-line option.
  18740. * main.cc: Added --max-retries command-line option.
  18741. * prefs.h: option string constants are now defined in prefs.h
  18742. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18743. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18744. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18745. with version 0.1.0's one.
  18746. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18747. * configure.in: Added --enable-ssl option to configure script.
  18748. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18749. cannot permit absoluteURI as Request-URI.
  18750. * HttpConnection.cc: Added Referer support.
  18751. * main.cc: Added referer command-line option.
  18752. * main.cc: Added rety-wait command-line option.
  18753. * Exception.h: Fixed formating bug in Exception::setMsg()
  18754. * SocketCore.{h,cc}:
  18755. * Socket.{h, cc}:
  18756. * Request.cc:
  18757. * InitiateConnectionCommandFactory.cc:
  18758. * HttpRequestCommand.cc: Added HTTPS support.
  18759. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18760. for SocketCore.
  18761. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18762. size is wrong
  18763. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18764. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18765. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18766. * Release 0.1.0