ChangeLog 658 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162
  1. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. If '-' is given as an argument to --metalink-file option, aria2
  3. reads Metalink file from stdin.
  4. * src/OptionHandlerFactory.cc
  5. * src/OptionHandlerImpl.h
  6. * src/a2io.h
  7. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Fixed the bug that aria2 listens wrong port if --interface option
  9. is used.
  10. * src/SocketCore.cc
  11. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Fixed the bug that query parameter in magnet URI is not decoded.
  13. * src/magnet.cc
  14. * test/MagnetTest.cc
  15. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Specified defaultSize as an argument for easy testing.
  17. * src/util.cc
  18. * src/util.h
  19. * test/UtilTest.cc
  20. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Release 1.7.1
  22. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Bump up version number to 1.7.1
  24. * configure.ac
  25. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Fixed the bug --bt-prioritize-piece=tail is not working.
  27. * src/util.cc
  28. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Release 1.7.0
  30. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Updated po templates.
  32. * po/aria2.pot
  33. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Updated help message for --bt-prioritize-piece. Some cosmetic
  35. changes.
  36. * doc/aria2c.1.txt
  37. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  39. * src/usage_text.h
  40. * src/util.cc
  41. * test/UtilTest.cc
  42. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Updated Russian, Ukrainian, German and French translations.
  44. Thanks to all translators involved.
  45. * po/de.po
  46. * po/fr.po
  47. * po/ru.po
  48. * po/uk.po
  49. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Mentioned about pkg-config
  51. * README
  52. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Fixed typo. Referred --index-out option in BitTorrent notes.
  54. * README
  55. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Store all addresses found by getifaddrs() and getaddrinfo(). In
  57. bind, try all addresses until success
  58. * src/SocketCore.cc
  59. * src/SocketCore.h
  60. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Updated po templates.
  62. * po/aria2.pot
  63. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Bump up version number to 1.7.0
  65. * configure.ac
  66. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Fixed compile error if ENABLE_BITTORRENT is undefined.
  68. * src/DefaultPieceStorage.cc
  69. * src/DefaultPieceStorage.h
  70. * src/PieceStorage.h
  71. * src/UnknownLengthPieceStorage.cc
  72. * src/UnknownLengthPieceStorage.h
  73. * test/MockPieceStorage.h
  74. * test/ProtocolDetectorTest.cc
  75. * test/XmlRpcMethodTest.cc
  76. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Documented in man page that if getifaddrs() is missing,
  78. --interface option doesn't accept interface name.
  79. * doc/aria2c.1.txt
  80. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  82. * src/DefaultBtAnnounce.cc
  83. * src/DefaultBtAnnounce.h
  84. * test/DefaultBtAnnounceTest.cc
  85. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Fixed the bug that connection is always dropped if handshake
  87. message in extension protocol don't have metadata_size.
  88. src/HandshakeExtensionMessage.cc
  89. * src/HandshakeExtensionMessage.cc
  90. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  92. text saying DHT is recommended when Magnet URI is provided.
  93. * doc/aria2c.1.txt
  94. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  96. URI is supplied. Notify user that they should consider enabling
  97. DHT if they use Magnet URI.
  98. * src/RequestGroup.cc
  99. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Added --disable-ipv6 option to disable IPv6.
  101. * doc/aria2c.1.txt
  102. * src/InitiateConnectionCommand.cc
  103. * src/NameResolver.cc
  104. * src/NameResolver.h
  105. * src/OptionHandlerFactory.cc
  106. * src/main.cc
  107. * src/prefs.cc
  108. * src/prefs.h
  109. * src/usage_text.h
  110. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Updated usage text for --bt-prioritize-piece option.
  112. * doc/aria2c.1.txt
  113. * src/usage_text.h
  114. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. In configure script, if --with-PACKAGE and --enable-FEATURE are
  116. given and PACKAGE is missing in the system or FEATURE cannot be
  117. enabled, print error message and stop the script.
  118. * configure.ac
  119. * m4/aria2_arg.m4
  120. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Halt metadata download immediately when metadata download is done.
  122. Don't wait unresponsive tracker.
  123. * src/ByteArrayDiskWriter.h
  124. * src/DefaultBtInteractive.cc
  125. * src/DefaultExtensionMessageFactory.cc
  126. * src/DefaultExtensionMessageFactory.h
  127. * src/PeerInteractionCommand.cc
  128. * src/UTMetadataDataExtensionMessage.cc
  129. * src/UTMetadataDataExtensionMessage.h
  130. * src/UTMetadataRequestExtensionMessage.cc
  131. * test/UTMetadataDataExtensionMessageTest.cc
  132. * test/UTMetadataRequestExtensionMessageTest.cc
  133. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Documented --interface option in man page.
  135. * doc/aria2c.1.txt
  136. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Try resolved address in the order received from the resolver.
  138. * src/DNSCache.h
  139. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Added debug logs.
  141. * src/SocketCore.cc
  142. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Fixed type of tail to uint64_t
  144. * src/util.cc
  145. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Added --interface option. This feature binds sockets to given
  147. interface. You can specify interface name, IP address and
  148. hostname.
  149. * configure.ac
  150. * src/OptionHandlerFactory.cc
  151. * src/SocketCore.cc
  152. * src/SocketCore.h
  153. * src/main.cc
  154. * src/message.h
  155. * src/prefs.cc
  156. * src/prefs.h
  157. * src/usage_text.h
  158. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Updated man page for bt-prioritize-piece option in -i list.
  160. * doc/aria2c.1.txt
  161. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Added bt-prioritize-piece option to -i list.
  163. * src/download_helper.cc
  164. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Removed --http-auth-scheme option from man page.
  166. * doc/aria2c.1.txt
  167. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Removed --http-auth-scheme option since it doesn't do nothing.
  169. * src/OptionHandlerFactory.cc
  170. * src/prefs.cc
  171. * src/prefs.h
  172. * src/usage_text.h
  173. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Adjusted the number of peer info which get_peers reply message can
  175. carry.
  176. * src/DHTGetPeersReplyMessage.cc
  177. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Added extension_message_test_helper.h to aria2c_SOURCES.
  179. * test/Makefile.am
  180. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Documented --bt-prioritize-piece option in man page.
  182. * doc/aria2c.1.txt
  183. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Added option --bt-prioritize-piece. This option instruct aria2 to
  185. try to download first and last pieces of each file first. The
  186. argument can contain 2 keywords:head and tail. To include both
  187. keywords, they must be separated by comma. These keywords can take
  188. one parameter, SIZE. For example , if head=SIZE is specified,
  189. pieces in the range of first SIZE bytes of each file get higher
  190. priority. tail=SIZE means the range of last SIZE bytes of each
  191. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  192. * src/DefaultPieceStorage.h
  193. * src/Makefile.am
  194. * src/OptionHandlerFactory.cc
  195. * src/OptionHandlerImpl.h
  196. * src/PriorityPieceSelector.cc
  197. * src/PriorityPieceSelector.h
  198. * src/RequestGroup.cc
  199. * src/prefs.cc
  200. * src/prefs.h
  201. * src/usage_text.h
  202. * src/util.cc
  203. * src/util.h
  204. * test/Makefile.am
  205. * test/MockPieceSelector.h
  206. * test/PriorityPieceSelectorTest.cc
  207. * test/UtilTest.cc
  208. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Fixed typo
  210. * src/HttpRequest.h
  211. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. In Magnet URI with tr parameter, put each announce URI in separate
  213. tier.
  214. * src/bittorrent_helper.cc
  215. * test/BittorrentHelperTest.cc
  216. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Renamed ExtensionMessage::getBencodedData() as
  218. ExtensionMessage::getPayload()
  219. * src/BtExtendedMessage.cc
  220. * src/ExtensionMessage.h
  221. * src/HandshakeExtensionMessage.cc
  222. * src/HandshakeExtensionMessage.h
  223. * src/UTMetadataDataExtensionMessage.cc
  224. * src/UTMetadataDataExtensionMessage.h
  225. * src/UTMetadataRejectExtensionMessage.cc
  226. * src/UTMetadataRejectExtensionMessage.h
  227. * src/UTMetadataRequestExtensionMessage.cc
  228. * src/UTMetadataRequestExtensionMessage.h
  229. * src/UTPexExtensionMessage.cc
  230. * src/UTPexExtensionMessage.h
  231. * test/HandshakeExtensionMessageTest.cc
  232. * test/MockExtensionMessage.h
  233. * test/UTMetadataDataExtensionMessageTest.cc
  234. * test/UTMetadataRejectExtensionMessageTest.cc
  235. * test/UTMetadataRequestExtensionMessageTest.cc
  236. * test/UTPexExtensionMessageTest.cc
  237. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Updated man page for BitTorrent Magnet URI.
  239. * doc/aria2c.1.txt
  240. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Call DownloadContext::setOwnerRequestGroup() in
  242. RequestGroup::setDownloadContext().
  243. * src/BtDependency.cc
  244. * src/RequestGroup.cc
  245. * src/RequestGroup.h
  246. * src/download_helper.cc
  247. * test/DefaultBtMessageDispatcherTest.cc
  248. * test/DefaultExtensionMessageFactoryTest.cc
  249. * test/HandshakeExtensionMessageTest.cc
  250. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  252. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  253. from metadata, use new metadata2Torrent() function.
  254. * src/BtDependency.cc
  255. * src/UTMetadataPostDownloadHandler.cc
  256. * src/bittorrent_helper.cc
  257. * src/bittorrent_helper.h
  258. * test/BittorrentHelperTest.cc
  259. * test/BtDependencyTest.cc
  260. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Use createRequestGroupForUri to create the download for torrent
  262. file.
  263. * src/Metalink2RequestGroup.cc
  264. * test/Metalink2RequestGroupTest.cc
  265. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Fixed typo
  267. * src/DownloadContext.h
  268. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Use createRequestGroupForBitTorrent()
  270. * src/BtPostDownloadHandler.cc
  271. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Added remove().
  273. * src/Option.cc
  274. * src/Option.h
  275. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Removed options which is only valid for URIs specified in
  277. command-line. If they are left, because op is used as a template
  278. for new RequestGroup(such as created in XML-RPC command,
  279. BtPostDownloadHandler etc), they causes unintentional effect.
  280. * src/main.cc
  281. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Refer to option value of PREF_OUT only in download_helper.
  283. * src/FtpNegotiationCommand.cc
  284. * src/HttpResponseCommand.cc
  285. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  287. * src/download_helper.cc
  288. * src/download_helper.h
  289. * src/XmlRpcMethodImpl.cc
  290. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Updated man page for changeOption XML-RPC method.
  292. * doc/aria2c.1.txt
  293. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Added --bt-max-peers option to changeOption XML-RPC method.
  295. * src/XmlRpcMethod.cc
  296. * src/XmlRpcMethodImpl.cc
  297. * test/XmlRpcMethodTest.cc
  298. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  300. * test/XmlRpcMethodTest.cc
  301. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Removed redundant DownloadContext::hasAttribute(...) calls.
  303. * src/ConsoleStatCalc.cc
  304. * src/RequestGroup.cc
  305. * src/XmlRpcMethodImpl.cc
  306. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Changed the number of tracker request attempt from 5 to 2.
  308. * src/TrackerWatcherCommand.cc
  309. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Use host and protocol in original URI, because URI selector
  311. selects URI based on original URI, not redirected one.
  312. * src/Request.cc
  313. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Fixed the bug which causes segmentation fault with tellWaiting
  315. XML-RPC method when BitTorrent download is waiting. The key of
  316. BtRegistry is changed from info hash to GID, because it is
  317. registered per RequestGroup, not info hash.
  318. * src/BtRegistry.cc
  319. * src/BtRegistry.h
  320. * src/BtSetup.cc
  321. * src/ConsoleStatCalc.cc
  322. * src/InitiatorMSEHandshakeCommand.cc
  323. * src/PeerInitiateConnectionCommand.cc
  324. * src/PeerInteractionCommand.cc
  325. * src/PeerInteractionCommand.h
  326. * src/PeerReceiveHandshakeCommand.cc
  327. * src/RequestGroup.cc
  328. * src/XmlRpcMethodImpl.cc
  329. * test/BtRegistryTest.cc
  330. * test/XmlRpcMethodTest.cc
  331. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Updated man page for changeOption XML-RPC method.
  333. * doc/aria2c.1.txt
  334. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  336. method.
  337. * src/XmlRpcMethod.cc
  338. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Documented about BitTorrent Magnet URI in man page.
  340. * doc/aria2c.1.txt
  341. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Fixed the bug that trackers in BitTorrent Magnet URI are not
  343. inherited to generated RequestGroup.
  344. * src/UTMetadataPostDownloadHandler.cc
  345. * test/UTMetadataPostDownloadHandlerTest.cc
  346. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Prepended "[METADATA]" before dn.
  348. * src/bittorrent_helper.cc
  349. * test/BittorrentHelperTest.cc
  350. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Rewritten Magnet URI parser.
  352. * src/Makefile.am
  353. * src/ProtocolDetector.cc
  354. * src/bittorrent_helper.cc
  355. * src/bittorrent_helper.h
  356. * src/download_helper.cc
  357. * src/magnet.cc
  358. * src/magnet.h
  359. * test/BittorrentHelperTest.cc
  360. * test/MagnetTest.cc
  361. * test/Makefile.am
  362. * test/ProtocolDetectorTest.cc
  363. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Use hton64
  365. * src/base32.cc
  366. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added Base32 encoded BitTorrent Magnet Link support.
  368. * src/Makefile.am
  369. * src/base32.cc
  370. * src/base32.h
  371. * src/bittorrent_helper.cc
  372. * test/Base32Test.cc
  373. * test/BittorrentHelperTest.cc
  374. * test/Makefile.am
  375. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Added BitTorrent Magnet Link support. Base32 encoded link is not
  377. supported yet. Fixed typo in method name in RequestGroup. In
  378. metadataGetMode, don't show "Your share ratio was ..." message.
  379. * src/DefaultBtInteractive.cc
  380. * src/DefaultBtInteractive.h
  381. * src/DownloadHandlerFactory.cc
  382. * src/DownloadHandlerFactory.h
  383. * src/HandshakeExtensionMessage.cc
  384. * src/Makefile.am
  385. * src/Metalink2RequestGroup.cc
  386. * src/PeerInteractionCommand.cc
  387. * src/RequestGroup.cc
  388. * src/RequestGroup.h
  389. * src/UTMetadataPostDownloadHandler.cc
  390. * src/UTMetadataPostDownloadHandler.h
  391. * src/download_helper.cc
  392. * test/HandshakeExtensionMessageTest.cc
  393. * test/Makefile.am
  394. * test/UTMetadataPostDownloadHandlerTest.cc
  395. * test/UTMetadataRejectExtensionMessageTest.cc
  396. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. In metadataGetMode, don't show SEEDING.
  398. * src/ConsoleStatCalc.cc
  399. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Fixed ut_metadata data handling. Implemented
  401. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  402. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  403. metadata_size is received.
  404. * src/DefaultExtensionMessageFactory.cc
  405. * src/DefaultExtensionMessageFactory.h
  406. * src/HandshakeExtensionMessage.cc
  407. * src/HandshakeExtensionMessage.h
  408. * src/UTMetadataDataExtensionMessage.cc
  409. * src/UTMetadataDataExtensionMessage.h
  410. * src/UTMetadataRequestExtensionMessage.cc
  411. * src/UTMetadataRequestFactory.cc
  412. * src/UTMetadataRequestFactory.h
  413. * src/UTMetadataRequestTracker.cc
  414. * src/UTMetadataRequestTracker.h
  415. * test/DefaultExtensionMessageFactoryTest.cc
  416. * test/HandshakeExtensionMessageTest.cc
  417. * test/MockBtMessage.h
  418. * test/UTMetadataDataExtensionMessageTest.cc
  419. * test/UTMetadataRequestExtensionMessageTest.cc
  420. * test/UTMetadataRequestFactoryTest.cc
  421. * test/UTMetadataRequestTrackerTest.cc
  422. * test/extension_message_test_helper.h
  423. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Drop connection if ut_metadata reject message is received.
  425. * src/UTMetadataRejectExtensionMessage.cc
  426. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  428. get high enough in that mode.
  429. * src/ActivePeerConnectionCommand.cc
  430. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Added BitTorrent magnet link support to ProtocolDetector.
  432. * src/ProtocolDetector.cc
  433. * src/ProtocolDetector.h
  434. * test/ProtocolDetectorTest.cc
  435. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Don't inject validator into BtMessage in metadataGetMode because
  437. most of the checks depends on the total length of download but it
  438. is unknown. Delegate metadataGetMode to BtMessage.
  439. * src/DefaultBtMessageFactory.cc
  440. * src/DefaultBtMessageFactory.h
  441. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  443. * src/DefaultPieceStorage.h
  444. * src/PieceStorage.h
  445. * src/UnknownLengthPieceStorage.h
  446. * test/MockPieceStorage.h
  447. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Added markTotalLengthIsKnown().
  449. * src/DownloadContext.h
  450. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  452. missing. If metadata is missing, always use DHT when it is ready.
  453. * src/BtSetup.cc
  454. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Added parseMagnetLink(). Hex encoded info hash is supported.
  456. Base32 encoded info hash is not supported yet.
  457. * src/bittorrent_helper.cc
  458. * src/bittorrent_helper.h
  459. * test/BittorrentHelperTest.cc
  460. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Added FromHex()
  462. * src/util.cc
  463. * src/util.h
  464. * test/UtilTest.cc
  465. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Added _metadataGetMode member variable. It toggles the action when
  467. messages are received: usually they almost do nothing if
  468. _metadataGetMode is true.
  469. * src/AbstractBtMessage.cc
  470. * src/AbstractBtMessage.h
  471. * src/BtAllowedFastMessage.cc
  472. * src/BtBitfieldMessage.cc
  473. * src/BtCancelMessage.cc
  474. * src/BtChokeMessage.cc
  475. * src/BtHaveAllMessage.cc
  476. * src/BtHaveMessage.cc
  477. * src/BtInterestedMessage.cc
  478. * src/BtNotInterestedMessage.cc
  479. * src/BtPieceMessage.cc
  480. * src/BtRejectMessage.cc
  481. * src/BtRequestMessage.cc
  482. * src/BtUnchokeMessage.cc
  483. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Added bencode::decode overload functions. They have extra argument
  485. 'end', passed by reference. 'end' points to the beyond the last
  486. position of data used in decoding process.
  487. * src/bencode.cc
  488. * src/bencode.h
  489. * test/BencodeTest.cc
  490. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Initial support of Extension for Peers to Send Metadata
  492. Files(BEP9). Currently aria2 only serves metadata and cannot get
  493. metadata from swarm.
  494. * src/BtConstants.h
  495. * src/DefaultBtInteractive.cc
  496. * src/DefaultExtensionMessageFactory.cc
  497. * src/DefaultExtensionMessageFactory.h
  498. * src/ExtensionMessage.h
  499. * src/ExtensionMessageRegistry.h
  500. * src/HandshakeExtensionMessage.cc
  501. * src/HandshakeExtensionMessage.h
  502. * src/Makefile.am
  503. * src/PeerConnection.h
  504. * src/PeerInteractionCommand.cc
  505. * src/UTMetadataDataExtensionMessage.cc
  506. * src/UTMetadataDataExtensionMessage.h
  507. * src/UTMetadataExtensionMessage.cc
  508. * src/UTMetadataExtensionMessage.h
  509. * src/UTMetadataRejectExtensionMessage.cc
  510. * src/UTMetadataRejectExtensionMessage.h
  511. * src/UTMetadataRequestExtensionMessage.cc
  512. * src/UTMetadataRequestExtensionMessage.h
  513. * src/bittorrent_helper.cc
  514. * src/bittorrent_helper.h
  515. * test/BittorrentHelperTest.cc
  516. * test/DefaultExtensionMessageFactoryTest.cc
  517. * test/HandshakeExtensionMessageTest.cc
  518. * test/Makefile.am
  519. * test/UTMetadataDataExtensionMessageTest.cc
  520. * test/UTMetadataRejectExtensionMessageTest.cc
  521. * test/UTMetadataRequestExtensionMessageTest.cc
  522. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Cancel segment in prepareForRetry() because there is a chance that
  524. the command has segments.
  525. * src/CreateRequestCommand.cc
  526. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Fixed the bug that slow server is not knocked down in favor of
  528. faster one.
  529. * src/AbstractCommand.cc
  530. * src/DefaultPieceStorage.cc
  531. * src/DefaultPieceStorage.h
  532. * src/PieceStorage.h
  533. * src/UnknownLengthPieceStorage.cc
  534. * src/UnknownLengthPieceStorage.h
  535. * test/MockPieceStorage.h
  536. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Fixed the bug that Request object is not added to
  538. _inFlightRequests in findFasterRequest().
  539. * src/FileEntry.cc
  540. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Changed the strategry of how to increase the number of outstanding
  542. requests. Now the number is doubled if there are no outstanding
  543. requests after receiving messages.
  544. * src/BtConstants.h
  545. * src/DefaultBtInteractive.cc
  546. * src/DefaultBtInteractive.h
  547. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Check socket for reading if there are outstanding requests.
  549. * src/PeerInteractionCommand.cc
  550. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Moved frequently called methods to header file so they get
  552. inlined.
  553. * src/RequestSlot.cc
  554. * src/RequestSlot.h
  555. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Copied in_addr instead of just casting from char* which might
  557. violate strict aliasing rules.
  558. * src/AsyncNameResolver.cc
  559. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Use dynamic_pointer_cast
  561. * test/BtPieceMessageTest.cc
  562. * test/BtRequestMessageTest.cc
  563. * test/DefaultBtRequestFactoryTest.cc
  564. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Added testSetUrl20()
  566. * test/RequestTest.cc
  567. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Code cleanup
  569. * src/bittorrent_helper.cc
  570. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Use C++ style cast
  572. * src/AsyncNameResolver.cc
  573. * src/Base64.h
  574. * src/BtBitfieldMessage.cc
  575. * src/BtHandshakeMessage.cc
  576. * src/DefaultBtMessageFactory.cc
  577. * src/DefaultBtProgressInfoFile.cc
  578. * src/EpollEventPoll.cc
  579. * src/ExpatMetalinkProcessor.cc
  580. * src/IteratableChecksumValidator.cc
  581. * src/IteratableChunkChecksumValidator.cc
  582. * src/MessageDigestHelper.cc
  583. * src/Platform.cc
  584. * src/RequestGroupMan.cc
  585. * src/SingleFileAllocationIterator.cc
  586. * src/Sqlite3MozCookieParser.cc
  587. * src/XML2SAXMetalinkProcessor.cc
  588. * src/Xml2XmlRpcRequestProcessor.cc
  589. * src/util.cc
  590. * src/util.h
  591. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Fixed integer potential alignment problem.
  593. * src/bitfield.h
  594. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Applied a patch from tizianomueller to fix sigbus errors on Linux
  596. sparc. I modified the patch to eliminate a cast to uint32_t* and
  597. include file ordering.
  598. * src/PeerListProcessor.h
  599. * src/bittorrent_helper.cc
  600. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  602. * src/Request.cc
  603. * src/util.cc
  604. * src/util.h
  605. * test/RequestTest.cc
  606. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Rewritten util::uitos()
  608. * src/util.h
  609. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Code cleanup
  611. * src/Request.cc
  612. * src/Request.h
  613. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Rewritten Request::parseUrl()
  615. * src/Request.cc
  616. * test/RequestTest.cc
  617. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Removed unused macro SAFE_CHARS
  619. * src/Request.cc
  620. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Updated doc
  622. * src/DHTRoutingTableDeserializer.cc
  623. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Release 1.6.3
  625. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Removed unused function.
  627. * test/DHTPeerAnnounceStorageTest.cc
  628. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Only decrement cols if cols > 0
  630. * src/ConsoleStatCalc.cc
  631. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Updated Polish, Catalan, French, Italian, Russian and Japanese
  633. translations. Thanks to all translators.
  634. * po/ca.po
  635. * po/fr.po
  636. * po/it.po
  637. * po/ja.po
  638. * po/pl.po
  639. * po/ru.po
  640. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Updated translation template
  642. * po
  643. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Fixed compile error without ssl library.
  645. * src/util.cc
  646. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Logged received nodes in get_peers reply message.
  648. * src/DHTAbstractNodeLookupTask.cc
  649. * src/DHTAbstractNodeLookupTask.h
  650. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  652. error occurred in DHTMessageDispatcherImpl::sendMessage().
  653. * src/DHTMessageDispatcherImpl.cc
  654. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Don't reuse URI if Request pool is not empty.
  656. * src/CreateRequestCommand.cc
  657. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  659. receive get_peers request for torrent which the client is now
  660. downloading.
  661. * src/BtSetup.cc
  662. * src/DHTPeerAnnounceEntry.cc
  663. * src/DHTPeerAnnounceEntry.h
  664. * src/DHTPeerAnnounceStorage.cc
  665. * src/DHTPeerAnnounceStorage.h
  666. * src/RequestGroup.cc
  667. * test/DHTPeerAnnounceEntryTest.cc
  668. * test/DHTPeerAnnounceStorageTest.cc
  669. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Fixed the bug that in Windows environment new blank line is
  671. inserted when console readout is updated.
  672. * src/ConsoleStatCalc.cc
  673. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Throw exception if binding listening port is failed. Removed
  675. RequestGroupMan::getInitialCommand(). Use
  676. fillRequestGroupFromReserver() instead. Delete commands for
  677. RequestGroup which has errors when it is being added.
  678. * src/BtSetup.cc
  679. * src/DownloadEngine.cc
  680. * src/DownloadEngine.h
  681. * src/DownloadEngineFactory.cc
  682. * src/MultiUrlRequestInfo.cc
  683. * src/RequestGroupMan.cc
  684. * src/RequestGroupMan.h
  685. * test/RequestGroupManTest.cc
  686. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Fixed the bug that when downloading more than one torrent,
  688. listening port is not reported properly to tracker for 2nd or
  689. later torrents.
  690. * src/BtSetup.cc
  691. * src/PeerListenCommand.cc
  692. * src/PeerListenCommand.h
  693. * src/RequestGroup.cc
  694. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Bump up version number to 1.6.3
  696. * configure.ac
  697. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Removed Util.cc from POTFILES.in
  699. * po/POTFILES.in
  700. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Updated man page for previous change.
  702. * doc/aria2c.1.txt
  703. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. If user name is embedded but password is missing in URI, first
  705. resolve password using .netrc. If password is found in .netrc,
  706. then use it as password. If not, use the password specified in
  707. --ftp-passwd.
  708. * src/AuthConfigFactory.cc
  709. * src/Request.cc
  710. * src/Request.h
  711. * test/AuthConfigFactoryTest.cc
  712. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Fixed typo
  714. * doc/aria2c.1.txt
  715. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Fixed typo
  717. * src/usage_text.h
  718. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added missing bitfield.cc
  720. * src/bitfield.cc
  721. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Renamed Util.{cc,h} as util.{cc,h}
  723. * src/Util.cc
  724. * src/Util.h
  725. * src/util.cc
  726. * src/util.h
  727. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Moved static functions in Util class to namespace util.
  729. * src
  730. * test
  731. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  733. Moved generateRandomKey to bittorrent_helper.cc.
  734. * src/DHTBucket.cc
  735. * src/DHTGetPeersMessage.cc
  736. * src/DHTGetPeersReplyMessage.cc
  737. * src/DHTMessage.cc
  738. * src/DHTNode.cc
  739. * src/DHTTokenTracker.cc
  740. * src/DHTUtil.cc: Removed.
  741. * src/DHTUtil.h: Removed.
  742. * src/Makefile.am
  743. * src/Util.cc
  744. * src/Util.h
  745. * src/bitfield.h
  746. * src/bittorrent_helper.cc
  747. * src/bittorrent_helper.h
  748. * test/ARC4Test.cc
  749. * test/BNodeTest.cc
  750. * test/DHTAnnouncePeerMessageTest.cc
  751. * test/DHTAnnouncePeerReplyMessageTest.cc
  752. * test/DHTFindNodeMessageTest.cc
  753. * test/DHTFindNodeReplyMessageTest.cc
  754. * test/DHTGetPeersMessageTest.cc
  755. * test/DHTGetPeersReplyMessageTest.cc
  756. * test/DHTPingMessageTest.cc
  757. * test/DHTPingReplyMessageTest.cc
  758. * test/DHTTokenTrackerTest.cc
  759. * test/DHTUtilTest.cc: Removed.
  760. * test/Makefile.am
  761. * test/UtilTest.cc
  762. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Removed the call to trim() because trim() is called for each
  764. element in split().
  765. * src/CookieParser.cc
  766. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Replaced Util::slice() with split()
  768. * src/AbstractCommand.cc
  769. * src/CookieParser.cc
  770. * src/File.cc
  771. * src/HttpHeaderProcessor.cc
  772. * src/HttpRequest.cc
  773. * src/Metalink2RequestGroup.cc
  774. * src/MetalinkParserController.cc
  775. * src/Netrc.cc
  776. * src/NsCookieParser.cc
  777. * src/ParameterizedStringParser.cc
  778. * src/ServerStatMan.cc
  779. * src/UriListParser.cc
  780. * src/Util.cc
  781. * src/Util.h
  782. * src/bittorrent_helper.cc
  783. * test/UtilTest.cc
  784. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Use request->getDir() instead of "/" for embedded user/pass in
  786. URI.
  787. * src/AuthConfigFactory.cc
  788. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Fixed wrong insertion point for BasicCred.
  790. * src/AuthConfigFactory.cc
  791. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Allowed non-regular file in LocalFilePathOptionHandler
  793. * src/OptionHandlerImpl.h
  794. * src/message.h
  795. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed the bug that Netrc::parse() cannot recognize comment line.
  797. * src/Netrc.cc
  798. * src/Util.h
  799. * test/NetrcTest.cc
  800. * test/sample.netrc
  801. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Fixed typo
  803. * src/BtDependency.cc
  804. * src/BtRejectMessage.cc
  805. * src/FtpConnection.cc
  806. * src/HttpHeaderProcessor.h
  807. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Fixed lintian report in man page
  809. * doc/aria2c.1.txt
  810. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Release 1.6.2
  812. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Updated Ukrainian translation. Thanks to all translators.
  814. * po/uk.po
  815. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Updated translation template
  817. * po
  818. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Bump up version number to 1.6.2
  820. * configure.ac
  821. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Updated licence message in -v output.
  823. * src/version_usage.cc
  824. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Replaced aria2 with aria2c in help message.
  826. * src/version_usage.cc
  827. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  829. * src/version_usage.cc
  830. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Quoted localedir
  832. * src/Makefile.am
  833. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  835. utime. Check header for utime.h.
  836. * configure.ac
  837. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  839. * configure.ac
  840. * src/daemon.cc
  841. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Don't set localedir manually. Leave it to autoconf.
  843. * configure.ac
  844. * src/Makefile.am
  845. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added --install to ACLOCAL_AMFLAGS.
  847. Removed m4 from SUBDIRS.
  848. Updated automake 1.11 and autoconf 2.64.
  849. Replaced some obsolute macros with new one.
  850. * Makefile.am
  851. * configure.ac
  852. * m4/aria2_arg.m4
  853. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Removed Makefile.am in m4 directory.
  855. * configure.ac
  856. * m4/ChangeLog
  857. * m4/Makefile.am
  858. * m4/Makefile.in
  859. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Removed unused m4 macros.
  861. * m4/intldir.m4
  862. * m4/inttypes.m4
  863. * m4/isc-posix.m4
  864. * m4/libgnutls-extra.m4
  865. * m4/ulonglong.m4
  866. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Fixed the bug that causes segmentation fault if
  868. req->getCurrentUrl() contains printf formatting characters such as
  869. %d. The statement that causes this bug is useless and removed.
  870. * src/AbstractCommand.cc
  871. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. * Release 1.6.1
  873. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Updated Simplified Chinese translation. Thanks to translators.
  875. * po/zh_CN.po
  876. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Updated translation template
  878. * po
  879. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Bump up version number to 1.6.1
  881. * configure.ac
  882. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Changed interval from 120 to 60 for dropping inactive peer.
  884. * src/DefaultBtInteractive.cc
  885. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Updated man page for --user-agent and --peer-id-prefix option.
  887. * doc/aria2c.1.txt
  888. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Code clean up
  890. * src/BtPostDownloadHandler.cc
  891. * src/ContentTypeRequestGroupCriteria.cc
  892. * src/ContentTypeRequestGroupCriteria.h
  893. * src/DownloadHandlerConstants.cc
  894. * src/DownloadHandlerConstants.h
  895. * src/DownloadHandlerFactory.cc
  896. * src/MetalinkPostDownloadHandler.cc
  897. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Don't save control file when aria2 exists while checking piece
  899. hash(behavior of -V option). If control file doesn't exist when
  900. aria2 launched, the completed length in saved control file will be
  901. 0 byte and this confuses user. disableSaveControlFile() is called
  902. in RequestGroup::processCheckIntegrityEntry().
  903. enableSaveControlFile() will be called after hash checking is
  904. done. See CheckIntegrityCommand.
  905. * src/CheckIntegrityCommand.cc
  906. * src/RequestGroup.cc
  907. * src/RequestGroup.h
  908. * src/RequestGroupMan.cc
  909. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Included version number in Peer ID and client version. Peer ID
  911. now starts with "aria2/VERSION-", where VERSION is
  912. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  913. * src/DefaultBtInteractive.cc
  914. * src/OptionHandlerFactory.cc
  915. * src/bittorrent_helper.cc
  916. * src/bittorrent_helper.h
  917. * src/main.cc
  918. * src/usage_text.h
  919. * test/BittorrentHelperTest.cc
  920. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Fixed memory leak.
  922. * src/DownloadCommand.cc
  923. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Removed server, port, user and passwd key from options before
  925. XMLRPC::Client.call since they are not options of aria2.
  926. * doc/xmlrpc/aria2mon
  927. * doc/xmlrpc/aria2rpc
  928. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Included version number in user-agent string.
  930. * src/OptionHandlerFactory.cc
  931. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Fixed the bug that the option values changed by XML-RPC
  933. method(changeOption and changeGlobalOption) are overwritten to the
  934. previous value by the next these request which doesn't contain
  935. that option value. Supporse max-download-limit is initially 0. You
  936. changed this value to 100K by changeOption. Then you issue
  937. changeOption request to change max-upload-limit to 50K. This
  938. second request doesn't contain xml-download-limit, so it is back
  939. to initial value, 0. Another improvement is that exception is
  940. thrown when changeOption and changeGlobalOption request contains
  941. option name which doesn't allowed in each request.
  942. * src/DownloadEngine.h
  943. * src/XmlRpcMethod.cc
  944. * src/XmlRpcMethod.h
  945. * src/XmlRpcMethodImpl.cc
  946. * src/download_helper.cc
  947. * src/download_helper.h
  948. * test/XmlRpcMethodTest.cc
  949. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Added missing MetalinkParserStateImpl.{cc,h}
  951. * src/MetalinkParserStateImpl.cc
  952. * src/MetalinkParserStateImpl.h
  953. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Put all MetalinkParserState subclasses into
  955. MetalinkParserStateImpl.cc. Use stack to track element structure.
  956. * src/FileMetalinkParserState.cc: Removed
  957. * src/FileMetalinkParserState.h: Removed
  958. * src/FilesMetalinkParserState.cc: Removed
  959. * src/FilesMetalinkParserState.h: Removed
  960. * src/FinMetalinkParserState.cc: Removed
  961. * src/FinMetalinkParserState.h: Removed
  962. * src/HashMetalinkParserState.cc: Removed
  963. * src/HashMetalinkParserState.h: Removed
  964. * src/InitialMetalinkParserState.cc: Removed
  965. * src/InitialMetalinkParserState.h: Removed
  966. * src/LanguageMetalinkParserState.cc: Removed
  967. * src/LanguageMetalinkParserState.h: Removed
  968. * src/Makefile.am
  969. * src/MetalinkMetalinkParserState.cc: Removed
  970. * src/MetalinkMetalinkParserState.h: Removed
  971. * src/MetalinkParserState.h
  972. * src/MetalinkParserStateMachine.cc
  973. * src/MetalinkParserStateMachine.h
  974. * src/OSMetalinkParserState.cc: Removed
  975. * src/OSMetalinkParserState.h: Removed
  976. * src/PieceHashMetalinkParserState.cc: Removed
  977. * src/PieceHashMetalinkParserState.h: Removed
  978. * src/PiecesMetalinkParserState.cc: Removed
  979. * src/PiecesMetalinkParserState.h: Removed
  980. * src/ResourcesMetalinkParserState.cc: Removed
  981. * src/ResourcesMetalinkParserState.h: Removed
  982. * src/SignatureMetalinkParserState.cc: Removed
  983. * src/SignatureMetalinkParserState.h: Removed
  984. * src/SizeMetalinkParserState.cc: Removed
  985. * src/SizeMetalinkParserState.h: Removed
  986. * src/SkipTagMetalinkParserState.cc: Removed
  987. * src/SkipTagMetalinkParserState.h: Removed
  988. * src/URLMetalinkParserState.cc: Removed
  989. * src/URLMetalinkParserState.h: Removed
  990. * src/VerificationMetalinkParserState.cc: Removed
  991. * src/VerificationMetalinkParserState.h: Removed
  992. * src/VersionMetalinkParserState.cc: Removed
  993. * src/VersionMetalinkParserState.h: Removed
  994. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Move all functions in PeerMessageUtil to bittorrent_helper.
  996. * src/BtBitfieldMessage.cc
  997. * src/BtBitfieldMessageValidator.h
  998. * src/BtExtendedMessage.cc
  999. * src/BtHandshakeMessage.cc
  1000. * src/BtHandshakeMessageValidator.h
  1001. * src/BtPieceMessage.cc
  1002. * src/BtPieceMessageValidator.h
  1003. * src/BtPortMessage.cc
  1004. * src/DHTFindNodeReplyMessage.cc
  1005. * src/DHTGetPeersReplyMessage.cc
  1006. * src/DHTMessageFactoryImpl.cc
  1007. * src/DHTRoutingTableDeserializer.cc
  1008. * src/DHTRoutingTableSerializer.cc
  1009. * src/DHTTokenTracker.cc
  1010. * src/DefaultBtMessageFactory.cc
  1011. * src/IndexBtMessage.cc
  1012. * src/IndexBtMessage.h
  1013. * src/IndexBtMessageValidator.h
  1014. * src/Makefile.am
  1015. * src/PeerMessageUtil.cc: Removed.
  1016. * src/PeerMessageUtil.h: Removed.
  1017. * src/RangeBtMessage.cc
  1018. * src/RangeBtMessage.h
  1019. * src/RangeBtMessageValidator.h
  1020. * src/UTPexExtensionMessage.cc
  1021. * src/ZeroBtMessage.cc
  1022. * src/ZeroBtMessage.h
  1023. * src/bittorrent_helper.cc
  1024. * src/bittorrent_helper.h
  1025. * test/BittorrentHelperTest.cc
  1026. * test/BtAllowedFastMessageTest.cc
  1027. * test/BtBitfieldMessageTest.cc
  1028. * test/BtCancelMessageTest.cc
  1029. * test/BtChokeMessageTest.cc
  1030. * test/BtExtendedMessageTest.cc
  1031. * test/BtHandshakeMessageTest.cc
  1032. * test/BtHaveAllMessageTest.cc
  1033. * test/BtHaveMessageTest.cc
  1034. * test/BtHaveNoneMessageTest.cc
  1035. * test/BtInterestedMessageTest.cc
  1036. * test/BtNotInterestedMessageTest.cc
  1037. * test/BtPieceMessageTest.cc
  1038. * test/BtPortMessageTest.cc
  1039. * test/BtRejectMessageTest.cc
  1040. * test/BtRequestMessageTest.cc
  1041. * test/BtSuggestPieceMessageTest.cc
  1042. * test/BtUnchokeMessageTest.cc
  1043. * test/DHTFindNodeReplyMessageTest.cc
  1044. * test/DHTGetPeersReplyMessageTest.cc
  1045. * test/DHTMessageFactoryImplTest.cc
  1046. * test/DHTRoutingTableDeserializerTest.cc
  1047. * test/DHTRoutingTableSerializerTest.cc
  1048. * test/DefaultBtMessageFactoryTest.cc
  1049. * test/DefaultExtensionMessageFactoryTest.cc
  1050. * test/Makefile.am
  1051. * test/PeerListProcessorTest.cc
  1052. * test/PeerMessageUtilTest.cc: Removed.
  1053. * test/UTPexExtensionMessageTest.cc
  1054. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Limit the size of values list when sending get_peers reply.
  1056. * src/DHTGetPeersReplyMessage.cc
  1057. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Updated banner
  1059. * doc/xmlrpc/aria2rpc
  1060. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Added missing help message for remove command.
  1062. * doc/xmlrpc/aria2rpc
  1063. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Generated configure and config.h.in
  1065. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1066. Add check for fork(), which is missing on MinGW
  1067. * src/daemon.cc
  1068. * configure.ac
  1069. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1071. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1072. Util::httpGMT().
  1073. * src/Util.cc
  1074. * src/Util.h
  1075. * test/UtilTest.cc
  1076. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. * Release 1.6.0
  1078. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Fixed a path to xmlrpc/README.txt
  1080. * doc/Makefile.am
  1081. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added XML-RPC in -v Configuration output.
  1083. * src/FeatureConfig.cc
  1084. * src/FeatureConfig.h
  1085. * test/FeatureConfigTest.cc
  1086. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Updated Bulgarian, Russian, Slovak and Japanese
  1088. translations. Thanks to all translators.
  1089. * po/bg.po
  1090. * po/ja.po
  1091. * po/ru.po
  1092. * po/sk.po
  1093. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Removed --retry-wait option from aria2rpc
  1095. * doc/xmlrpc/aria2rpc
  1096. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Removed --retry-wait option from man page.
  1098. * doc/aria2c.1.txt
  1099. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Removed --retry-wait option since the current architecture doesn't
  1101. allow sleep for particular URI.
  1102. * src/AbstractCommand.cc
  1103. * src/OptionHandlerFactory.cc
  1104. * src/download_helper.cc
  1105. * src/prefs.cc
  1106. * src/prefs.h
  1107. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Removed Retry-After header support. Since the current architecture
  1109. doesn't allow sleep for particular URI.
  1110. * src/HttpSkipResponseCommand.cc
  1111. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Updated the help message for --daemon option.
  1113. * doc/aria2c.1.txt
  1114. * src/usage_text.h
  1115. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Added our own daemon() function for systems which desn't have
  1117. daemon(3).
  1118. * configure.ac
  1119. * src/Makefile.am
  1120. * src/daemon.cc
  1121. * src/daemon.h
  1122. * src/option_processing.cc
  1123. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Simplified File::getCurrentDir()
  1125. * src/File.cc
  1126. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Use exit() instead of _exit
  1128. * src/RequestGroupMan.cc
  1129. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Replaced "CATEGORY" with "TAGS".
  1131. * src/usage_text.h
  1132. * doc/aria2c.1.txt
  1133. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Updated the help message for --help option.
  1135. * src/usage_text.h
  1136. * doc/aria2c.1.txt
  1137. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Updated man page for added help tags.
  1139. * doc/aria2c.1.txt
  1140. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Added help category #file. Added #file tag to the options related
  1142. to downloaded file.
  1143. * src/OptionHandlerFactory.cc
  1144. * src/help_tags.h
  1145. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Added help categories: #cookie and #hook. Added #https tag to
  1147. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1148. * src/OptionHandlerFactory.cc
  1149. * src/help_tags.h
  1150. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Made MSG_NOT_FILE translatable.
  1152. * src/message.h
  1153. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Updated man page for --help option.
  1155. * doc/aria2c.1.txt
  1156. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Updated doc.
  1158. * src/XmlRpcMethod.h
  1159. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Help category now starts with "#" to distinguish a category from
  1161. keyword search. For example, "http" categroy is now "#http". You
  1162. can type "--help=#http" to get explanation of options related to
  1163. http. If '#' is omitted, then the argument is treated as a keyword
  1164. and aria2 searches options whose name includes the keyword and
  1165. print matched ones. For example, "--help=http" will show options
  1166. whose name includes "http".
  1167. * src/OptionHandlerFactory.cc
  1168. * src/help_tags.h
  1169. * src/usage_text.h
  1170. * src/version_usage.cc
  1171. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Documented missing experimental tag and newly added xml-rpc tag in
  1173. man page.
  1174. * doc/aria2c.1.txt
  1175. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Added xml-rpc help tag. Tagged xml-rpc related options with
  1177. xml-rpc tag.
  1178. * src/OptionHandlerFactory.cc
  1179. * src/help_tags.h
  1180. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Updated message when a path is not a file. Updated common message
  1182. for wrong option.
  1183. * src/OptionHandlerException.cc
  1184. * src/message.h
  1185. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Use File::isFile() instead of File::exists(). Updated message when
  1187. a path is not a file.
  1188. * src/OptionHandlerImpl.cc
  1189. * src/message.h
  1190. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Fixed the bug that server performence profile is not updated when
  1192. aria2c was terminated by emergency shutdown.
  1193. * src/TrackerWatcherCommand.cc
  1194. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Use LocalFilePathOptionHandler for -T and -M option.
  1196. Updated message of MSG_FILE_NOT_EXIST.
  1197. * src/OptionHandlerFactory.cc
  1198. * src/message.h
  1199. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added LocalFilePathOptionHandler which check whether the specified
  1201. file path does exist or not.
  1202. * src/OptionHandlerImpl.cc
  1203. * src/message.h
  1204. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Updated wiki page URI.
  1206. * README
  1207. * doc/aria2c.1.txt
  1208. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Added README.txt for xmlrpc directory.
  1210. * doc/Makefile.am
  1211. * doc/xmlrpc/README.txt
  1212. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Bump up version number to 1.6.0.
  1214. * configure.ac
  1215. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Added XML-RPC client scripts written in ruby.
  1217. * doc/Makefile.am
  1218. * doc/xmlrpc/aria2mon
  1219. * doc/xmlrpc/aria2rpc
  1220. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Added support for IPv6 literal address in URI. Now aria2 can
  1222. handle URI such as http://[::1]/
  1223. * src/HttpRequest.cc
  1224. * src/HttpRequest.h
  1225. * src/Request.cc
  1226. * src/Request.h
  1227. * test/HttpRequestTest.cc
  1228. * test/OptionHandlerTest.cc
  1229. * test/RequestTest.cc
  1230. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Fixed the bug that HTTP request header for XML-RPC request is not
  1232. parsed properly.
  1233. * src/HttpHeader.cc
  1234. * src/HttpHeaderProcessor.cc
  1235. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Fixed the bug that XML-RPC authorization might be done before HTTP
  1237. request header is fully received.
  1238. * src/HttpServerCommand.cc
  1239. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Documented --xml-rpc-listen-all option in man page.
  1241. * doc/aria2c.1.txt
  1242. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added --xml-rpc-listen-all option. If true is given to this
  1244. option, aria2 listens incoming XML-RPC requests on all network
  1245. interfaces. If false is given, listens only on local loopback
  1246. interface. The default value is false.
  1247. * src/HttpListenCommand.cc
  1248. * src/OptionHandlerFactory.cc
  1249. * src/SocketCore.cc
  1250. * src/SocketCore.h
  1251. * src/prefs.cc
  1252. * src/prefs.h
  1253. * src/usage_text.h
  1254. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. * Release 1.5.2
  1256. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1257. Updated Ukrainian and Russian translations. Thanks to all
  1258. translators.
  1259. * po/ru.po
  1260. * po/uk.po
  1261. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Bump up version number to 1.5.2
  1263. * configure.ac
  1264. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Get comment, comment.utf-8, created by and creation date from
  1266. .torrent file and print them in -S output.
  1267. * src/bittorrent_helper.cc
  1268. * src/bittorrent_helper.h
  1269. * test/BittorrentHelperTest.cc
  1270. * test/test.torrent
  1271. * test/utf8.torrent
  1272. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Show exact file size along in -S option output.
  1274. * src/Util.h
  1275. * src/bittorrent_helper.cc
  1276. * test/UtilTest.cc
  1277. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Avoided unnecessary memory allocation in
  1279. BitfieldMan::getCompletedLength().
  1280. * src/BitfieldMan.cc
  1281. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Fixed the bug that download fails if
  1283. SocketCore::establishConnection() throws exception and aria2
  1284. doesn't try another address.
  1285. * src/AbstractCommand.cc
  1286. * src/InitiateConnectionCommand.cc
  1287. * src/message.h
  1288. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1290. detected properly.
  1291. * m4/sqlite3.m4
  1292. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1294. because it causes compile error if PARAMS macro is defined.
  1295. * src/XmlRpcElements.cc
  1296. * src/XmlRpcElements.h
  1297. * src/XmlRpcRequestParserStateImpl.cc
  1298. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. * Release 1.5.1
  1300. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Bump up version number to 1.5.1
  1302. * configure.ac
  1303. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Fixed compile error without BitTorrent support
  1305. * src/DefaultBtProgressInfoFile.cc
  1306. * src/DownloadEngine.cc
  1307. * src/DownloadEngine.h
  1308. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added missing '=' in Download Results
  1310. * src/RequestGroupMan.cc
  1311. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Fixed compiler warning
  1313. * src/DefaultBtProgressInfoFile.cc
  1314. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Fixed compiler warning on 32bit systems.
  1316. * src/DownloadCommand.cc
  1317. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Call flush from ServerStatMan::save()
  1319. * src/ServerStatMan.cc
  1320. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Check stream status after file is opened.
  1322. * src/CookieStorage.cc
  1323. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Rewritten Signature::save()
  1325. * src/Signature.cc
  1326. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Rewritten RequestGroupMan::saveServerStat()
  1328. * src/RequestGroupMan.cc
  1329. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Rewritten stream error handling
  1331. * src/DHTAutoSaveCommand.cc
  1332. * src/DHTRoutingTableDeserializer.cc
  1333. * src/DHTRoutingTableSerializer.cc
  1334. * src/DHTSetup.cc
  1335. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Check stream status after file is opened.
  1337. * src/DefaultBtProgressInfoFile.cc
  1338. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Rewritten stream error handling
  1340. * src/DefaultBtProgressInfoFile.cc
  1341. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Make sure that stream is closed before renaming file. Unit test
  1343. fails on mingw32 in the previous implementation.
  1344. * src/CookieStorage.cc
  1345. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Fixed the unit test error without sqlite3
  1347. * test/CookieStorageTest.cc
  1348. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Fixed the undefined reference error
  1350. * test/HttpResponseTest.cc
  1351. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. * Release 1.5.0
  1353. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1355. Ukrainian translations. Thanks to all translators.
  1356. * po/ru.po
  1357. * po/it.po
  1358. * po/da.po
  1359. * po/bg.po
  1360. * po/ja.po
  1361. * po/uk.po
  1362. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Added missing src/Logger.cc
  1364. * src/Logger.cc
  1365. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Rewritten Logger to avoiding constly virtual call.
  1367. * src/LogFactory.cc
  1368. * src/LogFactory.h
  1369. * src/Logger.h
  1370. * src/Makefile.am
  1371. * src/Makefile.in
  1372. * src/NullLogger.h: Removed.
  1373. * src/SimpleLogger.cc
  1374. * src/SimpleLogger.h
  1375. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Updated doc
  1377. * src/main.cc
  1378. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Updated debug log message
  1380. * src/AbstractCommand.cc
  1381. * src/message.h
  1382. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Avoid to create zombie process when commands specified in
  1384. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1385. X and NetBSD.
  1386. * src/main.cc
  1387. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Fixed typo
  1389. * src/usage_text.h
  1390. * doc/aria2c.1.txt
  1391. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Documented 'errorCode' of tellStatus in man page.
  1393. * doc/aria2c.1.txt
  1394. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1396. This key is only available for stopped/completed downloads and its
  1397. value is the error code defined in EXIT STATUS in man page.
  1398. * src/XmlRpcMethodImpl.cc
  1399. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Fixed the bug that session download length is not updated when
  1401. PeerStat is not fastest one.
  1402. * src/SegmentMan.cc
  1403. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Updated doc.
  1405. * doc/aria2c.1.txt
  1406. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Updated doc.
  1408. * src/AbstractCommand.cc
  1409. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Handle the case when DownloadContext has no FileEntry.
  1411. * src/XmlRpcMethodImpl.cc
  1412. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Handle the situation where struct option.name is char *.
  1414. * configure.ac
  1415. * src/OptionParser.cc
  1416. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Code cleanup
  1418. * src/AbstractCommand.cc
  1419. * src/DownloadCommand.cc
  1420. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Use option of each download to create AuthConfig instead of global
  1422. option.
  1423. * src/AuthConfigFactory.cc
  1424. * src/AuthConfigFactory.h
  1425. * src/FtpNegotiationCommand.cc
  1426. * src/HttpRequest.cc
  1427. * src/HttpRequest.h
  1428. * src/HttpRequestCommand.cc
  1429. * src/HttpSkipResponseCommand.cc
  1430. * src/MultiUrlRequestInfo.cc
  1431. * test/AuthConfigFactoryTest.cc
  1432. * test/FtpConnectionTest.cc
  1433. * test/HttpRequestTest.cc
  1434. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Don't call prepareForRetry(1) if all segments are ignored in
  1436. SegmentMan.
  1437. * src/AbstractCommand.cc
  1438. * src/BitfieldMan.cc
  1439. * src/BitfieldMan.h
  1440. * src/SegmentMan.cc
  1441. * src/SegmentMan.h
  1442. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Removed FileEntry::getAssociatedUris()
  1444. * src/FileEntry.h
  1445. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Updated doc: TODO1.5 -> TODO
  1447. * src/FileEntry.cc
  1448. * src/HttpResponseCommand.cc
  1449. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1451. involved.
  1452. * src/RequestGroup.cc
  1453. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Eliminated duplicated filterBitfield initialization code.
  1455. * src/BitfieldMan.cc
  1456. * src/BitfieldMan.h
  1457. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1459. relatively naive approach, though). For DownloadFailureException,
  1460. we handle the case when req is null properly.
  1461. * src/AbstractCommand.cc
  1462. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Added function returning suffix of control file to
  1464. DefaultBtProgressInfoFile.
  1465. * src/DefaultBtProgressInfoFile.cc
  1466. * src/DefaultBtProgressInfoFile.h
  1467. * src/RequestGroup.cc
  1468. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Documented getVersion in man page.
  1470. * doc/aria2c.1.txt
  1471. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Documented type of offset and num for tellWaiting xml-rpc method.
  1473. * doc/aria2c.1.txt
  1474. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Implemented getVersion xml-rpc method. This method returns struct
  1476. which has 2 key-value pairs: "version" key is associated to the
  1477. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1478. associated to the list of enabled features, such as "Async DNS",
  1479. "BitTorrent".
  1480. * src/FeatureConfig.h
  1481. * src/XmlRpcMethodFactory.cc
  1482. * src/XmlRpcMethodImpl.cc
  1483. * src/XmlRpcMethodImpl.h
  1484. * test/XmlRpcMethodTest.cc
  1485. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1487. for compatibility issue.
  1488. * src/SocketCore.cc
  1489. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Fixed compile error with openSSL
  1491. * src/bittorrent_helper.cc
  1492. * src/messageDigest.h
  1493. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Removed bad code: setting certificate type priority to key
  1495. exchange priority.
  1496. * src/SocketCore.cc
  1497. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Disconnect seeder if client is also in seed state.
  1499. * src/BtBitfieldMessage.cc
  1500. * src/BtHaveAllMessage.cc
  1501. * src/BtHaveMessage.cc
  1502. * src/message.h
  1503. * test/BtBitfieldMessageTest.cc
  1504. * test/BtHaveAllMessageTest.cc
  1505. * test/BtHaveMessageTest.cc
  1506. * test/MockPieceStorage.h
  1507. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Keep CreateRequestCommand in queue when no segment is available so
  1509. that they can pick up pieces which slow BitTorrent peers are
  1510. downloading.
  1511. * src/AbstractCommand.cc
  1512. * src/CreateRequestCommand.cc
  1513. * src/CreateRequestCommand.h
  1514. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. --bt-stop-timeout now only checks download speed.
  1516. * src/BtStopDownloadCommand.cc
  1517. * src/BtStopDownloadCommand.h
  1518. * src/BtSetup.cc
  1519. * src/usage_text.h
  1520. * doc/aria2c.1.txt
  1521. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Fixed compile error regarding BUFSIZE.
  1523. * src/DownloadCommand.cc
  1524. * src/DownloadCommand.h
  1525. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Documented tellWaiting xml-rpc method in man page.
  1527. * doc/aria2c.1.txt
  1528. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Bump up version number to 1.5.0
  1530. * configure.ac
  1531. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Removed resolved TODO1.5
  1533. * src/AbstractCommand.cc
  1534. * src/DownloadCommand.cc
  1535. * src/RequestGroup.cc
  1536. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Release pooled and in-flight Request objectsand URIResult objects
  1538. in FileEntry after download completed.
  1539. * src/DownloadContext.cc
  1540. * src/DownloadContext.h
  1541. * src/FileEntry.cc
  1542. * src/FileEntry.h
  1543. * src/RequestGroup.cc
  1544. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Set manual and source attribute in aria2c.1.txt
  1546. * doc/aria2c.1.txt
  1547. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Documented that the default value of --use-head is 'false' in man
  1549. page.
  1550. * doc/aria2c.1.txt
  1551. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Added bt-stop-timeout option to -i list.
  1553. * doc/aria2c.1.txt
  1554. * src/download_helper.cc
  1555. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Fixed typo
  1557. * doc/aria2c.1.txt
  1558. * src/usage_text.h
  1559. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Removed peer-id-prefix option from -i list.
  1561. * doc/aria2c.1.txt
  1562. * src/download_helper.cc
  1563. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Fixed typo
  1565. * doc/aria2c.1.txt
  1566. * src/usage_text.h
  1567. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Documented --bt-stop-timeout option in man page.
  1569. * doc/aria2c.1.txt
  1570. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Updated README regarding multi-file torrent web-seeding.
  1572. * doc/README.txt
  1573. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Updated man page regarding multi-file torrent web-seeding.
  1575. * doc/aria2c.1.txt
  1576. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Updated doc
  1578. * src/version_usage.cc
  1579. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Winsock select() doesn't work if no socket is in FD_SET. To
  1581. overcome this problem, a dummy socket is added to FD_SET and it is
  1582. given to select().
  1583. * src/SelectEventPoll.cc
  1584. * src/SelectEventPoll.h
  1585. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Disabled --use-head option by default because --use-head=true
  1587. causes problems on some web sites.
  1588. * src/OptionHandlerFactory.cc
  1589. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Print URL List in -S option for torrent.
  1591. * src/bittorrent_helper.cc
  1592. * src/bittorrent_helper.h
  1593. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Allocate buffer in ctor of DownloadCommand.
  1595. * src/DownloadCommand.cc
  1596. * src/DownloadCommand.h
  1597. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Removed DiskAdaptor::onDownloadComplete()
  1599. * src/DirectDiskAdaptor.cc
  1600. * src/DirectDiskAdaptor.h
  1601. * src/DiskAdaptor.h
  1602. * src/MultiDiskAdaptor.cc
  1603. * src/MultiDiskAdaptor.h
  1604. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Committed missing BtStopDownloadCommand.{cc,h}
  1606. * src/BtStopDownloadCommand.cc
  1607. * src/BtStopDownloadCommand.h
  1608. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1610. download if the download speed is 0 and the number of seeder is 0
  1611. in consecutive SEC seconds. By default, this function is disabled.
  1612. * src/BtSetup.cc
  1613. * src/Makefile.am
  1614. * src/OptionHandlerFactory.cc
  1615. * src/prefs.cc
  1616. * src/prefs.h
  1617. * src/usage_text.h
  1618. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Removed the call to DiskAdaptor::onDownloadComplete() from
  1620. BtCheckIntegrityEntry and DefaultPieceStorage.
  1621. * src/BtCheckIntegrityEntry.cc
  1622. * src/DefaultPieceStorage.cc
  1623. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Commented out throw statements when number of piece is 0 to
  1625. download 0 length torrent.
  1626. * src/bittorrent_helper.cc
  1627. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Call RequestGroup::createNextCommandWithAdj() from
  1629. BtFileAllocationEntry if at least one FileEntry has URI. The
  1630. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1631. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1632. * src/BtFileAllocationEntry.cc
  1633. * src/FileEntry.h
  1634. * src/RequestGroup.cc
  1635. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Generate peer ID after SimpleRandomizer is initialized.
  1637. * src/main.cc
  1638. * src/option_processing.cc
  1639. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Removed unused method argument.
  1641. * src/CreateRequestCommand.cc
  1642. * src/RequestGroup.cc
  1643. * src/RequestGroup.h
  1644. * src/RequestGroupMan.cc
  1645. * src/TrackerWatcherCommand.cc
  1646. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Made URI reusing function work.
  1648. * src/CreateRequestCommand.cc
  1649. * src/FileEntry.cc
  1650. * src/FileEntry.h
  1651. * test/FileEntryTest.cc
  1652. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Add formerly fastest PeerStat's sessionDownloadLength to new
  1654. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1655. bytes in a session.
  1656. * src/PeerStat.cc
  1657. * src/SegmentMan.cc
  1658. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. If pipelining is enabled, we can always pool socket.
  1660. * src/HttpDownloadCommand.cc
  1661. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. In a single file download, file size becomes known just after
  1663. downloading, set total length to FileEntry object when download
  1664. completed.
  1665. * src/DownloadCommand.cc
  1666. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Use std::vector::reserve() for fileEntries and pieceHashes in
  1668. bittorrent_helper
  1669. * src/bittorrent_helper.cc
  1670. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1672. Removed hidden option PREF_RESET_URI.
  1673. * src/AbstractCommand.cc
  1674. * src/OptionHandlerFactory.cc
  1675. * src/prefs.cc
  1676. * src/prefs.h
  1677. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Removed unused variable/function.
  1679. * src/PeerStat.h
  1680. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Show first URL in Download Results if file path is not available.
  1682. * src/FileEntry.h
  1683. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Throw exception if file path doesn't exist in FTP URL.
  1685. * src/InitiateConnectionCommandFactory.cc
  1686. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1688. * src/BitfieldMan.cc
  1689. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1691. of PeerStat in SegmentMan. peerStats is used for calculating
  1692. download speed. Therefore all active PeerStats should be in
  1693. there. Another one is _fastestPeerStats and it only contains
  1694. fastest PeerStat for each hostname/protocol pair. They are used
  1695. for updating ServerStat.
  1696. * src/DownloadCommand.cc
  1697. * src/Request.h
  1698. * src/RequestGroupMan.cc
  1699. * src/SegmentMan.cc
  1700. * src/SegmentMan.h
  1701. * test/SegmentManTest.cc
  1702. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Try all available addresses returned by DNS until it gets
  1704. connected in HTTP(S)/FTP download
  1705. * src/AbstractCommand.cc
  1706. * src/AbstractCommand.h
  1707. * src/AbstractProxyRequestCommand.cc
  1708. * src/AbstractProxyRequestCommand.h
  1709. * src/DNSCache.h
  1710. * src/DownloadEngine.cc
  1711. * src/DownloadEngine.h
  1712. * src/FtpInitiateConnectionCommand.cc
  1713. * src/FtpInitiateConnectionCommand.h
  1714. * src/FtpNegotiationCommand.cc
  1715. * src/FtpNegotiationCommand.h
  1716. * src/HttpInitiateConnectionCommand.cc
  1717. * src/HttpInitiateConnectionCommand.h
  1718. * src/HttpRequestCommand.cc
  1719. * src/HttpRequestCommand.h
  1720. * src/InitiateConnectionCommand.cc
  1721. * src/InitiateConnectionCommand.h
  1722. * test/DNSCacheTest.cc
  1723. * test/Makefile.am
  1724. * test/SimpleDNSCacheTest.cc
  1725. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Updated doc
  1727. * src/download_helper.cc
  1728. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Refactored fieldMan ctor.
  1730. * src/BitfieldMan.cc
  1731. * src/BitfieldMan.h
  1732. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Don't print "No files to download." message if -S is given.
  1734. * src/main.cc
  1735. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Set referer and method to newly created Request object.
  1737. * src/CreateRequestCommand.cc
  1738. * src/FileEntry.cc
  1739. * src/FileEntry.h
  1740. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1742. * src/AbstractCommand.cc
  1743. * src/AbstractCommand.h
  1744. * src/CreateRequestCommand.cc
  1745. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Get proxy download working
  1747. * src/AbstractProxyRequestCommand.cc
  1748. * src/AbstractProxyRequestCommand.h
  1749. * src/AbstractProxyResponseCommand.cc
  1750. * src/AbstractProxyResponseCommand.h
  1751. * src/FtpInitiateConnectionCommand.cc
  1752. * src/FtpTunnelRequestCommand.cc
  1753. * src/FtpTunnelRequestCommand.h
  1754. * src/FtpTunnelResponseCommand.cc
  1755. * src/FtpTunnelResponseCommand.h
  1756. * src/HttpInitiateConnectionCommand.cc
  1757. * src/HttpProxyRequestCommand.cc
  1758. * src/HttpProxyRequestCommand.h
  1759. * src/HttpProxyResponseCommand.cc
  1760. * src/HttpProxyResponseCommand.h
  1761. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Use SegmentMan::getSegment(cuid) for single file download.
  1763. * src/AbstractCommand.cc
  1764. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Fixed bufSize calculation
  1766. * src/DownloadCommand.cc
  1767. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Don't append "/" if base URI ends with "/".
  1769. * src/bittorrent_helper.cc
  1770. * test/url-list-multiFile.torrent
  1771. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. HTTP pipelining is now working. Fixed Segmention fault in
  1773. BitfieldMan's copy ctor.
  1774. * src/AbstractCommand.cc
  1775. * src/BitfieldMan.cc
  1776. * src/BitfieldMan.h
  1777. * src/DownloadCommand.cc
  1778. * src/HttpDownloadCommand.cc
  1779. * src/HttpRequest.cc
  1780. * src/SegmentMan.cc
  1781. * src/SegmentMan.h
  1782. * test/BitfieldManTest.cc
  1783. * test/SegmentManTest.cc
  1784. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Removed ServerHost. Same functionality is implemented using
  1786. FileEntry's in-flight Request objects.
  1787. * src/AbstractCommand.cc
  1788. * src/BtDependency.cc
  1789. * src/CreateRequestCommand.cc
  1790. * src/FileEntry.cc
  1791. * src/FileEntry.h
  1792. * src/FtpNegotiationCommand.cc
  1793. * src/HttpResponseCommand.cc
  1794. * src/Makefile.am
  1795. * src/Metalink2RequestGroup.cc
  1796. * src/RequestGroup.cc
  1797. * src/RequestGroup.h
  1798. * src/ServerHost.cc: Removed
  1799. * src/ServerHost.h: Removed
  1800. * test/BtDependencyTest.cc
  1801. * test/FileEntryTest.cc
  1802. * test/RequestGroupTest.cc
  1803. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Rewritten PeerStat handling. In the previous implementation,
  1805. faster command tries to find slower command. In this new
  1806. implementation, slower command tries to find faster command.
  1807. PeerStat is now created in each HTTP/FTP request to get download
  1808. rate correctly. If the download range is small, the download rate
  1809. tends to small and this will occur at the later stage of download.
  1810. * src/AbstractCommand.cc
  1811. * src/DownloadCommand.cc
  1812. * src/FileEntry.cc
  1813. * src/FileEntry.h
  1814. * src/Request.cc
  1815. * src/Request.h
  1816. * src/RequestGroup.h
  1817. * src/RequestGroupMan.cc
  1818. * src/SegmentMan.cc
  1819. * src/SegmentMan.h
  1820. * test/SegmentManTest.cc
  1821. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Removed _uris from RequestGroup. All functions that refer to _uris
  1823. were moved to FileEntry. Exit status code are now defined in
  1824. DownloadResultCode.h.
  1825. * src/AbstractCommand.cc
  1826. * src/AdaptiveURISelector.cc
  1827. * src/AdaptiveURISelector.h
  1828. * src/AutoSaveCommand.cc
  1829. * src/BtPostDownloadHandler.cc
  1830. * src/CheckIntegrityDispatcherCommand.cc
  1831. * src/CookieStorage.cc
  1832. * src/DHTAutoSaveCommand.cc
  1833. * src/DHTBucketRefreshCommand.cc
  1834. * src/DHTEntryPointNameResolveCommand.cc
  1835. * src/DHTInteractionCommand.cc
  1836. * src/DHTPeerAnnounceCommand.cc
  1837. * src/DHTTokenUpdateCommand.cc
  1838. * src/DlAbortEx.h
  1839. * src/DlRetryEx.h
  1840. * src/DownloadCommand.cc
  1841. * src/DownloadContext.h
  1842. * src/DownloadFailureException.h
  1843. * src/DownloadResult.h
  1844. * src/DownloadResultCode.h
  1845. * src/FeedbackURISelector.cc
  1846. * src/FeedbackURISelector.h
  1847. * src/FileEntry.cc
  1848. * src/FileEntry.h
  1849. * src/FtpNegotiationCommand.cc
  1850. * src/HttpListenCommand.cc
  1851. * src/HttpResponseCommand.cc
  1852. * src/HttpServerResponseCommand.cc
  1853. * src/HttpSkipResponseCommand.cc
  1854. * src/InOrderURISelector.cc
  1855. * src/InOrderURISelector.h
  1856. * src/Makefile.am
  1857. * src/Makefile.in
  1858. * src/Metalink2RequestGroup.cc
  1859. * src/MultiUrlRequestInfo.cc
  1860. * src/MultiUrlRequestInfo.h
  1861. * src/OptionHandlerFactory.cc
  1862. * src/PeerListenCommand.cc
  1863. * src/RecoverableException.h
  1864. * src/RequestGroup.cc
  1865. * src/RequestGroup.h
  1866. * src/RequestGroupMan.cc
  1867. * src/RequestGroupMan.h
  1868. * src/TimedHaltCommand.cc
  1869. * src/TrackerWatcherCommand.cc
  1870. * src/URIResult.cc
  1871. * src/URIResult.h
  1872. * src/URISelector.h
  1873. * src/XmlRpcMethodImpl.cc
  1874. * src/bittorrent_helper.cc
  1875. * src/bittorrent_helper.h
  1876. * src/download_helper.cc
  1877. * src/main.cc
  1878. * src/option_processing.cc
  1879. * test/BtDependencyTest.cc
  1880. * test/BtPostDownloadHandlerTest.cc
  1881. * test/CookieStorageTest.cc
  1882. * test/DefaultBtMessageDispatcherTest.cc
  1883. * test/DownloadHandlerFactoryTest.cc
  1884. * test/DownloadHelperTest.cc
  1885. * test/FeedbackURISelectorTest.cc
  1886. * test/FileEntryTest.cc
  1887. * test/InOrderURISelectorTest.cc
  1888. * test/Metalink2RequestGroupTest.cc
  1889. * test/MetalinkPostDownloadHandlerTest.cc
  1890. * test/RequestGroupManTest.cc
  1891. * test/RequestGroupTest.cc
  1892. * test/XmlRpcMethodTest.cc
  1893. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Removed MockBtContext.h
  1895. * test/Makefile.am
  1896. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Removed _currentRequest from StreamCheckIntegrityEntry and
  1898. StreamFileAllocationEntry.
  1899. * src/AbstractCommand.cc
  1900. * src/HttpResponseCommand.cc
  1901. * src/RequestGroup.cc
  1902. * src/StreamCheckIntegrityEntry.cc
  1903. * src/StreamCheckIntegrityEntry.h
  1904. * src/StreamFileAllocationEntry.cc
  1905. * src/StreamFileAllocationEntry.h
  1906. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Rewritten DownloadContext and removed SingleFileDownloadContext
  1908. and BtContext and its derived classes. BitTorrent specific
  1909. attributes are now set by DownloadContext::setAttribute() with key
  1910. bittorrent::BITTORRENT.
  1911. * src/AbstractBtMessage.cc
  1912. * src/AbstractBtMessage.h
  1913. * src/AbstractCommand.cc
  1914. * src/AbstractCommand.h
  1915. * src/AbstractProxyRequestCommand.cc
  1916. * src/AbstractProxyResponseCommand.cc
  1917. * src/ActivePeerConnectionCommand.cc
  1918. * src/ActivePeerConnectionCommand.h
  1919. * src/AnnounceList.cc
  1920. * src/BtCheckIntegrityEntry.cc
  1921. * src/BtConstants.h
  1922. * src/BtContext.h: Removed
  1923. * src/BtDependency.cc
  1924. * src/BtExtendedMessage.cc
  1925. * src/BtPieceMessage.cc
  1926. * src/BtPieceMessage.h
  1927. * src/BtPostDownloadHandler.cc
  1928. * src/BtRegistry.cc
  1929. * src/BtRegistry.h
  1930. * src/BtSetup.cc
  1931. * src/CheckIntegrityCommand.cc
  1932. * src/CheckIntegrityEntry.cc
  1933. * src/ChecksumCheckIntegrityEntry.cc
  1934. * src/ConsoleStatCalc.cc
  1935. * src/ContentTypeRequestGroupCriteria.cc
  1936. * src/DHTGetPeersCommand.cc
  1937. * src/DHTGetPeersCommand.h
  1938. * src/DHTPeerLookupTask.cc
  1939. * src/DHTPeerLookupTask.h
  1940. * src/DHTTaskFactory.h
  1941. * src/DHTTaskFactoryImpl.cc
  1942. * src/DHTTaskFactoryImpl.h
  1943. * src/DefaultBtAnnounce.cc
  1944. * src/DefaultBtAnnounce.h
  1945. * src/DefaultBtContext.cc: Removed
  1946. * src/DefaultBtContext.h: Removed
  1947. * src/DefaultBtInteractive.cc
  1948. * src/DefaultBtInteractive.h
  1949. * src/DefaultBtMessageDispatcher.cc
  1950. * src/DefaultBtMessageDispatcher.h
  1951. * src/DefaultBtMessageFactory.cc
  1952. * src/DefaultBtMessageFactory.h
  1953. * src/DefaultBtMessageReceiver.cc
  1954. * src/DefaultBtMessageReceiver.h
  1955. * src/DefaultBtProgressInfoFile.cc
  1956. * src/DefaultBtRequestFactory.cc
  1957. * src/DefaultBtRequestFactory.h
  1958. * src/DefaultExtensionMessageFactory.cc
  1959. * src/DefaultExtensionMessageFactory.h
  1960. * src/DefaultPeerStorage.cc
  1961. * src/DefaultPeerStorage.h
  1962. * src/DefaultPieceStorage.cc
  1963. * src/DefaultSegmentManFactory.cc
  1964. * src/DiskAdaptor.cc
  1965. * src/DiskAdaptor.h
  1966. * src/DownloadContext.cc
  1967. * src/DownloadContext.h
  1968. * src/DownloadEngine.cc
  1969. * src/DownloadEngineFactory.cc
  1970. * src/DownloadHandler.cc
  1971. * src/DownloadResult.h
  1972. * src/FileAllocationCommand.cc
  1973. * src/FileAllocationDispatcherCommand.cc
  1974. * src/FileAllocationEntry.cc
  1975. * src/FileEntry.h
  1976. * src/FillRequestGroupCommand.cc
  1977. * src/FtpDownloadCommand.cc
  1978. * src/FtpFinishDownloadCommand.cc
  1979. * src/FtpInitiateConnectionCommand.cc
  1980. * src/FtpNegotiationCommand.cc
  1981. * src/FtpTunnelRequestCommand.cc
  1982. * src/FtpTunnelResponseCommand.cc
  1983. * src/HandshakeExtensionMessage.cc
  1984. * src/HandshakeExtensionMessage.h
  1985. * src/HaveEraseCommand.cc
  1986. * src/HttpDownloadCommand.cc
  1987. * src/HttpInitiateConnectionCommand.cc
  1988. * src/HttpProxyRequestCommand.cc
  1989. * src/HttpProxyResponseCommand.cc
  1990. * src/HttpRequest.cc
  1991. * src/HttpRequest.h
  1992. * src/HttpRequestCommand.cc
  1993. * src/HttpResponseCommand.cc
  1994. * src/HttpServerBodyCommand.cc
  1995. * src/HttpServerCommand.cc
  1996. * src/HttpSkipResponseCommand.cc
  1997. * src/InitiateConnectionCommandFactory.cc
  1998. * src/InitiatorMSEHandshakeCommand.cc
  1999. * src/InitiatorMSEHandshakeCommand.h
  2000. * src/IteratableChecksumValidator.cc
  2001. * src/IteratableChecksumValidator.h
  2002. * src/IteratableChunkChecksumValidator.cc
  2003. * src/MSEHandshake.cc
  2004. * src/MSEHandshake.h
  2005. * src/Makefile.am
  2006. * src/Makefile.in
  2007. * src/Metalink2RequestGroup.cc
  2008. * src/MetalinkPostDownloadHandler.cc
  2009. * src/MultiDiskAdaptor.cc
  2010. * src/MultiDiskAdaptor.h
  2011. * src/MultiFileAllocationIterator.cc
  2012. * src/MultiUrlRequestInfo.cc
  2013. * src/PeerChokeCommand.cc
  2014. * src/PeerChokeCommand.h
  2015. * src/PeerInitiateConnectionCommand.cc
  2016. * src/PeerInitiateConnectionCommand.h
  2017. * src/PeerInteractionCommand.cc
  2018. * src/PeerInteractionCommand.h
  2019. * src/PeerReceiveHandshakeCommand.cc
  2020. * src/PieceHashCheckIntegrityEntry.cc
  2021. * src/RealtimeCommand.cc
  2022. * src/ReceiverMSEHandshakeCommand.cc
  2023. * src/RequestGroup.cc
  2024. * src/RequestGroup.h
  2025. * src/RequestGroupEntry.cc
  2026. * src/RequestGroupMan.cc
  2027. * src/SeedCheckCommand.cc
  2028. * src/SeedCheckCommand.h
  2029. * src/SegmentMan.cc
  2030. * src/ShareRatioSeedCriteria.h
  2031. * src/SingleFileDownloadContext.cc: Removed
  2032. * src/SingleFileDownloadContext.h: Removed
  2033. * src/SleepCommand.cc
  2034. * src/StreamCheckIntegrityEntry.cc
  2035. * src/TrackerWatcherCommand.cc
  2036. * src/TrackerWatcherCommand.h
  2037. * src/UnknownLengthPieceStorage.cc
  2038. * src/Util.cc
  2039. * src/Util.h
  2040. * src/XmlRpcMethodImpl.cc
  2041. * src/bittorrent_helper.cc
  2042. * src/bittorrent_helper.h
  2043. * src/download_helper.cc
  2044. * src/main.cc
  2045. * src/option_processing.cc
  2046. * test/BitfieldManTest.cc
  2047. * test/BittorrentHelperTest.cc
  2048. * test/BtCancelMessageTest.cc
  2049. * test/BtChokeMessageTest.cc
  2050. * test/BtDependencyTest.cc
  2051. * test/BtPieceMessageTest.cc
  2052. * test/BtPostDownloadHandlerTest.cc
  2053. * test/BtRegistryTest.cc
  2054. * test/BtRejectMessageTest.cc
  2055. * test/BtRequestMessageTest.cc
  2056. * test/DHTPeerAnnounceStorageTest.cc
  2057. * test/DefaultBtAnnounceTest.cc
  2058. * test/DefaultBtContextTest.cc: Removed
  2059. * test/DefaultBtMessageDispatcherTest.cc
  2060. * test/DefaultBtMessageFactoryTest.cc
  2061. * test/DefaultBtProgressInfoFileTest.cc
  2062. * test/DefaultBtRequestFactoryTest.cc
  2063. * test/DefaultExtensionMessageFactoryTest.cc
  2064. * test/DefaultPeerStorageTest.cc
  2065. * test/DefaultPieceStorageTest.cc
  2066. * test/DirectDiskAdaptorTest.cc
  2067. * test/DownloadContextTest.cc
  2068. * test/DownloadHandlerFactoryTest.cc
  2069. * test/DownloadHelperTest.cc
  2070. * test/HandshakeExtensionMessageTest.cc
  2071. * test/HttpRequestTest.cc
  2072. * test/HttpResponseTest.cc
  2073. * test/IteratableChecksumValidatorTest.cc
  2074. * test/IteratableChunkChecksumValidatorTest.cc
  2075. * test/MSEHandshakeTest.cc
  2076. * test/Makefile.am
  2077. * test/Makefile.in
  2078. * test/Metalink2RequestGroupTest.cc
  2079. * test/MetalinkPostDownloadHandlerTest.cc
  2080. * test/MockBtContext.h: Removed
  2081. * test/MockDHTTaskFactory.h
  2082. * test/MockDownloadContext.h: Removed
  2083. * test/MockPieceStorage.h
  2084. * test/MultiDiskAdaptorTest.cc
  2085. * test/MultiFileAllocationIteratorTest.cc
  2086. * test/RequestGroupManTest.cc
  2087. * test/RequestGroupTest.cc
  2088. * test/SegmentManTest.cc
  2089. * test/ShareRatioSeedCriteriaTest.cc
  2090. * test/SingleFileDownloadContextTest.cc: Removed
  2091. * test/UtilTest.cc
  2092. * test/XmlRpcMethodTest.cc
  2093. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Added experimental support of WEB-Seeding for multi-file torrent.
  2095. Due to fundamental changes in file handling in HTTP/FTP code, many
  2096. functions are not working: PeerStat, ServerHost, proxy..etc
  2097. * src/AbstractCommand.cc
  2098. * src/AbstractCommand.h
  2099. * src/BitfieldMan.cc
  2100. * src/BitfieldMan.h
  2101. * src/CreateRequestCommand.cc
  2102. * src/CreateRequestCommand.h
  2103. * src/DefaultPieceStorage.cc
  2104. * src/DefaultPieceStorage.h
  2105. * src/DownloadCommand.cc
  2106. * src/DownloadCommand.h
  2107. * src/DownloadContext.cc
  2108. * src/DownloadContext.h
  2109. * src/FileEntry.cc
  2110. * src/FileEntry.h
  2111. * src/FtpDownloadCommand.cc
  2112. * src/FtpDownloadCommand.h
  2113. * src/FtpFinishDownloadCommand.cc
  2114. * src/FtpFinishDownloadCommand.h
  2115. * src/FtpInitiateConnectionCommand.cc
  2116. * src/FtpInitiateConnectionCommand.h
  2117. * src/FtpNegotiationCommand.cc
  2118. * src/FtpNegotiationCommand.h
  2119. * src/FtpTunnelResponseCommand.cc
  2120. * src/HttpDownloadCommand.cc
  2121. * src/HttpDownloadCommand.h
  2122. * src/HttpInitiateConnectionCommand.cc
  2123. * src/HttpInitiateConnectionCommand.h
  2124. * src/HttpProxyResponseCommand.cc
  2125. * src/HttpRequest.cc
  2126. * src/HttpRequest.h
  2127. * src/HttpRequestCommand.cc
  2128. * src/HttpRequestCommand.h
  2129. * src/HttpResponseCommand.cc
  2130. * src/HttpResponseCommand.h
  2131. * src/HttpSkipResponseCommand.cc
  2132. * src/HttpSkipResponseCommand.h
  2133. * src/InitiateConnectionCommand.cc
  2134. * src/InitiateConnectionCommand.h
  2135. * src/InitiateConnectionCommandFactory.cc
  2136. * src/InitiateConnectionCommandFactory.h
  2137. * src/Makefile.am
  2138. * src/PieceStorage.h
  2139. * src/RequestGroup.cc
  2140. * src/RequestGroup.h
  2141. * src/RequestGroupMan.cc
  2142. * src/SegmentMan.cc
  2143. * src/SegmentMan.h
  2144. * src/SingleFileDownloadContext.h
  2145. * src/StreamFileAllocationEntry.cc
  2146. * src/TrackerWatcherCommand.cc
  2147. * src/UnknownLengthPieceStorage.cc
  2148. * src/UnknownLengthPieceStorage.h
  2149. * src/array_fun.h
  2150. * src/bitfield.h
  2151. * src/download_helper.cc
  2152. * test/DownloadContextTest.cc
  2153. * test/Makefile.am
  2154. * test/MockDownloadContext.h
  2155. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Added tellWaiting XML-RPC method.
  2157. * src/SingleFileDownloadContext.cc
  2158. * src/XmlRpcMethodFactory.cc
  2159. * src/XmlRpcMethodImpl.cc
  2160. * src/XmlRpcMethodImpl.h
  2161. * test/XmlRpcMethodTest.cc
  2162. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Updated CookieStorageTest
  2164. * test/CookieStorageTest.cc
  2165. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2167. handle excepion inside these functions.
  2168. * src/LibgnutlsTLSContext.cc
  2169. * src/LibgnutlsTLSContext.h
  2170. * src/LibsslTLSContext.cc
  2171. * src/LibsslTLSContext.h
  2172. * src/MultiUrlRequestInfo.cc
  2173. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Added comment
  2175. * src/RequestGroup.cc
  2176. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. In CookieStorage::load() and saveNsFormat(), handle exception
  2178. inside the functions. When saving Cookies, first write temporary
  2179. file and after successful writes, then renames it to final
  2180. destination.
  2181. * src/CookieStorage.cc
  2182. * src/CookieStorage.h
  2183. * src/MultiUrlRequestInfo.cc
  2184. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. The default value of --dir option is the absolute path to the
  2186. current directory. If getcwd() is failed, then it is ".", which is
  2187. the same value with old implementation. This change is necessary
  2188. because after daemon() call, the current working directory is
  2189. changed to /.
  2190. * src/File.cc
  2191. * src/File.h
  2192. * src/OptionHandlerFactory.cc
  2193. * src/option_processing.cc
  2194. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Call daemon() with arguments(0,0), which means daemon() changes
  2196. current working directory to / and redirects stdin, stdout and
  2197. stderr to /dev/null.
  2198. * src/option_processing.cc
  2199. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Small performance optimizations.
  2201. * src/RequestGroupMan.cc
  2202. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2204. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2205. * src/RequestGroupMan.cc
  2206. * src/RequestGroupMan.h
  2207. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2209. setNoWiat(true) if newly created command calls
  2210. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2211. * src/HttpListenCommand.cc
  2212. * src/HttpServerBodyCommand.cc
  2213. * src/HttpServerCommand.cc
  2214. * src/HttpServerResponseCommand.cc
  2215. * src/InitiateConnectionCommand.cc
  2216. * src/RequestGroup.cc
  2217. * src/StreamFileAllocationEntry.cc
  2218. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Removed include vector
  2220. * src/BtRegistry.h
  2221. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Rewritten BtRegistry
  2223. * src/BtRegistry.cc
  2224. * src/BtRegistry.h
  2225. * src/BtSetup.cc
  2226. * src/ConsoleStatCalc.cc
  2227. * src/PeerInteractionCommand.cc
  2228. * src/PeerReceiveHandshakeCommand.cc
  2229. * src/ReceiverMSEHandshakeCommand.cc
  2230. * src/RequestGroup.cc
  2231. * src/XmlRpcMethodImpl.cc
  2232. * test/BtRegistryTest.cc
  2233. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2235. * src/DefaultBtProgressInfoFile.cc
  2236. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Throw an exception if position is less than 0.
  2238. * src/XmlRpcMethodImpl.cc
  2239. * test/XmlRpcMethodTest.cc
  2240. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Use writeFilePath() in ConsoleStatCalc.cc
  2242. * src/ConsoleStatCalc.cc
  2243. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Receive the return value as const reference from
  2245. DownloadContext::getFileEntries().
  2246. * src/DefaultPieceStorage.cc
  2247. * src/RequestGroupMan.cc
  2248. * src/XmlRpcMethodImpl.cc
  2249. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. DownloadContext now has _fileEntries so that
  2251. DownloadContext::getFileEntries() can returns its const reference.
  2252. * src/DefaultBtContext.cc
  2253. * src/DefaultBtContext.h
  2254. * src/DownloadContext.cc
  2255. * src/DownloadContext.h
  2256. * src/SingleFileDownloadContext.cc
  2257. * src/SingleFileDownloadContext.h
  2258. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2260. writeFilePath() function template from RequestGroupMan.cc to
  2261. FileEntry.h
  2262. * src/FileEntry.h
  2263. * src/RequestGroupMan.cc
  2264. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Documented 'position' parameter is starting from 0 in man page.
  2266. * doc/aria2c.1.txt
  2267. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Updated doc.
  2269. * src/MSEHandshake.cc
  2270. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Removed _acceptFeatures and its accessor functions from
  2272. RequestGroup since they are not used practically.
  2273. * src/HttpRequestCommand.cc
  2274. * src/RequestGroup.cc
  2275. * src/RequestGroup.h
  2276. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Removed member _maxTries from RequestGroup class to avoid
  2278. duplicate option value. Those classes who refer this variable
  2279. should use option value of PREF_MAX_TRIES directly.
  2280. * src/AbstractCommand.cc
  2281. * src/RequestGroup.cc
  2282. * src/RequestGroup.h
  2283. * src/TrackerWatcherCommand.cc
  2284. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. * Release 1.4.1
  2286. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Fixed compiler warnings on netbsd
  2288. * src/DHTConnectionImpl.cc
  2289. * src/PeerListenCommand.cc
  2290. * src/PeerSessionResource.cc
  2291. * src/SegmentMan.cc
  2292. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Updated Ukrainian translation. Thanks to all translators.
  2294. * po/uk.po
  2295. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Bump up version number to 1.4.1.
  2297. * configure.ac
  2298. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Added unit tests for strjoin, strconcat and strappend.
  2300. * test/a2functionalTest.cc
  2301. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Rewritten strconcat and strappend using operator+ instead of
  2303. append().
  2304. * src/a2functional.h
  2305. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2307. is enabled.
  2308. * src/Makefile.am
  2309. * test/Makefile.am
  2310. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Added countSeeder() function which counts seeder in the given
  2312. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2313. * src/ConsoleStatCalc.cc
  2314. * src/Peer.h
  2315. * src/XmlRpcMethodImpl.cc
  2316. * test/PeerTest.cc
  2317. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Documented missing seeder in getPeers xml-rpc method.
  2319. Documented uploadLength and numSeeders.
  2320. * doc/aria2c.1.txt
  2321. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Added uploadLength and numSeeders to the response of tellStatus
  2323. xml-rpc method. Assert that PeerStorage instance is not null
  2324. instead of checking if statement. It should be non-null in this
  2325. context.
  2326. * src/XmlRpcMethodImpl.cc
  2327. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2329. * src/XmlRpcResponse.cc
  2330. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Avoid intermediate object during string concatenation.
  2332. * src/HttpRequest.cc
  2333. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Added strjoin function template. Use it in pathJoin()
  2335. * src/Util.h
  2336. * src/a2functional.h
  2337. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Avoid intermediate object during string concatenation. Replaced
  2339. post-increment unary operator with pre-increment one in for loop.
  2340. * src/AdaptiveURISelector.cc
  2341. * src/AnnounceList.cc
  2342. * src/AuthConfig.h
  2343. * src/BtBitfieldMessage.cc
  2344. * src/BtExtendedMessage.cc
  2345. * src/BtHandshakeMessage.cc
  2346. * src/BtPieceMessage.cc
  2347. * src/BtPortMessage.cc
  2348. * src/Cookie.cc
  2349. * src/DHTAnnouncePeerMessage.cc
  2350. * src/DHTAutoSaveCommand.cc
  2351. * src/DHTGetPeersReplyMessage.cc
  2352. * src/DHTNode.cc
  2353. * src/DHTQueryMessage.cc
  2354. * src/DHTResponseMessage.cc
  2355. * src/DHTUnknownMessage.cc
  2356. * src/DefaultBtAnnounce.cc
  2357. * src/DefaultBtContext.cc
  2358. * src/DefaultBtInteractive.cc
  2359. * src/DefaultBtProgressInfoFile.cc
  2360. * src/DefaultPeerStorage.cc
  2361. * src/DownloadEngine.cc
  2362. * src/FeatureConfig.cc
  2363. * src/File.cc
  2364. * src/FtpConnection.cc
  2365. * src/FtpNegotiationCommand.cc
  2366. * src/HandshakeExtensionMessage.cc
  2367. * src/HttpConnection.cc
  2368. * src/HttpRequest.cc
  2369. * src/HttpResponseCommand.cc
  2370. * src/HttpServer.cc
  2371. * src/IndexBtMessage.cc
  2372. * src/Metalink2RequestGroup.cc
  2373. * src/OptionHandlerImpl.h
  2374. * src/PStringBuildVisitor.cc
  2375. * src/Peer.cc
  2376. * src/PeerListenCommand.cc
  2377. * src/Piece.cc
  2378. * src/RangeBtMessage.cc
  2379. * src/Request.cc
  2380. * src/Request.h
  2381. * src/RequestGroup.cc
  2382. * src/RequestGroupMan.cc
  2383. * src/ServerStat.cc
  2384. * src/ServerStatMan.cc
  2385. * src/UTPexExtensionMessage.cc
  2386. * src/Util.cc
  2387. * src/a2functional.h
  2388. * src/download_helper.cc
  2389. * src/messageDigest.cc
  2390. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Unchoke a peer randomly at first and second choke round in seed
  2392. state.
  2393. * src/BtSeederStateChoke.cc
  2394. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2395. Added (sock_t) to quiet compiler warnings in MinGW
  2396. * src/SocketCore.cc
  2397. * src/SocketCore.h
  2398. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2400. * src/EpollEventPoll.h
  2401. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2402. Added fork() emulation using CreateProcess() in MinGW
  2403. * src/RequestGroupMan.cc
  2404. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. * Release 1.4.0
  2406. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Added utf8.torrent to EXTRA_DIST
  2408. * test/Makefile.am
  2409. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Fixed docs of aria2.addMetalink xml-rpc method.
  2411. * doc/aria2c.1.txt
  2412. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added Slovak translation. Updated Ukrainian and Brazilian
  2414. Portuguese translation. Thanks to all translators.
  2415. * po/sk.po
  2416. * po/uk.po
  2417. * po/pt_BR.po
  2418. * po/LINGUAS
  2419. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Added test case for XmlRpcProcessor to fail to parse malformed
  2421. document.
  2422. * test/XmlRpcRequestProcessorTest.cc
  2423. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Removed *.gmo files in po because they are generated on 'make
  2425. dist'
  2426. * po/*.gmo
  2427. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Documented max-concurrent-downloads of changeGlobalOption method
  2429. in man page.
  2430. * doc/aria2c.1.txt
  2431. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Added max-concurrent-downloads option to changeGlobalOption
  2433. xml-rpc method. Rewritten loop conditional in
  2434. RequestGroupMan::fillRequestGroupFromReserver().
  2435. * src/RequestGroupMan.cc
  2436. * src/RequestGroupMan.h
  2437. * src/XmlRpcMethod.cc
  2438. * src/XmlRpcMethodImpl.cc
  2439. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Documented position parameter in man page.
  2441. * doc/aria2c.1.txt
  2442. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Added 'position' parameter to addUri, addTorrent and addMetalink
  2444. xml-rpc method.
  2445. * src/RequestGroupMan.cc
  2446. * src/RequestGroupMan.h
  2447. * src/XmlRpcMethodImpl.cc
  2448. * test/XmlRpcMethodTest.cc
  2449. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Removed Peer.cc from compile source list when --disable-bittorrent
  2451. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2452. takes Peer.
  2453. * src/DefaultPieceStorage.cc
  2454. * src/DefaultPieceStorage.h
  2455. * src/Makefile.am
  2456. * src/PieceStorage.h
  2457. * src/UnknownLengthPieceStorage.cc
  2458. * src/UnknownLengthPieceStorage.h
  2459. * test/MockPieceStorage.h
  2460. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Implemented getter methods in header files to give them more
  2462. chance of optimization.
  2463. Return const reference for SharadHandle if possible.
  2464. * src/AbstractAuthResolver.cc
  2465. * src/AbstractAuthResolver.h
  2466. * src/AbstractBtMessage.cc
  2467. * src/AbstractBtMessage.h
  2468. * src/AbstractSingleDiskAdaptor.cc
  2469. * src/AbstractSingleDiskAdaptor.h
  2470. * src/AsyncNameResolver.cc
  2471. * src/AsyncNameResolver.h
  2472. * src/BNode.cc
  2473. * src/BNode.h
  2474. * src/BitfieldMan.cc
  2475. * src/BitfieldMan.h
  2476. * src/BtAbortOutstandingRequestEvent.h
  2477. * src/BtExtendedMessage.cc
  2478. * src/BtExtendedMessage.h
  2479. * src/BtSeederStateChoke.cc
  2480. * src/BtSeederStateChoke.h
  2481. * src/Cookie.cc
  2482. * src/Cookie.h
  2483. * src/DHTBucket.cc
  2484. * src/DHTBucket.h
  2485. * src/DHTConnectionImpl.cc
  2486. * src/DHTConnectionImpl.h
  2487. * src/DHTFindNodeReplyMessage.cc
  2488. * src/DHTFindNodeReplyMessage.h
  2489. * src/DHTGetPeersReplyMessage.cc
  2490. * src/DHTGetPeersReplyMessage.h
  2491. * src/DHTInteractionCommand.cc
  2492. * src/DHTMessage.cc
  2493. * src/DHTMessage.h
  2494. * src/DHTMessageDispatcherImpl.cc
  2495. * src/DHTMessageEntry.cc
  2496. * src/DHTMessageReceiver.cc
  2497. * src/DHTMessageReceiver.h
  2498. * src/DHTMessageTrackerEntry.cc
  2499. * src/DHTMessageTrackerEntry.h
  2500. * src/DHTPeerAnnounceEntry.cc
  2501. * src/DHTPeerAnnounceEntry.h
  2502. * src/DHTPeerLookupTask.cc
  2503. * src/DHTPeerLookupTask.h
  2504. * src/DHTRoutingTableDeserializer.cc
  2505. * src/DHTRoutingTableDeserializer.h
  2506. * src/DefaultBtAnnounce.cc
  2507. * src/DefaultBtAnnounce.h
  2508. * src/DefaultBtMessageDispatcher.cc
  2509. * src/DefaultBtMessageDispatcher.h
  2510. * src/DefaultBtRequestFactory.cc
  2511. * src/DefaultBtRequestFactory.h
  2512. * src/DiskAdaptor.cc
  2513. * src/DiskAdaptor.h
  2514. * src/DownloadContext.cc
  2515. * src/DownloadContext.h
  2516. * src/DownloadEngine.cc
  2517. * src/DownloadEngine.h
  2518. * src/EpollEventPoll.cc
  2519. * src/EpollEventPoll.h
  2520. * src/FtpConnection.cc
  2521. * src/FtpConnection.h
  2522. * src/HttpConnection.cc
  2523. * src/HttpConnection.h
  2524. * src/HttpHeader.cc
  2525. * src/HttpHeader.h
  2526. * src/HttpRequest.cc
  2527. * src/HttpRequest.h
  2528. * src/HttpResponse.cc
  2529. * src/HttpResponse.h
  2530. * src/LibsslTLSContext.cc
  2531. * src/LibsslTLSContext.h
  2532. * src/MSEHandshake.cc
  2533. * src/MSEHandshake.h
  2534. * src/MetalinkEntry.cc
  2535. * src/MetalinkEntry.h
  2536. * src/MetalinkParserController.cc
  2537. * src/MetalinkParserController.h
  2538. * src/MetalinkParserStateMachine.cc
  2539. * src/MetalinkParserStateMachine.h
  2540. * src/MultiDiskAdaptor.cc
  2541. * src/MultiDiskAdaptor.h
  2542. * src/NetrcAuthResolver.cc
  2543. * src/NetrcAuthResolver.h
  2544. * src/Peer.cc
  2545. * src/Peer.h
  2546. * src/PeerSessionResource.cc
  2547. * src/PeerSessionResource.h
  2548. * src/Piece.cc
  2549. * src/Piece.h
  2550. * src/PieceStatMan.cc
  2551. * src/PieceStatMan.h
  2552. * src/Request.cc
  2553. * src/Request.h
  2554. * src/RequestGroup.cc
  2555. * src/RequestGroup.h
  2556. * src/RequestGroupMan.cc
  2557. * src/RequestGroupMan.h
  2558. * src/RequestSlot.cc
  2559. * src/RequestSlot.h
  2560. * src/SegmentMan.cc
  2561. * src/SegmentMan.h
  2562. * src/SelectEventPoll.cc
  2563. * src/SelectEventPoll.h
  2564. * src/ServerStat.cc
  2565. * src/ServerStat.h
  2566. * src/Signature.cc
  2567. * src/Signature.h
  2568. * src/URIResult.cc
  2569. * src/URIResult.h
  2570. * src/UTPexExtensionMessage.cc
  2571. * src/UTPexExtensionMessage.h
  2572. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Fixed compile error without BitTorrent and Metalink support.
  2574. * src/XmlRpcMethod.cc
  2575. * src/XmlRpcMethodFactory.cc
  2576. * src/XmlRpcMethodImpl.cc
  2577. * src/XmlRpcMethodImpl.h
  2578. * test/XmlRpcMethodTest.cc
  2579. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Rewritten the help message for --allow-overwrite option.
  2581. * doc/aria2c.1.txt
  2582. * src/usage_text.h
  2583. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Fixed typo
  2585. * doc/aria2c.1.txt
  2586. * src/usage_text.h
  2587. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Updated README for 1.4.0 release. Use new table syntax of
  2589. asciidoc.
  2590. * README
  2591. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Documented --xml-rpc-max-request-size option in man page.
  2593. * doc/aria2c.1.txt
  2594. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Moved C_* constants from BtContext to DefaultBtContext.
  2596. * src/BtContext.cc: Removed.
  2597. * src/BtContext.h
  2598. * src/DefaultBtContext.cc
  2599. * src/DefaultBtContext.h
  2600. * src/Makefile.am
  2601. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2603. path key respectively when persing .torrent file.
  2604. * src/BtContext.cc
  2605. * src/BtContext.h
  2606. * src/DefaultBtContext.cc
  2607. * test/DefaultBtContextTest.cc
  2608. * test/utf8.torrent
  2609. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Added --xml-rpc-max-request-size option to limit the size of
  2611. XML-RPC request.
  2612. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Documented XML-RPC API in man page.
  2614. * doc/aria2c.1.txt
  2615. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2617. will break strict-aliasing rules
  2618. * src/PeerConnection.cc
  2619. * test/DHTRoutingTableSerializerTest.cc
  2620. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2622. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2623. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2624. PKG_CHECK_MODULES macro uses latter name.
  2625. * m4/sqlite3.m4
  2626. * src/Makefile.am
  2627. * test/Makefile.am
  2628. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Fixed typo
  2630. * configure.ac
  2631. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2633. presence of libgnutls using pkg-config first. If it fails, fall
  2634. back to old macro libgnutls.m4.
  2635. * configure.ac
  2636. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Use s itself instead of !s.bad()
  2638. * src/CookieStorage.cc
  2639. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Documented --on-download-* option and --save-cookies option in man
  2641. page.
  2642. * doc/aria2c.1.txt
  2643. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Set possible values for --load-cookie option to "/path/to/file".
  2645. * src/OptionHandlerFactory.cc
  2646. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Added --save-cookies option.
  2648. * src/Cookie.cc
  2649. * src/Cookie.h
  2650. * src/CookieStorage.cc
  2651. * src/CookieStorage.h
  2652. * src/MultiUrlRequestInfo.cc
  2653. * src/OptionHandlerFactory.cc
  2654. * src/prefs.cc
  2655. * src/prefs.h
  2656. * src/usage_text.h
  2657. * test/CookieStorageTest.cc
  2658. * test/CookieTest.cc
  2659. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Removed tellAll XML-RPC command because its reponse tends to be
  2661. big if stopped/waiting downloads pile up.
  2662. * src/XmlRpcMethodFactory.cc
  2663. * src/XmlRpcMethodImpl.cc
  2664. * src/XmlRpcMethodImpl.h
  2665. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Added the ability to execute command when download starts and
  2667. stops. You can also specify command for particular cases such as
  2668. complete/error download. Added --on-download-start,
  2669. --on-download-stop, --on-download-complete and --on-download-error
  2670. option.
  2671. * src/OptionHandlerFactory.cc
  2672. * src/RequestGroupMan.cc
  2673. * src/prefs.cc
  2674. * src/prefs.h
  2675. * src/usage_text.h
  2676. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Fixed test error
  2678. * test/BencodeTest.cc
  2679. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Added unit tests.
  2681. * test/XmlRpcMethodTest.cc
  2682. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Made exception message more verbose.
  2684. * src/bencode.cc
  2685. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2687. space in console readout. Also they are now shown in MiB/s if
  2688. speed > 1024KiB/s.
  2689. * src/ConsoleStatCalc.cc
  2690. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Added SEED to console output, which represents the number of
  2692. seeders currently the client is connecting to.
  2693. * src/ConsoleStatCalc.cc
  2694. * src/ConsoleStatCalc.h
  2695. * src/DownloadEngine.cc
  2696. * src/NullStatCalc.h
  2697. * src/StatCalc.h
  2698. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Added source filename(__FILE__) and line number(__LINE__) to
  2700. exception message.
  2701. * src/AbstractCommand.cc
  2702. * src/AbstractDiskWriter.cc
  2703. * src/AbstractProxyResponseCommand.cc
  2704. * src/BDE.h
  2705. * src/BtAllowedFastMessage.cc
  2706. * src/BtHandshakeMessageValidator.h
  2707. * src/BtHaveAllMessage.cc
  2708. * src/BtHaveNoneMessage.cc
  2709. * src/BtPieceMessage.cc
  2710. * src/BtRejectMessage.cc
  2711. * src/ChunkedDecoder.cc
  2712. * src/CookieStorage.cc
  2713. * src/DHTAnnouncePeerMessage.cc
  2714. * src/DHTEntryPointNameResolveCommand.cc
  2715. * src/DHTMessageFactoryImpl.cc
  2716. * src/DHTMessageTracker.cc
  2717. * src/DHTRoutingTableDeserializer.cc
  2718. * src/DHTRoutingTableSerializer.cc
  2719. * src/DHTSetup.cc
  2720. * src/DHTTokenTracker.cc
  2721. * src/DefaultBtAnnounce.cc
  2722. * src/DefaultBtContext.cc
  2723. * src/DefaultBtInteractive.cc
  2724. * src/DefaultBtMessageFactory.cc
  2725. * src/DefaultBtProgressInfoFile.cc
  2726. * src/DefaultExtensionMessageFactory.cc
  2727. * src/DlAbortEx.h
  2728. * src/DlRetryEx.h
  2729. * src/DownloadCommand.cc
  2730. * src/DownloadEngineFactory.cc
  2731. * src/DownloadFailureException.h
  2732. * src/Exception.cc
  2733. * src/Exception.h
  2734. * src/ExpatMetalinkProcessor.cc
  2735. * src/ExpatXmlRpcRequestProcessor.cc
  2736. * src/FallocFileAllocationIterator.cc
  2737. * src/FatalException.h
  2738. * src/FtpConnection.cc
  2739. * src/FtpFinishDownloadCommand.cc
  2740. * src/FtpInitiateConnectionCommand.cc
  2741. * src/FtpNegotiationCommand.cc
  2742. * src/GZipDecoder.cc
  2743. * src/HandshakeExtensionMessage.cc
  2744. * src/HttpConnection.cc
  2745. * src/HttpHeaderProcessor.cc
  2746. * src/HttpInitiateConnectionCommand.cc
  2747. * src/HttpResponse.cc
  2748. * src/HttpResponseCommand.cc
  2749. * src/HttpServer.cc
  2750. * src/HttpSkipResponseCommand.cc
  2751. * src/InitiateConnectionCommandFactory.cc
  2752. * src/IteratableChunkChecksumValidator.cc
  2753. * src/LibgcryptARC4Context.h
  2754. * src/LibgcryptARC4Decryptor.h
  2755. * src/LibgcryptARC4Encryptor.h
  2756. * src/LibgcryptDHKeyExchange.h
  2757. * src/LibgnutlsTLSContext.cc
  2758. * src/LibsslARC4Context.h
  2759. * src/LibsslARC4Decryptor.h
  2760. * src/LibsslARC4Encryptor.h
  2761. * src/LibsslDHKeyExchange.h
  2762. * src/LibsslTLSContext.cc
  2763. * src/MSEHandshake.cc
  2764. * src/MessageDigestHelper.cc
  2765. * src/MetalinkHelper.cc
  2766. * src/MultiDiskAdaptor.cc
  2767. * src/NameMatchOptionHandler.h
  2768. * src/NameResolver.cc
  2769. * src/Netrc.cc
  2770. * src/NsCookieParser.cc
  2771. * src/OptionHandlerException.cc
  2772. * src/OptionHandlerException.h
  2773. * src/OptionHandlerImpl.h
  2774. * src/OptionParser.cc
  2775. * src/ParameterizedStringParser.cc
  2776. * src/PeerAbstractCommand.cc
  2777. * src/PeerConnection.cc
  2778. * src/PeerMessageUtil.cc
  2779. * src/PeerReceiveHandshakeCommand.cc
  2780. * src/Platform.cc
  2781. * src/ReceiverMSEHandshakeCommand.cc
  2782. * src/RecoverableException.h
  2783. * src/RequestGroup.cc
  2784. * src/SimpleLogger.cc
  2785. * src/SocketCore.cc
  2786. * src/Sqlite3MozCookieParser.cc
  2787. * src/UTPexExtensionMessage.cc
  2788. * src/Util.cc
  2789. * src/XML2SAXMetalinkProcessor.cc
  2790. * src/Xml2XmlRpcRequestProcessor.cc
  2791. * src/XmlRpcMethodImpl.cc
  2792. * src/bencode.cc
  2793. * src/download_helper.cc
  2794. * src/messageDigest.h
  2795. * test/ExceptionTest.cc
  2796. * test/TestUtil.cc
  2797. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Bump up version number to 1.4.0
  2799. * configure.ac
  2800. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Added 2files.metalink to EXTRA_DIST
  2802. * test/Makefile.am
  2803. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Added missing 2files.metalink
  2805. * test/2files.metalink
  2806. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Show "[MEMORY]" prefix before filename in download summary if it
  2808. is downloaded into memory.
  2809. * src/DownloadResult.h
  2810. * src/RequestGroup.cc
  2811. * src/RequestGroupMan.cc
  2812. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2814. * src/ExpatXmlRpcRequestProcessor.cc
  2815. * src/Xml2XmlRpcRequestProcessor.cc
  2816. * src/message.h
  2817. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Defined const BDEs to avoid duplicate instantiation.
  2819. Defined MSG_GID_NOT_PROVIDED.
  2820. * src/XmlRpcMethodImpl.cc
  2821. * src/message.h
  2822. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Code cleanup
  2824. * src/Xml2XmlRpcRequestProcessor.cc
  2825. * src/Xml2XmlRpcRequestProcessor.h
  2826. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Defined ENABLE_XML_RPC
  2828. * configure.ac
  2829. * configure
  2830. * config.h.in
  2831. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Added ExpatXmlRpcRequestProcessor
  2833. * src/ExpatXmlRpcRequestProcessor.cc
  2834. * src/ExpatXmlRpcRequestProcessor.h
  2835. * src/Makefile.am
  2836. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Added tests for addTorrent and addMetalink command.
  2838. * test/TestUtil.cc
  2839. * test/TestUtil.h
  2840. * test/XmlRpcMethodTest.cc
  2841. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Corrected the description of --file-allocation option.
  2843. * doc/aria2c.1.txt
  2844. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Added tellAll command.
  2846. * src/XmlRpcMethodFactory.cc
  2847. * src/XmlRpcMethodImpl.cc
  2848. * src/XmlRpcMethodImpl.h
  2849. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2851. * src/XmlRpcMethodImpl.cc
  2852. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Added changeGlobalOption command. Currently,
  2854. max-overall-download-limit and max-overall-upload-limit option are
  2855. available.
  2856. * src/RequestGroupMan.h
  2857. * src/XmlRpcMethod.cc
  2858. * src/XmlRpcMethod.h
  2859. * src/XmlRpcMethodFactory.cc
  2860. * src/XmlRpcMethodImpl.cc
  2861. * src/XmlRpcMethodImpl.h
  2862. * test/XmlRpcMethodTest.cc
  2863. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Added changeOption command. Currently, max-download-limit,
  2865. max-upload-limit option are available in this command.
  2866. * src/RequestGroup.h
  2867. * src/XmlRpcMethod.cc
  2868. * src/XmlRpcMethod.h
  2869. * src/XmlRpcMethodFactory.cc
  2870. * src/XmlRpcMethodImpl.cc
  2871. * src/XmlRpcMethodImpl.h
  2872. * test/XmlRpcMethodTest.cc
  2873. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Added purgeDownloadResult command.
  2875. * src/RequestGroupMan.cc
  2876. * src/RequestGroupMan.h
  2877. * src/XmlRpcMethodFactory.cc
  2878. * src/XmlRpcMethodImpl.cc
  2879. * src/XmlRpcMethodImpl.h
  2880. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Refactored.
  2882. * src/XmlRpcMethod.cc
  2883. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2885. XmlRpcResponse.
  2886. * src/HttpServerBodyCommand.cc
  2887. * src/Makefile.am
  2888. * src/XmlRpcMethod.cc
  2889. * src/XmlRpcMethod.h
  2890. * src/XmlRpcMethodImpl.cc
  2891. * src/XmlRpcResponse.cc
  2892. * src/XmlRpcResponse.h
  2893. * test/XmlRpcMethodTest.cc
  2894. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. In XML-RPC option struct, header and index-out option can take
  2896. array as value.
  2897. * src/XmlRpcMethod.cc
  2898. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Removed unused option member from PeerConnection.
  2900. * src/InitiatorMSEHandshakeCommand.cc
  2901. * src/PeerConnection.cc
  2902. * src/PeerConnection.h
  2903. * src/PeerInteractionCommand.cc
  2904. * src/PeerReceiveHandshakeCommand.cc
  2905. * src/ReceiverMSEHandshakeCommand.cc
  2906. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Added "seeder" key to getPeers response.
  2908. * src/XmlRpcMethodImpl.cc
  2909. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Added addMetalink XML-RPC command.
  2911. * src/XmlRpcMethodFactory.cc
  2912. * src/XmlRpcMethodImpl.cc
  2913. * src/XmlRpcMethodImpl.h
  2914. * src/download_helper.cc
  2915. * src/download_helper.h
  2916. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Fixed the bug that POU peers are never choked in seeding.
  2918. * src/BtSeederStateChoke.cc
  2919. * src/BtSeederStateChoke.h
  2920. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Added web-seeding URI handling in addTorrent command.
  2922. * src/XmlRpcMethodImpl.cc
  2923. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Added "length" key to getFiles response.
  2925. * src/XmlRpcMethodImpl.cc
  2926. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. Moved --no-netrc option from ftp option section to http/ftp option
  2928. section.
  2929. * doc/aria2c.1.txt
  2930. * src/OptionHandlerFactory.cc
  2931. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Removed garbage "\" character before '
  2933. * doc/aria2c.1.txt
  2934. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Removed garbage "\" character before http.
  2936. * doc/aria2c.1.txt
  2937. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Documented additional options that can be specified in -i list.
  2939. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2940. and --xml-rpc-passwd. Removed --enable-http-server and
  2941. --http-server-listen-port.
  2942. * doc/aria2c.1.txt
  2943. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2945. * src/DefaultPeerStorage.cc
  2946. * src/DefaultPeerStorage.h
  2947. * src/PeerStorage.h
  2948. * src/XmlRpcMethodImpl.cc
  2949. * test/MockPeerStorage.h
  2950. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Put a call to Socket::isReadable() in try block.
  2952. * src/HttpServerBodyCommand.cc
  2953. * src/HttpServerCommand.cc
  2954. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2956. exception , so it is now in try block.
  2957. * src/HttpServerResponseCommand.cc
  2958. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Added "amChoking" and "peerChoking" key in getPeers response.
  2960. * src/XmlRpcMethodImpl.cc
  2961. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Added test case for zero-length filter.
  2963. * test/BitfieldManTest.cc
  2964. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. getFiles command now returns file data for finished/stopped
  2966. downloads.
  2967. * src/XmlRpcMethodImpl.cc
  2968. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2969. DownloadResult now has the list of FileEntry. The download
  2970. summary displays the path of first selected file and the number of
  2971. remaining files for multi-file torrent.
  2972. * src/DownloadResult.h
  2973. * src/RequestGroup.cc
  2974. * src/RequestGroupMan.cc
  2975. * test/RequestGroupTest.cc
  2976. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Fixed segmentation fault error when no file is selected in
  2978. multi-file torrent.
  2979. * src/BitfieldMan.cc
  2980. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Escaped <,>,& character in XML-RPC response.
  2982. * src/XmlRpcMethod.cc
  2983. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Throw DlAbortEx instead of FatalException during parsing options
  2985. because we don't want for aria2 to quit when bad option is passed
  2986. via XML-RPC.
  2987. * src/OptionHandlerException.cc
  2988. * src/OptionHandlerException.h
  2989. * src/OptionHandlerImpl.h
  2990. * src/OptionParser.cc
  2991. * src/OptionParser.h
  2992. * src/PStringSegment.cc
  2993. * src/ParameterizedStringParser.cc
  2994. * src/download_helper.cc
  2995. * test/ParameterizedStringParserTest.cc
  2996. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Selecting files are now done in
  2998. DefaultBtContext::setFileFileter().
  2999. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3000. functions are removed because they are no longer used. Creating
  3001. filter in BitfieldMan is done in new funtion
  3002. PieceStorage::setupFileFilter()
  3003. * src/BtContext.cc
  3004. * src/BtContext.h
  3005. * src/DefaultBtContext.cc
  3006. * src/DefaultBtContext.h
  3007. * src/DefaultPieceStorage.cc
  3008. * src/DefaultPieceStorage.h
  3009. * src/DiskAdaptor.cc
  3010. * src/DiskAdaptor.h
  3011. * src/PieceStorage.h
  3012. * src/RequestGroup.cc
  3013. * src/UnknownLengthPieceStorage.h
  3014. * src/XmlRpcMethodImpl.cc
  3015. * test/DefaultBtContextTest.cc
  3016. * test/MockBtContext.h
  3017. * test/MockPieceStorage.h
  3018. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Fixed compile error on Mac OS X
  3020. * src/HttpServer.cc
  3021. * src/XmlRpcMethod.h
  3022. * src/XmlRpcMethodImpl.cc
  3023. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Use std::binary_search instead of std::find
  3025. * src/DefaultPieceStorage.cc
  3026. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Removed unnecessary BDE() call; leave them to implicit conversion.
  3028. * src/XmlRpcMethodImpl.cc
  3029. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Return connections and gid in string
  3031. * src/XmlRpcMethodImpl.cc
  3032. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Renamed addURI as addUri
  3034. * src/XmlRpcMethodFactory.cc
  3035. * src/XmlRpcMethodImpl.cc
  3036. * src/XmlRpcMethodImpl.h
  3037. * test/XmlRpcMethodTest.cc
  3038. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Renamed addTorrentFile as addTorrent
  3040. * src/XmlRpcMethodFactory.cc
  3041. * src/XmlRpcMethodImpl.cc
  3042. * src/XmlRpcMethodImpl.h
  3043. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. The information for files, URIs, peers are removed from the
  3045. reponse of TellaActive, TellStatus command because they tend to be
  3046. large. Instead they can be retrieved by the dedicated commands:
  3047. getFiles, getUris and getPeers respectively.
  3048. * src/XmlRpcMethodFactory.cc
  3049. * src/XmlRpcMethodImpl.cc
  3050. * src/XmlRpcMethodImpl.h
  3051. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Removed --max-overall-upload-limit and
  3053. --max-overall-download-limit option from listRequestOptions.
  3054. * src/download_helper.cc
  3055. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Log incoming host in HttpListenCommand.
  3057. * src/HttpListenCommand.cc
  3058. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3060. --xml-rpc-passwd option.
  3061. * src/HttpServer.cc
  3062. * src/HttpServer.h
  3063. * src/HttpServerCommand.cc
  3064. * src/OptionHandlerFactory.cc
  3065. * src/prefs.cc
  3066. * src/prefs.h
  3067. * src/usage_text.h
  3068. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3070. processing 0 length request.
  3071. * src/HttpServerBodyCommand.cc
  3072. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Removed --enable-http-server and --http-server-listen-port
  3074. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3075. instead. The original feature for --enable-http-server that
  3076. reports download progress in HTML was officially removed. Persist
  3077. XML-RPC connection if client supports keep-alive.
  3078. * src/DownloadEngineFactory.cc
  3079. * src/HttpServerCommand.cc
  3080. * src/HttpServerResponseCommand.cc
  3081. * src/Makefile.am
  3082. * src/Makefile.in
  3083. * src/OptionHandlerFactory.cc
  3084. * src/RequestGroupMan.cc
  3085. * src/main.cc
  3086. * src/option_processing.cc
  3087. * src/prefs.cc
  3088. * src/prefs.h
  3089. * src/usage_text.h
  3090. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Added "uris" key to the response of tellStatus command. Added
  3092. "connections" key to the response of tellStatus and tellActive
  3093. command.
  3094. * src/XmlRpcMethodImpl.cc
  3095. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3097. Added TellStatusXmlRpcMethod. Remove command can now remove
  3098. waiting RequestGroup.
  3099. * src/RequestGroupMan.cc
  3100. * src/RequestGroupMan.h
  3101. * src/XmlRpcMethodFactory.cc
  3102. * src/XmlRpcMethodImpl.cc
  3103. * src/XmlRpcMethodImpl.h
  3104. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Initialized _peerId
  3106. * src/Peer.cc
  3107. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Return fault structure for error. FailXmlRpcMethod is renamed as
  3109. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3110. in non-torrent download. Return single param value.
  3111. * src/XmlRpcMethod.cc
  3112. * src/XmlRpcMethodFactory.cc
  3113. * src/XmlRpcMethodImpl.cc
  3114. * src/XmlRpcMethodImpl.h
  3115. * test/XmlRpcMethodTest.cc
  3116. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3118. command.
  3119. * src/RequestGroup.cc
  3120. * src/RequestGroup.h
  3121. * src/RequestGroupMan.cc
  3122. * src/XmlRpcMethodImpl.cc
  3123. * test/RequestGroupTest.cc
  3124. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Added more options that can be specified in -i list and xml-rpc
  3126. add* command.
  3127. * src/download_helper.h
  3128. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. The available options in -i list should be listed in
  3130. listRequestOptions().
  3131. * src/download_helper.cc
  3132. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3133. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3134. command.
  3135. * src/XmlRpcMethodImpl.cc
  3136. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Now RequestGroup has its own copy of Option object. This will help
  3138. to give custom option for each RequestGroup.
  3139. addTorrentFile command now takes options.
  3140. * src/AbstractCommand.cc
  3141. * src/AbstractCommand.h
  3142. * src/AbstractProxyRequestCommand.cc
  3143. * src/ActivePeerConnectionCommand.cc
  3144. * src/ActivePeerConnectionCommand.h
  3145. * src/AdaptiveURISelector.cc
  3146. * src/BtCheckIntegrityEntry.cc
  3147. * src/BtDependency.cc
  3148. * src/BtDependency.h
  3149. * src/BtFileAllocationEntry.cc
  3150. * src/BtPostDownloadHandler.cc
  3151. * src/CheckIntegrityEntry.cc
  3152. * src/DownloadCommand.cc
  3153. * src/FtpDownloadCommand.cc
  3154. * src/FtpFinishDownloadCommand.cc
  3155. * src/FtpInitiateConnectionCommand.cc
  3156. * src/FtpNegotiationCommand.cc
  3157. * src/HttpInitiateConnectionCommand.cc
  3158. * src/HttpRequestCommand.cc
  3159. * src/HttpResponseCommand.cc
  3160. * src/HttpSkipResponseCommand.cc
  3161. * src/InitiateConnectionCommand.cc
  3162. * src/InitiateConnectionCommandFactory.cc
  3163. * src/InitiatorMSEHandshakeCommand.cc
  3164. * src/InitiatorMSEHandshakeCommand.h
  3165. * src/Metalink2RequestGroup.cc
  3166. * src/Metalink2RequestGroup.h
  3167. * src/MetalinkPostDownloadHandler.cc
  3168. * src/MultiUrlRequestInfo.cc
  3169. * src/MultiUrlRequestInfo.h
  3170. * src/PeerAbstractCommand.cc
  3171. * src/PeerInteractionCommand.cc
  3172. * src/PeerInteractionCommand.h
  3173. * src/PeerReceiveHandshakeCommand.cc
  3174. * src/PeerReceiveHandshakeCommand.h
  3175. * src/RequestGroup.cc
  3176. * src/RequestGroup.h
  3177. * src/TrackerWatcherCommand.cc
  3178. * src/TrackerWatcherCommand.h
  3179. * src/XmlRpcMethod.cc
  3180. * src/XmlRpcMethod.h
  3181. * src/XmlRpcMethodImpl.cc
  3182. * src/download_helper.cc
  3183. * src/download_helper.h
  3184. * src/main.cc
  3185. * test/BtDependencyTest.cc
  3186. * test/BtPostDownloadHandlerTest.cc
  3187. * test/DefaultBtMessageDispatcherTest.cc
  3188. * test/DownloadHandlerFactoryTest.cc
  3189. * test/DownloadHelperTest.cc
  3190. * test/Metalink2RequestGroupTest.cc
  3191. * test/MetalinkPostDownloadHandlerTest.cc
  3192. * test/RequestGroupManTest.cc
  3193. * test/RequestGroupTest.cc
  3194. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Added tellActiveStatus xml-rpc command which reports download
  3196. status of active downloads.
  3197. * src/XmlRpcMethodFactory.cc
  3198. * src/XmlRpcMethodImpl.cc
  3199. * src/XmlRpcMethodImpl.h
  3200. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Added addTorrentFile xml-rpc command which receives uploaded
  3202. torrent file and add download for it.
  3203. * src/RequestGroupMan.cc
  3204. * src/XmlRpcMethodFactory.cc
  3205. * src/XmlRpcMethodImpl.cc
  3206. * src/XmlRpcMethodImpl.h
  3207. * src/download_helper.cc
  3208. * src/download_helper.h
  3209. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Added remove xml-rpc command which removes specified download.
  3211. There is a known issue: the removed unfinished downloads are
  3212. reported ERR when aria2 exits. They should be reported as INPR.
  3213. * src/RequestGroupMan.cc
  3214. * src/RequestGroupMan.h
  3215. * src/XmlRpcMethodFactory.cc
  3216. * src/XmlRpcMethodImpl.cc
  3217. * src/XmlRpcMethodImpl.h
  3218. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. If --enable-http-server is enabled, don't stop aria2 when all
  3220. download finished and don't quit when no files to download at
  3221. start up.
  3222. * src/RequestGroupMan.cc
  3223. * src/main.cc
  3224. * src/option_processing.cc
  3225. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Added missing AM_CONDITIONAL
  3227. * configure.ac
  3228. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Added xml-rpc functionality. Currently only addURI commad is
  3230. supported. To enable xml-rpc, run aria2 with
  3231. --enable-http-server. This option name is temporal and will be
  3232. changed. The feature that reports download progress in html format
  3233. is temporarily disabled.
  3234. * src/HttpServer.cc
  3235. * src/HttpServer.h
  3236. * src/HttpServerBodyCommand.cc
  3237. * src/HttpServerBodyCommand.h
  3238. * src/HttpServerCommand.cc
  3239. * src/HttpServerResponseCommand.cc
  3240. * src/Makefile.am
  3241. * src/OptionParser.cc
  3242. * src/OptionParser.h
  3243. * src/RequestGroupMan.cc
  3244. * src/RequestGroupMan.h
  3245. * src/XmlRpcMethod.cc
  3246. * src/XmlRpcMethod.h
  3247. * src/XmlRpcMethodFactory.cc
  3248. * src/XmlRpcMethodFactory.h
  3249. * src/XmlRpcMethodImpl.cc
  3250. * src/XmlRpcMethodImpl.h
  3251. * src/download_helper.cc
  3252. * src/download_helper.h
  3253. * test/Makefile.am
  3254. * test/XmlRpcMethodTest.cc
  3255. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Added xml-rpc request parser. The supported value types are:
  3257. i4/int, string, double, struct, array, base64. Currently only
  3258. libxml2 version is provided.
  3259. * src/Xml2XmlRpcRequestProcessor.cc
  3260. * src/Xml2XmlRpcRequestProcessor.h
  3261. * src/XmlRpcElements.cc
  3262. * src/XmlRpcElements.h
  3263. * src/XmlRpcRequest.h
  3264. * src/XmlRpcRequestParserController.cc
  3265. * src/XmlRpcRequestParserController.h
  3266. * src/XmlRpcRequestParserState.h
  3267. * src/XmlRpcRequestParserStateImpl.cc
  3268. * src/XmlRpcRequestParserStateImpl.h
  3269. * src/XmlRpcRequestParserStateMachine.cc
  3270. * src/XmlRpcRequestParserStateMachine.h
  3271. * src/XmlRpcRequestProcessor.h
  3272. * test/XmlRpcRequestParserControllerTest.cc
  3273. * test/XmlRpcRequestProcessorTest.cc
  3274. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. * Release 1.3.3
  3276. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Fixed compile error since r1202.
  3278. * src/ExpatMetalinkProcessor.cc
  3279. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Updated Ukrainian, Russian and Simplified Chinese
  3281. translations. Thanks to all translators.
  3282. * po/ru.po
  3283. * po/uk.po
  3284. * po/zh_CN.po
  3285. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Pass reference of Option object instead of pointer.
  3287. * src/download_helper.cc
  3288. * src/download_helper.h
  3289. * src/main.cc
  3290. * test/DownloadHelperTest.cc
  3291. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3293. from option directly. Instead, get them from RequestGroup.
  3294. * src/ActivePeerConnectionCommand.cc
  3295. * src/ActivePeerConnectionCommand.h
  3296. * src/PeerReceiveHandshakeCommand.cc
  3297. * src/RequestGroup.h
  3298. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Removed unused uploadLimitCheck and uploadLimit from
  3300. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3301. PeerInteractionCommand.
  3302. * src/PeerAbstractCommand.cc
  3303. * src/PeerAbstractCommand.h
  3304. * src/PeerInteractionCommand.cc
  3305. * src/PeerInteractionCommand.h
  3306. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3307. Fixed broken file renaming feature since r1202.
  3308. * src/FtpNegotiationCommand.cc
  3309. * src/FtpNegotiationCommand.h
  3310. * src/HttpResponseCommand.cc
  3311. * src/RequestGroup.cc
  3312. * src/RequestGroup.h
  3313. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Removed unused debug log
  3315. * src/SocketCore.cc
  3316. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Generated configure and Makefile.in using autoconf 2.63 and
  3318. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3319. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3320. * configure.ac
  3321. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Moved piece statistics stuff to new PieceStatMan class.
  3323. Refactored PieceSelector interface.
  3324. * src/DefaultPieceStorage.cc
  3325. * src/DefaultPieceStorage.h
  3326. * src/LongestSequencePieceSelector.cc
  3327. * src/LongestSequencePieceSelector.h
  3328. * src/Makefile.am
  3329. * src/PieceSelector.h
  3330. * src/PieceStatMan.cc
  3331. * src/PieceStatMan.h
  3332. * src/RarestPieceSelector.cc
  3333. * src/RarestPieceSelector.h
  3334. * src/RequestGroup.cc
  3335. * test/DefaultPieceStorageTest.cc
  3336. * test/InOrderPieceSelector.h
  3337. * test/Makefile.am
  3338. * test/PieceStatManTest.cc
  3339. * test/RarestPieceSelectorTest.cc
  3340. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Added static member _protocolFamily to SocketCore. By default,
  3342. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3343. address. Sometime SocketCore::bind() and
  3344. SocketCore::establishConnection() use difference protocl family
  3345. and latter cannot connect to former. To avoid this situation, we
  3346. limit protocol family to AF_INET for unit tests.
  3347. * src/SocketCore.cc
  3348. * src/SocketCore.h
  3349. * test/AllTest.cc
  3350. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Avoid std::bad_alloc for negative bencode string length.
  3352. * src/bencode.cc
  3353. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Supported segmented downloading with chunked transfer encoding and
  3355. content-length.
  3356. * src/DownloadCommand.cc
  3357. * src/HttpResponseCommand.cc
  3358. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Bump up version number to 1.3.3
  3360. * configure.ac
  3361. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3363. from 4096 to 65536 (for insanely large ftp login banners)
  3364. * src/FtpConnection.h
  3365. * test/FtpConnectionTest.cc
  3366. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. In DefaultBtContext::getActualBasePath(), return first
  3368. FileEntry::getPath() for single file torrent.
  3369. * src/DefaultBtContext.cc
  3370. * test/DefaultBtContextTest.cc
  3371. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3373. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3374. Removed _directIOAllowed member from DiskWriter.
  3375. * src/AbstractDiskWriter.cc
  3376. * src/AbstractDiskWriter.h
  3377. * src/AbstractSingleDiskAdaptor.cc
  3378. * src/AbstractSingleDiskAdaptor.h
  3379. * src/BinaryStream.h
  3380. * src/ByteArrayDiskWriter.h
  3381. * src/DefaultPieceStorage.cc
  3382. * src/DiskWriter.h
  3383. * src/MultiDiskAdaptor.cc
  3384. * src/MultiDiskAdaptor.h
  3385. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Now the constructor of AbstractDiskWriter takes filename as an
  3387. argument and filename argument is removed from openFile(),
  3388. initAndOpenFile(), openExistingFile() interface. storeDir member
  3389. and its accessor functions are removed from DiskAdaptor because it
  3390. is not used anymore. size() member function of DefaultDiskWriter,
  3391. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3392. opening file.
  3393. * src/AbstractDiskWriter.cc
  3394. * src/AbstractDiskWriter.h
  3395. * src/AbstractSingleDiskAdaptor.cc
  3396. * src/AbstractSingleDiskAdaptor.h
  3397. * src/ByteArrayDiskWriter.cc
  3398. * src/ByteArrayDiskWriter.h
  3399. * src/ByteArrayDiskWriterFactory.cc
  3400. * src/ByteArrayDiskWriterFactory.h
  3401. * src/DefaultDiskWriter.cc
  3402. * src/DefaultDiskWriter.h
  3403. * src/DefaultDiskWriterFactory.cc
  3404. * src/DefaultDiskWriterFactory.h
  3405. * src/DefaultPieceStorage.cc
  3406. * src/DirectDiskAdaptor.cc
  3407. * src/DirectDiskAdaptor.h
  3408. * src/DiskAdaptor.h
  3409. * src/DiskWriter.h
  3410. * src/DiskWriterFactory.h
  3411. * src/MessageDigestHelper.cc
  3412. * src/MultiDiskAdaptor.cc
  3413. * src/RequestGroup.cc
  3414. * src/UnknownLengthPieceStorage.cc
  3415. * src/Util.cc
  3416. * test/DefaultDiskWriterTest.cc
  3417. * test/DirectDiskAdaptorTest.cc
  3418. * test/FallocFileAllocationIteratorTest.cc
  3419. * test/MessageDigestHelperTest.cc
  3420. * test/MetalinkProcessorTest.cc
  3421. * test/MultiDiskAdaptorTest.cc
  3422. * test/MultiFileAllocationIteratorTest.cc
  3423. * test/SingleFileAllocationIteratorTest.cc
  3424. * test/UtilTest.cc
  3425. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Fixed the bug that aria2 aborts when --select-file is used. This
  3427. bug was introduced in r1199.
  3428. * src/MultiDiskAdaptor.cc
  3429. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Code cleanup
  3431. * test/MockPieceStorage.cc
  3432. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Fixed the bug that read-only file with wrong file size will cause
  3434. error because it cannot be truncated to the correct size. Now if
  3435. file size is different than the expected one, re-open file in
  3436. writable mode.
  3437. * src/AbstractSingleDiskAdaptor.cc
  3438. * src/AbstractSingleDiskAdaptor.h
  3439. * src/BtCheckIntegrityEntry.cc
  3440. * src/DiskAdaptor.h
  3441. * src/MultiDiskAdaptor.h
  3442. * src/RequestGroup.cc
  3443. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Fixed the bug that with --check-integrity option aria2 reports
  3445. downloaded file size is 0 even if some parts of file is correctly
  3446. downloaded. This bug is reproducible for the download that a file
  3447. includes last piece is missing. This bug doesn't reveal for
  3448. single-torrent with file allocation on.
  3449. * src/IteratableChecksumValidator.cc
  3450. * test/IteratableChecksumValidatorTest.cc
  3451. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3453. * src/RequestGroupMan.cc
  3454. * src/AdaptiveURISelector.cc
  3455. * src/AdaptiveURISelector.h
  3456. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3457. * Release 1.3.2
  3458. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Updated README
  3460. * README
  3461. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Updated Ukrainian translations. Thanks to Alexander10.
  3463. * po/uk.po
  3464. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Code cleanup
  3466. * src/MetalinkParserStateMachine.cc
  3467. * src/MetalinkParserStateMachine.h
  3468. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3470. and expat simultaneously, MetalinkProcessor is now not base class
  3471. and it is directly implemented in XML2SAXMetalinkProcessor and
  3472. ExpatMetalinkProcessor.
  3473. * src/ExpatMetalinkProcessor.cc
  3474. * src/ExpatMetalinkProcessor.h
  3475. * src/Makefile.am
  3476. * src/MetalinkHelper.cc
  3477. * src/MetalinkProcessor.h
  3478. * src/MetalinkProcessorFactory.cc: Removed.
  3479. * src/MetalinkProcessorFactory.h: Removed
  3480. * src/XML2SAXMetalinkProcessor.cc
  3481. * src/XML2SAXMetalinkProcessor.h
  3482. * test/MetalinkProcessorTest.cc
  3483. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Bump up version number to 1.3.2
  3485. * configure.ac
  3486. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Added missing file.
  3488. * test/Makefile.am
  3489. * test/url-list-singleFileEndsWithSlash.torrent
  3490. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3492. request.
  3493. * src/AnnounceList.cc
  3494. * src/AnnounceList.h
  3495. * src/BDE.cc: Added
  3496. * src/BDE.h: Added
  3497. * src/DHTAbstractMessage.cc
  3498. * src/DHTAbstractMessage.h
  3499. * src/DHTAnnouncePeerMessage.cc
  3500. * src/DHTAnnouncePeerMessage.h
  3501. * src/DHTAnnouncePeerReplyMessage.cc
  3502. * src/DHTAnnouncePeerReplyMessage.h
  3503. * src/DHTFindNodeMessage.cc
  3504. * src/DHTFindNodeMessage.h
  3505. * src/DHTFindNodeReplyMessage.cc
  3506. * src/DHTFindNodeReplyMessage.h
  3507. * src/DHTGetPeersMessage.cc
  3508. * src/DHTGetPeersMessage.h
  3509. * src/DHTGetPeersReplyMessage.cc
  3510. * src/DHTGetPeersReplyMessage.h
  3511. * src/DHTMessageFactory.h
  3512. * src/DHTMessageFactoryImpl.cc
  3513. * src/DHTMessageFactoryImpl.h
  3514. * src/DHTMessageReceiver.cc
  3515. * src/DHTMessageTracker.cc
  3516. * src/DHTMessageTracker.h
  3517. * src/DHTPingMessage.cc
  3518. * src/DHTPingMessage.h
  3519. * src/DHTPingReplyMessage.cc
  3520. * src/DHTPingReplyMessage.h
  3521. * src/DHTQueryMessage.cc
  3522. * src/DHTQueryMessage.h
  3523. * src/DHTResponseMessage.cc
  3524. * src/DHTResponseMessage.h
  3525. * src/DefaultBtAnnounce.cc
  3526. * src/DefaultBtContext.cc
  3527. * src/DefaultBtContext.h
  3528. * src/HandshakeExtensionMessage.cc
  3529. * src/Makefile.am
  3530. * src/PeerListProcessor.h
  3531. * src/UTPexExtensionMessage.cc
  3532. * src/bencode.cc
  3533. * src/bencode.h
  3534. * test/AnnounceListTest.cc
  3535. * test/BDETest.cc: Added
  3536. * test/BencodeTest.cc
  3537. * test/DHTAnnouncePeerMessageTest.cc
  3538. * test/DHTAnnouncePeerReplyMessageTest.cc
  3539. * test/DHTFindNodeMessageTest.cc
  3540. * test/DHTFindNodeReplyMessageTest.cc
  3541. * test/DHTGetPeersMessageTest.cc
  3542. * test/DHTGetPeersReplyMessageTest.cc
  3543. * test/DHTMessageFactoryImplTest.cc
  3544. * test/DHTMessageTrackerTest.cc
  3545. * test/DHTPingMessageTest.cc
  3546. * test/DHTPingReplyMessageTest.cc
  3547. * test/Makefile.am
  3548. * test/MockDHTMessageFactory.h
  3549. * test/PeerListProcessorTest.cc
  3550. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Use url-list (web-seeding) only for single-file torrent. This is
  3552. basically the same behavior with Metalink file with torrent and
  3553. URIs.
  3554. * src/RequestGroup.cc
  3555. * src/DefaultBtContext.cc
  3556. * test/DefaultBtContextTest.cc
  3557. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3558. Rewritten expr
  3559. * src/array_fun.h
  3560. * test/array_funTest.cc
  3561. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3563. * src/DefaultBtMessageDispatcher.cc
  3564. * src/a2algo.h
  3565. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Removed ExtendedMessagingAware. Instead of using inheritance,
  3567. added ExtensionMessageRegistry and it is passed to
  3568. DefaultExtensionMessageFactory.
  3569. * src/DefaultBtInteractive.cc
  3570. * src/DefaultBtInteractive.h
  3571. * src/DefaultExtensionMessageFactory.cc
  3572. * src/DefaultExtensionMessageFactory.h
  3573. * src/ExtendedMessagingAware.h: Removed.
  3574. * src/ExtensionMessageFactory.h
  3575. * src/ExtensionMessageRegistry.h: Added.
  3576. * src/Makefile.am
  3577. * src/PeerInteractionCommand.cc
  3578. * test/DefaultExtensionMessageFactoryTest.cc
  3579. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3580. Fixed typo in log messages
  3581. * src/MSEHandshake.cc
  3582. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3583. Fixed the bug that prevents torrent download from finishing. The
  3584. bug doesn't reveal for all torrents. The torrents affected this
  3585. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3586. of pieces.
  3587. * src/bitfield.h
  3588. * test/bitfieldTest.cc
  3589. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Code cleanup
  3591. * src/PeerListProcessor.h
  3592. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Removed RequestGroupAware
  3594. * src/AbstractCommand.cc
  3595. * src/AbstractCommand.h
  3596. * src/ActivePeerConnectionCommand.cc
  3597. * src/ActivePeerConnectionCommand.h
  3598. * src/DHTGetPeersCommand.cc
  3599. * src/DHTGetPeersCommand.h
  3600. * src/InitiatorMSEHandshakeCommand.cc
  3601. * src/InitiatorMSEHandshakeCommand.h
  3602. * src/Makefile.am
  3603. * src/PeerInitiateConnectionCommand.cc
  3604. * src/PeerInitiateConnectionCommand.h
  3605. * src/PeerInteractionCommand.cc
  3606. * src/PeerInteractionCommand.h
  3607. * src/RealtimeCommand.cc
  3608. * src/RealtimeCommand.h
  3609. * src/RequestGroupAware.cc: Removed
  3610. * src/RequestGroupAware.h: Removed
  3611. * src/SeedCheckCommand.cc
  3612. * src/SeedCheckCommand.h
  3613. * src/SleepCommand.cc
  3614. * src/TrackerWatcherCommand.cc
  3615. * src/TrackerWatcherCommand.h
  3616. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Rewritten PeerListProcessor
  3618. * src/PeerListProcessor.h
  3619. * src/CompactPeerListProcessor.h: Removed
  3620. * src/CompactPeerListProcessor.cc: Removed
  3621. * src/DelegatingPeerListProcessor.cc: Removed.
  3622. * src/DefaultBtAnnounce.cc
  3623. * src/Makefile.am
  3624. * src/UTPexExtensionMessage.cc
  3625. * src/DefaultPeerListProcessor.h: Removed.
  3626. * src/DefaultPeerListProcessor.cc: Removed.
  3627. * src/DelegatingPeerListProcessor.h: Removed.
  3628. * test/Makefile.am
  3629. * test/PeerListProcessorTest.cc
  3630. * test/DefaultPeerListProcessorTest.cc: Removed.
  3631. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Rewritten RequestGroupMan::calculateStat()
  3633. * src/RequestGroupMan.cc
  3634. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Removed unnecessary virtual destructor for Request class.
  3636. * src/Request.cc
  3637. * src/Request.h
  3638. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3639. Avoid dynamic_pointer_cast.
  3640. * src/DHTGetPeersCommand.cc
  3641. * src/DHTGetPeersCommand.h
  3642. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3644. BtEvent.
  3645. * src/AbstractBtEventListener.h: Removed.
  3646. * src/AbstractBtMessage.cc
  3647. * src/AbstractBtMessage.h
  3648. * src/BtAbortOutstandingRequestEvent.h
  3649. * src/BtCancelSendingPieceEvent.h
  3650. * src/BtChokedEvent.h: Removed.
  3651. * src/BtChokingEvent.h
  3652. * src/BtEvent.h: Removed
  3653. * src/BtEventListener.h: Removed.
  3654. * src/BtMessage.h
  3655. * src/BtPieceMessage.cc
  3656. * src/BtPieceMessage.h
  3657. * src/BtRequestMessage.cc
  3658. * src/BtRequestMessage.h
  3659. * src/DefaultBtMessageDispatcher.cc
  3660. * src/Makefile.am
  3661. * src/a2functional.h
  3662. * test/BtPieceMessageTest.cc
  3663. * test/BtRequestMessageTest.cc
  3664. * test/DefaultBtMessageDispatcherTest.cc
  3665. * test/MockBtMessage.h
  3666. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Code cleanup
  3668. * src/RequestGroupMan.cc
  3669. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Code cleanup
  3671. * src/DownloadCommand.cc
  3672. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3674. byte.
  3675. * src/DownloadCommand.cc
  3676. * src/bitfield.h
  3677. * test/bitfieldTest.cc
  3678. Fixed the bug that causes infinite loop if broken web server
  3679. returns chunked response without last "0" chunk-size marker and
  3680. closes connection.
  3681. * src/DownloadCommand.cc
  3682. Instantiate properly configured HttpDownloadCommand for
  3683. non-resumable downlaods.
  3684. * src/HttpResponseCommand.cc
  3685. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Rewritten array operation functions.
  3687. * src/BitfieldMan.cc
  3688. * src/array_fun.h
  3689. * test/array_funTest.cc
  3690. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Removed unused variable 'query'
  3692. * src/Request.cc
  3693. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3695. accidentally set to false in r1162.
  3696. * configure.ac
  3697. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Code cleanup
  3699. * src/BNode.cc
  3700. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Increase prefixLength for the bucket which doesn't own local node
  3702. ID when splitting bucket.
  3703. * src/DHTBucket.cc
  3704. * test/DHTBucketTest.cc
  3705. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. * Release 1.3.1
  3707. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Bump up version number to 1.3.1
  3709. * configure.ac
  3710. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Removed unused variable checkPoint. Also removed include directive
  3712. for TimeA2.h.
  3713. * src/SeedCheckCommand.h
  3714. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Fixed the bug that upload limit exceeds the value specified in
  3716. --seed-ratio option depending on the timing of the execution of
  3717. SeedCheckCommand.
  3718. * src/SeedCheckCommand.cc
  3719. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Fixed the bug that removed peer's session upload/download length
  3721. are counted twice in _cachedTransferStat before it is
  3722. re-calculated. This affected the calculation of shara ratio,
  3723. resulting aria2 wrongly determines that specified share ratio is
  3724. reached. Also fixed the typo in calculateStatFor function name.
  3725. * src/BtSetup.cc
  3726. * src/DefaultPeerStorage.cc
  3727. * src/ShareRatioSeedCriteria.h
  3728. * test/ShareRatioSeedCriteriaTest.cc
  3729. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. * Release 1.3.0
  3731. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3733. Nynorsk translations. Thanks to all translators.
  3734. * po/es.po
  3735. * po/ja.po
  3736. * po/nn.po
  3737. * po/ru.po
  3738. * po/uk.po
  3739. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Rewritten isInRange()
  3741. * src/DHTBucket.cc
  3742. * test/DHTBucketTest.cc
  3743. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Fixed typo
  3745. * doc/aria2c.1.txt
  3746. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3748. malloc/realloc is not used.
  3749. * src/configure.ac
  3750. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3752. char* bitfield instead of stl container for efficiency.
  3753. PieceSelector::select now takes this
  3754. bitfield. RarestPieceSelector::select now also performs
  3755. efficiently for this change. bitfield namespace is introduced and
  3756. it has several helper functions to handle basic bitfield
  3757. operations such as test, count set bits, etc.
  3758. * src/BitfieldMan.cc
  3759. * src/BitfieldMan.h
  3760. * src/DefaultBtRequestFactory.cc
  3761. * src/DefaultPieceStorage.cc
  3762. * src/DefaultPieceStorage.h
  3763. * src/LongestSequencePieceSelector.cc
  3764. * src/LongestSequencePieceSelector.h
  3765. * src/Makefile.am
  3766. * src/Piece.cc
  3767. * src/Piece.h
  3768. * src/PieceSelector.h
  3769. * src/RarestPieceSelector.cc
  3770. * src/RarestPieceSelector.h
  3771. * src/Util.cc
  3772. * src/Util.h
  3773. * src/bitfield.h
  3774. * test/BitfieldManTest.cc
  3775. * test/LongestSequencePieceSelectorTest.cc
  3776. * test/Makefile.am
  3777. * test/RarestPieceSelectorTest.cc
  3778. * test/UtilTest.cc
  3779. * test/bitfieldTest.cc
  3780. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Made accepted socket non-block.
  3782. * src/FtpNegotiationCommand.cc
  3783. * src/HttpListenCommand.cc
  3784. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3786. * src/AbstractSingleDiskAdaptor.cc
  3787. * src/DefaultPieceStorage.cc
  3788. * src/DiskAdaptor.h
  3789. * src/DiskAdaptor.h
  3790. * src/MultiFileAllocationIterator.cc
  3791. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Run
  3793. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3794. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3795. it doesn't need to be called every time when
  3796. DefaultBtInteractive::doInteractionProcessing() is called.
  3797. * src/DefaultBtInteractive.cc
  3798. * src/DefaultBtInteractive.h
  3799. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Documented 'falloc' in man page.
  3801. * doc/aria2c.1.txt
  3802. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Updated doc
  3804. * src/usage_text.h
  3805. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3807. allocation mode uses posix_fallocate() system call to allocate
  3808. file on disk. If you are using newer file systems such as ext4
  3809. (with extents support), btrfs or xfs, 'falloc' is your best
  3810. choice. It allocates large(few GiB) files almost instantly. Don't
  3811. use 'falloc' with legacy file systems such as ext3 because it
  3812. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3813. until allocation finishes. 'falloc' may not be available if your
  3814. system doesn't have posix_fallocate() system call.
  3815. * configure.ac
  3816. * src/AbstractDiskWriter.cc
  3817. * src/AbstractDiskWriter.h
  3818. * src/AbstractSingleDiskAdaptor.cc
  3819. * src/BinaryStream.h
  3820. * src/BtCheckIntegrityEntry.cc
  3821. * src/ByteArrayDiskWriter.h
  3822. * src/CheckIntegrityEntry.cc
  3823. * src/CheckIntegrityEntry.h
  3824. * src/DefaultPieceStorage.cc
  3825. * src/DiskAdaptor.cc
  3826. * src/DiskAdaptor.h
  3827. * src/DiskWriter.h
  3828. * src/FallocFileAllocationIterator.cc
  3829. * src/FallocFileAllocationIterator.h
  3830. * src/FileAllocationEntry.cc
  3831. * src/FileAllocationEntry.h
  3832. * src/Makefile.am
  3833. * src/MultiFileAllocationIterator.cc
  3834. * src/MultiFileAllocationIterator.h
  3835. * src/OptionHandlerFactory.cc
  3836. * src/RequestGroup.cc
  3837. * src/StreamCheckIntegrityEntry.cc
  3838. * src/prefs.cc
  3839. * src/prefs.h
  3840. * src/usage_text.h
  3841. * test/FallocFileAllocationIteratorTest.cc
  3842. * test/Makefile.am
  3843. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Removed duplicate enableDirectIO() call.
  3845. * src/MultiFileAllocationIterator.cc
  3846. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3848. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3849. cost of std::rotate().
  3850. * src/RarestPieceSelector.cc
  3851. * src/RarestPieceSelector.h
  3852. * test/RarestPieceSelectorTest.cc
  3853. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Updated usage doc for --bt-tracker-interval option.
  3855. * src/usage_text.h
  3856. * doc/aria2c.1.txt
  3857. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Documented --bt-tracker-interval option in man page.
  3859. * doc/aria2c.1.txt
  3860. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Added an option to specify the interval between tracker requests.
  3862. If non-zero value is specified, aria2 uses it and ignores the
  3863. interval value in the response of tracker. If zero is specified,
  3864. aria2 determines the inteval value based on the tarcker response
  3865. and download progress.
  3866. * src/DefaultBtAnnounce.cc
  3867. * src/DefaultBtAnnounce.h
  3868. * src/OptionHandlerFactory.cc
  3869. * src/RequestGroup.cc
  3870. * src/prefs.cc
  3871. * src/prefs.h
  3872. * src/usage_text.h
  3873. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Added operator+=, operator-=, operator-
  3875. * src/TransferStat.cc
  3876. * src/TransferStat.h
  3877. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Refactored RarestPieceSelector to reduce CPU load, especially for
  3879. addPieceStats.
  3880. * src/RarestPieceSelector.cc
  3881. * src/RarestPieceSelector.h
  3882. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3884. getAllMissingBlockIndexes to reduce a call to
  3885. array_function_base::operator[].
  3886. * src/BitfieldMan.cc
  3887. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Cached TransferStat/download speed to avoid to sum them up in each
  3889. call.
  3890. * src/DefaultPeerStorage.cc
  3891. * src/DefaultPeerStorage.h
  3892. * src/SegmentMan.cc
  3893. * src/SegmentMan.h
  3894. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Typedefed cuid_t as int32_t in Command.h
  3896. * src/CUIDCounter.h
  3897. * src/Command.cc
  3898. * src/Command.h
  3899. * src/DownloadEngine.cc
  3900. * src/DownloadEngine.h
  3901. * src/PeerStat.h
  3902. * src/SegmentMan.cc
  3903. * src/SegmentMan.h
  3904. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Reduced the number of calls to PeerStorage::calculateStat() and
  3906. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3907. transfer rate.
  3908. * src/DefaultBtInteractive.cc
  3909. * src/DefaultBtMessageDispatcher.cc
  3910. * src/DefaultPeerStorage.cc
  3911. * src/DefaultPeerStorage.h
  3912. * src/DownloadCommand.cc
  3913. * src/DownloadEngine.cc
  3914. * src/PeerStorage.h
  3915. * src/SegmentMan.cc
  3916. * src/SegmentMan.h
  3917. * test/MockPeerStorage.h
  3918. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Prepended _dir+"/" after joining path elements in torrent file.
  3920. * src/DefaultBtContext.cc
  3921. * test/DefaultBtContextTest.cc
  3922. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Added missing IndexBtMessageValidator.h
  3924. * src/Makefile.am
  3925. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3927. Chinese translations. Thank you for contributing our project.
  3928. * po/id.po
  3929. * po/it.po
  3930. * po/ru.po
  3931. * po/uk.po
  3932. * po/zh_CN.po
  3933. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Updated README
  3935. * README
  3936. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Bump up version number to 1.3.0
  3938. * configure.ac
  3939. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Updated doc
  3941. * src/DefaultBtContext.h
  3942. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Slice/joinPath for name of single torrent.
  3944. * src/DefaultBtContext.cc
  3945. * test/DefaultBtContextTest.cc
  3946. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Updated man page: Documented --dry-run and --index-out
  3948. options. Changed the default value of --uri-selector and
  3949. --http-auth-challenge options. Removed --direct-file-mapping
  3950. option. Added example for --index-out
  3951. * doc/aria2c.1.txt
  3952. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Updated TEXT_DRY_RUN
  3954. * src/usage_text.h
  3955. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Changed the default value of --uri-selector option from 'inorder'
  3957. to 'feedback'
  3958. * src/OptionHandlerFactory.cc
  3959. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3960. Included current URI in exception message.
  3961. * src/AbstractCommand.cc
  3962. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Renamed ServerStatURISelector as FeedbackURISelector.
  3964. * src/FeedbackURISelector.cc
  3965. * src/FeedbackURISelector.h
  3966. * src/Makefile.am
  3967. * src/RequestGroupMan.cc
  3968. * src/ServerStatURISelector.cc
  3969. * src/ServerStatURISelector.h
  3970. * test/FeedbackURISelectorTest.cc
  3971. * test/Makefile.am
  3972. * test/ServerStatURISelectorTest.cc
  3973. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3975. all URIs are tested and their timeout is not reached.
  3976. * src/AdaptiveURISelector.cc
  3977. * src/AdaptiveURISelector.h
  3978. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Changed the default value of --http-auth-challenge option to false.
  3980. * src/OptionHandlerFactory.cc
  3981. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Reuse URIs when all unused URIs run out.
  3983. * src/OptionHandlerFactory.cc
  3984. * src/RequestGroup.cc
  3985. * src/prefs.cc
  3986. * src/prefs.h
  3987. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3989. and BtRejectMessage are derived from RangeBtMessage class.
  3990. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3991. derived from IndexBtMessage class. BtChokeMessage,
  3992. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3993. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3994. ZeroBtMessage class.
  3995. * src/AbstractBtMessage.cc
  3996. * src/AbstractBtMessage.h
  3997. * src/BtAllowedFastMessage.cc
  3998. * src/BtAllowedFastMessage.h
  3999. * src/BtAllowedFastMessageValidator.h: Removed
  4000. * src/BtBitfieldMessage.cc
  4001. * src/BtBitfieldMessage.h
  4002. * src/BtCancelMessage.cc
  4003. * src/BtCancelMessage.h
  4004. * src/BtCancelMessageValidator.h: Removed
  4005. * src/BtChokeMessage.cc
  4006. * src/BtChokeMessage.h
  4007. * src/BtExtendedMessage.cc
  4008. * src/BtExtendedMessage.h
  4009. * src/BtHandshakeMessage.cc
  4010. * src/BtHandshakeMessage.h
  4011. * src/BtHaveAllMessage.cc
  4012. * src/BtHaveAllMessage.h
  4013. * src/BtHaveMessage.cc
  4014. * src/BtHaveMessage.h
  4015. * src/BtHaveMessageValidator.h: Removed
  4016. * src/BtHaveNoneMessage.cc
  4017. * src/BtHaveNoneMessage.h
  4018. * src/BtInterestedMessage.cc
  4019. * src/BtInterestedMessage.h
  4020. * src/BtKeepAliveMessage.cc
  4021. * src/BtKeepAliveMessage.h
  4022. * src/BtNotInterestedMessage.cc
  4023. * src/BtNotInterestedMessage.h
  4024. * src/BtPieceMessage.cc
  4025. * src/BtPieceMessage.h
  4026. * src/BtPortMessage.cc
  4027. * src/BtPortMessage.h
  4028. * src/BtRejectMessage.cc
  4029. * src/BtRejectMessage.h
  4030. * src/BtRejectMessageValidator.h: Removed
  4031. * src/BtRequestMessage.cc
  4032. * src/BtRequestMessage.h
  4033. * src/BtRequestMessageValidator.h: Removed
  4034. * src/BtSuggestPieceMessage.cc
  4035. * src/BtSuggestPieceMessage.h
  4036. * src/BtSuggestPieceMessageValidator.h: Removed
  4037. * src/BtUnchokeMessage.cc
  4038. * src/BtUnchokeMessage.h
  4039. * src/DefaultBtMessageFactory.cc
  4040. * src/IndexBtMessage.cc
  4041. * src/IndexBtMessage.h
  4042. * src/IndexBtMessageValidator.h
  4043. * src/Makefile.am
  4044. * src/PeerMessageUtil.cc
  4045. * src/PeerMessageUtil.h
  4046. * src/RangeBtMessage.cc
  4047. * src/RangeBtMessage.h
  4048. * src/RangeBtMessageValidator.h
  4049. * src/SimpleBtMessage.cc
  4050. * src/SimpleBtMessage.h
  4051. * src/ZeroBtMessage.cc
  4052. * src/ZeroBtMessage.h
  4053. * test/BtRequestMessageTest.cc
  4054. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Reverted usage_text.h to r1093 to avoid to lose translated
  4056. messages.
  4057. * src/usage_text.h
  4058. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4060. declared as non-const previously is now const and defined in class
  4061. definition.
  4062. * src/AbstractBtMessage.cc
  4063. * src/AbstractBtMessage.h
  4064. * src/BtAllowedFastMessage.cc
  4065. * src/BtAllowedFastMessage.h
  4066. * src/BtBitfieldMessage.h
  4067. * src/BtCancelMessage.cc
  4068. * src/BtCancelMessage.h
  4069. * src/BtChokeMessage.cc
  4070. * src/BtChokeMessage.h
  4071. * src/BtExtendedMessage.cc
  4072. * src/BtExtendedMessage.h
  4073. * src/BtHandshakeMessage.cc
  4074. * src/BtHandshakeMessage.h
  4075. * src/BtHaveAllMessage.cc
  4076. * src/BtHaveAllMessage.h
  4077. * src/BtHaveMessage.cc
  4078. * src/BtHaveMessage.h
  4079. * src/BtHaveNoneMessage.cc
  4080. * src/BtHaveNoneMessage.h
  4081. * src/BtInterestedMessage.cc
  4082. * src/BtInterestedMessage.h
  4083. * src/BtKeepAliveMessage.cc
  4084. * src/BtKeepAliveMessage.h
  4085. * src/BtMessage.h
  4086. * src/BtNotInterestedMessage.cc
  4087. * src/BtNotInterestedMessage.h
  4088. * src/BtPieceMessage.h
  4089. * src/BtPortMessage.cc
  4090. * src/BtPortMessage.h
  4091. * src/BtRejectMessage.cc
  4092. * src/BtRejectMessage.h
  4093. * src/BtRequestMessage.cc
  4094. * src/BtRequestMessage.h
  4095. * src/BtSuggestPieceMessage.cc
  4096. * src/BtSuggestPieceMessage.h
  4097. * src/BtUnchokeMessage.cc
  4098. * src/BtUnchokeMessage.h
  4099. * src/SimpleBtMessage.cc
  4100. * src/SimpleBtMessage.h
  4101. * test/MockBtMessage.h
  4102. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Use FileEntry::exists()
  4104. * src/MultiDiskAdaptor.cc
  4105. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. Added exists()
  4107. * src/FileEntry.cc
  4108. * src/FileEntry.h
  4109. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Added missing prefix dir.
  4111. * src/download_helper.cc
  4112. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4114. * src/CopyDiskAdaptor.cc: Removed
  4115. * src/CopyDiskAdaptor.h: Removed
  4116. * src/DefaultPieceStorage.cc
  4117. * src/Makefile.am
  4118. * src/OptionHandlerFactory.cc
  4119. * src/prefs.cc
  4120. * src/prefs.h
  4121. * src/usage_text.h
  4122. * test/CopyDiskAdaptorTest.cc: Removed
  4123. * test/Makefile.am
  4124. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Rewritten isSameFileBeingDownloaded()
  4126. * src/RequestGroupMan.cc
  4127. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Removed getName() from DownloadContext. getName() is declared in
  4129. BtContext.
  4130. * src/BtContext.h
  4131. * src/DownloadContext.h
  4132. * src/SingleFileDownloadContext.cc
  4133. * src/SingleFileDownloadContext.h
  4134. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4135. in AbstractSingleDiskAdaptor.
  4136. * src/AbstractSingleDiskAdaptor.h
  4137. * src/DiskAdaptor.h
  4138. * src/MultiDiskAdaptor.h
  4139. * src/RequestGroup.cc
  4140. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4141. MultiDiskAdaptor.
  4142. * src/DefaultPieceStorage.cc
  4143. * src/MultiDiskAdaptor.cc
  4144. * src/MultiDiskAdaptor.h
  4145. * test/MultiDiskAdaptorTest.cc
  4146. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. FileEntry::getPath() contains store(top level) directory to
  4148. simplify path handling operation. In the previous implementation,
  4149. store directory is concatenated to FileEntry::getPath() in
  4150. DownloadContext.
  4151. * src/BtDependency.cc
  4152. * src/BtPostDownloadHandler.cc
  4153. * src/CopyDiskAdaptor.cc
  4154. * src/DefaultBtContext.cc
  4155. * src/DirectDiskAdaptor.cc
  4156. * src/FileEntry.cc
  4157. * src/FileEntry.h
  4158. * src/FtpNegotiationCommand.cc
  4159. * src/HttpResponse.cc
  4160. * src/HttpResponseCommand.cc
  4161. * src/Metalink2RequestGroup.cc
  4162. * src/MultiDiskAdaptor.cc
  4163. * src/MultiDiskAdaptor.h
  4164. * src/MultiFileAllocationIterator.cc
  4165. * src/RequestGroup.cc
  4166. * src/SingleFileDownloadContext.cc
  4167. * src/SingleFileDownloadContext.h
  4168. * src/download_helper.cc
  4169. * test/BtDependencyTest.cc
  4170. * test/CopyDiskAdaptorTest.cc
  4171. * test/DefaultBtContextTest.cc
  4172. * test/DefaultBtProgressInfoFileTest.cc
  4173. * test/DirectDiskAdaptorTest.cc
  4174. * test/DownloadHelperTest.cc
  4175. * test/FileEntryTest.cc
  4176. * test/MultiDiskAdaptorTest.cc
  4177. * test/MultiFileAllocationIteratorTest.cc
  4178. * test/RequestGroupTest.cc
  4179. * test/SingleFileDownloadContextTest.cc
  4180. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Fixed compiler warning
  4182. * src/download_helper.cc
  4183. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Throw exception if same infohash torrent is now downloading.
  4185. * src/RequestGroup.cc
  4186. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Added --dry-run option. In this mode, aria2 just checks whether
  4188. the remote file is available and doesn't download data. This
  4189. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4190. are canceled in this mode.
  4191. * src/FtpNegotiationCommand.cc
  4192. * src/HttpResponseCommand.cc
  4193. * src/HttpResponseCommand.h
  4194. * src/OptionHandlerFactory.cc
  4195. * src/RequestGroup.cc
  4196. * src/RequestGroupMan.cc
  4197. * src/prefs.cc
  4198. * src/prefs.h
  4199. * src/usage_text.h
  4200. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Fixed compiler waring
  4202. * test/UriListParserTest.cc
  4203. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Parse options in -i list using OptionParser.
  4205. * src/UriListParser.cc
  4206. * src/UriListParser.h
  4207. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Don't reset URI in retry to avoid additional round trips because
  4209. of redirects.
  4210. * src/AbstractCommand.cc
  4211. * src/OptionHandlerFactory.cc
  4212. * src/prefs.cc
  4213. * src/prefs.h
  4214. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Declared hide() in OptionHandler.
  4216. * src/NameMatchOptionHandler.h
  4217. * src/OptionHandler.h
  4218. * src/OptionHandlerImpl.h
  4219. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Updated doc
  4221. * src/Peer.h
  4222. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4223. Added log message in setStatusInternal()
  4224. * src/ServerStat.cc
  4225. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4227. effectively exclude failed server.
  4228. * src/AbstractCommand.cc
  4229. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Added --index-out option to specify each file path for torrent.
  4231. Here index shown in --show-files option is used to specify which
  4232. file path should be altered. For example, to change the file path
  4233. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4234. option multiple times: --index-out=1=aria2.tar.bz2
  4235. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4236. available. This option can be specified in -i list.
  4237. * src/DefaultBtContext.cc
  4238. * src/DefaultBtContext.h
  4239. * src/MultiDiskAdaptor.cc
  4240. * src/MultiDiskAdaptor.h
  4241. * src/MultiFileAllocationIterator.cc
  4242. * src/OptionHandlerFactory.cc
  4243. * src/OptionHandlerImpl.h
  4244. * src/Util.cc
  4245. * src/Util.h
  4246. * src/download_helper.cc
  4247. * src/prefs.cc
  4248. * src/prefs.h
  4249. * src/usage_text.h
  4250. * test/DefaultBtContextTest.cc
  4251. * test/MultiDiskAdaptorTest.cc
  4252. * test/MultiFileAllocationIteratorTest.cc
  4253. * test/UtilTest.cc
  4254. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Use Util::pathJoin()
  4256. * src/MetalinkParserController.cc
  4257. * test/test.xml
  4258. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Use Util::pathJoin()
  4260. * src/DefaultBtContext.cc
  4261. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Added Util::pathJoin()
  4263. * src/Util.h
  4264. * test/UtilTest.cc
  4265. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Applied basename function to remove directory element in
  4267. content-disposition value.
  4268. Return empty string if content-disposition value is ".." or ".".
  4269. * src/Util.cc
  4270. * test/UtilTest.cc
  4271. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Added --max-overall-download-limit in man page.
  4273. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4274. * doc/aria2c.1.txt
  4275. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Added --max-overall-download-limit option. Now --max-upload-limit
  4277. option is not ignored when --max-overall-upload-limit option has
  4278. non-zero value. aria2 checks download(upload) speed in the order:
  4279. first checks overall speed limit and if it is not exceeded, then
  4280. checks speed limit per download. Thus you can specify both
  4281. value. For example, set --max-overall-download-limit=1M and
  4282. --max-download-limit=500K to prevent from one download from eating
  4283. all overall speed limit.
  4284. * src/DefaultBtInteractive.cc
  4285. * src/DefaultBtInteractive.h
  4286. * src/DefaultBtMessageDispatcher.cc
  4287. * src/DefaultBtMessageDispatcher.h
  4288. * src/DownloadCommand.cc
  4289. * src/DownloadCommand.h
  4290. * src/FtpNegotiationCommand.cc
  4291. * src/HttpResponseCommand.cc
  4292. * src/OptionHandlerFactory.cc
  4293. * src/PeerInteractionCommand.cc
  4294. * src/RequestGroup.cc
  4295. * src/RequestGroup.h
  4296. * src/RequestGroupMan.cc
  4297. * src/RequestGroupMan.h
  4298. * src/prefs.cc
  4299. * src/prefs.h
  4300. * src/usage_text.h
  4301. * test/DefaultBtMessageDispatcherTest.cc
  4302. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Documented select-file option in Input File section.
  4304. Documented --http-auth-challenge option.
  4305. * doc/aria2c.1.txt
  4306. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Now select-file can be specified in the uri list(-i list).
  4308. * src/BtContext.cc
  4309. * src/BtContext.h
  4310. * src/RequestGroup.cc
  4311. * src/Sequence.h
  4312. * src/download_helper.cc
  4313. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4314. Made the upper value of --max-concurrent-downloads options unlimited.
  4315. * src/OptionHandlerFactory.cc
  4316. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Fixed the bug that disk writer is not created even if it shares
  4318. same piece with the preceding file if the length of previous file
  4319. is 0.
  4320. * src/MultiDiskAdaptor.cc
  4321. * test/MultiDiskAdaptorTest.cc
  4322. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4323. In BitTorrent, Open files in read-only mode for hash check. After
  4324. that, re-open file in read/write mode only when the download is
  4325. not finished.
  4326. * src/AbstractDiskWriter.cc
  4327. * src/AbstractDiskWriter.h
  4328. * src/AbstractSingleDiskAdaptor.cc
  4329. * src/AbstractSingleDiskAdaptor.h
  4330. * src/BtCheckIntegrityEntry.cc
  4331. * src/DiskAdaptor.h
  4332. * src/DiskWriter.h
  4333. * src/MultiDiskAdaptor.cc
  4334. * src/MultiDiskAdaptor.h
  4335. * src/RequestGroup.cc
  4336. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added --http-auth-challenge option. If it is set to true(by
  4338. default), aria2 sends HTTP authorization header only when it is
  4339. requested by the server. If false is set, then authorization
  4340. header is always sent to the server. This is useful for servers
  4341. that don't respond 401 code when authentication is required.
  4342. There is an exception: if username and password are embedded in
  4343. URI, authorization header is always sent to the server regardless
  4344. of this option.
  4345. * src/AuthConfigFactory.cc
  4346. * src/HttpSkipResponseCommand.cc
  4347. * src/OptionHandlerFactory.cc
  4348. * src/prefs.cc
  4349. * src/prefs.h
  4350. * src/usage_text.h
  4351. * test/AuthConfigFactoryTest.cc
  4352. * test/HttpRequestTest.cc
  4353. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4354. * Release 1.2.0
  4355. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4356. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4357. Thanks to all translators.
  4358. * po/es.po
  4359. * po/ja.po
  4360. * po/ru.po
  4361. * po/uk.po
  4362. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Call deleteSocketForReadCheck() before socket is closed.
  4364. * src/HttpListenCommand.cc
  4365. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Defined virtual destructor for BObject.
  4367. * src/bencode.h
  4368. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Rewritten BDE to make it efficient.
  4370. * src/bencode.cc
  4371. * src/bencode.h
  4372. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Removed function throw list.
  4374. * src/bencode.cc
  4375. * src/bencode.h
  4376. * test/BencodeTest.cc
  4377. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4378. Enclosed all URLs in double quotes in command-line examples.
  4379. * doc/aria2c.1.txt
  4380. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Updated reference/see also section.
  4382. * README
  4383. * doc/aria2c.1.txt
  4384. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Reorganized man page based on man man-pages.
  4386. * doc/aria2c.1.txt
  4387. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4389. because same documents are available in man page. Added
  4390. References section.
  4391. * README
  4392. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4394. PERFORMANCE PROFILE section.
  4395. * doc/aria2c.1.txt
  4396. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Rewritten the section for configuration file.
  4398. * README
  4399. * doc/aria2c.1.txt
  4400. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Fixed the segmentation fault during execution of choking algorithm
  4402. in leecher state because of broken compare operator
  4403. implementation.
  4404. * src/BtLeecherStateChoke.cc
  4405. * src/BtLeecherStateChoke.h
  4406. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Open file in binary mode.
  4408. * src/CookieStorage.cc
  4409. * src/DHTSetup.cc
  4410. * src/DHTUtil.cc
  4411. * src/Netrc.cc
  4412. * src/NsCookieParser.cc
  4413. * src/ProtocolDetector.cc
  4414. * src/RequestGroupMan.cc
  4415. * src/Signature.cc
  4416. * src/bencode.cc
  4417. * src/download_helper.cc
  4418. * src/option_processing.cc
  4419. * test/CookieParserTest.cc
  4420. * test/DefaultBtProgressInfoFileTest.cc
  4421. * test/FileTest.cc
  4422. * test/GZipDecoderTest.cc
  4423. * test/RequestGroupManTest.cc
  4424. * test/SignatureTest.cc
  4425. * test/SingleFileAllocationIteratorTest.cc
  4426. * test/UriListParserTest.cc
  4427. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Removed operator[] because it is ambiguous with built-in []
  4429. operator.
  4430. * src/array_fun.h
  4431. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. Fixed compile error
  4433. * src/OptionParser.cc
  4434. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Added missing call to arrayWrapperConst
  4436. * test/array_funTest.cc
  4437. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Use array_wrapper instead of array_ptr.
  4439. * src/DHTRoutingTableDeserializer.cc
  4440. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4442. * src/array_fun.h
  4443. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Added array_wrapper template.
  4445. * src/array_fun.h
  4446. * test/array_funTest.cc
  4447. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Use operator T* of array_ptr.
  4449. * src/OptionParser.cc
  4450. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Use localhost instead of 127.0.0.1
  4452. * test/FtpConnectionTest.cc
  4453. * test/MSEHandshakeTest.cc
  4454. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4455. Added operator T*
  4456. * src/array_fun.h
  4457. * test/array_funTest.cc
  4458. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Use dynamically allocated char array to detect memory access
  4460. violation.
  4461. * src/DHTRoutingTableDeserializer.cc
  4462. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4464. defined.
  4465. * src/PeerMessageUtil.cc
  4466. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4468. * configure.ac
  4469. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Added a check to see struct sockaddr_in has sin_len member.
  4471. * configure.ac
  4472. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Fixed buffer overrun.
  4474. * src/DHTRoutingTableDeserializer.cc
  4475. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Added LL for long long int constant.
  4477. * test/FtpConnectionTest.cc
  4478. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Casted to unsigned int to suppress compiler warning on netbsd.
  4480. * src/BtRuntime.h
  4481. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4483. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4484. type time_t.
  4485. * src/SimpleLogger.cc
  4486. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Added test for FtpConnection::receiveSizeResponse().
  4488. * test/FtpConnectionTest.cc
  4489. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Fix epoll error on the old kernel 2.6.8 or ealier.
  4491. * src/EpollEventPoll.cc
  4492. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Use Util::parseLLInt instead of sscanf for portability. The
  4494. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4495. * src/FtpConnection.cc
  4496. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4498. block. It should not filter anything.
  4499. * src/BitfieldMan.cc
  4500. * src/ConsoleStatCalc.cc
  4501. * test/BitfieldManTest.cc
  4502. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Fixed the bug that the boolean options that don't take arguments
  4504. don't work.
  4505. * src/OptionHandlerImpl.h
  4506. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Fixed broken selected file BitTorrent download.
  4508. * src/MultiDiskAdaptor.cc
  4509. * test/MultiDiskAdaptorTest.cc
  4510. * test/MultiFileAllocationIteratorTest.cc
  4511. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Fixed #define guard for EpollEventPoll
  4513. * src/EpollEventPoll.h
  4514. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Wait 2 seconds. 1 second is sometimes not enough.
  4516. * test/TimeSeedCriteriaTest.cc
  4517. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Use localhost instead of 127.0.0.1.
  4519. * test/DHTConnectionImplTest.cc
  4520. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Suppressed compiler warning.
  4522. * src/AdaptiveURISelector.cc
  4523. * src/DefaultPieceStorage.cc
  4524. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Defined virtual destructor.
  4526. * src/MetalinkParserState.h
  4527. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Give NULL for second argument of getaddrinfo instead of "0".
  4529. * src/NameResolver.cc
  4530. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4532. included strptime doesn't parse data for this format.
  4533. * src/FtpConnection.cc
  4534. * test/FtpConnectionTest.cc
  4535. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Removed tests giving -1 for unsigned argument.
  4537. * test/SingleFileDownloadContextTest.cc
  4538. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Don't use sha256 in tests because it might not be supported by the
  4540. SSL library.
  4541. * test/MetalinkProcessorTest.cc
  4542. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Removed tests giving -1 for unsigned argument.
  4544. * test/AlphaNumberDecoratorTest
  4545. * test/BitfieldManTest.cc
  4546. * test/DefaultBtContextTest.cc
  4547. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Fixed compile error without libcares when epoll is available.
  4549. * src/EpollEventPoll.cc
  4550. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Included fstream instead of iostream.
  4552. * test/SignatureTest.cc
  4553. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Removed #include <algorithm>
  4555. * test/RequestGroupTest.cc
  4556. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4558. using RequestGroup::extractURIResult().
  4559. * src/AdaptiveURISelector.cc
  4560. * src/RequestGroup.cc
  4561. * src/RequestGroup.h
  4562. * test/RequestGroupTest.cc
  4563. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Added tests for array_ptr.
  4565. * test/array_funTest.cc
  4566. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Don't send ip parameter to a tracker if ip parameter is empty
  4568. string.
  4569. * src/DefaultBtAnnounce.cc
  4570. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Adjusted line feed.
  4572. * src/version_usage.cc
  4573. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Print tags, possible values when OptionHandlerException is caught.
  4575. * src/option_processing.cc
  4576. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Changed the message for FatalException.
  4578. * src/OptionParser.cc
  4579. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Documented --bt-external-ip option in man page. Updated man pages
  4581. for --proxy-method option.
  4582. * doc/aria2c.1.txt
  4583. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Use GET method for FTP via HTTP proxy.
  4585. * src/FtpInitiateConnectionCommand.cc
  4586. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Changed the default value of --proxy-method option from 'tunnel'
  4588. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4589. option.
  4590. * src/AbstractCommand.cc
  4591. * src/AbstractCommand.h
  4592. * src/FtpInitiateConnectionCommand.cc
  4593. * src/HttpDownloadCommand.cc
  4594. * src/HttpInitiateConnectionCommand.cc
  4595. * src/HttpInitiateConnectionCommand.h
  4596. * src/OptionHandlerFactory.cc
  4597. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4598. Initialized _logger
  4599. * src/SelectEventPoll.cc
  4600. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4601. Defined a copy constructor for the same type.
  4602. * src/SharedHandle.h
  4603. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Added OptionParser::parseArg() which internally uses getopt_long
  4605. to parse command-line options. All command-line options are now
  4606. configured by OptionHandler. No manual editing of struct option*
  4607. is required any more.
  4608. * src/NameMatchOptionHandler.h
  4609. * src/OptionHandler.h
  4610. * src/OptionHandlerFactory.cc
  4611. * src/OptionHandlerImpl.h
  4612. * src/OptionParser.cc
  4613. * src/OptionParser.h
  4614. * src/array_fun.h
  4615. * src/main.cc
  4616. * src/option_processing.cc
  4617. * test/OptionHandlerTest.cc
  4618. * test/OptionParserTest.cc
  4619. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Fixed configure error with --disable-epoll
  4621. * configure.ac
  4622. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Fixed compile error when HAVE_EPOLL is not defined.
  4624. Fixed linker error on bigendian systems.
  4625. * src/SocketCore.cc
  4626. * src/SocketCore.h
  4627. * test/DefaultBtProgressInfoFileTest.cc
  4628. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Added --bt-external-ip option. You can specify the external IP
  4630. address to report to a BitTorrent tracker. Although this function
  4631. is named 'external', it can accept any kind of IP addresses.
  4632. * src/DefaultBtAnnounce.cc
  4633. * src/OptionHandlerFactory.cc
  4634. * src/option_processing.cc
  4635. * src/prefs.cc
  4636. * src/prefs.h
  4637. * src/usage_text.h
  4638. * test/DefaultBtAnnounceTest.cc
  4639. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Extracted the algorithm to find the longest incremental sequence
  4641. as max_sequence template.
  4642. * src/LongestSequencePieceSelector.cc
  4643. * src/a2algo.h
  4644. * test/Makefile.am
  4645. * test/a2algoTest.cc
  4646. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4647. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4648. * src/usage_text.h
  4649. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Updated doc for --uri-selector, --http-server-listen-port and
  4651. --enable-http-server option. Documented --event-poll option.
  4652. * doc/aria2c.1.txt
  4653. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Updated doc for --enable-http-server.
  4655. * src/usage_text.h
  4656. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Documented --http-server-listen-port and --enable-http-server in
  4658. man page.
  4659. * doc/aria2c.1.txt
  4660. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4662. translations. Thanks to all translators.
  4663. * po/es.po
  4664. * po/id.po
  4665. * po/it.po
  4666. * po/ru.po
  4667. * po/uk.po
  4668. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Bump up version number to 1.2.0
  4670. * configure.ac
  4671. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4672. BtContext::getAnnounceTiers() now returns const reference.
  4673. * src/BtContext.h
  4674. * src/DefaultBtContext.cc
  4675. * src/DefaultBtContext.h
  4676. * test/MockBtContext.h
  4677. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Change the number of retries for tracker request based on the
  4679. number of available tracker in a torrent file.
  4680. * src/TrackerWatcherCommand.cc
  4681. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Added _maxTries property to RequestGroup and assign the option
  4683. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4684. RequestGroup::getMaxTries() instead of
  4685. Option::getAsInt(PREF_MAX_TRIES).
  4686. * src/AbstractCommand.cc
  4687. * src/RequestGroup.cc
  4688. * src/RequestGroup.h
  4689. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4691. Mandriva. I modified the patch: make RequestGroup have the
  4692. timeout value and AdaptiveURISelector directly modifies that
  4693. value.
  4694. * src/AbstractCommand.cc
  4695. * src/AdaptiveURISelector.cc
  4696. * src/AdaptiveURISelector.h
  4697. * src/FtpNegotiationCommand.cc
  4698. * src/RequestGroup.cc
  4699. * src/RequestGroup.h
  4700. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. Fixed compiler warning
  4702. * test/IteratableChecksumValidatorTest.cc
  4703. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4704. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4705. integrated downloads. This PieceSelector subclass finds the
  4706. longest continuous sequence in the available missing pieces and
  4707. selects the last index of such sequence. This makes HTTP/FTP
  4708. connections less interrupted by the pieces obtained by BitTorrent
  4709. peers.
  4710. * src/DefaultPieceStorage.cc
  4711. * src/DefaultPieceStorage.h
  4712. * src/LongestSequencePieceSelector.cc
  4713. * src/LongestSequencePieceSelector.h
  4714. * src/Makefile.am
  4715. * src/PieceSelector.h
  4716. * src/RarestPieceSelector.h
  4717. * src/RequestGroup.cc
  4718. * test/BtDependencyTest.cc
  4719. * test/DefaultPieceStorageTest.cc
  4720. * test/IteratableChecksumValidatorTest.cc
  4721. * test/LongestSequencePieceSelectorTest.cc
  4722. * test/Makefile.am
  4723. * test/SegmentManTest.cc
  4724. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Fixed the bug that the average speed is wrong in
  4726. http/ftp/BitTorrent integrated download. Only the download bytes
  4727. in BitTorrent were considered.
  4728. * src/RequestGroup.cc
  4729. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Choose port for BitTorrent/DHT randomly from the specified range.
  4731. * src/DHTConnectionImpl.cc
  4732. * src/PeerListenCommand.cc
  4733. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Send HTTP Authorization header only if it is requested by the
  4735. server(response 401). There are some exceptions. The authorization
  4736. header for proxy is always sent if it is available without request
  4737. by the server. If username/password is specified in the URI, it
  4738. is immediately sent to the server without request by the server.
  4739. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4740. SharedHandle<AuthConfig>().
  4741. NetrcAuthResolver::resolveAuthConfig() returns
  4742. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4743. * src/AbstractAuthResolver.cc
  4744. * src/AbstractProxyRequestCommand.cc
  4745. * src/AuthConfigFactory.cc
  4746. * src/AuthConfigFactory.h
  4747. * src/HttpConnection.cc
  4748. * src/HttpRequest.cc
  4749. * src/HttpRequest.h
  4750. * src/HttpResponse.cc
  4751. * src/HttpResponseCommand.cc
  4752. * src/HttpSkipResponseCommand.cc
  4753. * test/AuthConfigFactoryTest.cc
  4754. * test/HttpRequestTest.cc
  4755. * test/HttpResponseTest.cc
  4756. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Remove leading "--" from help keyword and a substring after "="
  4758. from help keyword, so that one can query options by '-h--max-' or
  4759. '-hmax-peers=10'.
  4760. * src/option_processing.cc
  4761. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Rewritten PStringVisitor and its implementation.
  4763. * src/PStringBuildVisitor.cc
  4764. * src/PStringBuildVisitor.h
  4765. * src/PStringDatum.h
  4766. * src/PStringNumLoop.h
  4767. * src/PStringSegment.cc
  4768. * src/PStringSegment.h
  4769. * src/PStringSelect.h
  4770. * src/PStringVisitor.h
  4771. * src/download_helper.cc
  4772. * test/PStringBuildVisitorTest.cc
  4773. * test/ParameterizedStringParserTest.cc
  4774. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Persist connection between the built-in HTTP server and a client
  4776. if a client supports keep-alive. Fixed the bug that aria2 exits
  4777. when the HTTP server receives EOF from a client.
  4778. * src/HttpServer.cc
  4779. * src/HttpServer.h
  4780. * src/HttpServerCommand.cc
  4781. * src/HttpServerCommand.h
  4782. * src/HttpServerResponseCommand.cc
  4783. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Added experimental built-in HTTP server. Currently, when a client
  4785. accesses to the server, it responds with the current download
  4786. progress. By default, it is disabled. To enable the server, give
  4787. --enable-http-server option. To change the default port number
  4788. for the server to listen to, use --http-server-listen-port option.
  4789. The response HTML is very simple and refreshes it self each 1
  4790. second. Because of this refresh, you see flicker in normal web
  4791. browser such as Firefox. I recommend to use console-based browser
  4792. such as elinks, w3m. To connect to the server, run 'elinks
  4793. http://localhost:6800/' while running aria2. Please replace port
  4794. number '6800'(which is default) with your preference.
  4795. * src/DownloadEngineFactory.cc
  4796. * src/HttpHeader.cc
  4797. * src/HttpHeader.h
  4798. * src/HttpHeaderProcessor.cc
  4799. * src/HttpHeaderProcessor.h
  4800. * src/HttpListenCommand.cc
  4801. * src/HttpListenCommand.h
  4802. * src/HttpServer.cc
  4803. * src/HttpServer.h
  4804. * src/HttpServerCommand.cc
  4805. * src/HttpServerCommand.h
  4806. * src/HttpServerResponseCommand.cc
  4807. * src/HttpServerResponseCommand.h
  4808. * src/Makefile.am
  4809. * src/OptionHandlerFactory.cc
  4810. * src/Util.cc
  4811. * src/Util.h
  4812. * src/help_tags.h
  4813. * src/option_processing.cc
  4814. * src/prefs.cc
  4815. * src/prefs.h
  4816. * src/usage_text.h
  4817. * test/HttpHeaderProcessorTest.cc
  4818. * test/UtilTest.cc
  4819. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Removed.
  4821. * src/CheckIntegrityMan.cc
  4822. * src/FileAllocationMan.cc
  4823. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Made (piece) hash check sequential for each RequestGroup because
  4825. simultaneous hash check is slower than sequential execution.
  4826. * src/CheckIntegrityCommand.cc
  4827. * src/CheckIntegrityDispatcherCommand.cc
  4828. * src/CheckIntegrityDispatcherCommand.h
  4829. * src/CheckIntegrityMan.h
  4830. * src/ConsoleStatCalc.cc
  4831. * src/DownloadCommand.cc
  4832. * src/DownloadEngine.cc
  4833. * src/DownloadEngine.h
  4834. * src/DownloadEngineFactory.cc
  4835. * src/Makefile.am
  4836. * src/Makefile.in
  4837. * src/RequestGroup.cc
  4838. * src/StatCalc.h
  4839. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4840. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4841. SequentialDispatcherCommand.
  4842. * src/FileAllocationDispatcherCommand.cc
  4843. * src/SequentialDispatcherCommand.h
  4844. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. Rewritten FileAllocationDispatcherCommand using brand new
  4846. SequentialDispatcherCommand.
  4847. * src/DownloadEngineFactory.cc
  4848. * src/FileAllocationCommand.cc
  4849. * src/FileAllocationDispatcherCommand.cc
  4850. * src/FileAllocationDispatcherCommand.h
  4851. * src/Makefile.am
  4852. * src/SequentialDispatcherCommand.h
  4853. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. Replaced FileAllocationMan with
  4855. SequentialPicker<FileAllocationEntry>.
  4856. * src/BtCheckIntegrityEntry.cc
  4857. * src/ConsoleStatCalc.cc
  4858. * src/DownloadEngine.cc
  4859. * src/DownloadEngine.h
  4860. * src/DownloadEngineFactory.cc
  4861. * src/FileAllocationCommand.cc
  4862. * src/FileAllocationDispatcherCommand.cc
  4863. * src/FileAllocationMan.h
  4864. * src/Makefile.am
  4865. * src/SequentialPicker.h
  4866. * src/StatCalc.h
  4867. * src/StreamCheckIntegrityEntry.cc
  4868. * test/Makefile.am
  4869. * test/SequentialPickerTest.cc
  4870. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Added doc for adaptive URI selector.
  4872. * doc/aria2c.1.txt
  4873. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4874. Added doc for adaptive URI selector.
  4875. * src/usage_text.h
  4876. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Added doc for --bt-max-peers option.
  4878. * doc/aria2c.1.txt
  4879. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Added doc for --bt-hash-check-seed option.
  4881. * doc/aria2c.1.txt
  4882. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Documented exit codes.
  4884. * doc/aria2c.1.txt
  4885. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. Added --bt-max-peers option to specify the maximum number of peers
  4887. per torrent. 0 means unlimited number of peers.
  4888. * src/ActivePeerConnectionCommand.cc
  4889. * src/BtRuntime.h
  4890. * src/DefaultPeerStorage.cc
  4891. * src/DefaultPeerStorage.h
  4892. * src/OptionHandlerFactory.cc
  4893. * src/RequestGroup.cc
  4894. * src/option_processing.cc
  4895. * src/prefs.cc
  4896. * src/prefs.h
  4897. * src/usage_text.h
  4898. * test/DefaultPeerStorageTest.cc
  4899. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4900. Added --bt-hash-check-seed option. If true is given to this
  4901. option, after hash check using --check-integrity option and file
  4902. is complete, continue to seed file. If you want to check file and
  4903. download it only when it is damaged or incomplete, set this option
  4904. to false. This option has effect only on BitTorrent download.
  4905. The default value is true(This is the same behavior with the
  4906. previous release).
  4907. * src/BtCheckIntegrityEntry.cc
  4908. * src/OptionHandlerFactory.cc
  4909. * src/option_processing.cc
  4910. * src/prefs.cc
  4911. * src/prefs.h
  4912. * src/usage_text.h
  4913. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Updated copyright year.
  4915. * src/version_usage.cc
  4916. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4918. * doc/aria2c.1.txt
  4919. * src/usage_text.h
  4920. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Made the max value of split option unlimited.
  4922. * doc/aria2c.1.txt
  4923. * src/OptionHandlerFactory.cc
  4924. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Fixed compile warning/error.
  4926. * src/DownloadResult.h
  4927. * src/HttpDownloadCommand.cc
  4928. * src/ServerStat.cc
  4929. * test/RequestGroupTest.cc
  4930. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Added --event-poll option to select the method for polling events.
  4932. The available methods are "select" and "epoll". "epoll" is
  4933. available on Linux only. The earlier release has the compile
  4934. option to choose from these methods.
  4935. * configure.ac
  4936. * src/RequestGroupMan.cc
  4937. * src/OptionHandlerFactory.cc
  4938. * src/EpollEventPoll.h
  4939. * src/StreamFileAllocationEntry.cc
  4940. * src/a2io.h
  4941. * src/SelectEventPoll.h
  4942. * src/option_processing.cc
  4943. * src/prefs.h
  4944. * src/EpollEventPoll.cc
  4945. * src/EventPoll.h
  4946. * src/SocketCore.h
  4947. * src/Makefile.am
  4948. * src/main.cc
  4949. * src/DownloadEngine.h
  4950. * src/SelectEventPoll.cc
  4951. * src/DownloadEngine.cc
  4952. * src/SocketCore.cc
  4953. * src/DownloadEngineFactory.cc
  4954. * src/Makefile.in
  4955. * src/prefs.cc
  4956. * src/usage_text.h
  4957. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Included RecoverableException.h from main.cc
  4959. * src/main.cc
  4960. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4962. now returns last error encountered in the HTTP/FTP downloads as a
  4963. exit status value. If all downloads finished successfully, aria2
  4964. returns 0. The error code is defined in src/DownloadResult.h.
  4965. The error occurred in the download currently in progress is not
  4966. reported as a last error. If no error has encountered but there
  4967. are in progress or waiting downloads, aria2 returns 7.
  4968. * src/AbstractCommand.cc
  4969. * src/DlAbortEx.h
  4970. * src/DlRetryEx.h
  4971. * src/DownloadCommand.cc
  4972. * src/DownloadFailureException.h
  4973. * src/DownloadResult.h
  4974. * src/FtpNegotiationCommand.cc
  4975. * src/HttpSkipResponseCommand.cc
  4976. * src/Makefile.am
  4977. * src/MultiUrlRequestInfo.cc
  4978. * src/MultiUrlRequestInfo.h
  4979. * src/RecoverableException.h
  4980. * src/RequestGroup.cc
  4981. * src/RequestGroup.h
  4982. * src/RequestGroupMan.cc
  4983. * src/RequestGroupMan.h
  4984. * src/URIResult.cc
  4985. * src/URIResult.h
  4986. * src/main.cc
  4987. * src/option_processing.cc
  4988. * test/RequestGroupTest.cc
  4989. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4991. patch adds AdaptiveURISelector, which selects one of the bests
  4992. mirrors for first and reserved connections. For supplementary
  4993. ones, it returns mirrors which has not been tested yet, and if
  4994. each of them already tested, returns mirrors which has to be
  4995. tested again. Otherwise, it doesn't return anymore mirrors.
  4996. * src/AdaptiveURISelector.cc
  4997. * src/AdaptiveURISelector.h
  4998. * src/FtpNegotiationCommand.cc
  4999. * src/HttpResponseCommand.cc
  5000. * src/Makefile.am
  5001. * src/Makefile.in
  5002. * src/OptionHandlerFactory.cc
  5003. * src/RequestGroup.cc
  5004. * src/RequestGroup.h
  5005. * src/RequestGroupMan.cc
  5006. * src/ServerStat.cc
  5007. * src/ServerStat.h
  5008. * src/ServerStatMan.cc
  5009. * src/SpeedCalc.cc
  5010. * src/URISelector.h
  5011. * src/prefs.cc
  5012. * src/prefs.h
  5013. * test/RequestGroupManTest.cc
  5014. * test/ServerStatManTest.cc
  5015. * test/ServerStatTest.cc
  5016. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5017. Fixed unit test error.
  5018. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5019. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. * Release 1.1.2
  5021. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Updated Russian translation. Thanks to the translators.
  5023. * po/ru.po
  5024. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Added the description of --use-head option to man page.
  5026. * doc/aria2c.1.txt
  5027. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Bump up version number to 1.1.2
  5029. * configure.ac
  5030. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Added --use-head option to toggle whether HEAD method should be
  5032. used in the first HTTP request. By default aria2 uses HEAD method
  5033. as the first request. When the server doesn't recognize HEAD, then
  5034. give aria2 --use-head=false to force aria2 to use GET method
  5035. instead.
  5036. * src/OptionHandlerFactory.cc
  5037. * src/RequestGroupMan.cc
  5038. * src/option_processing.cc
  5039. * src/prefs.cc
  5040. * src/prefs.h
  5041. * src/usage_text.h
  5042. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5044. message is received before CHOKE message. The old implementation
  5045. doen't clear the use-bit of the piece when recieved REJECT
  5046. message.
  5047. * src/DefaultBtMessageDispatcher.cc
  5048. * test/DefaultBtMessageDispatcherTest.cc
  5049. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. * Release 1.1.1
  5051. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Bump up version number to 1.1.1.
  5053. * configure.ac
  5054. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5056. is printed repeatedly.
  5057. * src/ConsoleStatCalc.cc
  5058. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. * Release 1.1.0
  5060. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5061. Added ifdef clause for conditional compilation.
  5062. * src/main.cc
  5063. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5065. translations. Thanks to all translators.
  5066. * po/ja.po
  5067. * po/ru.po
  5068. * po/uk.po
  5069. * po/zh_CN.po
  5070. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Added the preceding ">>> " before the message "Printing the
  5072. contents of file..." to make the output more readable.
  5073. * src/main.cc
  5074. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Added try-catch block in the loop in showFiles() to continue the
  5076. operation even if the exception occurred in one file.
  5077. * src/main.cc (showFiles)
  5078. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5079. Made messages in showFiles() translatable.
  5080. * po/aria2.pot
  5081. * src/main.cc
  5082. * src/message.h
  5083. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Print the contents of Torrent/Metalink files are printed without
  5085. -T/-M options.
  5086. * src/main.cc
  5087. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Escaped '--' with '\--'
  5089. * README
  5090. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Updated "How to build" section in README. Mentioned about
  5092. --with-ca-bundle compile option.
  5093. * README
  5094. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Bump up version number to 1.1.0.
  5096. * configure.ac
  5097. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Added a note for --dht-listen-port option.
  5099. * doc/aria2c.1.txt
  5100. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5101. Update doc for --realtime-chunk-checksum option.
  5102. * doc/aria2c.1.txt
  5103. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Update doc for --realtime-chunk-checksum option.
  5105. * src/usage_text.h
  5106. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Updated French, Japanese, Russian and Ukrainian translations.
  5108. Thanks to all translators.
  5109. * po/fr.po
  5110. * po/ja.po
  5111. * po/ru.po
  5112. * po/uk.po
  5113. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Renamed aria2c.pot to aria2.pot
  5115. * po/aria2.pot
  5116. * po/aria2c.pot: Removed.
  5117. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5118. Removed MetaEntry.h
  5119. * src/Makefile.am
  5120. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Rename file by appending digits if a local file exists and its
  5122. file size is larger than that of remote file with --continue
  5123. option. The old implementation just throws exception in such case.
  5124. * src/RequestGroup.cc
  5125. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Fixed the bug that download progress summary is not printed in the
  5127. interval specified by the option.
  5128. * src/ConsoleStatCalc.cc
  5129. * src/ConsoleStatCalc.h
  5130. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Fixed compiler warning
  5132. * src/Cookie.cc
  5133. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Fixed the cookie implementation based on RFC2965.
  5135. Now if a value in domain field is not started with dot, then
  5136. prepend dot. That means a cookie with domain=sf.net is sent to
  5137. wiki.sf.net.
  5138. * src/Cookie.cc
  5139. * test/CookieParserTest.cc
  5140. * test/CookieStorageTest.cc
  5141. * test/CookieTest.cc
  5142. * test/NsCookieParserTest.cc
  5143. * test/Sqlite3MozCookieParserTest.cc
  5144. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5145. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5146. is enabled and the server doesn't support keep-alive.
  5147. * src/AbstractCommand.cc
  5148. * src/DownloadCommand.cc
  5149. * src/HttpDownloadCommand.cc
  5150. * src/HttpDownloadCommand.h
  5151. * src/HttpResponseCommand.cc
  5152. * src/Request.cc
  5153. * src/Request.h
  5154. * test/RequestTest.cc
  5155. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Removed Dictionary/List/Data and its related classes.
  5157. * src/BencodeVisitor.cc: Removed.
  5158. * src/BencodeVisitor.h: Removed.
  5159. * src/Data.cc: Removed.
  5160. * src/Data.h: Removed.
  5161. * src/Dictionary.cc: Removed.
  5162. * src/Dictionary.h: Removed.
  5163. * src/List.cc: Removed.
  5164. * src/List.h: Removed.
  5165. * src/Makefile.am
  5166. * src/MetaEntry.h: Removed.
  5167. * src/MetaEntryVisitor.h: Removed.
  5168. * src/MetaFileUtil.cc: Removed.
  5169. * src/MetaFileUtil.h: Removed.
  5170. * test/BencodeVisitorTest.cc: Removed.
  5171. * test/DataTest.cc: Removed.
  5172. * test/DictionaryTest.cc: Removed.
  5173. * test/ListTest.cc: Removed.
  5174. * test/Makefile.am
  5175. * test/MetaFileUtilTest.cc: Removed.
  5176. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Removed include of MetaEntry.h
  5178. * test/DHTMessageTrackerEntryTest.cc
  5179. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Use BDE instead of Dictionary/List/Data.
  5181. * src/AnnounceList.cc
  5182. * src/AnnounceList.h
  5183. * test/AnnounceListTest.cc
  5184. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Use BDE instead of Dictionary/List/Data.
  5186. * src/DHTAbstractMessage.cc
  5187. * src/DHTAbstractMessage.h
  5188. * src/DHTAnnouncePeerMessage.cc
  5189. * src/DHTAnnouncePeerMessage.h
  5190. * src/DHTAnnouncePeerReplyMessage.cc
  5191. * src/DHTAnnouncePeerReplyMessage.h
  5192. * src/DHTFindNodeMessage.cc
  5193. * src/DHTFindNodeMessage.h
  5194. * src/DHTFindNodeReplyMessage.cc
  5195. * src/DHTFindNodeReplyMessage.h
  5196. * src/DHTGetPeersMessage.cc
  5197. * src/DHTGetPeersMessage.h
  5198. * src/DHTGetPeersReplyMessage.cc
  5199. * src/DHTGetPeersReplyMessage.h
  5200. * src/DHTMessageFactory.h
  5201. * src/DHTMessageFactoryImpl.cc
  5202. * src/DHTMessageFactoryImpl.h
  5203. * src/DHTMessageReceiver.cc
  5204. * src/DHTMessageTracker.cc
  5205. * src/DHTMessageTracker.h
  5206. * src/DHTPingMessage.cc
  5207. * src/DHTPingMessage.h
  5208. * src/DHTPingReplyMessage.cc
  5209. * src/DHTPingReplyMessage.h
  5210. * src/DHTQueryMessage.cc
  5211. * src/DHTQueryMessage.h
  5212. * src/DHTResponseMessage.cc
  5213. * src/DHTResponseMessage.h
  5214. * test/DHTAnnouncePeerMessageTest.cc
  5215. * test/DHTAnnouncePeerReplyMessageTest.cc
  5216. * test/DHTFindNodeMessageTest.cc
  5217. * test/DHTFindNodeReplyMessageTest.cc
  5218. * test/DHTGetPeersMessageTest.cc
  5219. * test/DHTGetPeersReplyMessageTest.cc
  5220. * test/DHTMessageFactoryImplTest.cc
  5221. * test/DHTMessageTrackerTest.cc
  5222. * test/DHTPingMessageTest.cc
  5223. * test/DHTPingReplyMessageTest.cc
  5224. * test/MockDHTMessageFactory.h
  5225. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Added tests the case where length < 0 is specified.
  5227. * test/BencodeTest.cc
  5228. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Fixed memory leak in decoderawstring()
  5230. * src/bencode.cc
  5231. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Added missing #ifdef guard. Added uc() function for String and
  5233. removeKey() for Dict.
  5234. * src/bencode.cc
  5235. * src/bencode.h
  5236. * test/BencodeTest.cc
  5237. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Use BDE instead of Dictionary/List/Data.
  5239. * src/HandshakeExtensionMessage.cc
  5240. * src/HandshakeExtensionMessage.h
  5241. * test/HandshakeExtensionMessageTest.cc
  5242. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5243. Added --max-overall-upload-limit option. This option limits the
  5244. overall upload speed. Stated in help message that the existing
  5245. --max-upload-limit option limits the upload speed per each
  5246. torrent. Man page is also updated.
  5247. * doc/aria2c.1.txt
  5248. * src/DefaultBtMessageDispatcher.cc
  5249. * src/DefaultBtMessageDispatcher.h
  5250. * src/OptionHandlerFactory.cc
  5251. * src/PeerInteractionCommand.cc
  5252. * src/option_processing.cc
  5253. * src/prefs.cc
  5254. * src/prefs.h
  5255. * src/usage_text.h
  5256. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Use BDE instead of Dictionary/List/Data classes.
  5258. * src/CompactPeerListProcessor.cc
  5259. * src/CompactPeerListProcessor.h
  5260. * src/DefaultBtAnnounce.cc
  5261. * src/DefaultBtContext.cc
  5262. * src/DefaultBtContext.h
  5263. * src/DefaultPeerListProcessor.cc
  5264. * src/DefaultPeerListProcessor.h
  5265. * src/DelegatingPeerListProcessor.cc
  5266. * src/DelegatingPeerListProcessor.h
  5267. * src/PeerListProcessor.h
  5268. * src/UTPexExtensionMessage.cc
  5269. * src/Util.h
  5270. * src/message.h
  5271. * test/DefaultBtContextTest.cc
  5272. * test/DefaultPeerListProcessorTest.cc
  5273. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Added bencode helper functions and BDE class.
  5275. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5276. * src/Makefile.am
  5277. * src/bencode.cc
  5278. * src/bencode.h
  5279. * test/BencodeTest.cc
  5280. * test/Makefile.am
  5281. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. Fixed the bug that bad URI is sent to the tracker when the announe
  5283. URI in torrent file includes query.
  5284. * src/DefaultBtAnnounce.cc
  5285. * test/DefaultBtAnnounceTest.cc
  5286. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Added Option::blank().
  5288. Use !Option::blank(name) instead of Option::defined(name) for
  5289. the options that take filename.
  5290. * src/MultiUrlRequestInfo.cc
  5291. * src/Option.cc
  5292. * src/Option.h
  5293. * src/main.cc
  5294. * src/option_processing.cc
  5295. * test/OptionTest.cc
  5296. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5297. Documented the default value of --check-certificate option in man
  5298. page.
  5299. * doc/aria2c.1.txt
  5300. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Enabled --check-certificate by default. Added compile
  5302. time(configure) option --with-ca-bundle to specify CA bundle.
  5303. Warn if --check-certificate=true and --ca-certificate is not
  5304. specified or loading CA certificate is failed.
  5305. * configure.ac
  5306. * src/MultiUrlRequestInfo.cc
  5307. * src/OptionHandlerFactory.cc
  5308. * src/message.h
  5309. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Mentioned https tag in help option.
  5311. * doc/aria2c.1.txt
  5312. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Added `https' tag to help option category. Added https tag to
  5314. --ca-certificate, --certificate, --check-certificate and
  5315. --private-key option.
  5316. * src/OptionHandlerFactory.cc
  5317. * src/help_tags.h
  5318. * src/option_processing.cc
  5319. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Changed the package name from `aria2c' to `aria2' in order to fix
  5321. the packaging issue in Debian and Fedora. The name of the
  5322. executable is not changed.
  5323. * configure.ac
  5324. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5325. Fixed typos
  5326. * src/usage_text.h
  5327. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Fixed typos and updated doc.
  5329. * README
  5330. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Fixed typos
  5332. * doc/aria2c.1.txt
  5333. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Fixed typos
  5335. * src/usage_text.h
  5336. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Print a message when no files to download.
  5338. * src/download_helper.cc
  5339. * src/main.cc
  5340. * src/message.h
  5341. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. RFC3986 complied Percent-Encoding(urlencode).
  5343. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5344. ones.
  5345. * src/Request.cc
  5346. * src/Util.cc
  5347. * src/Util.h
  5348. * test/BtHandshakeMessageTest.cc
  5349. * test/DefaultBtAnnounceTest.cc
  5350. * test/DefaultBtContextTest.cc
  5351. * test/RequestTest.cc
  5352. * test/UtilTest.cc
  5353. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5354. Fixed the bug that prevents aria2 from downloading 0-length files
  5355. via HTTP/FTP.
  5356. * src/DefaultBtContext.cc
  5357. * src/DefaultBtContext.h
  5358. * src/DownloadContext.h
  5359. * src/FtpNegotiationCommand.cc
  5360. * src/HttpResponseCommand.cc
  5361. * src/HttpResponseCommand.h
  5362. * src/RequestGroup.cc
  5363. * src/SingleFileDownloadContext.cc
  5364. * src/SingleFileDownloadContext.h
  5365. * test/BtPostDownloadHandlerTest.cc
  5366. * test/MetalinkPostDownloadHandlerTest.cc
  5367. * test/MockBtContext.h
  5368. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5370. * src/option_processing.cc
  5371. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Applied aria2-1.0.1-mingw.patch.
  5373. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5374. mingw.
  5375. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5376. * src/SocketCore.cc
  5377. * src/a2netcompat.h
  5378. * test/SocketCoreTest.cc
  5379. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5380. * Release 1.0.1
  5381. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Updated Ukrainian and Norwegian Nynorsk translations.
  5383. Thanks to all translators.
  5384. * po/nn.po
  5385. * po/uk.po
  5386. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5387. Don't show download result when -S option is used.
  5388. * src/main.cc
  5389. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5390. Bump up version number to 1.0.1
  5391. * configure.ac
  5392. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Closed files after the test cases in MultiDiskWriterTest::
  5394. testResetDiskWriterEntries(). This will fix the unit test error
  5395. in mingw32 build.
  5396. * test/MultiDiskWriterTest.cc
  5397. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5398. Use HEAD method to get file size from HTTP server for segmented
  5399. downloading.
  5400. The request to the BitTorrent Tracker always uses GET method because
  5401. the response of the tracker is small and it doesn't need segmented
  5402. download.
  5403. * src/FtpNegotiationCommand.cc
  5404. * src/HttpRequest.cc
  5405. * src/HttpResponseCommand.cc
  5406. * src/HttpSkipResponseCommand.cc
  5407. * src/RequestGroup.cc
  5408. * src/RequestGroup.h
  5409. * src/TrackerWatcherCommand.cc
  5410. * test/HttpRequestTest.cc
  5411. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Fixed the bug that causes floating exception when -T option is used and
  5413. no URIs are given.
  5414. * src/download_helper.cc
  5415. * test/DownloadHelperTest.cc
  5416. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5417. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5418. errors in MinGW:
  5419. Closed file after saving server stats (RequestGroupMan.cc)
  5420. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5421. Ignored case & handled 2-digit years (strptime.c)
  5422. Added missing suseconds_t definition (a2time.h)
  5423. Fixed socket CLOSE() define (SocketCore.cc)
  5424. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5425. Changed utime() test values from x000 to x00000 as MinGW failed on
  5426. values less than timezone offset from Unix epoch
  5427. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5428. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5429. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5430. handle negative dates (CookieParserTest.cc)
  5431. * src/a2time.h
  5432. * src/FtpConnection.cc
  5433. * src/RequestGroupMan.cc
  5434. * src/SocketCore.cc
  5435. * src/strptime.c
  5436. * test/CookieParserTest.cc
  5437. * test/CopyDiskAdaptorTest.cc
  5438. * test/FileTest.cc
  5439. * test/FtpConnectionTest.cc
  5440. * test/MultiDiskAdaptorTest.cc
  5441. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5442. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5443. * doc/aria2c.1.txt
  5444. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. * Release 1.0.0
  5446. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Added '~' to reserved characters.
  5448. * src/Util.cc
  5449. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Do not urlencode Request::url in setUrl() because we want unmodified
  5451. URL using Request::getUrl()
  5452. * src/Request.cc
  5453. * src/Request.h
  5454. * test/RequestTest.cc
  5455. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5457. Thanks to all translators.
  5458. * po/bg.po
  5459. * po/fr.po
  5460. * po/ja.po
  5461. * po/ru.po
  5462. * po/uk.po
  5463. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Bump up version number to 1.0.0
  5465. * configure.ac
  5466. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. Added nosqlite3 build to build_test.sh.
  5468. Renamed noxml as expat.
  5469. * build_test.sh
  5470. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Updated INPUT FILE section.
  5472. * doc/aria2c.1.txt
  5473. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5475. on big endian systems because test .aria2 files are made for little
  5476. endian systems.
  5477. * test/DefaultBtProgressInfoFileTest.cc
  5478. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Dropped ares support.
  5480. * README
  5481. * configure.ac
  5482. * m4/libares.m4: Removed.
  5483. * src/AsyncNameResolver.cc
  5484. * src/Makefile.am
  5485. * test/Makefile.am
  5486. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5488. Removed const qualifier from DiskWriter::size().
  5489. * src/AbstractDiskWriter.cc
  5490. * src/AbstractDiskWriter.h
  5491. * src/ByteArrayDiskWriter.cc
  5492. * src/ByteArrayDiskWriter.h
  5493. * src/DiskWriter.h
  5494. * test/ByteArrayDiskWriterTest.cc
  5495. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Fixed the bug that causes segmentation fault/bus error during executing
  5497. choking algorithm while seeding. This is caused by improper
  5498. implementation of compare function which returns inconsistent results
  5499. depending on the timing of last unchoke.
  5500. * src/BtSeederStateChoke.cc
  5501. * src/BtSeederStateChoke.h
  5502. * src/DefaultPeerStorage.cc
  5503. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Removed TODO
  5505. * TODO
  5506. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5507. Added a section that explains how to pass argument to options that
  5508. takes optional arguments with its short form.
  5509. * doc/aria2c.1.txt
  5510. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5511. Added -u for the short form of --max-upload-limit option.
  5512. * doc/aria2c.1.txt
  5513. * src/option_processing.cc
  5514. * src/usage_text.h
  5515. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Added -V for the short form of --check-integrity option.
  5517. Now the argument of --check-integrity option is optional:
  5518. if it is omitted, it is evaluated as true.
  5519. * doc/aria2c.1.txt
  5520. * src/option_processing.cc
  5521. * src/usage_text.h
  5522. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Made the default value of --ftp-pasv option set to true and it can take
  5524. true/false values.
  5525. * src/OptionHandlerFactory.cc
  5526. * src/option_processing.cc
  5527. * src/usage_text.h
  5528. * doc/aria2c.1.txt
  5529. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Given custom random number generator to std::random_shuffle.
  5531. * src/AnnounceList.cc
  5532. * src/BtLeecherStateChoke.cc
  5533. * src/BtSeederStateChoke.cc
  5534. * src/DefaultBtRequestFactory.cc
  5535. * src/MetalinkEntry.cc
  5536. * src/RarestPieceSelector.cc
  5537. * src/SimpleRandomizer.cc
  5538. * src/SimpleRandomizer.h
  5539. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5540. Now the default value of --enable-direct-io is true.
  5541. * src/OptionHandlerFactory.cc
  5542. * doc/aria2c.1.txt
  5543. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Erase peer before executing onReturningPeer and onErasingPeer
  5545. because choking algorithm called from onReturningPeer doesn't
  5546. like erasing peer in the active peer list.
  5547. * src/DefaultPeerStorage.cc
  5548. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Instead of creating special filename in createDownloadResult() if
  5550. inMemoryDownload() is true, now it is done in getFilePath().
  5551. * src/RequestGroup.cc
  5552. * test/RequestGroupTest.cc
  5553. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5554. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5555. processed in memory. This is the fix for previous comment out.
  5556. * src/MemoryBufferPreDownloadHandler.cc
  5557. * src/RequestGroup.cc
  5558. * src/RequestGroup.h
  5559. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Commented out the code which sets virtual directory path "[MEMORY]"
  5561. propagate directory to store to following RequestGroup.
  5562. * src/MemoryBufferPreDownloadHandler.cc
  5563. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Bump up version number to 1.0.0b
  5565. * configure.ac
  5566. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5567. Added input_uris.txt to EXTRA_DIST
  5568. * test/Makefile.am
  5569. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5570. Removed PeerObject.h from Makefile.am
  5571. * src/Makefile.am
  5572. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Avoid slow seeding
  5574. * src/PeerInteractionCommand.cc
  5575. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Updated usage for -i option.
  5577. * src/usage_text.h (TEXT_INPUT_FILE)
  5578. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Added INPUT FILE section to man page.
  5580. Escaped fake URLs.
  5581. * doc/aria2c.1.txt
  5582. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5583. Fixed wrong note position for -o option.
  5584. * doc/aria2c.1.txt
  5585. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5586. Fixed compile error without SSL/XML library.
  5587. * src/DefaultBtProgressInfoFile.cc
  5588. * src/DefaultBtProgressInfoFile.h
  5589. * src/FileMetalinkParserState.cc
  5590. * src/RequestGroup.h
  5591. * src/SocketCore.cc
  5592. * src/SocketCore.h
  5593. * src/VerificationMetalinkParserState.cc
  5594. * src/download_helper.h
  5595. * src/main.cc
  5596. * test/DefaultBtProgressInfoFileTest.cc
  5597. * test/DownloadHelperTest.cc
  5598. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5599. Rewritten URI handling functions. They are now provided as a testable
  5600. functions.
  5601. * src/Makefile.am
  5602. * src/RequestGroup.cc
  5603. * src/RequestGroup.h
  5604. * src/download_helper.cc
  5605. * src/download_helper.h
  5606. * src/main.cc
  5607. * test/DownloadHelperTest.cc
  5608. * test/Makefile.am
  5609. * test/input_uris.txt
  5610. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Quickly terminate commands when ctrl-c is pressed.
  5612. * src/DownloadEngine.cc
  5613. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5614. Quickly terminate idle commands when download finished.
  5615. * src/AbstractCommand.cc
  5616. * src/DownloadCommand.cc
  5617. * src/DownloadEngine.cc
  5618. * src/DownloadEngine.h
  5619. * src/SleepCommand.cc
  5620. * src/SleepCommand.h
  5621. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5622. Added the ability to specify output filename and directory in input
  5623. file.
  5624. Additional parameters are added in the following line of URIs
  5625. with proceeding white space(s), 1 parameter in 1 line.
  5626. The parameter names are the same with the command-line option name
  5627. without proceeding "--". Not all the options are available here:
  5628. at the moment, 'dir' and 'out' options are avialable.
  5629. Please note that out option has no effect against Metalink or BitTorrent
  5630. downloads.
  5631. Example input file:
  5632. http://host/foo-1.1.tar.bz2
  5633. out=foo.tar.bz2
  5634. dir=/tmp/downloads
  5635. http://host/thundermonkey-2.0.tar.bz2
  5636. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5637. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5638. thundermonkey-2.0.tar.bz2 is saved as
  5639. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5640. * src/BtPostDownloadHandler.cc
  5641. * src/Metalink2RequestGroup.cc
  5642. * src/Metalink2RequestGroup.h
  5643. * src/MetalinkPostDownloadHandler.cc
  5644. * src/UriListParser.cc
  5645. * src/UriListParser.h
  5646. * src/main.cc
  5647. * test/Metalink2RequestGroupTest.cc
  5648. * test/UriListParserTest.cc
  5649. * test/filelist1.txt
  5650. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Fixed error when SSL library is not found.
  5652. * configure.ac
  5653. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5654. Cross referenced among -s, -C and -j options.
  5655. Updated usage of -C and -s options.
  5656. * src/usage_text.h
  5657. * doc/aria2c.1.txt
  5658. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Fixed bad cast in 32bit platforms.
  5660. * test/DefaultPieceStorageTest.cc
  5661. (DefaultPieceStorageTest::testGetCompletedLength)
  5662. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Fixed unit test fails on 32bit platforms.
  5664. * test/CookieParserTest.cc
  5665. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Show an average download speed in Download results.
  5667. * src/BtFileAllocationEntry.cc
  5668. * src/DefaultPieceStorage.cc
  5669. * src/DownloadContext.cc
  5670. * src/DownloadContext.h
  5671. * src/DownloadResult.h
  5672. * src/RequestGroup.cc
  5673. * src/RequestGroupMan.cc
  5674. * src/StreamFileAllocationEntry.cc
  5675. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Fixed the bug that metalink file is not processed if Content-Type
  5677. field has a paramter.
  5678. * src/HttpResponse.cc
  5679. * src/HttpResponse.h
  5680. * test/HttpResponseTest.cc
  5681. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5682. Removed unused code.
  5683. * src/DefaultBtAnnounce.cc
  5684. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5685. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5686. the value larger than DefaultPieceStorage::getTotalLength() when
  5687. in flight pieces are involved.
  5688. * src/DefaultPieceStorage.cc
  5689. * test/DefaultPieceStorageTest.cc
  5690. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Bump up version number to 1.0.0a.
  5692. * configure.ac
  5693. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5694. Updated configure.ac
  5695. * configure.ac
  5696. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Added usege for proxy.
  5698. * doc/aria2c.1.txt
  5699. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Added usage for --ca-certificate, --certificate, --private-key and
  5701. --check-certificate options.
  5702. * doc/aria2c.1.txt
  5703. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Updated man page
  5705. * doc/aria2c.1.txt
  5706. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Added --no-proxy option. It receives comman separated hostname or
  5708. domains to which proxy should not be used.
  5709. aria2 honors the environment variable no_proxy to override no-proxy
  5710. value in configuration file. The user can override the environment
  5711. variable no_proxy with --no-proxy command-line option.
  5712. * src/AbstractCommand.cc
  5713. * src/OptionHandlerFactory.cc
  5714. * src/option_processing.cc
  5715. * src/prefs.cc
  5716. * src/prefs.h
  5717. * src/usage_text.h
  5718. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5720. The CA certificates are specified in --ca-certificate option.
  5721. By default, the verification is disabled. Use --check-certificate
  5722. option to enable it.
  5723. * src/HttpRequestCommand.cc
  5724. * src/LibgnutlsTLSContext.cc
  5725. * src/LibgnutlsTLSContext.h
  5726. * src/LibsslTLSContext.cc
  5727. * src/LibsslTLSContext.h
  5728. * src/MultiUrlRequestInfo.cc
  5729. * src/OptionHandlerFactory.cc
  5730. * src/SocketCore.cc
  5731. * src/SocketCore.h
  5732. * src/a2functional.h
  5733. * src/message.h
  5734. * src/option_processing.cc
  5735. * src/prefs.cc
  5736. * src/prefs.h
  5737. * src/usage_text.h
  5738. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Added client certificate authentication for SSL/TLS.
  5740. Currently a private key must be decrypted for use with aria2.
  5741. If a user accidentally gives encrypted file to aria2 then following
  5742. thing happens:
  5743. If encrypted private key is given to aria2, it behaves differently
  5744. depending on the ssl library it uses. If aria2 built with openssl then
  5745. openssl prompts the user for password. If aria2 build with gnutls then
  5746. aria2 exists with error at start up.
  5747. * src/DownloadEngineFactory.cc
  5748. * src/MultiUrlRequestInfo.cc
  5749. * src/OptionHandlerFactory.cc
  5750. * src/option_processing.cc
  5751. * src/prefs.cc
  5752. * src/prefs.h
  5753. * src/usage_text.h
  5754. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5755. Introduced TLSContext that holds TLS related data that can be shared
  5756. with multiple SSL connections.
  5757. * src/DownloadEngineFactory.cc
  5758. * src/LibgnutlsTLSContext.cc
  5759. * src/LibgnutlsTLSContext.h
  5760. * src/LibsslTLSContext.cc
  5761. * src/LibsslTLSContext.h
  5762. * src/Makefile.am
  5763. * src/SocketCore.cc
  5764. * src/SocketCore.h
  5765. * src/TLSContext.h
  5766. * src/message.h
  5767. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5768. Fixed the bug that the DiskWriter of the first FileEntry whose
  5769. `needsFileAllocation' property is false is not created
  5770. even if it shares a piece with next FileEntry which `requested' property
  5771. is true.
  5772. Fixed the bug that zero-length file is not created if pre file
  5773. allocation is not done.
  5774. * src/MultiDiskAdaptor.cc
  5775. * src/MultiDiskAdaptor.h
  5776. * test/MultiDiskAdaptorTest.cc
  5777. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Added the ability to pool proxy connection.
  5779. The conneciton in FTP with proxy-method=GET is not pooled.
  5780. Proxy-Connection header will not be sent when sending CONNECT method.
  5781. * src/DownloadEngine.cc
  5782. * src/DownloadEngine.h
  5783. * src/FtpFinishDownloadCommand.cc
  5784. * src/FtpInitiateConnectionCommand.cc
  5785. * src/FtpNegotiationCommand.cc
  5786. * src/HttpDownloadCommand.cc
  5787. * src/HttpInitiateConnectionCommand.cc
  5788. * src/HttpRequest.cc
  5789. * src/HttpRequest.h
  5790. * src/HttpResponse.cc
  5791. * src/HttpSkipResponseCommand.cc
  5792. * test/HttpRequestTest.cc
  5793. * test/HttpResponseTest.cc
  5794. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Handle date before epoch.
  5796. To create *bad* Time object, call Time::null().
  5797. * src/CookieParser.cc
  5798. * src/FtpConnection.cc
  5799. * src/FtpConnection.h
  5800. * src/FtpNegotiationCommand.cc
  5801. * src/RequestGroup.cc
  5802. * src/TimeA2.cc
  5803. * src/TimeA2.h
  5804. * test/CookieParserTest.cc
  5805. * test/FtpConnectionTest.cc
  5806. * test/TimeTest.cc
  5807. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Added support for following envrionment variables: http_proxy,
  5809. https_proxy, ftp_proxy and all_proxy.
  5810. Each variable is equivalent to the aria2 option whose name is the
  5811. variable name with '_' replaced with '-'.
  5812. They overrides options specified in aria2.conf file.
  5813. The envrionment variables can be overrode using command-line option.
  5814. * src/option_processing.cc
  5815. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Renamed --http-proxy-method as --proxy-method.
  5817. * src/AbstractCommand.cc
  5818. * src/FtpInitiateConnectionCommand.cc
  5819. * src/HttpInitiateConnectionCommand.cc
  5820. * src/OptionHandlerFactory.cc
  5821. * src/option_processing.cc
  5822. * src/prefs.cc
  5823. * src/prefs.h
  5824. * src/usage_text.h
  5825. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5827. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5828. Above 3 options and --http-proxy option can handle proxy in URL format
  5829. like: http://user:passwd@host:port.
  5830. If a proxy requires user/password, they must be specified in a URL.
  5831. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5832. instead.
  5833. * src/AbstractCommand.cc
  5834. * src/AbstractCommand.h
  5835. * src/AbstractProxyRequestCommand.cc
  5836. * src/AbstractProxyRequestCommand.h
  5837. * src/AuthConfigFactory.cc
  5838. * src/AuthConfigFactory.h
  5839. * src/FtpFinishDownloadCommand.cc
  5840. * src/FtpInitiateConnectionCommand.cc
  5841. * src/FtpInitiateConnectionCommand.h
  5842. * src/FtpNegotiationCommand.cc
  5843. * src/FtpTunnelRequestCommand.cc
  5844. * src/FtpTunnelRequestCommand.h
  5845. * src/HttpDownloadCommand.cc
  5846. * src/HttpInitiateConnectionCommand.cc
  5847. * src/HttpInitiateConnectionCommand.h
  5848. * src/HttpProxyRequestCommand.cc
  5849. * src/HttpProxyRequestCommand.h
  5850. * src/HttpRequest.cc
  5851. * src/HttpRequest.h
  5852. * src/HttpRequestCommand.cc
  5853. * src/HttpRequestCommand.h
  5854. * src/HttpSkipResponseCommand.cc
  5855. * src/InitiateConnectionCommand.cc
  5856. * src/InitiateConnectionCommand.h
  5857. * src/OptionHandlerFactory.cc
  5858. * src/OptionHandlerImpl.h
  5859. * src/Request.cc
  5860. * src/option_processing.cc
  5861. * src/prefs.cc
  5862. * src/prefs.h
  5863. * src/usage_text.h
  5864. * test/AuthConfigFactoryTest.cc
  5865. * test/HttpRequestTest.cc
  5866. * test/OptionHandlerTest.cc
  5867. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Execute choking algorithm when unchoked and interested peer is
  5869. disconected.
  5870. * src/DefaultPeerStorage.cc
  5871. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Added testcase for BtNotInterestedMessage from unchoked peer.
  5873. * test/BtNotInterestedMessageTest.cc
  5874. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Execute choking algorithm when BtInterestedMessage arrives from
  5876. unchoked peer.
  5877. * src/BtInterestedMessage.cc
  5878. * src/BtInterestedMessage.h
  5879. * src/DefaultBtMessageFactory.cc
  5880. * test/BtInterestedMessageTest.cc
  5881. * test/MockPeerStorage.h
  5882. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. AuthConfigFactory is now part of DownloadEngine.
  5884. * src/AbstractProxyRequestCommand.cc
  5885. * src/AuthConfigFactory.h
  5886. * src/DownloadEngine.cc
  5887. * src/DownloadEngine.h
  5888. * src/FtpConnection.cc
  5889. * src/FtpConnection.h
  5890. * src/FtpNegotiationCommand.cc
  5891. * src/HttpConnection.cc
  5892. * src/HttpRequest.cc
  5893. * src/HttpRequest.h
  5894. * src/HttpRequestCommand.cc
  5895. * src/HttpResponse.cc
  5896. * src/HttpResponseCommand.cc
  5897. * src/HttpSkipResponseCommand.cc
  5898. * src/MultiUrlRequestInfo.cc
  5899. * src/main.cc
  5900. * test/FtpConnectionTest.cc
  5901. * test/HttpRequestTest.cc
  5902. * test/HttpResponseTest.cc
  5903. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Corrected catched exception type.
  5905. * src/ServerStatMan.cc
  5906. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. DNSCache is now part of DownloadEngine.
  5908. * src/DNSCache.h
  5909. * src/DownloadEngine.cc
  5910. * src/DownloadEngine.h
  5911. * src/InitiateConnectionCommand.cc
  5912. * src/MultiUrlRequestInfo.cc
  5913. * test/Makefile.am
  5914. * test/Makefile.in
  5915. * test/SimpleDNSCacheTest.cc
  5916. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5918. DownloadEngine.
  5919. * src/ActivePeerConnectionCommand.cc
  5920. * src/BtSetup.cc
  5921. * src/CUIDCounter.h
  5922. * src/DHTSetup.cc
  5923. * src/DownloadCommand.cc
  5924. * src/DownloadEngine.cc
  5925. * src/DownloadEngine.h
  5926. * src/DownloadEngineFactory.cc
  5927. * src/FileAllocationDispatcherCommand.cc
  5928. * src/InitiatorMSEHandshakeCommand.cc
  5929. * src/PeerInitiateConnectionCommand.cc
  5930. * src/PeerInteractionCommand.cc
  5931. * src/PeerListenCommand.cc
  5932. * src/RequestGroup.cc
  5933. * src/StreamFileAllocationEntry.cc
  5934. * src/TrackerWatcherCommand.cc
  5935. * src/main.cc
  5936. * test/RequestGroupManTest.cc
  5937. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Implemented commented code in BtSeederStateChoke
  5939. * src/BtSeederStateChoke.cc
  5940. * src/Peer.cc
  5941. * src/Peer.h
  5942. * src/PeerInteractionCommand.cc
  5943. * src/PeerSessionResource.cc
  5944. * src/PeerSessionResource.h
  5945. * test/MockBtMessageDispatcher.h
  5946. * test/PeerSessionResourceTest.cc
  5947. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5949. its object.
  5950. * src/AbstractBtMessage.cc
  5951. * src/ActivePeerConnectionCommand.cc
  5952. * src/ActivePeerConnectionCommand.h
  5953. * src/BtContextAwareCommand.cc
  5954. * src/BtContextAwareCommand.h
  5955. * src/BtExtendedMessage.cc
  5956. * src/BtExtendedMessage.h
  5957. * src/BtInterestedMessage.cc
  5958. * src/BtInterestedMessage.h
  5959. * src/BtNotInterestedMessage.cc
  5960. * src/BtNotInterestedMessage.h
  5961. * src/BtRegistry.cc
  5962. * src/BtRegistry.h
  5963. * src/BtSeederStateChoke.cc
  5964. * src/BtSetup.cc
  5965. * src/DHTGetPeersCommand.cc
  5966. * src/DHTGetPeersCommand.h
  5967. * src/DHTPeerAnnounceEntry.cc
  5968. * src/DHTPeerAnnounceEntry.h
  5969. * src/DHTPeerAnnounceStorage.cc
  5970. * src/DHTPeerAnnounceStorage.h
  5971. * src/DHTPeerLookupTask.cc
  5972. * src/DHTPeerLookupTask.h
  5973. * src/DHTSetup.cc
  5974. * src/DHTSetup.h
  5975. * src/DHTTaskFactory.h
  5976. * src/DHTTaskFactoryImpl.cc
  5977. * src/DHTTaskFactoryImpl.h
  5978. * src/DefaultBtAnnounce.cc
  5979. * src/DefaultBtInteractive.cc
  5980. * src/DefaultBtInteractive.h
  5981. * src/DefaultBtMessageDispatcher.cc
  5982. * src/DefaultBtMessageDispatcher.h
  5983. * src/DefaultBtMessageFactory.cc
  5984. * src/DefaultBtMessageFactory.h
  5985. * src/DefaultBtMessageReceiver.cc
  5986. * src/DefaultBtProgressInfoFile.cc
  5987. * src/DefaultBtProgressInfoFile.h
  5988. * src/DefaultBtRequestFactory.cc
  5989. * src/DefaultBtRequestFactory.h
  5990. * src/DefaultExtensionMessageFactory.cc
  5991. * src/DefaultExtensionMessageFactory.h
  5992. * src/DefaultPeerStorage.cc
  5993. * src/DefaultPeerStorage.h
  5994. * src/DownloadEngine.cc
  5995. * src/DownloadEngine.h
  5996. * src/InitiatorMSEHandshakeCommand.cc
  5997. * src/InitiatorMSEHandshakeCommand.h
  5998. * src/MSEHandshake.cc
  5999. * src/MSEHandshake.h
  6000. * src/Makefile.am
  6001. * src/Makefile.in
  6002. * src/PeerChokeCommand.cc
  6003. * src/PeerChokeCommand.h
  6004. * src/PeerInitiateConnectionCommand.cc
  6005. * src/PeerInitiateConnectionCommand.h
  6006. * src/PeerInteractionCommand.cc
  6007. * src/PeerInteractionCommand.h
  6008. * src/PeerObject.h
  6009. * src/PeerReceiveHandshakeCommand.cc
  6010. * src/PeerReceiveHandshakeCommand.h
  6011. * src/ReceiverMSEHandshakeCommand.cc
  6012. * src/RequestGroup.cc
  6013. * src/RequestGroup.h
  6014. * src/RequestGroupMan.cc
  6015. * src/RequestGroupMan.h
  6016. * src/SeedCheckCommand.cc
  6017. * src/SeedCheckCommand.h
  6018. * src/ShareRatioSeedCriteria.h
  6019. * src/SimpleBtMessage.cc
  6020. * src/TrackerWatcherCommand.cc
  6021. * src/TrackerWatcherCommand.h
  6022. * src/UTPexExtensionMessage.cc
  6023. * src/UTPexExtensionMessage.h
  6024. * test/BtCancelMessageTest.cc
  6025. * test/BtChokeMessageTest.cc
  6026. * test/BtExtendedMessageTest.cc
  6027. * test/BtInterestedMessageTest.cc
  6028. * test/BtNotInterestedMessageTest.cc
  6029. * test/BtPieceMessageTest.cc
  6030. * test/BtPortMessageTest.cc
  6031. * test/BtRegistryTest.cc
  6032. * test/BtRejectMessageTest.cc
  6033. * test/BtRequestMessageTest.cc
  6034. * test/DHTPeerAnnounceEntryTest.cc
  6035. * test/DHTPeerAnnounceStorageTest.cc
  6036. * test/DefaultBtMessageDispatcherTest.cc
  6037. * test/DefaultBtMessageFactoryTest.cc
  6038. * test/DefaultBtProgressInfoFileTest.cc
  6039. * test/DefaultBtRequestFactoryTest.cc
  6040. * test/DefaultExtensionMessageFactoryTest.cc
  6041. * test/MSEHandshakeTest.cc
  6042. * test/MockDHTTaskFactory.h
  6043. * test/ShareRatioSeedCriteriaTest.cc
  6044. * test/UTPexExtensionMessageTest.cc
  6045. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Fixed compiler warning.
  6047. * test/UtilTest.cc
  6048. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Treat Cookie object as session cookie if expiry = 0 is given.
  6050. With this change, you can specify session scoped cookies in an external
  6051. file setting expiry value to 0.
  6052. * src/Cookie.cc
  6053. * src/Cookie.h
  6054. * test/CookieParserTest.cc
  6055. * test/CookieStorageTest.cc
  6056. * test/CookieTest.cc
  6057. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Changed signature of DHTMessageFactory::createResponseMessage().
  6059. Removed unused validateIDMatch.
  6060. * src/DHTMessageFactory.h
  6061. * src/DHTMessageFactoryImpl.cc
  6062. * src/DHTMessageFactoryImpl.h
  6063. * src/DHTMessageTracker.cc
  6064. * test/DHTMessageFactoryImplTest.cc
  6065. * test/MockDHTMessageFactory.h
  6066. Dropped DHT message coming from same ID of localhost.
  6067. * src/DHTMessageReceiver.cc
  6068. Rejected adding node whose ID is the same as localhost's.
  6069. * src/DHTRoutingTable.cc
  6070. * test/BtPortMessageTest.cc
  6071. * test/DHTRoutingTableTest.cc
  6072. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Pool connection when redirection occurs with Content-Length = 0.
  6074. * src/HttpSkipResponseCommand.cc
  6075. * src/HttpSkipResponseCommand.h
  6076. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Fixed the bug that causes time out when redirection occurs with
  6078. content-length 0.
  6079. * src/HttpResponseCommand.cc
  6080. * src/HttpSkipResponseCommand.cc
  6081. * src/HttpSkipResponseCommand.h
  6082. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Now each status legends is shown only when it appears in Download
  6084. Result. If Download Result has no item, then status legend will not
  6085. be printed.
  6086. * src/RequestGroupMan.cc
  6087. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Removed duplicate creation of OptionHandlers.
  6089. * src/option_processing.cc
  6090. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Fixed the bug that causes segmentation fault when accessing files which
  6092. don't exist or are not included in --select-file option while
  6093. validating chunk checksum.
  6094. * src/MultiDiskAdaptor.cc
  6095. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Fixed compiler warning.
  6097. * test/UtilTest.cc
  6098. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6100. * src/IteratableChecksumValidator.cc
  6101. * src/IteratableChunkChecksumValidator.cc
  6102. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. * Release 0.16.2
  6104. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Added Serbian translation. Updated Ukrainian translation.
  6106. Thanks to all translators.
  6107. * po/sr.po
  6108. * po/uk.po
  6109. * po/LINGUAS
  6110. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Bump up version number to 0.16.2
  6112. * configure.ac
  6113. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Added length equality test to operator== to drop a piece message
  6115. whose length does not match to the requested one.
  6116. * src/RequestSlot.cc
  6117. * test/DefaultBtMessageDispatcherTest.cc
  6118. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6120. recieved.
  6121. In this fix, if a request larger than 16KiB length is received, aria2
  6122. disconnects the peer.
  6123. * src/BtConstants.h
  6124. * src/PeerMessageUtil.cc
  6125. * src/PeerMessageUtil.h
  6126. * test/BtRequestMessageTest.cc
  6127. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. * Release 0.16.1
  6129. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6131. * doc/aria2c.1.txt
  6132. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6134. Updated French, Simplified Chinese and Japanese translations.
  6135. Thanks to all translators.
  6136. en@quot and en@boldquot are also added.
  6137. * po/LINGUAS
  6138. * po/fr.po
  6139. * po/ja.po
  6140. * po/uk.po
  6141. * po/vi.po
  6142. * po/zh_CN.po
  6143. * po/zh_TW.po
  6144. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Bump up version number to 0.16.1.
  6146. * configure.ac
  6147. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Updated README.
  6149. * README
  6150. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6152. not to replace '--' with em dash character.
  6153. * doc/aria2c.1.txt
  6154. * doc/makeman
  6155. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6157. every SEC seconds.
  6158. * src/DownloadEngineFactory.cc
  6159. * src/OptionHandlerFactory.cc
  6160. * src/option_processing.cc
  6161. * src/usage_text.h
  6162. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed compile warning on linux-amd64
  6164. * src/FtpConnection.cc
  6165. * src/IteratableChunkChecksumValidator.cc
  6166. * src/MultiDiskAdaptor.cc
  6167. Fixed the bug that unit test fails on linux-amd64
  6168. * test/UtilTest.cc
  6169. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6170. Added --dht-file-path option to change the path to dht.dat, which is a
  6171. serialized DHT routing table.
  6172. * src/OptionHandlerFactory.cc
  6173. * src/option_processing.cc
  6174. * src/usage_text.h
  6175. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Fixed possible underflow.
  6177. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6178. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Fixed the bug that last character in URI is not encoded.
  6180. * src/Request.cc
  6181. * test/RequestTest.cc
  6182. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Fixed the bug that referer header field contains fragment.
  6184. Now Request class removes fragment part of URI and encodes it
  6185. in Request::setUri() and setReferer().
  6186. * src/Request.h
  6187. * src/Request.cc
  6188. * test/RequestTest.cc
  6189. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Added missing m4 macros.
  6191. * m4/cppunit.m4
  6192. * m4/libgcrypt.m4
  6193. * m4/libgnutls-extra.m4
  6194. * m4/libgnutls.m4
  6195. * m4/libxml2.m4
  6196. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Fixed compile error with gcc-4.4(snapshot)
  6198. * src/File.cc
  6199. * src/FtpConnection.cc
  6200. * src/OptionHandlerImpl.h
  6201. * src/Util.cc
  6202. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Removed assert()
  6204. * src/SocketBuffer.cc (SocketBuffer::send)
  6205. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Changed the type of _numNewConnection to unsigned int.
  6207. * src/ActivePeerConnectionCommand.cc
  6208. * src/ActivePeerConnectionCommand.h
  6209. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. * Release 0.16.0
  6211. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Updated doc
  6213. * README
  6214. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6216. translations. Thanks to all translators.
  6217. * po/bg.po
  6218. * po/de.po
  6219. * po/fr.po
  6220. * po/ja.po
  6221. * po/zh_CN.po
  6222. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Bump up version number to 0.16.0.
  6224. * configure.ac
  6225. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6227. int32_t.
  6228. Changed the type of count to int32_t.
  6229. * src/Metalink2RequestGroup.cc
  6230. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Added test for Time::elapsed(time_t).
  6232. * test/TimeTest.cc
  6233. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6235. Util::difftv() should be used instead.
  6236. * src/TimeA2.cc
  6237. * src/TimeA2.h
  6238. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Made socket for dht connections non-blocking
  6240. * src/DHTAbstractMessage.cc
  6241. * src/DHTAbstractMessage.h
  6242. * src/DHTConnection.h
  6243. * src/DHTConnectionImpl.cc
  6244. * src/DHTConnectionImpl.h
  6245. * src/DHTMessage.h
  6246. * src/DHTMessageDispatcherImpl.cc
  6247. * src/DHTMessageDispatcherImpl.h
  6248. * src/DHTUnknownMessage.cc
  6249. * src/DHTUnknownMessage.h
  6250. * src/SocketCore.cc
  6251. * src/SocketCore.h
  6252. * test/MockDHTMessage.h
  6253. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Changed the type of offset to int.
  6255. * src/ParameterizedStringParser.cc
  6256. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Made getAsInt() return int32_t
  6258. * src/Option.h
  6259. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6261. build.
  6262. * configure.ac
  6263. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Use sqlite3_open if sqlite3_open_v2 is not available.
  6265. * src/Sqlite3MozCookieParser.cc
  6266. * src/Sqlite3MozCookieParser.h
  6267. * m4/sqlite3.m4
  6268. * test/Sqlite3MozCookieParserTest.cc
  6269. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6271. * src/BtPieceMessage.cc
  6272. * src/DHTPeerAnnounceStorage.cc
  6273. * src/DefaultPieceStorage.cc
  6274. * src/DownloadCommand.cc
  6275. * src/DownloadEngine.cc
  6276. * src/FtpConnection.cc
  6277. * src/PeerConnection.cc
  6278. * src/PeerMessageUtil.cc
  6279. * src/RequestGroup.cc
  6280. * src/RequestGroupMan.cc
  6281. * src/SimpleBtMessage.cc
  6282. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6284. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6285. * src/AbstractDiskWriter.cc
  6286. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Don't set Request::supportsPersistentConnection() in HttpConnection
  6288. since this code is also used in AbstractProxyResponseCommand.
  6289. Moved those code to HttpResponse.
  6290. * src/HttpResponse.cc
  6291. * src/HttpResponse.h
  6292. * src/HttpConnection.cc
  6293. * src/HttpConnection.h
  6294. * src/HttpResponseCommand.cc
  6295. * test/HttpResponseTest.cc
  6296. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6298. The configuration is minimum: no torrent, no metalink, so there may be
  6299. other compile error on their code.
  6300. * src/a2netcompat.h
  6301. * src/File.cc
  6302. * src/File.h
  6303. * src/SocketCore.cc
  6304. * src/SocketCore.h
  6305. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Made a socket of incoming peer non-blocking.
  6307. * src/PeerListenCommand.cc
  6308. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6310. whole message data is not sent in one send() call.
  6311. * src/BtPieceMessage.cc
  6312. * src/BtPieceMessage.h
  6313. * src/PeerConnection.cc
  6314. * src/PeerConnection.h
  6315. * src/SimpleBtMessage.cc
  6316. * src/SimpleBtMessage.h
  6317. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Fixed the bug that aria2 downloads faster than max-download-limit when
  6319. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6320. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6321. , instead of sum of them.
  6322. * src/ActivePeerConnectionCommand.cc
  6323. * src/DefaultBtInteractive.cc
  6324. * src/DownloadCommand.cc
  6325. * src/PeerInteractionCommand.cc
  6326. * src/PeerReceiveHandshakeCommand.cc
  6327. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Fixed the bug that HTTPS download fails.
  6329. * src/AbstractCommand.cc
  6330. * src/AbstractCommand.h
  6331. * src/DownloadCommand.cc
  6332. * src/FtpConnection.cc
  6333. * src/HttpConnection.cc
  6334. * src/HttpRequestCommand.cc
  6335. * src/HttpResponseCommand.cc
  6336. * src/HttpSkipResponseCommand.cc
  6337. * src/MSEHandshake.cc
  6338. * src/PeerConnection.cc
  6339. * src/SocketCore.cc
  6340. * src/SocketCore.h
  6341. Fixed the bug that aria2 doesn't download whole content body and cannot
  6342. reuse connection if chunked transfer encoding and gzip content encoding
  6343. are set.
  6344. * src/DownloadCommand.cc
  6345. * src/HttpSkipResponseCommand.cc
  6346. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Updated man page.
  6348. * doc/aria2c.1.txt
  6349. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. When error occurred while aria2 was parsing an .aria2.conf file, print
  6351. the usage of the option that caused error.
  6352. * src/option_processing.cc
  6353. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Fixed compile error on OptionHandlerException
  6355. * src/Makefile.am
  6356. * src/OptionHandlerException.cc
  6357. * src/OptionHandlerException.h
  6358. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Moved message of the error to OptionHandlerException.h
  6360. * src/NameMatchOptionHandler.h
  6361. * src/OptionHandlerException.h
  6362. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. When error occurs while aria2 is parsing an command-line option, print
  6364. the usage of the option.
  6365. * src/Makefile.am
  6366. * src/NameMatchOptionHandler.h
  6367. * src/OptionHandlerException.h
  6368. * src/option_processing.cc
  6369. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Reverted previous change.
  6371. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6372. username is not in URI.
  6373. * src/HttpRequest.cc
  6374. * src/Request.cc
  6375. * test/HttpRequestTest.cc
  6376. * test/RequestTest.cc
  6377. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Now colon is required for username and password in FTP URL, like:
  6379. ftp://username:password@host.
  6380. If colon is not there, aria2 don't parse it as a username. For example,
  6381. aria2 don't retrieve username from ftp://username@host.
  6382. This fix was made in order to login FTP server via non-transparent ftp
  6383. proxy.
  6384. * src/Request.cc
  6385. * test/RequestTest.cc
  6386. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Use netrc for HTTP.
  6388. Now FTP user/password is sent in Authorization header when
  6389. --ftp-via-http-proxy=get is given.
  6390. * src/AuthConfigFactory.cc
  6391. * src/HttpRequest.cc
  6392. * src/HttpRequest.h
  6393. * src/NetrcAuthResolver.cc
  6394. * src/NetrcAuthResolver.h
  6395. * src/OptionHandlerFactory.cc
  6396. * src/option_processing.cc
  6397. * src/prefs.cc
  6398. * src/prefs.h
  6399. * test/AuthConfigFactoryTest.cc
  6400. * test/HttpRequestTest.cc
  6401. * test/NetrcAuthResolverTest.cc
  6402. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Issue PWD command first and get working directory and use it as a prefix
  6404. for CWD command.
  6405. * src/DownloadEngine.cc
  6406. * src/DownloadEngine.h
  6407. * src/FtpConnection.cc
  6408. * src/FtpConnection.h
  6409. * src/FtpFinishDownloadCommand.cc
  6410. * src/FtpInitiateConnectionCommand.cc
  6411. * src/FtpNegotiationCommand.cc
  6412. * src/FtpNegotiationCommand.h
  6413. * test/FtpConnectionTest.cc
  6414. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Removed default user/pass for FTP user/pass, since it should not have
  6416. precedence over netrc configuration by default.
  6417. * src/OptionHandlerFactory.cc
  6418. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Added debug log for socket event.
  6420. * src/AbstractCommand.cc
  6421. * src/PeerAbstractCommand.cc
  6422. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Log microseconds.
  6424. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6425. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Replaced HelpItem.cc with OptionHandler.cc.
  6427. * po/POTFILES.in
  6428. Updated po files with 'make update-po'
  6429. * po/aria2c.pot
  6430. * po/*.po
  6431. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Removed possible values from the text.
  6433. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6434. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Removed unused preferences:
  6436. PREF_NO_PREALLOCATION
  6437. PREF_STDOUT_LOG
  6438. PREF_TRACKER_MAX_TRIES
  6439. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6440. PREF_MIN_SEGMENT_SIZE
  6441. * src/option_processing.cc
  6442. * src/prefs.cc
  6443. * src/prefs.h
  6444. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Integrated HelpItem into OptionParser to ease the workload for adding
  6446. new options. Removed default value from usage text.
  6447. * src/HelpItem.cc: Removed.
  6448. * src/HelpItem.h: Removed.
  6449. * src/HelpItemFactory.cc: Removed.
  6450. * src/HelpItemFactory.h: Removed.
  6451. * src/Makefile.am
  6452. * src/Makefile.in
  6453. * src/NameMatchOptionHandler.h
  6454. * src/OptionHandler.cc
  6455. * src/OptionHandler.h
  6456. * src/OptionHandlerFactory.cc
  6457. * src/OptionHandlerImpl.h
  6458. * src/OptionParser.cc
  6459. * src/OptionParser.h
  6460. * src/TagContainer.cc: Removed.
  6461. * src/TagContainer.h: Removed.
  6462. * src/TaggedItem.cc: Removed.
  6463. * src/TaggedItem.h: Removed.
  6464. * src/main.cc
  6465. * src/option_processing.cc
  6466. * src/usage_text.h
  6467. * src/version_usage.cc
  6468. * test/HelpItemTest.cc: Removed.
  6469. * test/Makefile.am
  6470. * test/Makefile.in
  6471. * test/OptionHandlerTest.cc
  6472. * test/OptionParserTest.cc
  6473. * test/TagContainerTest.cc: Removed.
  6474. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Moved `TransferStat stat = ...' to inside the `if' clause.
  6476. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6477. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Fixed the bug that a block in a piece is requested when same block is
  6479. already requested to the same peer in end game mode.
  6480. * src/BtRequestFactory.h
  6481. * src/DefaultBtInteractive.cc
  6482. * src/DefaultBtRequestFactory.cc
  6483. * src/DefaultBtRequestFactory.h
  6484. * src/DefaultPieceStorage.cc
  6485. * src/DefaultPieceStorage.h
  6486. * src/PieceStorage.h
  6487. * src/UnknownLengthPieceStorage.cc
  6488. * src/UnknownLengthPieceStorage.h
  6489. * test/DefaultBtRequestFactoryTest.cc
  6490. * test/DefaultPieceStorageTest.cc
  6491. * test/MockBtRequestFactory.h
  6492. * test/MockPieceStorage.h
  6493. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Removed _uploadLength and _downloadLength from PeerSessionResource
  6495. and use PeerStat::_sessionUploadLength and
  6496. PeerStat::_sessionDownloadLength.
  6497. * src/PeerSessionResource.cc
  6498. * src/PeerSessionResource.h
  6499. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Fixed the bug that prefixLength of split bucket which doesn't include
  6501. local node ID is incremented.
  6502. * src/DHTBucket.cc
  6503. * src/DHTBucket.h
  6504. * test/DHTBucketTest.cc
  6505. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Added cookies.sqlite to EXTRA_DIST
  6507. * test/Makefile.am
  6508. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Added Turkish translation. Updated French, German, Russian and
  6510. Simplified Chinese translations. Thanks to all translators.
  6511. * po/LINGUAS
  6512. * po/de.po
  6513. * po/fr.po
  6514. * po/ru.po
  6515. * po/tr.po
  6516. * po/zh_CN.po
  6517. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Added deliminating text to the beginning of the log so that one can find
  6519. where the log starts easily.
  6520. * src/main.cc
  6521. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6523. to fix compile error when async DNS is not enabled by configuration.
  6524. * src/AbstractCommand.cc
  6525. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. If establishing conneciton to a server is failed, then mark error on
  6527. its ServerStat.
  6528. Added the cause of error to log when error event occurred.
  6529. Moved message string to message.h for translation.
  6530. * src/AbstractCommand.cc
  6531. * src/AbstractCommand.h
  6532. * src/FtpNegotiationCommand.cc
  6533. * src/HttpRequestCommand.cc
  6534. * src/PeerAbstractCommand.cc
  6535. * src/message.h
  6536. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Added the function to get error message from socket.
  6538. * src/SocketCore.cc
  6539. * src/SocketCore.h
  6540. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6542. * src/RequestGroupMan.cc
  6543. * src/RequestGroupMan.h
  6544. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. If error event is received in epoll, then abort download immediately.
  6546. * src/AbstractCommand.cc
  6547. * src/Command.cc
  6548. * src/Command.h
  6549. * src/DownloadEngine.cc
  6550. * src/PeerAbstractCommand.cc
  6551. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Added usage message for --uri-selector, --server-stat-of,
  6553. --server-stat-in, --server-stat-timeout options.
  6554. * src/HelpItemFactory.cc
  6555. * src/usage_text.h
  6556. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Added upper limit of FTP response buffer. The current implementation
  6558. uses 4096bytes as a limit.
  6559. * src/FtpConnection.cc
  6560. * src/FtpConnection.h
  6561. * test/FtpConnectionTest.cc
  6562. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Use non-blocking socket for TCP communication to avoid possible
  6564. blocking due to buffer full.
  6565. * src/AbstractProxyRequestCommand.cc
  6566. * src/FtpConnection.cc
  6567. * src/FtpConnection.h
  6568. * src/FtpNegotiationCommand.cc
  6569. * src/FtpNegotiationCommand.h
  6570. * src/HttpConnection.cc
  6571. * src/HttpConnection.h
  6572. * src/HttpRequestCommand.cc
  6573. * src/InitiatorMSEHandshakeCommand.cc
  6574. * src/InitiatorMSEHandshakeCommand.h
  6575. * src/MSEHandshake.cc
  6576. * src/MSEHandshake.h
  6577. * src/Makefile.am
  6578. * src/PeerConnection.cc
  6579. * src/PeerConnection.h
  6580. * src/PeerInteractionCommand.cc
  6581. * src/PeerListenCommand.cc
  6582. * src/ReceiverMSEHandshakeCommand.cc
  6583. * src/ReceiverMSEHandshakeCommand.h
  6584. * src/SocketBuffer.cc
  6585. * src/SocketBuffer.h
  6586. * src/SocketCore.cc
  6587. * src/SocketCore.h
  6588. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Call setStatusRealtime() in constructor.
  6590. * src/RealtimeCommand.cc
  6591. * src/RealtimeCommand.h
  6592. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Call Download::setNoWait(true) to execute newly created command without
  6594. a pause.
  6595. * src/AbstractCommand.cc
  6596. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6598. found' error from HTTP/FTP server NUM times without getting single
  6599. bytes of data, then force the download to fail.
  6600. Basically aria2 tris all URIs available. So if long list of URIs are
  6601. specified in Metalink, then aria2 will take a long time to fail
  6602. eventually if all URIs are outdated. This option eases this situation
  6603. to limit the number of servers to try.
  6604. * src/FtpNegotiationCommand.cc
  6605. * src/HelpItemFactory.cc
  6606. * src/HttpResponseCommand.cc
  6607. * src/OptionHandlerFactory.cc
  6608. * src/PeerStat.h
  6609. * src/RequestGroup.cc
  6610. * src/RequestGroup.h
  6611. * src/SegmentMan.cc
  6612. * src/SegmentMan.h
  6613. * src/option_processing.cc
  6614. * src/prefs.cc
  6615. * src/prefs.h
  6616. * src/usage_text.h
  6617. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6619. response even if more than one response is in it.
  6620. * src/FtpConnection.cc
  6621. * src/FtpConnection.h
  6622. * test/FtpConnectionTest.cc
  6623. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Merged from stable-0.15
  6625. * m4/libcares.m4
  6626. Use pkg-config
  6627. * m4/sqlite3.m4
  6628. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Removed unnecessary if statement.
  6630. * src/DefaultPieceStorage.cc (initPieceStorage)
  6631. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Added --connect-timeout option to specify connect timeout in seconds.
  6633. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6634. connecting to BitTorrent peer is not controlled by this option.
  6635. * src/AbstractProxyRequestCommand.cc
  6636. * src/FtpNegotiationCommand.cc
  6637. * src/HelpItemFactory.cc
  6638. * src/HttpRequestCommand.cc
  6639. * src/OptionHandlerFactory.cc
  6640. * src/option_processing.cc
  6641. * src/prefs.cc
  6642. * src/prefs.h
  6643. * src/usage_text.h
  6644. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Added help message for -R option.
  6646. * src/HelpItemFactory.cc
  6647. * src/usage_text.h
  6648. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Added the message that the time is in local time zone.
  6650. * src/RequestGroup.cc
  6651. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Implemented the ability to get timestamp from remote FTP server using
  6653. MDTM command described in RFC3659.
  6654. * src/FtpConnection.cc
  6655. * src/FtpConnection.h
  6656. * src/FtpNegotiationCommand.cc
  6657. * src/FtpNegotiationCommand.h
  6658. * test/FtpConnectionTest.cc
  6659. * test/Makefile.am
  6660. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Implemented the ability to get timestamp from remote HTTP server and
  6662. apply it to local file. To enable this feature, --remote-time option
  6663. is added. No usage text has been written yet.
  6664. If several servers returns difference timestamp, then aria2 uses latest
  6665. one.
  6666. * src/CopyDiskAdaptor.cc
  6667. * src/CopyDiskAdaptor.h
  6668. * src/DirectDiskAdaptor.cc
  6669. * src/DirectDiskAdaptor.h
  6670. * src/DiskAdaptor.h
  6671. * src/File.cc
  6672. * src/File.h
  6673. * src/HttpHeader.cc
  6674. * src/HttpHeader.h
  6675. * src/HttpResponse.cc
  6676. * src/HttpResponse.h
  6677. * src/HttpResponseCommand.cc
  6678. * src/HttpResponseCommand.h
  6679. * src/MultiDiskAdaptor.cc
  6680. * src/MultiDiskAdaptor.h
  6681. * src/OptionHandlerFactory.cc
  6682. * src/RequestGroup.cc
  6683. * src/RequestGroup.h
  6684. * src/RequestGroupMan.cc
  6685. * src/option_processing.cc
  6686. * src/prefs.cc
  6687. * src/prefs.h
  6688. * test/CopyDiskAdaptorTest.cc
  6689. * test/FileTest.cc
  6690. * test/Makefile.am
  6691. * test/Makefile.in
  6692. * test/MultiDiskAdaptorTest.cc
  6693. * test/TestUtil.cc
  6694. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Fixed the bug that DiskWriterEntry is not created when its
  6696. FileEntry.isRequested() is false and it doesn't share a piece with
  6697. other FileEntries that are requested. This bug causes segmentation fault
  6698. in the end.
  6699. * src/MultiDiskAdaptor.cc
  6700. * src/MultiDiskAdaptor.h
  6701. * src/MultiFileAllocationIterator.cc
  6702. * test/MultiDiskAdaptorTest.cc
  6703. * test/MultiFileAllocationIteratorTest.cc
  6704. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6706. called if the number of file entries are greater than max open files.
  6707. * src/AbstractSingleDiskAdaptor.cc
  6708. * src/AbstractSingleDiskAdaptor.h
  6709. * src/DiskAdaptor.h
  6710. * src/MultiDiskAdaptor.cc
  6711. * src/MultiDiskAdaptor.h
  6712. * test/MultiDiskAdaptorTest.cc
  6713. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Added a constuctor that receives struct timeval.
  6715. Added operator<.
  6716. * src/TimeA2.cc
  6717. * src/TimeA2.h
  6718. * test/TimeTest.cc
  6719. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6721. * src/CookieParser.cc
  6722. * test/CookieParserTest.cc
  6723. * test/HttpResponseTest.cc
  6724. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Implmented the functions to parse date.
  6726. * src/TimeA2.cc
  6727. * src/TimeA2.h
  6728. * test/TimeTest.cc
  6729. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Added "Firefox3 Cookie" feature to FeatureConfig
  6731. * src/FeatureConfig.cc
  6732. * src/FeatureConfig.h
  6733. * test/FeatureConfigTest.cc
  6734. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Bump up version number to 0.16.0b
  6736. * configure.ac
  6737. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Use pkg-config if is is available.
  6739. * m4/openssl.m4
  6740. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6742. * src/BtAnnounce.h
  6743. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. If an error occurred with a URI, remove identical URI from remaining
  6745. URI list because it is likely that same error occurred in the end and it
  6746. is waste of time.
  6747. * src/AbstractCommand.cc
  6748. * src/RequestGroup.cc
  6749. * src/RequestGroup.h
  6750. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Removed wrong comment.
  6752. * src/DefaultPeerStorage.cc
  6753. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6755. Added return value of getpid() to argument of srand() to achieve more
  6756. randomized value.
  6757. * src/SimpleRandomizer.cc
  6758. * src/SimpleRandomizer.h
  6759. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Contact tracker frequently when the number of connections are 0 and
  6761. download is not finished yet.
  6762. * src/ActivePeerConnectionCommand.cc
  6763. * src/BtAnnounce.h
  6764. * src/DefaultBtAnnounce.cc
  6765. * src/DefaultBtAnnounce.h
  6766. * test/MockBtAnnounce.h
  6767. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. Moved threshold values to UTPexExtensionMessage.
  6769. * src/DefaultBtInteractive.cc
  6770. * src/Peer.cc
  6771. * src/Peer.h
  6772. * src/UTPexExtensionMessage.cc
  6773. * src/UTPexExtensionMessage.h
  6774. * test/UTPexExtensionMessageTest.cc
  6775. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added _incoming member to Peer class and made it true if the peer
  6777. initiated connection. Don't add those peer to UTPex message.
  6778. If extended handshake is received, assign _incoming to false.
  6779. * src/DefaultBtInteractive.cc
  6780. * src/HandshakeExtensionMessage.cc
  6781. * src/Peer.cc
  6782. * src/Peer.h
  6783. * src/PeerListenCommand.cc
  6784. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6786. Encoding Decoder. Removed size threshold for turning off on the fly
  6787. inflation because resulting file may or may not be inflated depending
  6788. on the file size and I think it is not expected by users.
  6789. This change fixes segmentation fault when Metalink file contains gzipped
  6790. file and its filesize is provided.
  6791. * src/HttpResponseCommand.cc
  6792. * src/HttpResponseCommand.h
  6793. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Made Cookie immutable.
  6795. * src/Cookie.cc
  6796. * src/Cookie.h
  6797. * src/CookieParser.cc
  6798. * src/CookieParser.h
  6799. * src/CookieStorage.cc
  6800. * test/CookieParserTest.cc
  6801. * test/CookieStorageTest.cc
  6802. * test/NsCookieParserTest.cc
  6803. * test/Sqlite3MozCookieParserTest.cc
  6804. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Removed CookieBox, CookieBoxFactory.
  6806. * src/CookieBox.cc
  6807. * src/CookieBox.h
  6808. * src/CookieBoxFactory.cc
  6809. * src/CookieBoxFactory.h
  6810. * src/Makefile.am
  6811. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Use CookieStorage class instead of CookieBox class.
  6813. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6814. * src/AbstractProxyRequestCommand.cc
  6815. * src/CookieStorage.cc
  6816. * src/DownloadEngine.cc
  6817. * src/DownloadEngine.h
  6818. * src/HttpConnection.cc
  6819. * src/HttpConnection.h
  6820. * src/HttpRequest.cc
  6821. * src/HttpRequest.h
  6822. * src/HttpRequestCommand.cc
  6823. * src/HttpResponse.cc
  6824. * src/HttpResponseCommand.cc
  6825. * src/HttpSkipResponseCommand.cc
  6826. * src/Makefile.am
  6827. * src/MultiUrlRequestInfo.cc
  6828. * src/Request.cc
  6829. * src/Request.h
  6830. * src/main.cc
  6831. * test/AllTest.cc
  6832. * test/CookieStorageTest.cc
  6833. * test/CookieTest.cc
  6834. * test/HttpRequestTest.cc
  6835. * test/HttpResponseTest.cc
  6836. * test/Makefile.am
  6837. * test/NsCookieParserTest.cc
  6838. * test/Sqlite3MozCookieParserTest.cc
  6839. * test/nscookietest.txt
  6840. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Updated
  6842. * test/Cookies.sqlite
  6843. * test/nscookietest.txt
  6844. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Added tests for CookieStorage::load()
  6846. * test/CookieStorageTest.cc
  6847. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Added CookieStorage class which is based on RFC2109 and manages cookies
  6849. more strictly than CookieBox and CookieBoxFactory class.
  6850. * src/CookieStorage.cc
  6851. * src/CookieStorage.h
  6852. * src/Cookie.cc
  6853. * src/Cookie.h
  6854. * test/CookieStorageTest.cc
  6855. * test/CookieTest.cc
  6856. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Fixed the bug that commands are created more than the number of pieces.
  6858. * src/RequestGroup.cc
  6859. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Fixed infinite loop bug in FTP when SIZE command failed.
  6861. * src/FtpNegotiationCommand.cc
  6862. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Removed DirectDiskAdaptorTest.h
  6864. * test/Makefile.am
  6865. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Fixed chunk checksum validation cannot detect trailing garbage data.
  6867. BUG#2074141
  6868. * src/AbstractSingleDiskAdaptor.cc
  6869. * src/AbstractSingleDiskAdaptor.h
  6870. * src/CheckIntegrityEntry.cc
  6871. * src/CheckIntegrityEntry.h
  6872. * src/DiskAdaptor.h
  6873. * src/MultiDiskAdaptor.cc
  6874. * src/MultiDiskAdaptor.h
  6875. * src/RequestGroup.cc
  6876. * test/DirectDiskAdaptorTest.cc
  6877. * test/MultiDiskAdaptorTest.cc
  6878. * test/TestUtil.cc
  6879. * test/TestUtil.h
  6880. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Bump up version number of dht.dat file to 3. In version 3 format, time
  6882. is stored in 64bit, network byte order.
  6883. New build can load old format(version 2) but it saves the file in new
  6884. format. It means once you used new build, your dht.dat becomes
  6885. incompatible with older build.
  6886. * src/DHTRoutingTableDeserializer.cc
  6887. * src/DHTRoutingTableSerializer.cc
  6888. * test/DHTRoutingTableSerializerTest.cc
  6889. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6891. * test/Makefile.am
  6892. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Bump up version number of .aria2 control file to 0001.
  6894. New aria2 can still load version 0000 file but it saves the file in
  6895. version 0001 format. It means that new aria2 can resume download
  6896. started by old aria2 but the opposite is not true.
  6897. * src/DefaultBtProgressInfoFile.cc
  6898. * src/DefaultBtProgressInfoFile.h
  6899. * test/DefaultBtProgressInfoFileTest.cc
  6900. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Added ntoh64 and hton64 as inline functions.
  6902. * src/Util.cc
  6903. * test/UtilTest.cc
  6904. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Added sqlite3 depenency and Firefox3 cookie support.
  6906. * README
  6907. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. State that firefox3 cookie is supported explicitly in the usage.
  6909. * src/usage_text.h
  6910. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Externalized message.
  6912. * src/RequestGroupMan.cc
  6913. * src/message.h
  6914. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Save temporary file first and rename to the destination on success.
  6916. Added test cases.
  6917. * src/RequestGroupMan.cc
  6918. * test/RequestGroupManTest.cc
  6919. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Fixed the bug that the number of connected peer is exceeding the limit
  6921. (55 by default) in seeding mode.
  6922. Multiplied 0.8 to _maxUploadSpeedLimit.
  6923. * src/ActivePeerConnectionCommand.cc
  6924. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Clear table item.
  6926. * src/Dictionary.cc
  6927. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Fixed error handling of lseek.
  6929. * src/AbstractDiskWriter.cc
  6930. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6932. style cookie file.
  6933. * src/usage_text.h
  6934. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6936. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6937. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6938. * src/Util.cc
  6939. * src/Util.h
  6940. * src/CookieParser.cc
  6941. * test/UtilTest.cc
  6942. * test/CookieParserTest.cc
  6943. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Separate the implementation to load old mozilla format of cookie to
  6945. NsCookieParser class.
  6946. * src/CookieBoxFactory.cc
  6947. * src/CookieBoxFactory.h
  6948. * src/NsCookieParser.cc
  6949. * src/NsCookieParser.h
  6950. * test/NsCookieParserTest.cc
  6951. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Made parse() const
  6953. * src/Sqlite3MozCookieParser.cc
  6954. * src/Sqlite3MozCookieParser.h
  6955. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Added firefox3 cookie support based on the patch submitted by
  6957. tizianomueller.
  6958. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6959. this functionality.
  6960. * configure.ac
  6961. * m4/sqlite3.m4
  6962. * src/CookieBoxFactory.cc
  6963. * src/CookieBoxFactory.h
  6964. * src/Makefile.am
  6965. * src/Makefile.in
  6966. * src/Sqlite3MozCookieParser.cc
  6967. * src/Sqlite3MozCookieParser.h
  6968. * src/main.cc
  6969. * test/CookieBoxFactoryTest.cc
  6970. * test/Makefile.am
  6971. * test/Makefile.in
  6972. * test/Sqlite3MozCookieParserTest.cc
  6973. * test/badcookies.sqlite
  6974. * test/cookies.sqlite
  6975. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Added Danish and Greek translations.
  6977. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6978. Great thanks to all translators.
  6979. * po/LINGUAS
  6980. * po/el.po
  6981. * po/da.po
  6982. * po/es.po
  6983. * po/ca.po
  6984. * po/nn.po
  6985. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Fixed man page: --follow-bittorrent should be --follow-torrent
  6987. * doc/aria2c.1.txt
  6988. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. Fixed: numCommand is less than the value specified in -C option.
  6990. * src/RequestGroup.cc
  6991. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Fixed occasional assertion failure in PieceSegment.
  6993. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6994. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6995. creation of duplicate segments and one of the segment was finished then
  6996. assertion failure was caused.
  6997. * src/SegmentMan.cc
  6998. * test/SegmentManTest.cc
  6999. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Added options to load/save the server's performance/status to a file
  7001. and the timeout to drop their data.
  7002. --server-stat-of=FILE specifies the file to which performance data
  7003. is saved.
  7004. --server-stat-if=FILE specifies the file to read previously saved
  7005. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7006. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7007. TIMEOUT is specified in seconds and the default value is 24hours.
  7008. * src/MultiUrlRequestInfo.cc
  7009. * src/OptionHandlerFactory.cc
  7010. * src/RequestGroupMan.cc
  7011. * src/RequestGroupMan.h
  7012. * src/ServerStatMan.cc
  7013. * src/ServerStatMan.h
  7014. * src/option_processing.cc
  7015. * src/prefs.cc
  7016. * src/prefs.h
  7017. * test/ServerStatManTest.cc
  7018. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7020. * src/ServerStatMan.cc
  7021. * src/ServerStatMan.h
  7022. * test/ServerStatManTest.cc
  7023. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Implemented ServerStatMan::load(...) function and its test case.
  7025. * src/ServerStat.cc
  7026. * src/ServerStat.h
  7027. * src/ServerStatMan.cc
  7028. * test/ServerStatManTest.cc
  7029. * test/ServerStatTest.cc
  7030. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Use time_t instead of int32_t. Use int64_t where milli second is
  7032. expected.
  7033. * src/TimeA2.cc
  7034. * src/TimeA2.h
  7035. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Implemented ServerStatMan::save(...) function and its test case.
  7037. * src/ServerStat.cc
  7038. * src/ServerStat.h
  7039. * src/ServerStatMan.cc
  7040. * src/ServerStatMan.h
  7041. * test/ServerStatManTest.cc
  7042. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Now aria2 uses name attribute in Metalink as local filename in
  7044. BitTorrent downloads. BUG#2033999
  7045. * src/BtContext.h
  7046. * src/BtDependency.cc
  7047. * src/DefaultBtContext.cc
  7048. * src/DefaultBtContext.h
  7049. * src/SingleFileDownloadContext.cc
  7050. * src/SingleFileDownloadContext.h
  7051. * test/BtDependencyTest.cc
  7052. * test/DefaultBtContextTest.cc
  7053. * test/MockBtContext.h
  7054. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Added AC_C_BIGENDIAN
  7056. * src/configure.ac
  7057. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Limited numCommand less than or equal to the number of piece.
  7059. * src/RequestGroup.cc
  7060. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7062. directive.
  7063. * test/DefaultPieceStorageTest.cc
  7064. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Fixed memory leak in test code
  7066. * test/AnnounceListTest.cc
  7067. * test/DefaultPeerListProcessorTest.cc
  7068. * test/DefaultPeerStorageTest.cc
  7069. * test/MetaFileUtilTest.cc
  7070. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7072. * src/DefaultPieceStorage.cc
  7073. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Initialized _directIOAllowed
  7075. * src/MultiDiskAdaptor.cc
  7076. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed memory leak
  7078. * src/GZipDecoder.cc
  7079. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Fixed memory leak
  7081. * src/MetalinkParserStateMachine.cc
  7082. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Fixed memory leak
  7084. * src/Dictionary.cc
  7085. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Fixed memory leak
  7087. * src/IteratableChunkChecksumValidator.h
  7088. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Fixed unmatched malloc/free.
  7090. * src/IteratableChunkChecksumValidator.cc
  7091. * src/IteratableChecksumValidator.cc
  7092. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Removed max chunk size check. This change fixes BUG#2040169
  7094. * src/ChunkedDecoder.cc
  7095. * src/ChunkedDecoder.h
  7096. * test/ChunkedDecoderTest.cc
  7097. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Implemented download speed based URI selection algorithm.
  7099. Introduced new option --uri-selector.
  7100. If --uri-selector=feedback is given, aria2 uses download speed observed
  7101. in the previous downloads and chooses fastest server in the URI list.
  7102. Currently at most 10 URIs are considered to introduce randomeness for
  7103. finding better servers. The speed is average download speed in the
  7104. downloads.
  7105. On the other hand, if --uri-selector=inorder is given, which is default,
  7106. URI is tried in order in URI list.
  7107. The usage text for the new option has not been written yet.
  7108. * src/AbstractCommand.cc
  7109. * src/DownloadCommand.cc
  7110. * src/DownloadEngine.cc
  7111. * src/DownloadEngineFactory.cc
  7112. * src/InOrderURISelector.cc
  7113. * src/InOrderURISelector.h
  7114. * src/OptionHandlerFactory.cc
  7115. * src/PeerStat.h
  7116. * src/RequestGroup.cc
  7117. * src/RequestGroup.h
  7118. * src/RequestGroupMan.cc
  7119. * src/RequestGroupMan.h
  7120. * src/SegmentMan.cc
  7121. * src/SegmentMan.h
  7122. * src/ServerStat.cc
  7123. * src/ServerStat.h
  7124. * src/ServerStatMan.cc
  7125. * src/ServerStatMan.h
  7126. * src/ServerStatURISelector.cc
  7127. * src/ServerStatURISelector.h
  7128. * src/URISelector.h
  7129. * src/option_processing.cc
  7130. * src/prefs.cc
  7131. * src/prefs.h
  7132. * test/InOrderURISelectorTest.cc
  7133. * test/RequestGroupManTest.cc
  7134. * test/ServerStatManTest.cc
  7135. * test/ServerStatURISelectorTest.cc
  7136. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. * Release 0.15.1+2
  7138. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Bump up version number to 0.15.1+2
  7140. * configure.ac
  7141. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7143. * m4/aria2_arg.m4
  7144. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. * Release 0.15.1+1
  7146. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Bump up version number to 0.15.1+1
  7148. * configure.ac
  7149. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Fixed the bug that causes segmentaion fault when resuming download
  7151. using metalink without size tag. Reproducible only using HTTP URI.
  7152. * src/HttpResponseCommand.cc
  7153. * src/FtpNegotiationCommand.cc
  7154. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. * Release 0.15.1
  7156. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Updated Bulgarian and French translations, thanks to all translators.
  7158. * po/bg.po
  7159. * po/fr.po
  7160. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Bump up version number to 0.15.1
  7162. * configure.ac
  7163. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Avoid repeated call of gettimeofday() when calculating speed.
  7165. * src/SpeedCalc.cc
  7166. * src/SpeedCalc.h
  7167. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Removed writable check when socket's send buffer is full in BitTorrent
  7169. downloads to lower CPU usage.
  7170. * src/PeerInteractionCommand.cc
  7171. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Fixed broken gzip inflation.
  7173. Turn off segmented downloading if gzip content is smaller than or equal
  7174. to 1MiB and inflate the data on the fly, because HTTP response header
  7175. doesn't contain the length of inflated file we can't determin where
  7176. the chunk of data should be written.
  7177. On the other hand, if gzip content is larger than 1MB, then turn off
  7178. on the fly inflation, because some servers returns "content-type: gzip"
  7179. for *.tgz, *.gz files.
  7180. * src/DownloadCommand.cc
  7181. * src/HttpResponseCommand.cc
  7182. * src/HttpResponseCommand.h
  7183. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Applied tizianomueller's patch to fix compile error.
  7185. * test/BitfieldManTest.cc
  7186. * test/BtRequestMessageTest.cc
  7187. * test/DefaultBtContextTest.cc
  7188. * test/DefaultDiskWriterTest.cc
  7189. * test/DefaultPieceStorageTest.cc
  7190. * test/HttpHeaderProcessorTest.cc
  7191. * test/HttpResponseTest.cc
  7192. * test/Metalink2RequestGroupTest.cc
  7193. * test/MetalinkParserControllerTest.cc
  7194. * test/MetalinkProcessorTest.cc
  7195. * test/PeerSessionResourceTest.cc
  7196. * test/UtilTest.cc
  7197. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. * Release 0.15.0
  7199. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Reordered src files in POTFILES.in so that usage text appears first.
  7201. * po/POTFILES.in
  7202. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Bump up version number to 0.15.0
  7204. * configure.ac
  7205. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Added Bulgarian translation.
  7207. Updated Catalan, Spanish, French and Japanese translations.
  7208. Thanks to all translators.
  7209. * po/LINGUAS
  7210. * po/bg.po
  7211. * po/ca.po
  7212. * po/es.po
  7213. * po/fr.po
  7214. * po/ja.po
  7215. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Updated feature list. Added libz for dependency section.
  7217. Added a description about unit testing using CppUnit.
  7218. * README
  7219. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Added a test for libz. Quoted where it is necessary.
  7221. * build_test.sh
  7222. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Added GZip to `Enabled Features' list.
  7224. * src/FeatureConfig.cc
  7225. * src/FeatureConfig.h
  7226. * test/FeatureConfigTest.cc
  7227. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7229. the transfer has not yet started.
  7230. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7231. * src/SegmentMan.cc
  7232. * src/SegmentMan.h
  7233. * test/SegmentManTest.cc
  7234. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Cache last calculated average download/upload speed.
  7236. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7237. cached value.
  7238. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7239. * src/PeerStat.h
  7240. * src/SpeedCalc.cc
  7241. * src/SpeedCalc.h
  7242. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Call parseUrl directly.
  7244. * src/Request.cc (resetUrl)
  7245. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Supported absolute/relative path in Location header field.
  7247. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7248. * src/HttpHeader.cc
  7249. * src/HttpHeader.h
  7250. * src/HttpResponse.cc
  7251. * src/HttpSkipResponseCommand.cc
  7252. * src/Request.cc
  7253. * test/HttpHeaderTest.cc
  7254. * test/HttpResponseTest.cc
  7255. * test/RequestTest.cc
  7256. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Changed help text for --load-cookie option.
  7258. * doc/aria2c.1.txt
  7259. * src/usage_text.h
  7260. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Regenerated test/Makefile.in to remove stale ChangeLog.
  7262. * test/Makefile.in
  7263. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Updated po files.
  7265. * po/aria2c.pot
  7266. * po/*.po
  7267. * po/*.gmo
  7268. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Bump up version number to 0.15.0b
  7270. * configure.ac
  7271. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Externalize messages.
  7273. * src/RequestGroupMan.cc
  7274. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7275. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Use File::exists() instead of File::isFile() to allow non-regular file
  7277. such as block special files.
  7278. * src/AbstractDiskWriter.cc
  7279. * src/MultiDiskWriter.cc
  7280. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7282. * src/gai_strerror.h
  7283. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Fixed compile error. Thanks gknauf for the patch.
  7285. * src/asctime_r.c
  7286. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Included asctime_r.h from a2time.h.
  7288. * src/a2time.h
  7289. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Added a message "aria2 doesn't verify signature" to log message when
  7291. signature file is saved.
  7292. * src/RequestGroupMan.cc
  7293. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Added the ability to save signature when download is completed if
  7295. signature is available. The filename of signature file is the path to
  7296. download file followed by ".sig". If it already exists, then signature
  7297. will not be saved.
  7298. * src/RequestGroupMan.cc
  7299. * src/Signature.cc
  7300. * test/SignatureTest.cc
  7301. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Updated the descriptions for --bt-seed-unverified.
  7303. * doc/aria2c.1
  7304. * doc/aria2c.1.html
  7305. * doc/aria2c.1.txt
  7306. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7308. that this is not going to verify files using piece hashes.
  7309. * src/HelpItemFactory.cc
  7310. * src/OptionHandlerFactory.cc
  7311. * src/RequestGroup.cc
  7312. * src/option_processing.cc
  7313. * src/prefs.cc
  7314. * src/prefs.h
  7315. * src/usage_text.h
  7316. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Added the ability to retrieve signature from Metalink file.
  7318. A retrieved signature is stored in Signature class and it is held by
  7319. DownloadContext class. Note that aria2 doesn't verify signature.
  7320. * src/DownloadContext.cc
  7321. * src/DownloadContext.h
  7322. * src/Makefile.am
  7323. * src/Makefile.in
  7324. * src/Metalink2RequestGroup.cc
  7325. * src/MetalinkEntry.cc
  7326. * src/MetalinkEntry.h
  7327. * src/MetalinkParserController.cc
  7328. * src/MetalinkParserController.h
  7329. * src/MetalinkParserStateMachine.cc
  7330. * src/MetalinkParserStateMachine.h
  7331. * src/Signature.cc
  7332. * src/Signature.h
  7333. * src/SignatureMetalinkParserState.cc
  7334. * src/SignatureMetalinkParserState.h
  7335. * src/VerificationMetalinkParserState.cc
  7336. * src/VerificationMetalinkParserState.h
  7337. * test/Metalink2RequestGroupTest.cc
  7338. * test/MetalinkParserControllerTest.cc
  7339. * test/MetalinkProcessorTest.cc
  7340. * test/test.xml
  7341. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Close DiskAdaptor after renaming file.
  7343. * src/RequestGroup.cc
  7344. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Corrected indentation
  7346. * src/DefaultBtProgressInfoFile.cc
  7347. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Moved the calls of std::ios::exceptions() inside of try-catch block
  7349. because if an error occurred in constructor of std::fstream, then
  7350. exception is thrown immediately when std::ios::exceptions() is called
  7351. which results unhandled exception and aria2c aborts.
  7352. * src/DefaultBtProgressInfoFile.cc
  7353. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Added the test for the previous change in DefaultBtContext.cc
  7355. * test/DefaultBtContextTest.cc
  7356. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Fixed the bug that causes infinite loop when the number of pieces are
  7358. fewer than allowed fast set size which is 10 by default.
  7359. * src/DefaultBtContext.cc
  7360. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. Updated the descriptions for -j, -s. Added --bt-seed.
  7362. * doc/aria2c.1
  7363. * doc/aria2c.1.html
  7364. * doc/aria2c.1.txt
  7365. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7367. aria2 seeds previously downloaded files without validating piece hashs.
  7368. * src/HelpItemFactory.cc
  7369. * src/OptionHandlerFactory.cc
  7370. * src/RequestGroup.cc
  7371. * src/option_processing.cc
  7372. * src/prefs.cc
  7373. * src/prefs.h
  7374. * src/usage_text.h
  7375. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Updated DESCRIPTION of man page.
  7377. * doc/aria2c.1
  7378. * doc/aria2c.1.html
  7379. * doc/aria2c.1.txt
  7380. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7382. Don't define `struct addrinfo' when __sun is defined.
  7383. * src/getaddrinfo.h
  7384. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7386. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7387. second argument is of type `struct _stati64'. Otherwise it is defined as
  7388. `struct stat'.
  7389. * src/AbstractDiskWriter.cc
  7390. * src/File.cc
  7391. * src/File.h
  7392. * src/a2io.h
  7393. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Fixed the compile error in hurd-i386
  7395. See the original bug report:
  7396. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7397. * src/a2io.h
  7398. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Code cleanup.
  7400. * src/PeerAbstractCommand.cc
  7401. * src/PeerAbstractCommand.h
  7402. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Removed TransferEncoding.
  7404. * src/DownloadCommand.cc
  7405. * src/DownloadCommand.h
  7406. * src/HttpResponseCommand.cc
  7407. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Updated po files.
  7409. * po/aria2c.pot
  7410. * po/*.po
  7411. * po/*.gmo
  7412. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7414. * src/A2STR.cc
  7415. * src/A2STR.h
  7416. * src/ChunkedDecoder.cc
  7417. * src/ChunkedDecoder.h
  7418. * src/ChunkedEncoding.cc: Removed
  7419. * src/ChunkedEncoding.h: Removed
  7420. * src/DownloadCommand.cc
  7421. * src/DownloadCommand.h
  7422. * src/HttpDownloadCommand.cc
  7423. * src/HttpResponse.cc
  7424. * src/HttpResponse.h
  7425. * src/HttpResponseCommand.cc
  7426. * src/HttpSkipResponseCommand.cc
  7427. * src/HttpSkipResponseCommand.h
  7428. * src/Makefile.am
  7429. * src/TransferEncoding.h: Removed
  7430. * test/ChunkedDecoderTest.cc
  7431. * test/ChunkedEncodingTest.cc: Removed
  7432. * test/HttpResponseTest.cc
  7433. * test/Makefile.am
  7434. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Use append instead of insert.
  7436. * src/GZipDecoder.cc
  7437. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Updated doc
  7439. * src/Decoder.h
  7440. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Updated usage text for -s option.
  7442. * src/usage_text.h
  7443. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7445. * src/Request.cc
  7446. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Cleaned up configure.ac.
  7448. * configure.ac
  7449. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7451. AC_ARG_ENABLE.
  7452. * configure.ac
  7453. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7455. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7456. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7457. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7458. fly and writes decoded data to a local disk.
  7459. * README
  7460. * README.html
  7461. * configure.ac
  7462. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7463. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7464. * m4/libz.m4
  7465. * src/Decoder.h
  7466. * src/DownloadCommand.cc
  7467. * src/DownloadCommand.h
  7468. * src/Exception.h
  7469. * src/GZipDecoder.cc
  7470. * src/GZipDecoder.h
  7471. * src/HttpHeader.cc
  7472. * src/HttpHeader.h
  7473. * src/HttpRequest.cc
  7474. * src/HttpRequest.h
  7475. * src/HttpResponse.cc
  7476. * src/HttpResponse.h
  7477. * src/HttpResponseCommand.cc
  7478. * src/Makefile.am
  7479. * test/GZipDecoderTest.cc
  7480. * test/HttpRequestTest.cc
  7481. * test/HttpResponseTest.cc
  7482. * test/Makefile.am
  7483. * test/Makefile.in
  7484. * test/gzip_decode_test.gz
  7485. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Clarified usage of -j option.
  7487. * src/usage_text.h
  7488. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Disabled getting size from the response of RETR.
  7490. If SIZE command failed, then disable resuming and segmented downloading.
  7491. * src/FtpConnection.cc
  7492. * src/FtpConnection.h
  7493. * src/FtpNegotiationCommand.cc
  7494. * src/FtpNegotiationCommand.h
  7495. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Use digits to find first byte of file size, which makes the intention
  7497. of the code clearer.
  7498. * src/FtpConnection.cc
  7499. Don't call validateTotalLength() when size is 0.
  7500. * src/FtpNegotiationCommand.cc
  7501. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Updated po files.
  7503. * po/aria2c.pot
  7504. * po/*.gmo
  7505. * po/*.po
  7506. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Clarified usage text for --split option.
  7508. * src/usage_text.h
  7509. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Bump up version number to 0.15.0dev. "dev" means "development"
  7511. version, which means I started the development of the next release!
  7512. * src/configure.ac
  7513. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. If FTP server returns negative response with REST raw command and
  7515. requested range is not 0, throw exception. If requested range is 0,
  7516. continue download a file from 0 byte.
  7517. * src/FtpNegotiationCommand.cc
  7518. * src/FtpNegotiationCommand.h
  7519. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Supported FTP server which don't recognize SIZE raw command.
  7521. If SIZE raw command is failed, aria2 will try to get file size
  7522. from the response of RETR raw command. If both attempts are failed,
  7523. then resuming and segmented downloading are disabled.
  7524. * src/FtpConnection.cc
  7525. * src/FtpConnection.h
  7526. * src/FtpNegotiationCommand.cc
  7527. * src/FtpNegotiationCommand.h
  7528. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. * Release 0.14.0+1
  7530. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. Bump up version number to 0.14.0+1
  7532. * src/configure.ac
  7533. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Fixed the code that refers static member variable from non-static
  7535. context.
  7536. * src/DefaultPeerStorage.cc
  7537. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. * Release 0.14.0
  7539. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Added build test script
  7541. * build_test.sh
  7542. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Updated ja.po
  7544. * src/ja.po
  7545. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Bump up version number to 0.14.0
  7547. * src/configure.ac
  7548. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Updated ja.po and fr.po. Great thanks for french translators and
  7550. Sebastien WILLEMIJNS.
  7551. * po/fr.po
  7552. * po/ja.po
  7553. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Added configure option to enable/disable epoll support.
  7555. * configure.ac
  7556. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Updated man page.
  7558. * doc/aria2c.1.txt
  7559. * doc/aria2c.1
  7560. * doc/aria2c.1.html
  7561. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Added missing default value '5' to the usage of --split option.
  7563. * src/HelpItemFactory.cc
  7564. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Filled up pieces based on the number of missing blocks, rather than
  7566. simplay the number of piece * block length.
  7567. * src/BtRequestFactory.h
  7568. * src/DefaultBtInteractive.cc
  7569. * src/DefaultBtInteractive.h
  7570. * src/DefaultBtRequestFactory.cc
  7571. * src/DefaultBtRequestFactory.h
  7572. * src/Piece.cc
  7573. * src/Piece.h
  7574. * test/BitfieldManTest.cc
  7575. * test/DefaultBtRequestFactoryTest.cc
  7576. * test/MockBtRequestFactory.h
  7577. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Made _epEvents a member variable.
  7579. * src/DownloadEngine.cc
  7580. * src/DownloadEngine.h
  7581. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Cancel download if http redirect is bounded more than 20 times.
  7583. * src/AbstractCommand.cc
  7584. * src/HttpSkipResponseCommand.cc
  7585. * src/Request.cc
  7586. * src/Request.h
  7587. * test/RequestTest.cc
  7588. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Fixed unhandled exception(removed keyword `new').
  7590. * src/SocketCore.cc (initEPOLL)
  7591. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Removed visit(const MetaEntry*)
  7593. * src/MetaEntryVisitor.h:
  7594. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7595. and made them virtual.
  7596. * src/BencodeVisitor.h
  7597. * src/BencodeVisitor.cc
  7598. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Updated po files.
  7600. * po/aria2c.pot
  7601. * po/*.po
  7602. * po/*.gmo
  7603. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7605. the number of socket to watch out.
  7606. * src/PeerInteractionCommand.cc
  7607. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. When there is not enough space in disk when writing a chunk of data,
  7609. aria2 now prints the message to the console to warn user and aborts
  7610. its download. Not all downloads are canceled because some downloads
  7611. may use another disk or partition. BUG#1640332
  7612. * src/AbstractDiskWriter.cc
  7613. * src/PeerAbstractCommand.cc
  7614. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7615. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7616. setHaltRequested(true) to cancel download.
  7617. * src/PeerInteractionCommand.h
  7618. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7620. socket from int to sock_t as sockets are unsigned in Windows.
  7621. For AsyncNameResolver, DownloadEngine, I did additional modification
  7622. for the portion of the code changed according to epoll support.
  7623. I defined sock_t in a2netcompat.h to use sock_t without including
  7624. SocketCore.h.
  7625. * src/AsyncNameResolver.cc
  7626. * src/AsyncNameResolver.h
  7627. * src/DownloadEngine.cc
  7628. * src/DownloadEngine.h
  7629. * src/SocketCore.cc
  7630. * src/SocketCore.h
  7631. * src/a2netcompat.h
  7632. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7634. changes in the patch were applied.
  7635. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7636. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7637. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7638. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7640. a2io.h and common.h were modified.
  7641. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7642. MinGW.
  7643. * src/common.h: Changed off_t to 64 bit in MinGW.
  7644. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7646. only a2netcompat.h is modified.
  7647. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7648. directives.
  7649. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7651. only gai_strerror.h is modified.
  7652. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7653. winsock errors in MinGW.
  7654. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7656. follow sources are applied.
  7657. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7658. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7659. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7660. I included locale.h from Platform.cc.
  7661. * src/main.cc: Moved common setup/teardown code to Platform class.
  7662. * test/AllTest.cc: Use Platform class.
  7663. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7664. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7666. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7667. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7668. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7670. aria2-0.13.2+1-mingw-2.patch.
  7671. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7672. systems which don't have termious.h. I moved the directive inside of
  7673. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7674. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7675. anyway.
  7676. * src/asctime_r.h
  7677. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7678. I added 2nd argument to the prototype declaration.
  7679. * src/StringFormat.cc: Get rid of vasprintf.
  7680. * src/getaddrinfo.h: Fixed constants.
  7681. * configure.ac: Added the check for asctime_r function.
  7682. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7683. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Added writable test for Socket when the sending message is in progress.
  7685. Usually the sending message is piece message. Without wriable check,
  7686. upload latency is dropped to more than 1sec.
  7687. * src/PeerInteractionCommand.cc
  7688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Create only requested files and files which shares a piece with
  7690. requested file in multi-torrent downloads. Directory structures are
  7691. also created in the same rule.
  7692. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7693. DiskWriterEntry as in the previous implementation.
  7694. * src/MultiDiskWriter.cc
  7695. * src/MultiFileAllocationIterator.cc
  7696. * src/MultiFileAllocationIterator.h
  7697. * test/MultiFileAllocationIteratorTest.cc
  7698. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Commented out -lprofiler
  7700. * src/Makefile.am
  7701. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Bump up version number to 0.14.0b.
  7703. * src/configure.ac
  7704. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Actively establish connection to peers in seeding, when peer cache
  7706. is not full and max upload speed limit is not reached.
  7707. * src/ActivePeerConnectionCommand.cc
  7708. * src/ActivePeerConnectionCommand.h
  7709. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7711. to make room more fleshy, recently found peers.
  7712. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7713. it.
  7714. * src/DefaultPeerStorage.cc
  7715. * test/DefaultPeerStorageTest.cc
  7716. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Returns cached data only when the previous receiveHandshake() is called
  7718. with peek = true.
  7719. * src/PeerConnection.cc (receiveHandshake)
  7720. * src/PeerConnection.h (receiveHandshake)
  7721. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Changed default value of -s option from 1 to 5.
  7723. Also max value of -s option is changed from 5 to 16.
  7724. * src/HelpItemFactory.cc
  7725. * src/OptionHandlerFactory.cc
  7726. * src/option_processing.cc
  7727. * src/usage_text.h
  7728. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Changed -s options behavior. Now it means the number of connections
  7730. made simultaneously in each http/ftp download.
  7731. If 1 URL is specified, the behavior is the same with old implementation.
  7732. If -s N is given and more than N URLs are specified, first N URLs are
  7733. used and remaining URLs are used for backup. If less than N URLs are
  7734. specified, some of URLs are used more than once so that totally N
  7735. connections are made simultaneously.
  7736. * src/main.cc
  7737. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Included missing iosfwd or ostream header.
  7739. * src/RequestGroupMan.cc
  7740. * src/TaggedItem.cc
  7741. * src/TaggedItem.h
  7742. * src/Util.cc
  7743. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7745. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7746. * src/HttpConnection.cc: Included missing sstream.
  7747. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Added --bt-max-open-files option.
  7749. * src/DefaultPieceStorage.cc
  7750. * src/HelpItemFactory.cc
  7751. * src/MultiDiskAdaptor.cc
  7752. * src/MultiDiskAdaptor.h
  7753. * src/OptionHandlerFactory.cc
  7754. * src/option_processing.cc
  7755. * src/prefs.cc
  7756. * src/prefs.h
  7757. * src/usage_text.h
  7758. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Fixed the bug that aria2 aborts when a path to a directory is given
  7760. in command-line.
  7761. * src/ProtocolDetector.cc
  7762. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Limited the number files opened in each BitTorrent download. The default
  7764. value is 100. The option to change this value will be added.
  7765. * src/MultiDiskAdaptor.cc
  7766. * src/MultiDiskAdaptor.h
  7767. * src/MultiFileAllocationIterator.cc
  7768. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Fixed the bug that HTTP downloads don't start with old libraries.
  7770. * src/HttpHeaderProcessor.cc
  7771. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Use empty() instead of size() > 0.
  7773. * src/HttpConnection.cc
  7774. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Drop connection if the incoming peer ID is the same with localhost's
  7776. one. The previous implementation drops connection when incoming peer's
  7777. IP address is the same with localhost's one.
  7778. * src/PeerListenCommand.cc
  7779. * src/DefaultBtInteractive.cc
  7780. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Returns cached data without checking whether socket is readable
  7782. if the cache is available.
  7783. * src/PeerConnection.cc (receiveHandshake)
  7784. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Included stdint.h
  7786. * src/common.h
  7787. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Removed duplicate HAVE_GETTIMEOFDAY
  7789. * src/Makefile.am
  7790. * src/Makefile.in
  7791. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Use interval as a minInterval when minInterval is not supplied.
  7793. * src/DefaultBtAnnounce.cc
  7794. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7796. attempt is failed, then 2nd attempt get kicked out more quickly.
  7797. And it is now static const member of DefaultBtAnnounce.
  7798. * src/DefaultBtAnnounce.h
  7799. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7801. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7802. * src/ActivePeerConnectionCommand.cc
  7803. * src/BtConstants.h
  7804. * src/BtRuntime.h
  7805. * src/DHTGetPeersCommand.cc
  7806. * src/DefaultBtAnnounce.cc
  7807. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7808. BtRuntime::MAX_PEERS.
  7809. * src/DefaultPeerStorage.h
  7810. * src/InitiatorMSEHandshakeCommand.cc
  7811. * src/PeerInitiateConnectionCommand.cc
  7812. * src/PeerInteractionCommand.cc
  7813. * src/PeerReceiveHandshakeCommand.cc
  7814. * src/TrackerWatcherCommand.cc
  7815. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Always Connect to _numNewConnection
  7817. * src/ActivePeerConnectionCommand.cc
  7818. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Made `begin' unsigned int.
  7820. * src/GrowSegment.h
  7821. * src/Piece.cc
  7822. * src/Piece.h
  7823. * src/PiecedSegment.cc
  7824. * src/PiecedSegment.h
  7825. * src/Segment.h
  7826. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Calculate piece hash when data is arrived if the data is arrived in
  7828. order. This removes additional read operation for hash calculation.
  7829. If the data is arrived in out of order, the hash is calucated when the
  7830. piece is completed. This is the same behavior as the old implementation.
  7831. * src/BtPieceMessage.cc
  7832. * src/DefaultBtProgressInfoFile.cc
  7833. * src/DefaultPieceStorage.cc
  7834. * src/DownloadCommand.cc
  7835. * src/DownloadCommand.h
  7836. * src/DownloadEngine.cc
  7837. * src/GrowSegment.cc
  7838. * src/GrowSegment.h
  7839. * src/Piece.cc
  7840. * src/Piece.h
  7841. * src/PiecedSegment.cc
  7842. * src/PiecedSegment.h
  7843. * src/Segment.h
  7844. * test/PieceTest.cc
  7845. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. Try to keep the ordering of outgoing piece message.
  7847. * src/DefaultBtMessageDispatcher.cc
  7848. (DefaultBtMessageDispatcher::sendMessages)
  7849. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Fixed busy loop when error/hup epoll events occur.
  7851. * src/AbstractCommand.cc
  7852. * src/PeerAbstractCommand.cc
  7853. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Added --bt-request-peer-speed-limit option, which was a constant
  7855. SLOW_SPEED_THRESHOLD.
  7856. * src/ActivePeerConnectionCommand.cc
  7857. * src/ActivePeerConnectionCommand.h
  7858. * src/BtConstants.h
  7859. * src/HelpItemFactory.cc
  7860. * src/OptionHandlerFactory.cc
  7861. * src/PeerReceiveHandshakeCommand.cc
  7862. * src/option_processing.cc
  7863. * src/prefs.cc
  7864. * src/prefs.h
  7865. * src/usage_text.h
  7866. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Removed repeated call of getTopDirPath(). Instead, call it once and
  7868. cache the result.
  7869. * src/MultiDiskAdaptor.cc
  7870. * src/MultiDiskAdaptor.h
  7871. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7872. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Fixed compile error on debian etch.
  7874. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7875. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7876. it is undefined.
  7877. * src/Util.cc (ULLONG_MAX)
  7878. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Added epoll support. Use epoll if it is available. If not, use select.
  7880. When async dns is enabled in compile time, epoll support is enabled
  7881. only when aria2 is built with c-ares. This condition statement is
  7882. defined in a2io.h.
  7883. Currently aria2 supports both c-ares and ares, but ares is maintained
  7884. for quite a while and debian already has c-ares package, ares support
  7885. will be dropped in the future version.
  7886. * configure.ac
  7887. * src/AbstractCommand.cc
  7888. * src/AsyncNameResolver.cc
  7889. * src/AsyncNameResolver.h
  7890. * src/Command.cc
  7891. * src/Command.h
  7892. * src/DownloadEngine.cc
  7893. * src/DownloadEngine.h
  7894. * src/PeerAbstractCommand.cc
  7895. * src/SocketCore.cc
  7896. * src/SocketCore.h
  7897. * src/a2io.h
  7898. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7900. directive.
  7901. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Do not do write operation to /dev/null file.
  7903. * src/LogFactory.cc
  7904. * src/SimpleLogger.cc
  7905. Replaced vasprintf with vsnprintf
  7906. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7907. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. * src/BtRequestMessage.cc
  7909. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7910. for segmentation fault caused by previous commit.
  7911. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Reduced the usage of gettimeofday().
  7913. * src/DefaultBtMessageDispatcher.cc
  7914. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7915. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7916. * src/RequestSlot.cc
  7917. * src/RequestSlot.h
  7918. (RequestSlot::isTimeout)
  7919. Made RequestSlot have a reference to Piece object to avoid find
  7920. Piece repeatedly.
  7921. * src/DefaultBtMessageDispatcher.cc
  7922. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7923. * src/RequestSlot.cc
  7924. * src/RequestSlot.h
  7925. (RequestSlot::getPiece)
  7926. * test/DefaultBtMessageDispatcherTest.cc
  7927. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. * src/TimeA2.cc
  7929. * src/TimeA2.h
  7930. (Time::difference): New function.
  7931. (Time::elapsed): Done optimization.
  7932. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7934. directive.
  7935. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. * src/option_processing.cc: Added missing `defined' keyword to #if
  7937. directive.
  7938. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7939. Bump up version number to 0.13.2+1
  7940. * src/configure.ac
  7941. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Refactored broken outstanding piece handling.
  7943. * src/DefaultPieceStorage.cc
  7944. * src/DefaultPieceStorage.h
  7945. * src/Piece.cc
  7946. * src/Piece.h
  7947. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7949. name collision of static variable and predefined macro.
  7950. * src/BtContext.cc
  7951. * src/BtContext.h
  7952. * src/CookieBoxFactory.cc
  7953. * src/CookieBoxFactory.h
  7954. * src/CookieParser.cc
  7955. * src/CookieParser.h
  7956. * src/DefaultBtContext.cc
  7957. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. * src/RequestGroup.cc
  7959. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7960. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. * Release 0.13.2
  7962. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7964. * po/fr.po
  7965. * po/ja.po
  7966. * po/aria2c.pot
  7967. * po/*.po
  7968. * po/*.gmo
  7969. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Bump up version number to 0.13.2
  7971. * src/configure.ac
  7972. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Refactord.
  7974. * src/RequestGroupMan.cc
  7975. (removeStoppedGroup)
  7976. (fillRequestGroupFromReserver)
  7977. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Fixed compile error on Ubuntu.
  7979. * src/BtPieceMessage.cc
  7980. * src/MessageDigestHelper.cc
  7981. * src/Util.cc
  7982. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Fixed compile error when configured with --disable-bittorrent
  7984. * test/DownloadHandlerFactoryTest.cc
  7985. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Done make update-po
  7987. * po/aria2c.pot
  7988. * po/*.po
  7989. * po/*.gmo
  7990. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Bump up version number to 0.13.2rc.
  7992. * src/configure.ac
  7993. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Made option name bold. Updated SYNOPSIS to make it more readable.
  7995. * doc/aria2c.1.txt
  7996. * doc/aria2c.1
  7997. * doc/aria2c.1.html
  7998. * src/version_usage.cc
  7999. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Refactored. Use std::string instead of size and char*.
  8001. * Data.cc
  8002. * Data.h
  8003. * test/Data.cc
  8004. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Added trimSelf(). Rewritten trim() to use trimSelf().
  8006. * Util.cc
  8007. * Util.h
  8008. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8010. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Fixed compile error when configured with --disable-metalink.
  8012. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8013. * test/FeatureConfigTest.cc
  8014. * test/DownloadHandlerFactoryTest.cc
  8015. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Fixed compile error when configured with --without-gnutls
  8017. --without-openssl
  8018. * src/main.cc
  8019. * test/DefaultBtProgressInfoFileTest.cc
  8020. * test/SegmentManTest.cc
  8021. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Fixed compile error with OpenSSL.
  8023. * src/IteratableChunkChecksumValidator.cc
  8024. * src/LibsslDHKeyExchange.h
  8025. * src/MessageDigestHelper.cc
  8026. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Revert the default value of --max-concurrent-downloads to 5.
  8028. Revert the default value of --metalink-servers to 5.
  8029. Man pages was also updated.
  8030. * src/option_processing.cc
  8031. * doc/aria2c.1.txt
  8032. * doc/aria2c.1.html
  8033. * doc/aria2c.1
  8034. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Returns const reference:
  8036. DownloadContext::getPieceHash, DownloadContext::getName,
  8037. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8038. BtContext::getInfoHashAsString,
  8039. * src/BtContext.h
  8040. * src/DefaultBtContext.cc
  8041. * src/DefaultBtContext.h
  8042. * src/DownloadContext.h
  8043. * src/SingleFileDownloadContext.h
  8044. * test/MockBtContext.h
  8045. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. * src/RequestGroup.h (getDir): Removed.
  8047. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Returns const reference. The internal urlencode function was optimized
  8049. a little bit.
  8050. * src/Request.cc
  8051. * src/Request.h
  8052. * src/HttpRequest.cc
  8053. * src/HttpRequest.h
  8054. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Defined option name and possible values as std::string to reduce
  8056. temporary string object creation in runtime.
  8057. * src/HelpItemFactory.cc
  8058. * src/LogFactory.cc
  8059. * src/Option.cc
  8060. * src/OptionHandlerFactory.cc
  8061. * src/option_processing.cc
  8062. * src/prefs.cc
  8063. * src/prefs.h
  8064. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Return const reference.
  8066. * src/DownloadHandlerConstants.cc
  8067. * src/DownloadHandlerConstants.h
  8068. (getMetalinkExtensions)
  8069. (getMetalinkContentTypes)
  8070. (getBtExtensions)
  8071. (getBtContentTypes)
  8072. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. * src/HttpHeader.cc (get): Rewritten.
  8074. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Make HttpHeader::getFirst(...) return const reference.
  8076. * src/HttpHeader.cc
  8077. * src/HttpHeader.h
  8078. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8080. it with V_TRUE.
  8081. * src/DefaultPieceStorage.cc
  8082. * src/DownloadCommand.cc
  8083. * src/FtpNegotiationCommand.cc
  8084. * src/HttpRequest.cc
  8085. * src/InitiateConnectionCommand.cc
  8086. * src/RequestGroup.cc
  8087. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Made Option::get(...) return const reference of std::string.
  8089. * src/Option.cc
  8090. * src/Option.h
  8091. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Replaced std:copy with insert.
  8093. * src/DefaultBtMessageDispatcher.cc
  8094. * src/DefaultPieceStorage.cc
  8095. * src/DownloadEngineFactory.cc
  8096. * src/RequestGroup.cc
  8097. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Included SocketCore.h to fix compiler warning.
  8099. * src/InitiateConnectionCommand.cc
  8100. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Put piece selection strategy algorithm to RarestPieceSelector class,
  8102. Added a switch to choose whether randomized selection so that unit
  8103. tests emit same results in, possibly, win32.
  8104. * src/DefaultPieceStorage.cc
  8105. * src/DefaultPieceStorage.h
  8106. * src/RarestPieceSelector.cc
  8107. * src/RarestPieceSelector.h
  8108. * test/DefaultPieceStorageTest.cc
  8109. * test/RarestPieceSelectorTest.cc
  8110. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Don't pool connection if HTTP proxy is enabled.
  8112. * src/FtpFinishDownloadCommand.cc
  8113. * src/FtpNegotiationCommand.cc
  8114. * src/HttpSkipResponseCommand.cc
  8115. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8117. * src/AbstractCommand.cc
  8118. * src/AbstractCommand.h
  8119. * src/ActivePeerConnectionCommand.cc
  8120. * src/FtpInitiateConnectionCommand.cc
  8121. * src/HttpInitiateConnectionCommand.cc
  8122. * src/InitiateConnectionCommandFactory.cc
  8123. * src/PeerAbstractCommand.cc
  8124. * src/PeerAbstractCommand.h
  8125. * src/PeerInitiateConnectionCommand.cc
  8126. * src/TrackerWatcherCommand.cc
  8127. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Sort RequestSlot in ascending order and manipulate them using
  8129. lower_bound.
  8130. * src/DefaultBtMessageDispatcher.cc
  8131. * src/DefaultBtMessageDispatcher.h
  8132. (getMessageQueue): Added const qualifier.
  8133. (getRequestSlots): Added const qualifier.
  8134. (sendMessages): Use empty() instead of size().
  8135. (doCancelSendingPieceAction): Use HandleEvent object.
  8136. (doAbortOutstandingRequestAction): Rewritten.
  8137. (doChokedAction): Rewritten.
  8138. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8139. (isOutstandingRequest): Rewritten.
  8140. (getOutstandingRequest): Rewritten.
  8141. (removeOutstandingRequest): Rewritten.
  8142. (addOutstandingRequest): Rewritten.
  8143. * src/RequestSlot.cc
  8144. * src/RequestSlot.h
  8145. (operator=): Rewritten.
  8146. (operator!=): New function.
  8147. (operator<): New function.
  8148. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. * src/DefaultBtRequestFactory.cc
  8150. (doChokedAction): Rewritten.
  8151. (removeCompletedPiece): Rewritten.
  8152. (removeTargetPiece): Rewritten.
  8153. (createRequestMessages): Added the debug log.
  8154. (createRequestMessagesOnEndGame: Added the debug log.
  8155. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Added the debug log message.
  8157. * src/BtPieceMessage.cc (doReceivedAction)
  8158. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8160. used lower_bound to process them rather than linear search.
  8161. * src/DHTPeerAnnounceStorage.cc
  8162. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8164. peer has at least one completed piece.
  8165. * src/Peer.cc
  8166. * src/Peer.h
  8167. * src/PeerInteractionCommand.cc
  8168. * src/PeerSessionResource.cc
  8169. * src/PeerSessionResource.h
  8170. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Removed unnecessary sorting
  8172. * src/DefaultPieceStorage (DefaultPieceStorage)
  8173. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Rewritten the portion of the code that mangaes allowed fast indexes.
  8175. * src/PeerSessionResource.cc
  8176. * src/PeerSessionResource.h
  8177. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Removed the invalid string including '\r' from ru.po and
  8179. did make update-po.
  8180. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Added --log-level and --summary-interval to man page.
  8182. * doc/aria2c.1.txt
  8183. * doc/aria2c.1.html
  8184. * doc/aria2c.1
  8185. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Added --log-level option to specify log level. Log messages under
  8187. the specified level are not output. Default value is `debug'.
  8188. * src/HelpItemFactory.cc
  8189. * src/LogFactory.cc
  8190. * src/LogFactory.h
  8191. * src/Logger.h
  8192. * src/OptionHandlerFactory.cc
  8193. * src/SimpleLogger.cc
  8194. * src/SimpleLogger.h
  8195. * src/main.cc
  8196. * src/option_processing.cc
  8197. * src/prefs.h
  8198. * src/usage_text.h
  8199. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Print download progress summary of all parallel downloads in specified
  8201. interval, default 60 secs. While aria2 could download several files
  8202. in parallel (see -j option), it displayed just first download progress,
  8203. and the other downloads are hidden from the users. This new feature
  8204. prints all downloads currently in-progress to the console so that you
  8205. can check the status of all downloads. The interval can be adjusted
  8206. by --summary-interval option.
  8207. The progress readout is now cut so that all fits in the one line of
  8208. console.
  8209. * src/ConsoleStatCalc.cc
  8210. * src/ConsoleStatCalc.h
  8211. * src/HelpItemFactory.cc
  8212. * src/OptionHandlerFactory.cc
  8213. * src/RequestGroupMan.cc
  8214. * src/RequestGroupMan.h
  8215. * src/main.cc
  8216. * src/option_processing.cc
  8217. * src/prefs.h
  8218. * src/usage_text.h
  8219. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8221. * src/DownloadEngine.cc (DownloadEngine)
  8222. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8224. defined.
  8225. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8226. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Use erase+lower_bound+insert instead of sort.
  8228. * src/DefaultPieceStorage.cc (addPieceStats)
  8229. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8231. * src/A2STR.cc
  8232. * src/A2STR.h
  8233. * src/OptionParser.cc (parse)
  8234. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Defined fake filename `[tracker.announce]' as static const std::string.
  8236. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8237. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Defined default filename `index.html' as static const std::string
  8239. * src/SingleFileDownloadContext.cc
  8240. * src/SingleFileDownloadContext.h
  8241. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Defined "[MEMORY]" as static const std::string.
  8243. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8244. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Defined control file's version number as static const std::string.
  8246. * src/DefaultBtProgressInfoFile.cc
  8247. * src/DefaultBtProgressInfoFile.h
  8248. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Use Request::METHOD_GET
  8250. * src/RequestGroup.cc (createNextCommandWithAdj)
  8251. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Defined "OK", "ERR", "INPR" as static const std::string
  8253. * src/RequestGroupMan.cc (showDownloadResults)
  8254. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Defined default client used in extended handshake as static const
  8256. std::string
  8257. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8258. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8260. * src/HttpConnection.cc (eraseConfidentialInfo)
  8261. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Defined default ftp user and password as static const std::string
  8263. * src/AuthConfigFactory.cc
  8264. * src/AuthConfigFactory.h
  8265. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Defined strings used in netrc as static const std::string
  8267. * src/Netrc.cc
  8268. * src/Netrc.h
  8269. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Defined HTTP status as static const std::string
  8271. * src/AbstractProxyResponseCommand.cc
  8272. * src/HttpHeader.cc
  8273. * src/HttpHeader.h
  8274. * src/HttpResponse.cc
  8275. * src/HttpResponseCommand.cc
  8276. * src/HttpSkipResponseCommand.cc
  8277. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Defined "\r\n", "A", "I" as static const std::string
  8279. * src/A2STR.cc
  8280. * src/A2STR.h
  8281. * src/FtpConnection.cc
  8282. * src/FtpConnection.h
  8283. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Added COLON_C(".") and used it in Request::parseUrl()
  8285. * src/A2STR.cc
  8286. * src/A2STR.h
  8287. * src/Request.cc (parseUrl)
  8288. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Changed the type of padName from `const std::string&' to `const char*'.
  8290. * src/MSEHandshake.cc (verifyPadLength)
  8291. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Defined "sha1" as static const std::string.
  8293. * src/MetalinkParserController.cc
  8294. * src/MetalinkParserController.h
  8295. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Defined message digest algorithm name as static const std::string
  8297. * src/DHTTokenTracker.cc
  8298. * src/DHTUtil.cc
  8299. * src/DefaultBtContext.cc
  8300. * src/MSEHandshake.cc
  8301. * src/MessageDigestHelper.cc
  8302. * src/Peer.cc
  8303. * src/messageDigest.cc
  8304. * src/messageDigest.h
  8305. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Made string literals used in SAX parser static const std::string.
  8307. * src/FileMetalinkParserState.cc
  8308. * src/FileMetalinkParserState.h
  8309. * src/FilesMetalinkParserState.cc
  8310. * src/FilesMetalinkParserState.h
  8311. * src/InitialMetalinkParserState.cc
  8312. * src/InitialMetalinkParserState.h
  8313. * src/MetalinkMetalinkParserState.cc
  8314. * src/MetalinkMetalinkParserState.h
  8315. * src/PiecesMetalinkParserState.cc
  8316. * src/PiecesMetalinkParserState.h
  8317. * src/ResourcesMetalinkParserState.cc
  8318. * src/ResourcesMetalinkParserState.h
  8319. * src/VerificationMetalinkParserState.cc
  8320. * src/VerificationMetalinkParserState.h
  8321. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8323. * src/A2STR.cc
  8324. * src/A2STR.h
  8325. * src/File.cc
  8326. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Defined static const std::string IP("ip"), PORT("port") and use them
  8328. instead of string literals.
  8329. * src/DefaultPeerListProcessor.cc
  8330. * src/DefaultPeerListProcessor.h
  8331. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Made string literals for torrent file processing static const
  8333. std::string.
  8334. * src/BtContext.cc
  8335. * src/BtContext.h
  8336. * src/DefaultBtContext.cc
  8337. * src/DefaultBtContext.h
  8338. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Made string literal for tracker response static const std::string
  8340. * src/BtAnnounce.cc
  8341. * src/BtAnnounce.h
  8342. * src/DefaultBtAnnounce.cc
  8343. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Use DHTMessage::T instead of "t".
  8345. * src/DHTMessageTracker.cc (messageArrived)
  8346. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Made keyName static const. Made trimmed charset static const
  8348. std::string.
  8349. * src/Util.cc (getContentDispositionFilename)
  8350. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8351. Made USER_AGENT const. Made "/" static const std::string.
  8352. * src/A2STR.cc
  8353. * src/A2STR.h
  8354. * src/HttpRequest.cc
  8355. * src/HttpRequest.h
  8356. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Made string listeral to static const std::string:
  8358. "Content-Range", "Content-Length"
  8359. * src/HttpHeader.cc
  8360. * src/HttpHeader.h
  8361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Made string listeral to static const std::string.
  8363. * src/HttpConnection.cc
  8364. * src/HttpHeader.cc
  8365. * src/HttpHeader.h
  8366. * src/HttpResponse.cc
  8367. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Made string listeral to static const std::string.
  8369. * src/A2STR.cc
  8370. * src/A2STR.h
  8371. * src/SimpleLogger.cc
  8372. * src/SimpleLogger.h
  8373. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Made string literal to static const std::string.
  8375. Rewritten CookieParser::setField.
  8376. * src/A2STR.cc
  8377. * src/A2STR.h
  8378. * src/CookieBoxFactory.cc
  8379. * src/CookieBoxFactory.h
  8380. * src/CookieParser.cc
  8381. * src/CookieParser.h
  8382. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Made string literal to static const std::string
  8384. * src/DHTAbstractMessage.cc
  8385. * src/DHTAnnouncePeerMessage.cc
  8386. * src/DHTAnnouncePeerMessage.h
  8387. * src/DHTAnnouncePeerReplyMessage.cc
  8388. * src/DHTAnnouncePeerReplyMessage.h
  8389. * src/DHTFindNodeMessage.cc
  8390. * src/DHTFindNodeMessage.h
  8391. * src/DHTFindNodeReplyMessage.cc
  8392. * src/DHTFindNodeReplyMessage.h
  8393. * src/DHTGetPeersMessage.cc
  8394. * src/DHTGetPeersMessage.h
  8395. * src/DHTGetPeersReplyMessage.cc
  8396. * src/DHTGetPeersReplyMessage.h
  8397. * src/DHTMessage.cc
  8398. * src/DHTMessage.h
  8399. * src/DHTMessageFactoryImpl.cc
  8400. * src/DHTMessageReceiver.cc
  8401. * src/DHTPingMessage.cc
  8402. * src/DHTPingMessage.h
  8403. * src/DHTPingReplyMessage.cc
  8404. * src/DHTPingReplyMessage.h
  8405. * src/DHTQueryMessage.cc
  8406. * src/DHTQueryMessage.h
  8407. * src/DHTResponseMessage.cc
  8408. * src/DHTResponseMessage.h
  8409. * src/DHTUnknownMessage.cc
  8410. * src/DHTUnknownMessage.h
  8411. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Made string literal to static const std::string
  8413. * src/BtChokeMessage.cc (toString)
  8414. * src/BtHaveAllMessage.cc (toString)
  8415. * src/BtHaveNoneMessage.cc (toString)
  8416. * src/BtInterestedMessage.cc (toString)
  8417. * src/BtNotInterestedMessage.cc (toString)
  8418. * src/BtUnchokeMessage.cc (toString)
  8419. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Replaced "" with static const variable A2STR::NIL.
  8421. Replaced string comparison against "" with std::string::empty().
  8422. Added PROTO_* to Request class and use them as a protocol string
  8423. constant.
  8424. Made "started", "stopped", "completed" static const variable in
  8425. AnnounceList class.
  8426. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Updated translations. Great thanks to translators.
  8428. * po/ca.po
  8429. * po/de.po
  8430. * po/fr.po
  8431. * po/it.po
  8432. * po/ja.po
  8433. * po/ru.po
  8434. * po/zh_CN.po
  8435. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Updated man page; categorized options and fixed typo.
  8437. * doc/aria2c.1.txt
  8438. * doc/aria2c.1.html
  8439. * doc/aria2c.1
  8440. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Removed const ref
  8442. * src/MetalinkEntry.cc (AddProtocolPreference)
  8443. * src/RequestGroup.cc (FindServerHostByHostname)
  8444. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Rewritten Accept-Features handling.
  8446. * src/HttpRequestCommand.cc (createHttpRequest)
  8447. * src/a2functional.h
  8448. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Changed method signature:
  8450. DHTAbstractNodeLookupTask::toEntries
  8451. * src/DHTAbstractNodeLookupTask.cc
  8452. * src/DHTAbstractNodeLookupTask.h
  8453. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Changed method signature:
  8455. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8456. * src/BtContext.h
  8457. * src/DefaultBtContext.cc
  8458. * src/DefaultBtContext.h
  8459. * src/DefaultBtInteractive.cc
  8460. * test/DefaultBtContextTest.cc
  8461. * test/MockBtContext.h
  8462. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Changed method signature:
  8464. MultiFileAllocationIterator::makeDiskWriterEntries
  8465. * src/MultiFileAllocationIterator.cc
  8466. * src/MultiFileAllocationIterator.h
  8467. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Changed method sinature:
  8469. MetalinkEntry::toFileEntry,
  8470. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8471. Metalinker::queryEntry
  8472. * src/Metalink2RequestGroup.cc
  8473. * src/MetalinkEntry.cc
  8474. * src/MetalinkEntry.h
  8475. * src/MetalinkHelper.cc
  8476. * src/MetalinkHelper.h
  8477. * src/Metalinker.cc
  8478. * src/Metalinker.h
  8479. * src/main.cc
  8480. * test/MetalinkHelperTest.cc
  8481. * test/MetalinkerTest.cc
  8482. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Changed method sinature:
  8484. RequestGroup::getURIs
  8485. * src/RequestGroup.cc
  8486. * src/RequestGroup.h
  8487. * test/Metalink2RequestGroupTest.cc
  8488. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Changed method signature:
  8490. PeerListProcessor::extractPeer
  8491. * src/CompactPeerListProcessor.cc
  8492. * src/CompactPeerListProcessor.h
  8493. * src/DefaultBtAnnounce.cc
  8494. * src/DefaultPeerListProcessor.cc
  8495. * src/DefaultPeerListProcessor.h
  8496. * src/DelegatingPeerListProcessor.cc
  8497. * src/DelegatingPeerListProcessor.h
  8498. * src/PeerListProcessor.h
  8499. * src/UTPexExtensionMessage.cc
  8500. * test/DefaultPeerListProcessorTest.cc
  8501. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Changed method signature:
  8503. BtRequestFactory::createRequestMessages,
  8504. BtRequestFactory::createRequestMessagesOnEndGame
  8505. * src/BtRequestFactory.h
  8506. * src/DefaultBtInteractive.cc
  8507. * src/DefaultBtRequestFactory.cc
  8508. * src/DefaultBtRequestFactory.h
  8509. * test/DefaultBtRequestFactoryTest.cc
  8510. * test/MockBtRequestFactory.h
  8511. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Changed method signature:
  8513. PieceStorage::getInFlightPieces
  8514. * src/DefaultBtProgressInfoFile.cc
  8515. * src/DefaultPieceStorage.cc
  8516. * src/DefaultPieceStorage.h
  8517. * src/PieceStorage.h
  8518. * src/UnknownLengthPieceStorage.cc
  8519. * src/UnknownLengthPieceStorage.h
  8520. * test/DefaultBtProgressInfoFileTest.cc
  8521. * test/MockPieceStorage.h
  8522. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Changed method signature:
  8524. PostDownloadHandler::getNextRequestGroups
  8525. Metalink2RequestGroup::generate
  8526. RequestGroup::postDownloadProcessing
  8527. * src/BtPostDownloadHandler.cc
  8528. * src/BtPostDownloadHandler.h
  8529. * src/Metalink2RequestGroup.cc
  8530. * src/Metalink2RequestGroup.h
  8531. * src/MetalinkPostDownloadHandler.cc
  8532. * src/MetalinkPostDownloadHandler.h
  8533. * src/PostDownloadHandler.h
  8534. * src/RequestGroup.cc
  8535. * src/RequestGroup.h
  8536. * src/RequestGroupMan.cc
  8537. * src/main.cc
  8538. * test/BtPostDownloadHandlerTest.cc
  8539. * test/Metalink2RequestGroupTest.cc
  8540. * test/MetalinkPostDownloadHandlerTest.cc
  8541. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Rewritten AccRequestGroup
  8543. * src/main.cc
  8544. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Rewritten.
  8546. * src/TaggedItem.cc (toTagString)
  8547. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Rewritten Accept-Features handling.
  8549. * src/HttpRequestCommand.cc (createHttpRequest)
  8550. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Rewritten accept types handling.
  8552. * HttpRequest.cc (createRequest)
  8553. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Rewritten
  8555. * src/FeatureConfig.cc (featureSummary)
  8556. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Changed method signature:
  8558. PeerStorage::getActivePeers
  8559. * src/DHTPeerAnnounceEntry.cc
  8560. * src/DefaultPeerStorage.cc
  8561. * src/DefaultPeerStorage.h
  8562. * src/PeerStorage.h
  8563. * test/DefaultPeerStorageTest.cc
  8564. * test/MockPeerStorage.h
  8565. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Changed method signature:
  8567. DHTPeerAnnounceStorage::getPeers,
  8568. DHTPeerAnnounceEntry::getPeers
  8569. * src/DHTGetPeersMessage.cc
  8570. * src/DHTPeerAnnounceEntry.cc
  8571. * src/DHTPeerAnnounceEntry.h
  8572. * src/DHTPeerAnnounceStorage.cc
  8573. * src/DHTPeerAnnounceStorage.h
  8574. * test/DHTAnnouncePeerMessageTest.cc
  8575. * test/DHTPeerAnnounceEntryTest.cc
  8576. * test/DHTPeerAnnounceStorageTest.cc
  8577. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Changed method signature:
  8579. NameResolver::resolve
  8580. * src/DHTEntryPointNameResolveCommand.cc
  8581. * src/InitiateConnectionCommand.cc
  8582. * src/NameResolver.cc
  8583. * src/NameResolver.h
  8584. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Changed method signature:
  8586. PieceStorage::getAdvertisedPieceIndexes
  8587. * src/DefaultBtInteractive.cc
  8588. * src/DefaultPieceStorage.cc
  8589. * src/DefaultPieceStorage.h
  8590. * src/PieceStorage.h
  8591. * src/UnknownLengthPieceStorage.h
  8592. * test/MockPieceStorage.h
  8593. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Changed method signature:
  8595. SegmentMan::getInFlightSegment
  8596. * src/AbstractCommand.cc
  8597. * src/SegmentMan.cc
  8598. * src/SegmentMan.h
  8599. * test/SegmentManTest.cc
  8600. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Changed method signature:
  8602. DHTAbstractNodeLookupTask::getNodesFromMessage
  8603. * src/DHTAbstractNodeLookupTask.cc
  8604. * src/DHTAbstractNodeLookupTask.h
  8605. * src/DHTNodeLookupTask.cc
  8606. * src/DHTNodeLookupTask.h
  8607. * src/DHTPeerLookupTask.cc
  8608. * src/DHTPeerLookupTask.h
  8609. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8611. * src/AbstractCommand.cc
  8612. * src/BtCheckIntegrityEntry.cc
  8613. * src/BtCheckIntegrityEntry.h
  8614. * src/BtFileAllocationEntry.cc
  8615. * src/BtFileAllocationEntry.h
  8616. * src/BtSetup.cc
  8617. * src/BtSetup.h
  8618. * src/CheckIntegrityCommand.cc
  8619. * src/CheckIntegrityEntry.h
  8620. * src/ChecksumCheckIntegrityEntry.cc
  8621. * src/ChecksumCheckIntegrityEntry.h
  8622. * src/DHTSetup.cc
  8623. * src/DHTSetup.h
  8624. * src/DownloadEngine.cc
  8625. * src/FileAllocationCommand.cc
  8626. * src/FileAllocationEntry.h
  8627. * src/RequestGroup.cc
  8628. * src/RequestGroup.h
  8629. * src/RequestGroupMan.cc
  8630. * src/RequestGroupMan.h
  8631. * src/StreamCheckIntegrityEntry.cc
  8632. * src/StreamCheckIntegrityEntry.h
  8633. * src/StreamFileAllocationEntry.cc
  8634. * src/StreamFileAllocationEntry.h
  8635. * src/TrackerWatcherCommand.cc
  8636. * src/a2functional.h
  8637. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Changed method signature:
  8639. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8640. DHTBucket::getGoodNodes,
  8641. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8642. * src/BNode.cc
  8643. * src/BNode.h
  8644. * src/DHTAbstractNodeLookupTask.cc
  8645. * src/DHTAutoSaveCommand.cc
  8646. * src/DHTBucket.cc
  8647. * src/DHTBucket.h
  8648. * src/DHTBucketRefreshTask.cc
  8649. * src/DHTFindNodeMessage.cc
  8650. * src/DHTGetPeersMessage.cc
  8651. * src/DHTRoutingTable.cc
  8652. * src/DHTRoutingTable.h
  8653. * test/BNodeTest.cc
  8654. * test/DHTBucketTest.cc
  8655. * test/DHTRoutingTableTest.cc
  8656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. In piece selection functions, Pass std::deque<...> by reference rather
  8658. than returning it.
  8659. * src/BitfieldMan.cc
  8660. * src/BitfieldMan.h
  8661. * src/DefaultBtRequestFactory.cc
  8662. * src/DefaultPieceStorage.cc
  8663. * src/Piece.cc
  8664. * src/Piece.h
  8665. * test/BitfieldManTest.cc
  8666. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Implemented rarest piece first piece selection strategy.
  8668. * src/AbstractBtMessage.cc
  8669. * src/AbstractBtMessage.h
  8670. * src/BitfieldMan.cc
  8671. * src/BitfieldMan.h
  8672. * src/BtBitfieldMessage.cc
  8673. * src/BtHaveAllMessage.cc
  8674. * src/BtHaveMessage.cc
  8675. * src/DefaultPieceStorage.cc
  8676. * src/DefaultPieceStorage.h
  8677. * src/PeerInteractionCommand.cc
  8678. * src/PieceStorage.h
  8679. * src/UnknownLengthPieceStorage.h
  8680. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Rewritten readData and writeData.
  8682. * src/MultiDiskAdaptor.cc
  8683. * src/MultiDiskAdaptor.h
  8684. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Move \n out of the message "Usage: ...".
  8686. * src/version_usage.cc
  8687. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Bump up version number to 0.13.2b.
  8689. * configure.ac
  8690. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Added const qualifier to argument Exception& e.
  8692. * src/Logger.h
  8693. * src/SimpleLogger.cc
  8694. * src/SimpleLogger.h
  8695. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Pool connection when CWD, SIZE command fails.
  8697. * src/FtpNegotiationCommand.cc
  8698. * src/FtpNegotiationCommand.h
  8699. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8701. * src/HttpResponseCommand.cc
  8702. * src/HttpSkipResponseCommand.cc
  8703. * src/HttpSkipResponseCommand.h
  8704. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Pool connection when a server returns 4xx, 5xx responses.
  8706. * src/HttpNullDownloadCommand.cc
  8707. * src/HttpNullDownloadCommand.h
  8708. * src/HttpResponse.cc
  8709. * src/HttpResponse.h
  8710. * src/HttpResponseCommand.cc
  8711. * src/HttpResponseCommand.h
  8712. * test/HttpResponseTest.cc
  8713. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Print usage when no URL is specifed or bad command-line option is
  8715. specified.
  8716. * src/HelpItemFactory.cc
  8717. * src/help_tags.h
  8718. * src/option_processing.cc
  8719. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Removed duplicate log message.
  8721. * src/AbstractCommand.cc (asyncResolveHostname)
  8722. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8724. Changed -j option's default value from 5 to 1.
  8725. Added new examples using protocol auto detection feature.
  8726. Removed -T, -M usage where it can be omitted.
  8727. * doc/aria2c.1.txt
  8728. * doc/aria2c.1.html
  8729. * doc/aria2c.1.txt
  8730. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Updated command-line usage text, so that it tells users that they
  8732. can specify any number of torrent files and metalink files in
  8733. command-line.
  8734. * src/version_usage.cc
  8735. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Changed the default value of -j option to 1.
  8737. * src/HelpItemFactory.cc
  8738. * src/option_processing.cc
  8739. * src/usage_text.h
  8740. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Added the ability to reuse connection in FTP and it is enabled by
  8742. default. It can be disabled by --ftp-reuse-connection=false option.
  8743. * src/Command.cc
  8744. * src/DownloadCommand.cc
  8745. * src/FtpDownloadCommand.cc
  8746. * src/FtpDownloadCommand.h
  8747. * src/FtpFinishDownloadCommand.cc
  8748. * src/FtpFinishDownloadCommand.h
  8749. * src/FtpInitiateConnectionCommand.cc
  8750. * src/FtpNegotiationCommand.cc
  8751. * src/FtpNegotiationCommand.h
  8752. * src/HelpItemFactory.cc
  8753. * src/Makefile.am
  8754. * src/Makefile.in
  8755. * src/OptionHandlerFactory.cc
  8756. * src/option_processing.cc
  8757. * src/prefs.h
  8758. * src/usage_text.h
  8759. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Call Command::transitStatus() before calling Command::execute(),
  8761. so that the status change made in execute() is not cleared.
  8762. * src/DownloadEngine.cc
  8763. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Removed forward declaration of SocketCore class.
  8765. * src/HttpDownloadCommand.h
  8766. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8768. in InitiateConnectionCommandFactory. They should be set only when
  8769. the protocol is HTTP or HTTPS.
  8770. * src/InitiateConnectionCommandFactory.cc
  8771. * src/RequestGroup.cc
  8772. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Fixed infinite loop in checksum checking.
  8774. * src/IteratableChecksumValidator.cc
  8775. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Set _supportsPersistentConnection to true by default.
  8777. * src/Request.cc
  8778. * src/RequestGroup.cc
  8779. * test/HttpRequestTest.cc
  8780. * test/RequestTest.cc
  8781. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Added timeout to socket pool. The default timeout is 15 seconds,
  8783. which is the same value Apache uses.
  8784. * src/DownloadEngine.cc
  8785. * src/DownloadEngine.h
  8786. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Fixed misuse of multimap::find()
  8788. * src/HttpHeader.cc
  8789. * test/HttpHeaderTest.cc
  8790. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8792. option.
  8793. The asynchronous DNS is not capable of IPv6 yet.
  8794. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8795. least for HTTP download.
  8796. * src/AbstractCommand.cc
  8797. * src/AbstractCommand.h
  8798. * src/AsyncNameResolver.cc
  8799. * src/AsyncNameResolver.h
  8800. * src/DHTEntryPointNameResolveCommand.cc
  8801. * src/DHTEntryPointNameResolveCommand.h
  8802. * src/DownloadEngine.cc
  8803. * src/DownloadEngine.h
  8804. * src/FtpInitiateConnectionCommand.cc
  8805. * src/FtpInitiateConnectionCommand.h
  8806. * src/HelpItemFactory.cc
  8807. * src/HttpInitiateConnectionCommand.cc
  8808. * src/HttpInitiateConnectionCommand.h
  8809. * src/InitiateConnectionCommand.cc
  8810. * src/InitiateConnectionCommand.h
  8811. * src/Makefile.am
  8812. * src/Makefile.in
  8813. * src/NameResolver.cc
  8814. * src/NameResolver.h
  8815. * src/OptionHandlerFactory.cc
  8816. * src/SocketCore.cc
  8817. * src/SocketCore.h
  8818. * src/Util.cc
  8819. * src/Util.h
  8820. * src/option_processing.cc
  8821. * src/prefs.h
  8822. * src/usage_text.h
  8823. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Updated man page: --quiet, --header were added.
  8825. --metalink-servers and --enable-http-keep-alive option were updated.
  8826. * doc/aria2c.1
  8827. * doc/aria2c.1.html
  8828. * doc/aria2c.1.txt
  8829. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Enable HTTP keep-alive by default.
  8831. * src/HelpItemFactory.cc
  8832. * src/option_processing.cc
  8833. * src/usage_text.h
  8834. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Disable http keep-alive if the remote server is not HTTP/1.1.
  8836. * src/HttpConnection.cc
  8837. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Receive content body of 302 response so that the connection can be
  8839. reused later when http keep-alive is enabled.
  8840. * src/HttpNullDownloadCommand.cc
  8841. * src/HttpNullDownloadCommand.h
  8842. * src/HttpResponseCommand.cc
  8843. * src/HttpResponseCommand.h
  8844. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. const SharedHandle<Request> -> const SharedHandle<Request>&
  8846. * src/FtpDowndloadCommand.cc
  8847. * src/FtpDowndloadCommand.h
  8848. * src/HttpDownloadCommand.cc
  8849. * src/HttpDownloadCommand.h
  8850. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. Fixed the bug that the control file(.aria2 file) is not renamed
  8852. according to tryAutoFileRenaming().
  8853. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8854. its control file exist, use them and continue download.
  8855. The old implementation didn't take into account of control file's
  8856. existence, so basically you couldn't continue download of renamed file.
  8857. * src/BtProgressInfoFile.h
  8858. * src/DefaultBtProgressInfoFile.cc
  8859. * src/DefaultBtProgressInfoFile.h
  8860. * src/NullProgressInfoFile.h
  8861. * src/RequestGroup.cc
  8862. * test/DefaultBtProgressInfoFileTest.cc
  8863. * test/MockBtProgressInfoFile.h
  8864. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8865. Change the default value of --metalink-servers option from `5' to `1'.
  8866. * src/HelpItemFactory.cc
  8867. * src/option_processing.cc
  8868. * src/usage_text.h
  8869. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Reimplemented transparent metalink using Accept request header.
  8871. * src/HttpRequest.cc
  8872. * src/HttpRequest.h
  8873. * src/HttpRequestCommand.cc
  8874. * src/Metalink2RequestGroup.cc
  8875. * src/RequestGroup.cc
  8876. * src/RequestGroup.h
  8877. * test/HttpRequestTest.cc
  8878. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Bump up version number to 0.13.2a
  8880. * configure.ac
  8881. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Updated configure.ac using the result of autoscan.
  8883. * configure.ac
  8884. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Fixed compilation error without gcrypt/openssl.
  8886. * src/DownloadCommand.cc
  8887. * src/DownloadCommand.h
  8888. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Reorganized version information so that it can be displayed in a
  8890. standard terminal screen without scrolling.
  8891. Removed http, ftp from Configuration section, because they are always
  8892. enabled.
  8893. * src/FeatureConfig.cc
  8894. * src/FeatureConfig.h
  8895. * src/main.cc
  8896. * src/messageDigest.cc
  8897. * src/messageDigest.h
  8898. * src/version_usage.cc
  8899. * test/FeatureConfigTest.cc
  8900. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Masked user ID in log.
  8902. * src/FtpConnection.cc (sendUser)
  8903. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Removed query part from filename in HTTP download. The query part means
  8905. the substring after "?" in URL. Firefox seems do the same thing.
  8906. A query part is sometimes very long and not suitable to filename,
  8907. so I think it is better to remove it from filename.
  8908. * src/HttpRequest.cc
  8909. * src/HttpRequest.h
  8910. * src/Request.cc
  8911. * src/Request.h
  8912. * test/HttpRequestTest.cc
  8913. * test/RequestTest.cc
  8914. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Rewritten Exception class. Throw exception object, not its pointer and
  8916. catch by reference, so that remove problematic delete operator for
  8917. catched exception.
  8918. * src/Exception.cc
  8919. * src/Exception.h
  8920. * test/ExceptionTest.cc
  8921. * src/*: All files throwing/catching exception.
  8922. * test/*: All files throwing/catching exception.
  8923. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Now auto protocol detection is enabled without -Z option.
  8925. But there is a important difference between with/without -Z optoin.
  8926. For example, if you type:
  8927. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8928. then, aria2 interprets there are 3 request groups:
  8929. (1) http://host/file, http://mirror/file <-- multi-source download
  8930. (2) file1.torrent
  8931. (3) file2.metalink
  8932. On the other hand, if you invoke above command with -Z option, it is
  8933. interpreted as 4 request groups:
  8934. (1) http://host/file
  8935. (2) file1.torrent
  8936. (3) file2.metalink
  8937. (4) http://mirror/file
  8938. I think usually user don't mix multi-source URLs and torrent files, so
  8939. there is no big problem here.
  8940. * src/main.cc
  8941. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Fixed the bug that causes segmentaion fault when reading XML containing
  8943. unescapsed character like '&'.
  8944. Also a modification was made which avoids adding unnecessary
  8945. characters stack and appending unused string.
  8946. * src/ExpatMetalinkProcessor.cc
  8947. * src/FileMetalinkParserState.h
  8948. * src/FilesMetalinkParserState.h
  8949. * src/FinMetalinkParserState.h
  8950. * src/HashMetalinkParserState.h
  8951. * src/InitialMetalinkParserState.h
  8952. * src/LanguageMetalinkParserState.h
  8953. * src/MetalinkMetalinkParserState.h
  8954. * src/MetalinkParserState.h
  8955. * src/MetalinkParserStateMachine.cc
  8956. * src/MetalinkParserStateMachine.h
  8957. * src/OSMetalinkParserState.h
  8958. * src/PieceHashMetalinkParserState.h
  8959. * src/PiecesMetalinkParserState.h
  8960. * src/ResourcesMetalinkParserState.h
  8961. * src/SizeMetalinkParserState.h
  8962. * src/SkipTagMetalinkParserState.h
  8963. * src/URLMetalinkParserState.h
  8964. * src/VerificationMetalinkParserState.h
  8965. * src/VersionMetalinkParserState.h
  8966. * src/XML2SAXMetalinkProcessor.cc
  8967. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Added StringFormat class, which internally calls vasprintf.
  8969. operator<< is defined for this class, so it can be used with iostream
  8970. classes nicely. SimpleLogger and following functions are rewritten
  8971. using StringFormat class.
  8972. Besides, now Logger class's methods are non-const, many classes
  8973. that has a const Logger* as a member variable are modified to remove
  8974. const qualifier from the variable declaration.
  8975. * src/HelpItemFactory.cc
  8976. * src/Request.cc
  8977. * src/SimpleLogger.cc
  8978. * src/StringFormat.cc
  8979. * src/StringFormat.h
  8980. * src/Util.cc
  8981. * src/option_processing.cc
  8982. * src/version_usage.cc
  8983. * test/StringFormatTest.cc
  8984. * src/*.h: The classes that has const Logger* as a member variable.
  8985. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8987. failed. Also fixed memory link when exception is thrown there.
  8988. * src/main.cc (AccRequestGroup)
  8989. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Added build-in "Accept-Features" support. For now only "metalink" is
  8991. used in this header field.
  8992. This "metalink" value is removed from the list when connecting URLs
  8993. fed by metalink file to avoid loop in "transparent" metlaink.
  8994. * src/HttpRequest.cc
  8995. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8996. header is also held in this variable. Also renamed setUserHeaders as
  8997. addHeader and it was rewritten to add header not just to clear the old
  8998. value.
  8999. * src/HttpRequestCommand.cc
  9000. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9001. from "Accept-Features" list.
  9002. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9003. default.
  9004. * src/RequestGroup.h
  9005. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9006. * src/a2functional.h: Included <string> because Concat class depends on
  9007. it.
  9008. * test/HttpRequestTest.cc
  9009. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Added comment
  9011. * src/RequestGroup.cc (createNextCommand)
  9012. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Capitalized METHOD_GET and METHOD_HEAD
  9014. * src/Request.cc
  9015. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Added getDownloadResults() method
  9017. * src/RequestGroupMan.cc
  9018. * src/RequestGroupMan.h
  9019. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Fixed the bug that aria2 exits when commands is empty() but
  9021. _routineCommands are not.
  9022. * src/DownloadEngine.cc
  9023. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Use the default value pulled from Option object in HelpItemFactory.
  9025. except options whose defualt value is embedded in a usage text.
  9026. * src/HelpItemFactory.cc
  9027. * src/HelpItemFactory.h
  9028. * src/option_processing.cc
  9029. * src/version_usage.cc
  9030. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Added --quiet option to make aria2 quiet (no console output).
  9032. --quiet option is tagged with ADVANCED.
  9033. * src/HelpItemFactory.cc
  9034. * src/LogFactory.cc
  9035. * src/LogFactory.h
  9036. * src/MultiUrlRequestInfo.cc
  9037. * src/MultiUrlRequestInfo.h
  9038. * src/NullStatCalc.h: New class. This class prints nothing.
  9039. * src/OptionHandlerFactory.cc
  9040. * src/main.cc
  9041. * src/option_processing.cc
  9042. * src/prefs.h
  9043. * src/usage_text.h
  9044. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9046. * src/HelpItemFactory.cc (createHelpItems):
  9047. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Fixed compilation error in ExpatMetalinkProcessor.cc
  9049. * src/ExpatMetalinkProcessor.cc
  9050. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Reuse socket if the origin server supports HTTP keep-alive and
  9052. --enable-http-keep-alive or --enable-http-pipelining is given.
  9053. The current implementation doesn't reuse the connections established
  9054. against proxy server.
  9055. * src/AbstractCommand.cc
  9056. * src/DownloadEngine.cc
  9057. * src/DownloadEngine.h
  9058. * src/HttpDownloadCommand.cc
  9059. * src/HttpInitiateConnectionCommand.cc
  9060. * src/HttpResponseCommand.cc
  9061. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Rewritten HTTP keep-alive and pipelining routine.
  9063. * src/AbstractCommand.cc
  9064. * src/HttpConnection.cc
  9065. * src/HttpDownloadCommand.cc
  9066. * src/HttpRequest.cc
  9067. * src/HttpRequestCommand.cc
  9068. * src/HttpResponseCommand.cc
  9069. * src/Request.cc
  9070. * src/Request.h
  9071. * src/RequestGroup.cc
  9072. * test/HttpRequestTest.cc
  9073. * test/HttpResponseTest.cc
  9074. * test/RequestTest.cc
  9075. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Added missing setUserHeaders call
  9077. * src/HttpRequestCommand.cc
  9078. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9080. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9081. waste of time because it is more likey false.
  9082. * src/FileAllocationDispatcherCommand.cc (execute)
  9083. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. Now HTTP status and version are a member variable of HttpHeader.
  9085. HTTP status is processed as a string, not integer.
  9086. * src/AbstractProxyResponseCommand.cc
  9087. * src/HttpConnection.cc
  9088. * src/HttpHeader.cc
  9089. * src/HttpHeader.h
  9090. * src/HttpHeaderProcessor.cc
  9091. * src/HttpHeaderProcessor.h
  9092. * src/HttpResponse.cc
  9093. * src/HttpResponse.h
  9094. * test/HttpHeaderProcessorTest.cc
  9095. * test/HttpResponseTest.cc
  9096. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Added --header option. You can specify any number of additional HTTP headers
  9098. like:
  9099. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9100. Unlike other commad-line option, you can use --header option multiple times.
  9101. * src/HelpItemFactory.cc
  9102. * src/HttpRequest.{cc, h}
  9103. * src/HttpRequestCommand.cc
  9104. * src/OptionHandlerFactory.cc
  9105. * src/OptionHandlerImpl.h
  9106. * src/option_processing.cc
  9107. * src/prefs.h
  9108. * src/usage_text.h
  9109. * test/HttpRequestTest.cc (testUserHeaders)
  9110. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Eliminates the time lag between sequential downloads and commands in
  9112. the same RequestGroup.
  9113. In old implementation, aria2 occasionally waits 1 seconds before
  9114. executing next command or RequestGroup.
  9115. This is really a waste of time, and new implementation eliminates
  9116. this unnecessary time lag.
  9117. * src/AbstractCommand.cc
  9118. * src/AutoSaveCommand.cc
  9119. * src/CheckIntegrityCommand.cc
  9120. * src/Command.{cc, h}
  9121. * src/DownloadEngine.{cc, h}
  9122. * src/DownloadEngineFactory.cc
  9123. * src/FileAllocationCommand.cc
  9124. * src/FileAllocationDispatcherCommand.cc
  9125. * src/FillRequestGroupCommand.cc
  9126. * src/FtpInitiateConnectionCommand.cc
  9127. * src/HaveEraseCommand.cc
  9128. * src/HttpInitiateConnectionCommand.cc
  9129. * src/HttpResponseCommand.cc
  9130. * src/RealtimeCommand.cc
  9131. * src/RequestGroup.cc
  9132. * src/RequestGroupMan.cc
  9133. * src/StreamFileAllocationEntry.cc
  9134. * src/TimeBasedCommand.{cc, h}
  9135. * src/TimedHaltCommand.cc
  9136. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9138. keyword explicit and SharedHandle's default constructor initializes
  9139. its internal obj to null, old implementation initializes it using
  9140. obj's default constructor.
  9141. To assign null, write SharedHandle<T> x(...); x.reset();
  9142. TODO: test/SharedHandleTest.cc needs more tests.
  9143. * src/SharedHandle.h
  9144. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Fixed type in man page.
  9146. * doc/aria2c.1.txt
  9147. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9149. * src/SimpleLogger.{cc, h}
  9150. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Implemented auto protocol detection.
  9152. Now you can do:
  9153. aria2c -Z http://host/file file1.torrent file2.metalink
  9154. (Note: -Z option is required for auto protcol detection.)
  9155. Then aria2c downloads 3 files simultaneously:
  9156. 1. http://host/file
  9157. 2. file1.torrent <-- read local torrent file
  9158. 3. file2.metalink <-- read local Metalink file.
  9159. Same thing goes with -i option. Assume your uris.txt contans:
  9160. http://host/file
  9161. file1.torrent
  9162. file2.metalink
  9163. Then you can do: aria2c -i uris.txt
  9164. (Note: -Z option is not needed if -i option is given.)
  9165. * src/main.cc
  9166. * src/ProtocolDetector.{cc, h}
  9167. * test/ProtocolDetectorTest.cc
  9168. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9170. installed
  9171. * src/ARC4Encryptor.h
  9172. * src/ARC4Decryptor.h
  9173. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Renamed argument from 'errno' to 'err', since errno is confused with
  9175. errno defined in errno.h.
  9176. * src/LibgcryptARC4Decryptor.h
  9177. * src/LibgcryptARC4Context.h
  9178. * src/LibgcryptDHKeyExchange.h
  9179. * src/LibgcryptARC4Encryptor.h
  9180. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Rewritten choking algorithm.
  9182. * src/PeerChokeCommand.{cc, h}
  9183. * src/BtInterestedMessage.cc
  9184. * src/PeerSessionResource.{cc, h}
  9185. * src/DefaultPeerStorage.{cc, h}
  9186. * src/BtNotInterestedMessage.cc
  9187. * src/DefaultBtMessageDispatcher.{cc, h}
  9188. * src/BtMessageDispatcher.h
  9189. * src/Peer.{cc, h}
  9190. * src/BtLeecherStateChoke.{cc, h}
  9191. * src/BtSetup.cc
  9192. * src/BtSeederStateChoke.{cc, h}
  9193. * src/PeerStorage.h
  9194. * test/MockPeerStorage.h
  9195. * test/MockBtMessageDispatcher.h
  9196. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Fixed compilation error on x84-64 platform.
  9198. * src/AuthConfig.cc: Included ostream.
  9199. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Rewritten getBasename() and getDirname(), without standard library
  9201. basename(), dirname().
  9202. * src/File.cc
  9203. * test/FileTest.cc
  9204. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Added Simplified Chinese translation. Also updated the following
  9206. translations: Polish, Dutch, German. Great thanks to all translators.
  9207. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Suppress content-range error when 'Content-Range' response header
  9209. doesn't contains bytes-unit specifier 'bytes'
  9210. * src/HttpHeader.cc (getRange)
  9211. * test/HttpHeaderTest.cc
  9212. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Fixed compilation error with g++-4.3
  9214. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Added missing include files for MinGW
  9216. * test/HttpHeaderProcessorTest.cc
  9217. * test/DHTRoutingTableSerializerTest.cc
  9218. * test/DHTRoutingTableDeserializerTest.cc
  9219. * test/UriListParserTest.cc
  9220. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Now download line is printed nicely with no garbage at the end of
  9222. line. I use ioctl to get the columns of terminal.
  9223. If stdout is redirected to another device, instead of carriage return,
  9224. end of line '\n' character is used. This is feature request#1909659
  9225. * src/ConsoleStatCalc.cc (calculateStat)
  9226. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Included a2time.h
  9228. * src/DHTMessageDispatcher.h
  9229. * src/DHTMessageEntry.h
  9230. * src/DHTReplaceNodeTask.h
  9231. * src/DHTMessageTracker.h
  9232. * src/Util.h
  9233. * src/CookieBox.h
  9234. * src/SocketCore.h
  9235. * src/DefaultBtMessageDispatcher.h
  9236. * src/SocketCore.cc
  9237. * src/Util.cc
  9238. * src/DHTPingTask.h
  9239. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Fixed high memory footprint when DHT is enabled.
  9241. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9242. queued than it is processed and the queue is getting longer. As a
  9243. consequence, momory usage is increased.
  9244. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9245. replacement cache in DHTBucket which is described in Kademlia paper.
  9246. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9247. DHTReplaceNodeTask.
  9248. * src/DHTBucket.{h, cc}
  9249. (cacheNode): New function.
  9250. (getCachedNodes): New function.
  9251. (dropNode): Push back cached node to _nodes.
  9252. * test/DHTBucketTest.cc
  9253. (testCacheNode): New test
  9254. (testDropNode): New test
  9255. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9257. the unused 4KB memory when ssl is not used.
  9258. * src/SocketCore.cc
  9259. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Added summary log for peer announce storage.
  9261. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9262. Removed cast
  9263. * src/DefaultPeerStorage.cc (addPeer)
  9264. Log exception message
  9265. * src/DHTMessageTracker.cc (handleTimeout)
  9266. Fixed casting
  9267. * test/HttpRequestTest.cc
  9268. * test/MetalinkProcessorTest.cc
  9269. * test/PieceTest.cc
  9270. * test/MetalinkEntryTest.cc
  9271. * test/SequenceTest.cc
  9272. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. * src/ParameterizedStringParser.cc (createLoop):
  9274. Removed unused variable sstep.
  9275. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9276. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. * src/Util.{h, cc}
  9278. (parseUInt): New function.
  9279. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9280. The actual range is uint32_t.
  9281. * test/UtilTest.cc
  9282. * src/ParameterizedStringParser.cc:
  9283. Use Util::parseUInt() for loop variables.
  9284. * test/ParameterizedStringParserTest.cc
  9285. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9286. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Rewritten the functions for binding port.
  9288. * src/DHTConnectionImpl.{h, cc}
  9289. * src/PeerListenCommand.{h, cc}
  9290. * src/DHTSetup.cc
  9291. * src/BtSetup.cc
  9292. * test/DHTConnectionImplTest.cc
  9293. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. type cleanup for allmost all remaining files.
  9295. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Type clarification
  9297. * src/PeerSessionResource.{h, cc}
  9298. * src/DefaultPieceStorage.{h, cc}
  9299. * src/Peer.{h, cc}
  9300. * test/PeerSessionResourceTest.cc
  9301. Use div function
  9302. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9303. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Type clarification
  9305. * src/DefaultPeerStorage.{h, cc}
  9306. * test/DefaultPeerStorageTest.cc
  9307. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Type clarification: size_t for length or size, uint64_t for file
  9309. length, off_t for file offset.
  9310. * src/DefaultBtProgressInfoFile.cc
  9311. * src/DefaultBtContext.{h, cc}
  9312. * src/DefaultBtInteractive.cc
  9313. * src/DownloadCommand.{h, cc}
  9314. * src/IteratableChunkChecksumValidator.{h, cc}
  9315. * src/SegmentMan.{h, cc}
  9316. * src/SingleFileDownloadContext.{h, cc}
  9317. * src/IteratableChecksumValidator.{h, cc}
  9318. * src/BtContext.h
  9319. * src/IteratableValidator.h
  9320. * src/DownloadContext.h
  9321. * test/SingleFileDownloadContextTest.cc
  9322. * test/DefaultBtContextTest.cc
  9323. * test/MockBtContext.h
  9324. * test/Metalink2RequestGroupTest.cc
  9325. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Type clarification: size_t for length or size, uint64_t for file
  9327. length, off_t for file offset.
  9328. * src/PiecedSegment.cc
  9329. * src/GrowSegment.h
  9330. * src/DefaultBtRequestFactory.h
  9331. * src/DefaultBtProgressInfoFile.cc
  9332. * src/UnknownLengthPieceStorage.h
  9333. * src/DefaultPieceStorage.cc
  9334. * src/UnknownLengthPieceStorage.cc
  9335. * src/DefaultBtInteractive.cc
  9336. * src/GrowSegment.cc
  9337. * src/BitfieldMan.h
  9338. * src/DownloadCommand.cc
  9339. * src/BtRequestFactory.h
  9340. * src/PiecedSegment.h
  9341. * src/DefaultPieceStorage.h
  9342. * src/Piece.cc
  9343. * src/DefaultBtRequestFactory.cc
  9344. * src/PieceStorage.h
  9345. * src/Segment.h
  9346. * src/Piece.h
  9347. * src/BitfieldMan.cc
  9348. * src/Util.cc
  9349. * test/DefaultBtProgressInfoFileTest.cc
  9350. * test/DefaultPieceStorageTest.cc
  9351. * test/MockPieceStorage.h
  9352. * test/BtRequestMessageTest.cc
  9353. * test/DefaultBtMessageDispatcherTest.cc
  9354. * test/BitfieldManTest.cc
  9355. * test/GrowSegmentTest.cc
  9356. * test/PieceTest.cc
  9357. * test/SegmentTest.cc
  9358. * test/SegmentManTest.cc
  9359. * test/DefaultBtRequestFactoryTest.cc
  9360. * test/MockBtRequestFactory.h
  9361. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Fixed compilation error with --disable-nls
  9363. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9364. in gettext.h causes the problem.
  9365. * src/common.h
  9366. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Removed subPiece related functions.
  9368. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9369. * src/DefaultPieceStorage.{h, cc}
  9370. * test/PieceTest.cc
  9371. * test/DefaultPieceStorageTest.cc
  9372. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Use unsigned char for data store.
  9374. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Bump up version number to 0.13.0+1
  9376. * configure.ac
  9377. * Release 0.13.0+1
  9378. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Changed inactive connection timeout to 120.
  9380. To accept more mulually interested peers, disconnect peer when there
  9381. is no interest between us after certain time passed.
  9382. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9383. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9385. when compiled with async DNS support.
  9386. * src/DownloadEngine.cc
  9387. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9388. value '10' will be a little bit short when some DNS servers are
  9389. offline and several DNS servers are tried. It should be configured
  9390. by command-line option.
  9391. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Merged Ross's mingw patch.
  9393. * src/DHTRoutingTableDeserializer.cc
  9394. * src/DHTRoutingTableSerializer.cc
  9395. * src/Platform.{h, cc}
  9396. * src/timegm.h
  9397. * src/gettimeofday.h
  9398. * src/getaddrinfo.h
  9399. * src/SocketCore.h
  9400. * src/common.h
  9401. * src/inet_aton.h
  9402. * src/DownloadEngine.h
  9403. * src/gai_strerror.h
  9404. * src/a2netcompat.h
  9405. * configure.ac
  9406. * configure
  9407. * aclocal.m4
  9408. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. Included missing iostream.
  9410. * test/AllTest.cc
  9411. * test/BtDependencyTest.cc
  9412. * test/BtExtendedMessageTest.cc
  9413. * test/DHTConnectionImplTest.cc
  9414. * test/DHTMessageFactoryImplTest.cc
  9415. * test/DHTMessageTrackerEntryTest.cc
  9416. * test/DHTNodeTest.cc
  9417. * test/DHTRoutingTableSerializerTest.cc
  9418. * test/DefaultBtAnnounceTest.cc
  9419. * test/DefaultBtContextTest.cc
  9420. * test/DefaultBtMessageFactoryTest.cc
  9421. * test/DefaultExtensionMessageFactoryTest.cc
  9422. * test/HandshakeExtensionMessageTest.cc
  9423. * test/HttpResponseTest.cc
  9424. * test/MetalinkProcessorTest.cc
  9425. * test/MultiFileAllocationIteratorTest.cc
  9426. * test/SocketCoreTest.cc
  9427. * test/UTPexExtensionMessageTest.cc
  9428. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Reorganized includes.
  9430. * src/NameResolver.cc
  9431. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Fixed compilation error without ares/c-ares
  9433. * src/NameResolver.h:
  9434. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Added a test for large file.
  9436. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9437. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Fixed the bug that file size is ignored if size > INT32_MAX
  9439. * src/SizeMetalinkParserState.cc (endElement):
  9440. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Bump up version number to 0.13.0
  9442. * configure.ac
  9443. * Release 0.13.0
  9444. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Updated Makfefile.am to make 'make dist' work.
  9446. Now packaged filename is aria2c-VERSION.tar.bz2.
  9447. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9448. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9449. Large file support is now configured by configure script.
  9450. * configure.ac
  9451. Removed unsused source files
  9452. * src/
  9453. * test/
  9454. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9455. Peer.h and BtContext.h respectively.
  9456. * src/Peer.h
  9457. * src/BtContext.h
  9458. Updated translations.
  9459. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9460. translations. Great thanks to all translators!;)
  9461. * po/*.{po, gmo}
  9462. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9464. statically declared sha1 MessageDigestContext.
  9465. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9466. initialization of short-lived MessageDigestContext.
  9467. * src/MessageDigestHelper.{h, cc}
  9468. * src/main.cc
  9469. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9470. the initialization of MessageDigestContext every time in validating
  9471. chunk checksum.
  9472. * src/DownloadCommand.{h, cc}
  9473. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Add a file descriptor which connected to fast peer(latency<1500) to
  9475. select(). This change reduced CPU load.
  9476. * src/PeerInteractionCommand.cc
  9477. * src/DefaultBtInteractive.{h, cc}
  9478. * src/BtInteractive.h
  9479. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. Fixed the previous insufficient fix for possible busy loop.
  9481. * src/MSEHandshake.cc (identifyHandshakeType)
  9482. Removed unused functions.
  9483. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9484. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Fixed possible busy loop if first 20 bytes are not received for a few
  9486. minutes.
  9487. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9488. * src/ReceiverMSEHandshakeCommand.cc
  9489. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Fixed compilation error
  9491. * src/ExpatMetalinkProcessor.cc
  9492. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9494. * src/DHTBucket.cc
  9495. Removed unnecessary cast.
  9496. * src/HandshakeExtensionMessage.cc
  9497. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9499. is missing.
  9500. * src/OptionHandlerFactory.cc
  9501. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Fixed the bug that HAVE message is not sent for a piece they are
  9503. downloaded fom http/ftp server before any BitTorrent handshake is done
  9504. with peers.
  9505. * src/DefaultBtInteractive.cc
  9506. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9508. * src/Makefile.am
  9509. * src/Makefile.in
  9510. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Updated README. Added html version of README and man page.
  9512. * README
  9513. * README.html
  9514. * readme2html: Shell script to generate README.html from README using
  9515. asciidoc.
  9516. * doc/aria2c.1.html
  9517. * doc/makeman: Added the line to generate aria2c.1.html
  9518. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Fixed offset calculation.
  9520. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9521. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Rewritten itos and uitos using template. llitos and ullitos are
  9523. replaced with itos and uitos respectively.
  9524. * src/Util.{h, cc}
  9525. * test/UtilTest.cc
  9526. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9528. of the number of bytes required for storing public key and shared
  9529. secret.
  9530. * src/LibgcryptDHKeyExchange.h
  9531. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9532. * src/MSEHandshake.cc
  9533. * test/DHKeyExchangeTest.cc
  9534. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Removed since they are not used.
  9536. * src/Xml2MetalinkProcessor.{h, cc}
  9537. * src/Socket.cc
  9538. * src/SegmentSplitter.{h, cc}
  9539. * test/Xml2MetalinkProcessorTest.cc
  9540. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Fixed the bug that prevents aria2 from stopping other than by pressing
  9542. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9543. option. aria2 doesn't stop even after --seed-time is satisfied and
  9544. continues to output blank lines in the console.
  9545. * src/ReceiverMSEHandshakeCommand.cc
  9546. * src/PeerReceiveHandshakeCommand.cc
  9547. * src/PeerListenCommand.cc
  9548. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. Bump up version number to 0.13.0rc
  9550. * configure.ac
  9551. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Updated man page and some usage text.
  9553. * doc/aria2c.1.txt
  9554. * src/usage_text.h
  9555. * po/*.{po, gmo}
  9556. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Updated translations. Added Finnish and Hebrew translations.
  9558. Great thanks to all translators!
  9559. * po/*.{po, gmo}
  9560. * po/LINGUAS
  9561. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Log more detailed information about each message.
  9563. * src/DHTQueryMessage.{h, cc}
  9564. * src/DHTGetPeersMessage.{h, cc}
  9565. * src/DHTFindNodeReplyMessage.{h, cc}
  9566. * src/DHTGetPeersReplyMessage.{h, cc}
  9567. * src/DHTAnnouncePeerMessage.{h, cc}
  9568. * src/DHTResponseMessage.{h, cc}
  9569. * src/DHTFindNodeMessage.{h, cc}
  9570. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Use constants defined in prefs.h
  9572. * src/option_processing.cc
  9573. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9575. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Make room for future enchancements for IPv6 addresses.
  9577. Bump up version number of dht.dat file format to 2.
  9578. Not compatible with previous version.
  9579. * src/DHTRoutingTableSerializer.cc
  9580. * src/DHTRoutingTableDeserializer.cc
  9581. * test/DHTRoutingTableSerializerTest.cc
  9582. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Added handling for the return values from
  9584. PeerMessageUtil::createcompact().
  9585. * src/DefaultBtContext.cc (computeFastSet):
  9586. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. Fixed abort when peer's ip address is IPv4-mapped address.
  9588. * src/DefaultBtContext.cc (computeFastSet)
  9589. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9590. cannot handle IPv4-mapped addresses.
  9591. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9592. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Proper return value handling for OpenSSL functions.
  9594. * src/LibsslDHKeyExchange.h
  9595. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Random bytes generation using libgcrypt and OpenSSL.
  9597. * src/DHTUtil.{h, cc}
  9598. * test/DHTUtilTest.cc
  9599. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9601. received.
  9602. * src/DHTMessageReceiver.cc (receiveMessage)
  9603. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Fixed the bug that a return code is always 0. BUG#1897704
  9605. If error occurred during the download or there exist unfinished
  9606. downloads, aria2 returns with code 1.
  9607. * src/RequestGroupMan.{h, cc}
  9608. * src/MultiUrlRequestInfo.{h, cc}
  9609. * src/main.cc
  9610. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. IPv6 support for SocketCore class.
  9612. TODO: In SocketCore::establishConnection(), this is insufficient to
  9613. determin the failure of connect() here because the socket is
  9614. non-blocking state. The next addresses should be tried after select().
  9615. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9616. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9617. instead which address family independent.
  9618. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9619. information in a compact peer format which is for IPv4 only.
  9620. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9621. this is a spec of BitTorrent protocol.
  9622. * src/SocketCore.{h, cc}
  9623. * src/PeerMessageUtil.cc
  9624. * test/SocketCoreTest.cc
  9625. * test/PeerMessageUtilTest.cc
  9626. * test/DHTConnectionImplTest.cc
  9627. Handle IPv4-mapped addresses.
  9628. * src/DHTNode.cc: Now identity is determined by node id.
  9629. * src/DHTMessageTrackerEntry.cc
  9630. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9631. should handle it.
  9632. * src/DHTRoutingTableDeserializer.cc
  9633. * src/DHTMessageFactoryImpl.cc
  9634. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Change the unit of --stop option from a minute to a second.
  9636. * src/usage_text.h
  9637. * src/DownloadEngineFactory.cc
  9638. * src/OptionHandlerFactory.cc
  9639. * src/message.h
  9640. * src/TimedHaltCommand.cc
  9641. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Make listening socket non-block mode.
  9643. * src/FtpConnection.cc
  9644. * src/FtpNegotiationCommand.{h, cc}
  9645. * src/PeerListenCommand.cc
  9646. Fixed the bug that cause slow ftp negotiation.
  9647. * src/FtpNegotiationCommand.{h, cc}
  9648. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Added basic tag to --enable-dht, --dht-listen-port option.
  9650. * src/HelpItemFactory.cc (createHelpItems)
  9651. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Updated text.
  9653. * src/usage_text.h
  9654. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9656. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Determin _threadtholdSpeed in each constructor for
  9658. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9659. * src/ActivePeerConnectionCommand.{h, cc}
  9660. * src/PeerReceiveHandshakeCommand.{h, cc}
  9661. * src/BtSetup.cc
  9662. * src/BtConstants.h
  9663. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Added --bt-min-crypto-level and --bt-require-crypto options.
  9665. * src/OptionHandlerFactory.cc
  9666. * src/MSEHandshake.cc
  9667. * src/HelpItemFactory.cc
  9668. * src/option_processing.cc
  9669. * src/ReceiverMSEHandshakeCommand.cc
  9670. * src/prefs.h
  9671. * src/DefaultBtAnnounce.cc
  9672. * src/InitiatorMSEHandshakeCommand.cc
  9673. * src/usage_text.h
  9674. * test/MSEHandshakeTest.cc
  9675. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Bump version number to 0.13.0b
  9677. * configure.ac
  9678. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Updated doc.
  9680. * src/MessageDigestHelper.h:
  9681. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Use raw message digest as a token instead of its hexadecimal
  9683. representation.
  9684. * src/DHTTokenTracker.cc (generateToken)
  9685. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Added Message Stream Encryption(MSE) support.
  9687. Currently, aria2 accepts incoming connections with Obfuscation Header
  9688. and legacy BitTorrent Header and establishes connections with
  9689. Obfuscation Header first and if failed then retry with legacy
  9690. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9691. choose ARC4. The new option to change the default behavior is planned.
  9692. For tracker extension, "supportcrypto=1" is added statically.
  9693. * src/PeerInitiateConnectionCommand.{h, cc}
  9694. * src/PeerConnection.{h, cc}
  9695. * src/HandleRegistry.h
  9696. * src/SocketCore.h
  9697. * src/PeerReceiveHandshakeCommand.{h, cc}
  9698. * src/BtRegistry.{h, cc}
  9699. * src/PeerListenCommand.cc
  9700. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9701. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9702. * src/MSEHandshake.{h, cc}
  9703. * src/ARC4Encryptor.h
  9704. * src/ARC4Decryptor.h
  9705. * src/LibgcryptARC4Encryptor.h
  9706. * src/LibgcryptARC4Decryptor.h
  9707. * src/LibgcryptARC4Context.h
  9708. * src/LibsslARC4Encryptor.h
  9709. * src/LibsslARC4Decryptor.h
  9710. * src/LibsslARC4Context.h
  9711. * src/DHKeyExchange.h
  9712. * src/LibgcryptDHKeyExchange.h
  9713. * src/LibsslDHKeyExchange.h
  9714. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9715. * test/DefaultBtAnnounceTest.cc
  9716. * test/ARC4Test.cc
  9717. * test/DHKeyExchangeTest.cc
  9718. Removed prepareForRetry() because it is not used.
  9719. * src/PeerAbstractCommand.{h, cc}
  9720. * src/PeerInteractionCommand.{h, cc}
  9721. * src/PeerInitiateConnectionCommand.{h, cc}
  9722. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. Added the ability to load nodes from torrent file. These nodes are
  9724. added to the routing table when downloading that torrent.
  9725. * src/BtContext.h
  9726. * src/DefaultBtContext.{h, cc}
  9727. * src/DHTSetup.cc
  9728. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9729. hostname and port pair, and resolves all of them.
  9730. * src/NameResolver.{h, cc}: Added reset().
  9731. * src/RequestGroup.cc
  9732. * test/DefaultBtContextTest.cc
  9733. * test/MockBtContext.h
  9734. Removed assert() from DefaultBtContext and throw exception instead.
  9735. * src/DefaultBtContext.cc
  9736. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Fixed segmentation fault bug when exiting if dht is disabled.
  9738. * src/RequestGroup.cc
  9739. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Fixed typo in log message and define the message in message.h
  9741. * src/TimedHaltCommand.cc
  9742. * src/message.h
  9743. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Included RecoverableException.h to fix compilation error.
  9745. * test/DHTMessageFactoryImplTest.cc
  9746. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9748. * test/DHTPingMessageTest.cc
  9749. * test/DHTGetPeersMessageTest.cc
  9750. * test/DHTFindNodeMessageTest.cc
  9751. * test/DHTAnnouncePeerMessageTest.cc
  9752. * test/MockDHTMessage.h
  9753. * test/MockDHTMessageFactory.h
  9754. * test/MockDHTMessageDispatcher.h: New class.
  9755. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9757. virtual.
  9758. * src/DHTMessageDispatcher.h
  9759. * src/DHTMessageDispatcherImpl.{h, cc}
  9760. * src/DHTSetup.cc
  9761. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Adding handling of DHT error message. Just log error message and
  9763. throw exception.
  9764. * src/DHTMessageFactoryImpl.cc
  9765. * test/DHTMessageFactoryImplTest.cc
  9766. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. Added handling of dynamic cast failure.
  9768. * src/DHTNodeLookupTask.cc
  9769. * src/DHTPeerLookupTask.cc
  9770. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9771. Added the ability to stop aria2 itself when given time has passed
  9772. from start. Use --stop option to specify time in minutes.
  9773. When 0 is given, this feature is disabled.
  9774. * src/OptionHandlerFactory.cc
  9775. * src/TimeBasedCommand.h: Make _interval protected scope.
  9776. * src/HelpItemFactory.cc
  9777. * src/option_processing.cc
  9778. * src/prefs.h
  9779. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9780. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9781. Without this modification, the result list shows "ERR" when aria2 is
  9782. stopped by --stop option. It should be "INPR".
  9783. * src/DownloadEngine.{h, cc}
  9784. * src/DownloadEngineFactory.cc
  9785. * src/usage_text.h
  9786. * src/TimedHaltCommand.{h, cc}: New class.
  9787. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Bootstrap through node added by port message.
  9789. Currently bootstrap is executed if the number of buckets in routing
  9790. table is 1.
  9791. * src/BtPortMessage.{h, cc}
  9792. * src/DefaultBtMessageFactory.{h, cc}
  9793. * src/PeerInteractionCommand.cc
  9794. * test/BtPortMessageTest.cc
  9795. * test/MockDHTTask.h
  9796. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Extract the Peer class's member variables, which are only needed after
  9798. PeerInteractionCommand, into PeerSessionResource class.
  9799. This class is instantiated in PeerInteractionCommand class's ctor and
  9800. released in its dtor.
  9801. This will make Peer class lightweight and uses less memory for peers
  9802. which are not connected and wait in the queue.
  9803. * src/PeerChokeCommand.cc
  9804. * src/PeerSessionResource.{h, cc}
  9805. * src/PeerInteractionCommand.cc
  9806. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9807. * src/DefaultBtInteractive.cc
  9808. * src/BtPieceMessage.cc
  9809. * src/BtInterestedMessage.cc
  9810. * src/BtUnchokeMessage.cc
  9811. * src/DefaultPeerStorage.{h, cc}
  9812. * src/PeerInitiateConnectionCommand.cc
  9813. * src/ActivePeerConnectionCommand.cc
  9814. * src/BtNotInterestedMessage.cc
  9815. * src/DefaultBtMessageDispatcher.cc
  9816. * src/BtChokeMessage.cc
  9817. * src/BtRequestMessage.cc
  9818. * src/Peer.{h, cc}
  9819. * src/BtRegistry.h
  9820. * src/TrackerWatcherCommand.cc
  9821. * src/PeerReceiveHandshakeCommand.cc
  9822. * test/BtExtendedMessageTest.cc
  9823. * test/BtAllowedFastMessageTest.cc
  9824. * test/BtCancelMessageTest.cc
  9825. * test/DefaultPieceStorageTest.cc
  9826. * test/BtBitfieldMessageTest.cc
  9827. * test/BtHaveMessageTest.cc
  9828. * test/BtNotInterestedMessageTest.cc
  9829. * test/BtRequestMessageTest.cc
  9830. * test/PeerSessionResourceTest.cc
  9831. * test/DefaultBtMessageDispatcherTest.cc
  9832. * test/PeerTest.cc
  9833. * test/BtInterestedMessageTest.cc
  9834. * test/BtRejectMessageTest.cc
  9835. * test/BtChokeMessageTest.cc
  9836. * test/DefaultPeerStorageTest.cc
  9837. * test/BtHaveNoneMessageTest.cc
  9838. * test/BtHaveAllMessageTest.cc
  9839. * test/DefaultExtensionMessageFactoryTest.cc
  9840. * test/BtUnchokeMessageTest.cc
  9841. * test/DefaultBtMessageFactoryTest.cc
  9842. * test/HandshakeExtensionMessageTest.cc
  9843. * test/UTPexExtensionMessageTest.cc
  9844. * test/DefaultBtRequestFactoryTest.cc
  9845. * test/BtPieceMessageTest.cc
  9846. Removed typedef PeerStats.
  9847. * src/PeerStat.h
  9848. * src/SegmentMan.cc
  9849. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Added std namespace to copy, remove_copy, back_inserter,
  9851. front_inserter.
  9852. * src/RequestGroupMan.cc
  9853. * src/DefaultPieceStorage.cc
  9854. * src/StreamFileAllocationEntry.cc
  9855. * src/BtFileAllocationEntry.cc
  9856. * src/RequestGroup.cc
  9857. * src/MetalinkEntry.cc
  9858. * src/DelegatingPeerListProcessor.cc
  9859. * src/DefaultBtRequestFactory.cc
  9860. * src/DefaultBtMessageDispatcher.cc
  9861. * src/version_usage.cc: Included <algorithm>
  9862. * src/main.cc
  9863. * src/MetalinkParserController.cc
  9864. * src/DefaultBtContext.cc
  9865. * src/DownloadEngineFactory.cc
  9866. * src/a2algo.h
  9867. Removed.
  9868. * test/StreamUriListParserTest.cc
  9869. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9871. ActivePeerConnectionCommand when it is given and
  9872. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9873. * src/ActivePeerConnectionCommand.{h, cc}
  9874. * src/BtSetup.cc
  9875. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Only add socket to DownloadEngine's select routine when peer or
  9877. localhost is unchoked and interested. This lowers CPU usage a
  9878. little bit.
  9879. * src/PeerInteractionCommand.cc
  9880. * src/PeerAbstractCommand.{h, cc}
  9881. * src/BtInteractive.h
  9882. * src/DefaultBtInteractive.{h, cc}
  9883. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Revert previous change because get_peers message is needed for
  9885. announce_peer anyway.
  9886. * src/DHTGetPeersCommand.cc
  9887. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Request peers thought DHT only when download hasn't finished.
  9889. * src/DHTGetPeersCommand.cc
  9890. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9892. * src/DHTBucketRefreshTask.{h, cc}
  9893. * src/DHTSetup.cc
  9894. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9896. standard classes.
  9897. Included string.h where mem* function are used.
  9898. Added namespace aria2.
  9899. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Create directory before saving DHT routing table.
  9901. Now ios::failure is now handled properly.
  9902. * src/DHTAutoSaveCommand.cc
  9903. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Removed unnecessary cerr.
  9905. * src/DownloadEngine.cc
  9906. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Catch exception inside DHTMessageReceiver::receiveMessage().
  9908. Log unknown message.
  9909. * src/DHTMessageReceiver.{h, cc}
  9910. * src/DHTMessageFactory.h
  9911. * src/DHTMessageFactoryImpl.{h, cc}
  9912. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9913. * src/DHTInteractionCommand.cc
  9914. * src/DHTUnknownMessage.{h, cc}
  9915. * test/DHTUnknownMessageTest.cc
  9916. * test/MockDHTMessageFactory.h
  9917. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Commented out ip address comparison because a host can have multiple
  9919. ip addresses and it is hard to predict the hostname is resolved into
  9920. which one.
  9921. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9922. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. * po/Makefile.in: Removed since this is generated by configure.
  9924. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. Fixed compiler warning about redefinition of SIZE_MAX.
  9926. Use common.h instead of config.h directly here.
  9927. * src/Platform.{h, cc}
  9928. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9929. here.
  9930. * common.h
  9931. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9932. Updated gettext related files.
  9933. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9934. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9935. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Added DHT functionality, compatible with mainline.
  9937. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9938. You may need to specify entry point to DHT network using
  9939. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9940. Use --dht-listen-port to specify port number. Make sure that your
  9941. firewall configuration can pass through UDP traffic to the port.
  9942. The routing table is saved in $HOME/.aria2/dht.dat.
  9943. * src/DHT*
  9944. * src/BNode.{h, cc}
  9945. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9946. particular torrent.
  9947. * src/Data.cc: Rewritten ctor.
  9948. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9949. --dht-entry-point.
  9950. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9951. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9952. ends, remove BtContext from DHTPeerAnnounceStorage.
  9953. * src/BtPortMessage.{h, cc}: Rewritten.
  9954. * src/message.h
  9955. * src/OptionHandlerImpl.cc
  9956. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9957. --dht-entry-point.
  9958. * src/Dictionary.{h, cc} (remove): New function.
  9959. * src/prefs.h
  9960. * src/DefaultBtMessageFactory.h
  9961. * src/BtHandshakeMessage.cc
  9962. * src/ActivePeerConnectionCommand.cc
  9963. * src/SocketCore.{h, cc}: Added datagram socket support.
  9964. * src/DefaultBtMessageFactory.cc
  9965. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9966. Create DHT commands.
  9967. * src/BtMessageFactory.h
  9968. * src/PeerMessageUtil.{h, cc}
  9969. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Fixed the bug that log file is not written when configuration file doesn't exist.
  9971. This is caused by using Logger class before LogFactory is not configured.
  9972. BUG #1875079
  9973. * src/option_processing.cc
  9974. Warning message "configuration doesn't exist" is only printed when --conf is
  9975. given.
  9976. * src/option_processing.cc
  9977. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9979. ShaVisitor is now deprecated and slated to be removed.
  9980. * src/DefaultBtContext.cc
  9981. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Externalize message to message.h
  9983. * src/Platform.cc
  9984. * src/message.h
  9985. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Set default domain and default path to cookie.
  9987. * src/HttpResponse.cc
  9988. * src/CookieBox.{h, cc}
  9989. * src/CookieParser.{h, cc}
  9990. * test/CookieParserTest.cc
  9991. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Added --no-conf and --conf-path command-line option.
  9993. --no-conf option disables loading aria2.conf file.
  9994. --conf-path option changes the configuration file path. The default
  9995. file path is $HOME/.aria2/aria2.conf
  9996. Added a warning message when the configuration file is not found.
  9997. * src/HelpItemFactory.cc
  9998. * src/option_processing.cc
  9999. * src/prefs.h
  10000. * src/usage_text.h
  10001. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Added the message to inform users that other help categories are
  10003. available in -h option.
  10004. * src/version_usage.cc
  10005. * src/TagContainer.{h, cc}
  10006. * test/TagContainerTest.cc
  10007. * src/TaggedItem.{h, cc}
  10008. * test/TaggedItemTest.cc
  10009. * src/HelpItem.h
  10010. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10012. from PiecedSegment's ctor.
  10013. Previously Piece::getAllMissingBlockIndexes() is called from
  10014. PiecedSegment() but it is rather expensive since only first element is
  10015. used.
  10016. * src/PiecedSegment.cc
  10017. * src/Piece.{h, cc}
  10018. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10020. each time these functions are called.
  10021. * src/BitfieldMan.{h, cc}
  10022. * test/BitfieldManTest.cc
  10023. * src/array_fun.h
  10024. * test/array_funTest.cc
  10025. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10026. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10027. filtered. Removed unnecessary cast to int32_t.
  10028. * src/BitfieldMan.{h, cc}
  10029. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10031. payload length(4bytes) are received. This happens because lenbufLength
  10032. is not updated in this particular case and successive call of
  10033. receiveMessage() overwrites payload length with bytes recieved which
  10034. are payload body.
  10035. * src/PeerConnection.{h, cc}
  10036. * src/message.h
  10037. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10039. peer if there are peers that have same ipaddr and port.
  10040. I've experiened segmentation fault and "pure virtual function was
  10041. called" error.
  10042. * src/Peer.h
  10043. * test/PeerTest.cc
  10044. * src/DefaultPeerStorage.cc
  10045. * test/DefaultPeerStorageTest.cc
  10046. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10047. Removed a call to isPowerOf() because it is no longer necessary here
  10048. and a request block is not always power of 2.
  10049. BUG#1866924
  10050. * src/PeerMessageUtil.cc (checkLength)
  10051. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Fixed the bug that always first found Segment is removed from
  10053. usedSegmentEntries. Removed unused functions.
  10054. * src/SegmentMan.{h, cc}
  10055. * test/SegmentManTest.cc
  10056. Fixed the bug that ServerHost is not removed.
  10057. * src/RequestGroup.cc
  10058. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Fixed the bug that SegmentMan::completeSegment() is not called
  10060. even if Segment is complete when --lowest-speed-limit is enabled.
  10061. BUG#1864525
  10062. * src/DownloadCommand.{h, cc}
  10063. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Fixed: hash algorithm 'sha1' is always used.
  10065. * src/DownloadCommand.cc (validatePieceHash)
  10066. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Added --enable-peer-exchange command-line option.
  10068. * src/OptionHandlerFactory.cc
  10069. * src/HelpItemFactory.cc
  10070. * src/option_processing.cc
  10071. * src/usage_text.h
  10072. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Move extension from BtRuntime to ExtensionMessageFactory, because
  10074. extension can be specified per peer, not per torrent.
  10075. * src/DefaultBtInteractive.cc
  10076. * src/BtRuntime.h
  10077. * src/ExtendedMessagingAware.h
  10078. * src/ExtensionMessageFactory.h
  10079. * src/DefaultExtensionMessageFactory.cc
  10080. * test/DefaultExtensionMessageFactoryTest.cc
  10081. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Added categorized option help. Specify category using --help option.
  10083. Also added the ability to search options in forward match.
  10084. * src/HelpItem.{h, cc}
  10085. * test/HelpItemTest.cc
  10086. * src/HelpItemFactory.{h, cc}
  10087. * src/TagContainer.{h, cc}
  10088. * test/TagContainerTest.cc
  10089. * src/option_processing.cc
  10090. * src/prefs.h
  10091. * src/TaggedItem.{h, cc}
  10092. * test/TaggedItemTest.cc
  10093. * src/version_usage.cc
  10094. * src/help_tags.h
  10095. * src/usage_text.h
  10096. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10097. Fixed segmentation fault when bad torrent metainfo is parsed.
  10098. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10099. and then throw exception or skip it.
  10100. * src/DefaultBtContext.{h, cc}
  10101. * test/DefaultBtContextTest.cc
  10102. * src/AnnounceList.cc
  10103. * src/CompactPeerListProcessor.cc
  10104. * src/message.h
  10105. * src/DefaultBtAnnounce.{h, cc}
  10106. * test/DefaultBtAnnounceTest.cc
  10107. * src/BencodeVisitor.cc
  10108. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Added missing "B"(=Byte). So now the message looks like this:
  10110. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10111. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10112. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Show the seed ratio after torrent downloads.
  10114. For example, after torrent download completed and --seed-time and
  10115. --seed-ratio conditions are fulfilled, following message is printed
  10116. right after "Download complete: .....":
  10117. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10118. * src/RequestGroupMan.cc
  10119. * src/RequestGroup.{h, cc}
  10120. * src/message.h
  10121. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Remove a defunct control file. A defunct control file means that while
  10123. it exists, but the corresponding download file is missing.
  10124. After its removal, a download restarts from the beginning.
  10125. * src/RequestGroup.cc
  10126. * src/message.h
  10127. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Allocate bitfield in Peer when it is really used. More specifically,
  10129. bitfield in Peer is allocated after the connection is established and
  10130. deallocated when the connection is dropped.
  10131. Since 2 parameters(piece length and total length) was removed from the
  10132. constructor of Peer class, many test classes were modified accordingly.
  10133. See svn log for more detailed information.
  10134. * src/PeerInteractionCommand.cc
  10135. * src/CompactPeerListProcessor.cc
  10136. * src/Peer.cc
  10137. * src/DefaultPeerListProcessor.cc
  10138. * src/PeerListenCommand.cc
  10139. * src/PeerReceiveHandshakeCommand.cc
  10140. Fixed memory leak
  10141. * src/Piece.cc
  10142. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10143. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10144. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10145. command-line options.
  10146. * src/option_processing.cc
  10147. * src/ActivePeerConnectionCommand.cc
  10148. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Send have message to peer if it already has the piece.
  10150. * src/BtHaveMessage.{h, cc}
  10151. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10153. port.
  10154. * src/DefaultPeerStorage.{h, cc}
  10155. * test/DefaultPeerStorageTest.cc
  10156. * src/HandshakeExtensionMessage.cc
  10157. * test/HandshakeExtensionMessageTest.cc
  10158. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10159. * src/PeerStorage.h
  10160. * test/MockPeerStorage.h
  10161. * src/PeerListenCommand.cc
  10162. * src/PeerReceiveHandshakeCommand.cc
  10163. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10164. Added --metalink-enable-unique-protocol option.
  10165. * src/Metalink2RequestGroup.cc
  10166. * src/option_processing.cc
  10167. * src/prefs.h
  10168. * src/version_usage.cc
  10169. * doc/aria2c.1.txt
  10170. * doc/aria2c.1
  10171. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Allow a peer in incomingPeer to be added peers.
  10173. * src/DefaultPeerStorage.cc
  10174. * test/DefaultPeerStorageTest.cc
  10175. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10177. I could reproduce this bug in following procedure:
  10178. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10179. 2. Restart aria2.
  10180. 3. You see the download stopped around 99%.
  10181. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10182. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10183. If timeout is reached, then _nextCommand is unused and it may contains
  10184. segments and they won't be canceled. Actually, timeout is not needed
  10185. here because if the server dropped connection, then retry is made.
  10186. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Added uTorrent compatible Peer Exchange.
  10188. * src/BencodeVisitor.{h, cc}
  10189. * test/BencodeVisitorTest.cc
  10190. * src/BtConstants.h
  10191. * src/BtContext.h: Added 'private' flag.
  10192. * src/BtExtendedMessage.{h, cc}
  10193. * test/BtExtendedMessageTest.cc
  10194. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10195. reserved field.
  10196. * test/BtHandshakeMessageTest.cc
  10197. * src/BtMessageFactory.h
  10198. * src/BtRegistry.h
  10199. * src/BtRuntime.h: This class holds default extension message IDs for
  10200. aria2. By default, aria2 uses ID 8 for ut_pex.
  10201. * src/DefaultBtContext.cc
  10202. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10203. When it is true, aria2 enables ut_pex. This value is set by
  10204. PeerInteractionCommand.
  10205. * src/DefaultBtMessageFactory.{h, cc}
  10206. * test/DefaultBtMessageFactoryTest.cc
  10207. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10208. handling to DefaultBtInteractive class.
  10209. * src/DefaultExtensionMessageFactory.{h, cc}
  10210. * test/DefaultExtensionMessageFactoryTest.cc
  10211. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10212. the container(peers and incomingPeers. The equality is determined by
  10213. Peer::id).
  10214. * test/DefaultPeerStorageTest.cc
  10215. * src/ExtensionMessage.h
  10216. * test/MockExtensionMessage.h
  10217. * src/ExtensionMessageFactory.h
  10218. * test/MockExtensionMessageFactory.h
  10219. * src/HandshakeExtensionMessage.{h, cc}
  10220. * test/HandshakeExtensionMessageTest.cc
  10221. * src/MetaEntry.h
  10222. * src/Peer.{h, cc}
  10223. * src/PeerInteractionCommand.cc
  10224. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10225. addIncomingPeer.
  10226. * src/PeerMessageUtil.{h, cc}
  10227. * src/PeerObject.h
  10228. * src/UTPexExtensionMessage.{h, cc}
  10229. * test/UTPexExtensionMessageTest.cc
  10230. * src/message.h
  10231. * src/prefs.h
  10232. Fixed the bug that returns incomplete data when it contains null
  10233. character. A convenient constructor was also added.
  10234. * src/Data.{h, cc}
  10235. Rewritten.
  10236. * src/CompactPeerListProcessor.cc
  10237. Fixed typos.
  10238. * src/message.h
  10239. * src/MetaFileUtil.cc
  10240. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. Added "Status Legend" label to the explanation text of 'stat' in
  10242. download result and moved it to the last. BUG#1848214
  10243. * src/RequestGroupMan.cc
  10244. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10246. * src/Makefie.am
  10247. * test/Makefile.am
  10248. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Fixed the bug that prevents aria2 from loading cookie file when expire
  10250. value is greater than 2^31-1. BUG#1851066
  10251. * src/CookieBoxFactory.cc
  10252. * test/CookieBoxFactoryTest.cc
  10253. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Fixed possible memory leak when an exception is thrown.
  10255. * src/XML2SAXMetalinkProcessor.cc
  10256. Added Expat support. If both libxml2 and Expat are installed, then
  10257. libxml2 is used by default.
  10258. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10259. ExpatMetalinkProcessor according to the configuration.
  10260. * src/ExpatMetalinkProcessor.{h, cc}
  10261. * src/main.cc: Removed libxml2 specific header and init/free function.
  10262. * src/MetalinkProcessorFactory.{h, cc}
  10263. * src/MetalinkHelper.cc
  10264. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10265. * src/MetalinkProcessor.h
  10266. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10267. MetalinkProcessorTest is used instead.
  10268. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10269. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10270. MetalinkProcessorFactory::newInstance().
  10271. * m4/libexpat.m4
  10272. * configure.ac: Added configuration options for libexpat.
  10273. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Disabled -s option in metalink download.
  10275. * src/Metalink2RequestGroup.cc
  10276. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. If several protocols are available for a mirror in metalink file,
  10278. aria2 now use one of them. --metalink-preferred-protocol option was
  10279. added to specify the preference of protocol.
  10280. * src/AbstractCommand.cc
  10281. * src/OptionHandlerFactory.cc
  10282. * src/ServerHost.{h, cc}
  10283. * src/Metalink2RequestGroup.cc
  10284. * src/RequestGroup.{h, cc}
  10285. * test/RequestGroupTest.cc
  10286. * src/option_processing.cc
  10287. * src/prefs.h
  10288. * src/HttpResponseCommand.cc
  10289. * src/MetalinkResource.{h, cc}
  10290. * src/FtpNegotiationCommand.cc
  10291. * src/MetalinkEntry.{h, cc}
  10292. * src/MetalinkEntryTest.cc
  10293. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Code cleanup and added debug log.
  10295. * src/PeerConnection.cc
  10296. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Compiler error fix: applied the patch by Tiziano Mueller
  10298. * src/RequestGroup.cc
  10299. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10301. in stopped and completed event.
  10302. * src/AnnounceList.{h, cc}
  10303. * test/AnnounceListTest.cc
  10304. * src/DefaultBtAnnounce.cc
  10305. * test/DefaultBtAnnounceTest.cc
  10306. Sorted URLs.
  10307. * test/Metalink2RequestGroupTest.cc
  10308. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Removed unnecessary string copy. Updated doc and corrected indentation.
  10310. * src/Base64.cc
  10311. Fixed compilation warnings
  10312. * test/DataTest.cc
  10313. * test/HttpRequestTest.cc
  10314. * test/MetaFileUtilTest.cc
  10315. * test/RequestTest.cc
  10316. * Release 0.12.0
  10317. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10318. Updated translations
  10319. * po/{de,fr,ja,nl,ru}.po
  10320. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10321. translations. Many thanks to translators.
  10322. * po/{ca,es,it,pt_BR,sv}.po
  10323. * po/LINGUAS
  10324. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Added a notice about URL
  10326. * src/version_usage.cc
  10327. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10328. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10329. aria2 repeatedly sends stopped request when tracker returns error code.
  10330. * src/AnnounceList.cc
  10331. * test/AnnounceListTest.cc
  10332. * src/AnnounceTier.h
  10333. Added a message when ctrl-c is hit.
  10334. Now second ctrl-c is also handled in signal handler.
  10335. * src/RequestGroupMan.{h, cc}
  10336. * src/RequestGroup.{h, cc}
  10337. * src/MultiUrlRequestInfo.cc
  10338. * src/DownloadEngine.cc
  10339. * src/TrackerWatcherCommand.cc
  10340. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Code cleanup
  10342. * src/Base64.cc (encode)
  10343. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. Changed Direct/IO enable/disable procesure in file allocation routine.
  10345. * src/SingleFileAllocationIterator.cc
  10346. (SingleFileAllocationIterator):
  10347. Disable directIO if offset is not multiple of 512.
  10348. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10349. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10350. Enable created SingleFileAllocationIterator's directIO.
  10351. * src/FileAllocationEntry.cc
  10352. (FileAllocationEntry): Enable directIO here.
  10353. (~FileAllocationEntry): Disable directIO here.
  10354. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10355. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10356. * src/Peer.{h, cc}
  10357. * src/DefaultPieceStorage.cc
  10358. * test/DefaultPieceStorageTest.cc
  10359. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10360. Rewritten direct I/O support routine
  10361. * src/SingleFileAllocationIterator.cc
  10362. * src/MultiDiskAdaptor.{h, cc}
  10363. * src/ByteArrayDiskWriter.h
  10364. * src/AbstractSingleDiskAdaptor.h
  10365. * src/AbstractDiskWriter.cc
  10366. * src/DefaultPieceStorage.cc
  10367. * src/DiskWriter.h
  10368. * src/BinaryStream.h
  10369. * src/IteratableChunkChecksumValidator.cc
  10370. * src/IteratableChecksumValidator.cc
  10371. * src/CheckIntegrityEntry.cc
  10372. * src/FileAllocationEntry.cc
  10373. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Fixed typo
  10375. * src/version_usage.cc
  10376. Updated doc
  10377. * doc/aria2c.1.txt
  10378. * doc/aria2c.1
  10379. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Fixed compile error without message digest support.
  10381. * src/FileMetalinkParserState.cc
  10382. * src/MetalinkParserController.{h, cc}
  10383. * test/XML2SAXMetalinkProcessorTest.cc
  10384. * test/MetalinkParserControllerTest.cc
  10385. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Enable direct I/O support in checksum checking.
  10387. * src/IteratableChunkChecksumValidator.{h, cc}
  10388. * test/IteratableChunkChecksumValidatorTest.cc
  10389. * src/CheckIntegrityEntry.cc
  10390. * src/PieceHashCheckIntegrityEntry.cc
  10391. * src/IteratableChecksumValidator.{h, cc}
  10392. * src/BtCheckIntegrityEntry.cc: Added doc.
  10393. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. Added --allow-piece-length-change option.
  10395. * src/DefaultBtProgressInfoFile.cc
  10396. * test/DefaultBtProgressInfoFileTest.cc
  10397. * src/OptionHandlerFactory.cc
  10398. * src/option_processing.cc
  10399. * src/prefs.h
  10400. * src/version_usage.cc
  10401. * doc/aria2c.1.txt
  10402. * doc/aria2c.1
  10403. Fixed: duplicated result entry appears when exception is thrown in
  10404. RequestGroup::createInitiateConnectionCommand().
  10405. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10406. Add RequestGroup to _requestGroup after RequetGroup::
  10407. createInitiateConnectionCommand() succeeds.
  10408. Externalized message
  10409. * src/XML2SAXMetalinkProcessor.cc
  10410. * src/message.h
  10411. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. Forced download abort when received negative response from http/ftp
  10413. server.
  10414. * src/HttpResponseCommand.cc
  10415. * src/FtpNegotiationCommand.cc
  10416. * src/HttpResponse.cc
  10417. * src/FtpConnection.cc
  10418. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10420. the predecessor, Xml2MetalinkParser class.
  10421. I tested them against 94KB metalink file with 1234 chunk checksums.
  10422. The new one parsed it in 22msec, while it took 6000msec with old one.
  10423. * src/XML2SAXMetalinkProcessor.{h, cc}
  10424. * test/XML2SAXMetalinkProcessorTest.cc
  10425. * src/MetalinkParserController.{h, cc}
  10426. * test/MetalinkParserControllerTest.cc
  10427. * src/MetalinkParserState.h: Also added 16 subclasses.
  10428. * src/main.cc
  10429. * src/Metalink2RequestGroup.cc
  10430. * src/MetalinkHelper.cc
  10431. * src/MetalinkEntry.cc
  10432. * src/ChunkChecksum.h
  10433. Rewritten Base64 class for better performance.
  10434. * src/Base64.{h, cc}
  10435. * test/Base64Test.cc
  10436. * src/HttpRequest.cc
  10437. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Fixed the bug#1841757: aria2 will connect to server to only get
  10439. file size.
  10440. * src/StreamFileAllocationEntry.cc
  10441. * src/option_processing.cc
  10442. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10443. downloads.
  10444. * src/FtpNegotiationCommand.cc
  10445. Suppressed wrong message when finding PreDownloadHandler
  10446. * src/RequestGroup.cc
  10447. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Updated usage
  10449. * src/version_usage.cc
  10450. Updated man page
  10451. * doc/aria2c.1.txt
  10452. * doc/aria2c.1
  10453. Updated po files
  10454. * po/aria2c.pot
  10455. * po/*.po
  10456. * po/*.gmo
  10457. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Eliminated g++-4.2 warning
  10459. * src/DownloadHandlerConstants.{h, cc}
  10460. * src/Util.cc
  10461. * test/MetaFileUtilTest.cc
  10462. * test/PStringBuildVisitorTest.cc
  10463. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10464. * src/RequestGroup.cc
  10465. * src/BtCheckIntegrityEntry.cc
  10466. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Fixed a2io.h
  10468. * src/a2io.h
  10469. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Added direct I/O support. The current implementation uses O_DIRECT,
  10471. which is not posix standard and is tested on linux 2.6.21.
  10472. Currently only file allocation uses direct I/O.
  10473. * src/SingleFileAllocationIterator.{h, cc}
  10474. * test/SingleFileAllocationIteratorTest.cc
  10475. * src/MultiFileAllocationIterator.{h, cc}
  10476. * test/MultiFileAllocationIteratorTest.cc
  10477. * src/BinaryStream.h
  10478. * src/DiskWriter.h
  10479. * src/AbstractDiskWriter.{h, cc}
  10480. * src/ByteArrayDiskWriter.h
  10481. * src/DiskAdaptor.h
  10482. * src/AbstractSingleDiskAdaptor.{h, cc}
  10483. * src/MultiDiskAdaptor.{h, cc}
  10484. * src/FileAllocationEntry.cc
  10485. * src/Util.{h, cc}
  10486. * src/OptionHandlerFactory.cc
  10487. * src/prefs.h
  10488. * src/version_usage.cc
  10489. * src/option_processing.cc
  10490. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10491. handleException.
  10492. * src/MultiFileAllocationIterator.cc
  10493. Added EINTR handling
  10494. * src/SocketCore.cc
  10495. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. Updated usage
  10497. * src/version_usage.cc
  10498. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Applied Ross's patch for MinGW port.
  10500. * src/DownloadEngine.h
  10501. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Set Content-Type to SingleFileDownloadContext when http response is
  10503. received.
  10504. * src/HttpResponseCommand.cc
  10505. * src/HttpResponse.{h, cc}
  10506. * test/HttpResponseTest.cc
  10507. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Rewritten to add content-type support.
  10509. * src/DownloadHandler.{h, cc}
  10510. * src/BtPostDownloadHandler.{h, cc}
  10511. * test/BtPostDownloadHandlerTest.cc
  10512. * src/MetalinkPostDownloadHandler.{h, cc}
  10513. * test/MetalinkPostDownloadHandlerTest.cc
  10514. * src/PostDownloadHandler.{h, cc}
  10515. * src/DownloadHandlerConstants.{h, cc}
  10516. * src/RequestGroup.cc
  10517. * src/HttpResponseCommand.cc
  10518. * src/FtpNegotiationCommand.cc
  10519. * src/SingleFileDownloadContext.{h, cc}
  10520. * src/RequestGroup.h
  10521. * src/RequestGroupCriteria.h
  10522. * src/ContentTypeRequestGroupCriteria.h
  10523. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10524. If it is give, metalink/torrent file is not written to the disk, but
  10525. just is kept in memory. Parsing is occurred on memory.
  10526. * src/MetalinkHelper.{h, cc}
  10527. * src/MetalinkProcessor.h
  10528. * src/Xml2MetalinkProcessor.{h, cc}
  10529. * test/Xml2MetalinkProcessorTest.cc
  10530. * src/DownloadHandlerFactory.{h, cc}
  10531. * test/DownloadHandlerFactoryTest.cc
  10532. * src/PreDownloadHandler.{h, cc}
  10533. * src/OptionHandlerFactory.cc
  10534. * src/DefaultBtContext.{h, cc}
  10535. * test/DefaultBtContextTest.cc
  10536. * src/version_usage.cc
  10537. * src/Metalink2RequestGroup.{h, cc}
  10538. * src/RequestGroup.{h, cc}
  10539. * src/a2functional.h
  10540. * test/a2functionalTest.cc
  10541. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10542. * src/OptionHandlerImpl.h
  10543. * src/prefs.h
  10544. * src/Util.{h, cc}
  10545. * test/UtilTest.cc
  10546. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10547. memory usage.
  10548. * src/RequestGroupMan.{h, cc}
  10549. * src/DownloadEngine.cc
  10550. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10551. WeakHandle to SharedHandle because WeakHandle could be null.
  10552. * src/RequestGroup.{h, cc}
  10553. * src/DownloadEngineFactory.cc
  10554. * src/DownloadResult.h
  10555. Set totalLength after download finished
  10556. * src/UnknownLengthPieceStorage.{h, cc}
  10557. Keep torrent file specified in metalink in memory.
  10558. * src/Metalink2RequestGroup.cc
  10559. * src/BtDependency.cc
  10560. * src/TrueRequestGroupCriteria.h
  10561. Fixed the bug: seekg is used where seekp should be used.
  10562. * src/ByteArrayDiskWriter.cc
  10563. * test/ByteArraydiskWriterTest.cc
  10564. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Fixed syntax error
  10566. * test/SequenceTest.cc
  10567. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10569. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10570. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10571. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10572. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. Added the check to see whether ares_host_callback accepts timeouts
  10574. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10575. * src/NameResolver.{h, cc}
  10576. * m4/libcares.m4
  10577. * configure.ac: Set C++ for language choice.
  10578. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Fixed: compilation fails without c-ares/ares
  10580. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10581. Generate http/ftp commands only when download is incomplete.
  10582. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10583. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10584. Corrected typo. Examples are removed since they are available in man
  10585. page.
  10586. * src/version_usage.cc
  10587. Updated man page.
  10588. * doc/aria2c.1
  10589. * doc/aria2c.1.txt
  10590. * doc/makeman: Commented out sed command.
  10591. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Throw DlAbortEx when a remote file is not found.
  10593. * src/HttpResponse.cc
  10594. * src/FtpNegotiationCommand.cc
  10595. * src/message.h
  10596. Overwrite an existing file if --allow-overwrite=true is given.
  10597. * src/RequestGroup.cc
  10598. Removed unused functions
  10599. * src/AbstractCommand.h
  10600. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Removed 'extern' from 'extern typedef ...' in src/*.h
  10602. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Updated usage
  10604. * src/version_usage.cc
  10605. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Trim announce URL
  10607. * src/DefaultBtContext.cc
  10608. * test/ShaVisitorTest.cc
  10609. Trim argument s. Give trimed s to exception constructor.
  10610. * src/Util.cc (parseInt)(parseLLInt)
  10611. * test/UtilTest.cc
  10612. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Set precision back to 1.
  10614. * src/ConsoleStatCalc.cc (calculateStat)
  10615. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Replaced strtol with Util::parseInt
  10617. * src/ChunkedEncoding.cc
  10618. * src/HttpConnection.cc
  10619. * src/CookieBoxFactory.cc
  10620. * src/ParameterizedStringParser.cc
  10621. * src/Util.cc
  10622. * test/UtilTest.cc
  10623. * test/OptionHandlerTest.cc
  10624. * src/Request.cc
  10625. Throw exception when empty string is given. The message for exception
  10626. changed.
  10627. * src/Util.cc (parseInt)(parseLLInt)
  10628. * src/message.h
  10629. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10631. set to 1.
  10632. * src/ConsoleStatCalc.cc (calculateStat)
  10633. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Preallocate non-requested file which is adjacent forward to requested
  10635. file('requested' files means the files given in --select-file option)
  10636. if they share a same piece.
  10637. This fixes long pause in the file system which doesn't support sparse
  10638. files like FAT32 while downloading.
  10639. * src/MultiFileAllocationIterator.{h, cc}
  10640. * test/MultiFileAllocationIteratorTest.cc
  10641. * src/FileEntry.{h, cc}
  10642. Removed unused _option.
  10643. * src/MultiDiskAdaptor.h
  10644. * test/MultiDiskAdaptorTest.cc
  10645. * src/DefaultPieceStorage.cc
  10646. Set the default value of --seed-ratio to 1.0.
  10647. If 0.0 is given, then seeding continues regardless of share ratio.
  10648. * src/version_usage.cc
  10649. * src/option_processing.cc
  10650. * src/BtSetup.cc
  10651. * doc/aria2c.1.txt
  10652. * doc/aria2c.1
  10653. Fixed: Selective download is not working in BitTorrent
  10654. * src/RequestGroup.cc
  10655. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10656. * src/PieceStorage.h
  10657. * test/MockPieceStorage.h
  10658. * src/UnknownLengthPieceStorage.h
  10659. * src/DefaultPieceStorage.{h, cc}
  10660. * src/Metalink2RequestGroup.cc
  10661. * src/RequestGroup.cc
  10662. * src/Sequence.h
  10663. * test/SequenceTest.cc
  10664. * src/IntSequence.h
  10665. * src/message.h
  10666. * src/Util.{h, cc}
  10667. * test/UtilTest.cc
  10668. Added new function 'parse' to catch exception thrown by subclass's
  10669. parseArg
  10670. * src/OptionHandler.h
  10671. * src/OptionParser.cc
  10672. * src/NameMatchOptionHandler.h
  10673. * src/OptionHandlerImpl.h
  10674. * test/OptionHandlerTest.cc
  10675. Added IntegerRangeOptionHandler. Used for --listen-port and
  10676. --select-file. Now --listen-port accepts range of port.
  10677. * src/OptionHandlerFactory.cc
  10678. * src/version_usage.cc
  10679. * src/OptionHandlerImpl.h
  10680. * src/option_processing.cc
  10681. * src/BtSetup.cc
  10682. * src/PeerListenCommand.{h, cc}
  10683. * doc/aria2c.1.txt
  10684. * doc/aria2c.1
  10685. Implemented operator< for Exception class to provide easy way to print
  10686. exception stack trace.
  10687. * src/Exception.{h, cc}
  10688. * src/main.cc
  10689. * src/option_processing.cc
  10690. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10691. * src/version_usage.cc
  10692. (showVersion): Reworked.
  10693. (showUsage): Added examples.
  10694. Removed Hint for total length and file name.
  10695. * src/Metalink2RequestGroup.cc
  10696. * src/RequestGroup.{h, cc}
  10697. * src/HttpResponseCommand.cc
  10698. * src/FtpNegotiationCommand.cc
  10699. Now --follow-torrent and --follow-metalink option work properly.
  10700. * src/RequestGroup.cc
  10701. Updated man page
  10702. * doc/aria2c.1.txt
  10703. * doc/aria2c.1
  10704. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Removed.
  10706. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10707. Use Segment::operator==()
  10708. * src/HttpConnection.cc
  10709. * src/Segment.h
  10710. Updated usage
  10711. * src/version_usage.cc
  10712. Added EINTR treatment.
  10713. * src/SocketCore.cc
  10714. * src/AbstractDiskWriter.cc
  10715. Rewritten.
  10716. * src/Util.cc (rangedFileCopy)
  10717. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Fixed typo.
  10719. * src/version_usage.cc
  10720. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Implemented. Now -c option works fine.
  10722. * src/DefaultPieceStorage.cc (markPiecesDone)
  10723. * test/DefaultPieceStorageTest.cc
  10724. Removed.
  10725. * src/SegmentMan.{h, cc}
  10726. (markAllPiecesDone)
  10727. (markPieceDone)
  10728. Synchronized po files with
  10729. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10730. * src/fr.po
  10731. * src/ru.po
  10732. * src/de.po
  10733. * src/ja.po
  10734. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Added ifdef and some modifications to compile without BitTorrent,
  10736. Metalink, MessageDigest
  10737. support.
  10738. * src/PieceHashCheckIntegrityEntry.cc
  10739. * src/MetalinkEntry.h
  10740. * src/version_usage.cc
  10741. * src/main.cc
  10742. * src/DownloadEngine.{h, cc}
  10743. * src/Metalink2RequestGroup.cc
  10744. * src/Peer.cc
  10745. * src/RequestGroup.cc
  10746. * src/MetalinkHelper.cc
  10747. * test/DefaultPieceStorageTest.cc
  10748. * test/MetalinkPostDownloadHandlerTest.cc
  10749. * test/Metalink2RequestGroupTest.cc
  10750. Hide TOTAL SPD when all downloads complete.
  10751. * src/ConsoleStatCalc.cc
  10752. Log target system information.
  10753. * src/main.cc
  10754. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Now --metalink-location accepts a comma-deliminated list of locations.
  10756. * src/MetalinkEntry.{h, cc}
  10757. * test/MetalinkEntryTest.cc
  10758. * src/version_usage.cc
  10759. * src/Metalink2RequestGroup.cc
  10760. * src/Xml2MetalinkProcessor.cc
  10761. * test/Xml2MetalinkProcessorTest.cc
  10762. * doc/aria2c.1.txt
  10763. * doc/aria2c.1
  10764. * src/Util.cc (toUpper)(toLower): Rewritten.
  10765. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Added the ability to detect duplicate download entry which is about to
  10767. download the same file other RequestGroup is downloading.
  10768. * src/RequestGroup.cc
  10769. * src/HttpResponseCommand.cc
  10770. * src/FtpNegotiationCommand.cc
  10771. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Recalculates download progress when loading a control file,
  10773. if the piece length of DownloadContext is different from the one saved
  10774. in the control file. Currently in-flight pieces are ignored.
  10775. * src/DefaultBtProgressInfoFile.cc
  10776. * test/DefaultBtProgressInfoFileTest.cc
  10777. * src/Util.{h, cc}
  10778. * test/UtilTest.cc
  10779. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10780. Do not rotate tiers in announce-list.
  10781. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10782. AnnounceList::allTiersFailed() used instead to detect whether all
  10783. tiers are tried and failed.
  10784. * test/DefaultBtAnnounceTest.cc
  10785. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10786. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10787. * test/AnnounceListTest.cc
  10788. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10789. clause. Catch RecoverableException instead of DlRetryEx instead.
  10790. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Implemented checksum validation feature(1 checksum for each file)
  10792. The validation takes place after the download.
  10793. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10794. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10795. * src/CheckIntegrityCommand.cc: Changed log message.
  10796. * src/Metalink2RequestGroup.cc: Set checksum to
  10797. SingleFileDownloadContext.
  10798. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10799. PieceHashCheckIntegrity class.
  10800. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10801. PieceHashCheckIntegrity class.
  10802. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10803. * src/IteratableValidator.h: New class.
  10804. * src/message.h
  10805. * src/CheckIntegrityEntry.{h, cc}
  10806. * src/IteratableChunkChecksumValidator.{h, cc}
  10807. * src/SingleFileDownloadContext.h
  10808. * src/DownloadCommand.cc
  10809. --allow-overwrite=true is no longer needed to check file integrity
  10810. before download in BitTorrent download.
  10811. * src/RequestGroup.cc (getInitialCommand)
  10812. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10813. throws exception.
  10814. * src/RequestGroupMan.cc (getInitialCommands)
  10815. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10816. urlencode the given url inside Request::parseUrl(...)
  10817. * src/Request.{h, cc}
  10818. * src/Util.{h, cc}
  10819. * test/RequestTest.cc
  10820. Removed #!metalink3! notation support because it is deleted from
  10821. the metalink specification.
  10822. * src/Request.{h, cc}
  10823. * test/RequestTest.cc
  10824. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Don't connect server before checking file integrity at startup, if
  10826. filesize and output file path are known.
  10827. * src/AbstractCommand.cc
  10828. * src/StreamFileAllocationEntry.cc
  10829. * src/Metalink2RequestGroup.cc
  10830. * src/RequestGroup.{h, cc}
  10831. * src/HttpResponseCommand.cc
  10832. * src/FtpNegotiationCommand.cc
  10833. Added DownloadFailureException. If it is thrown, RequestGroup should
  10834. halt.
  10835. * src/AbstractCommand.cc
  10836. * src/DownloadFailureException.h
  10837. * src/RequestGroup.cc
  10838. Catch RecoverableException, instead of DlAbortEx.
  10839. * src/RequestGroupMan.cc
  10840. * src/FillRequestGroupCommand.cc
  10841. * src/MetaFileUtil.cc
  10842. * src/IteratableChunkChecksumValidator.cc
  10843. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10844. getGID())
  10845. * src/CheckIntegrityCommand.cc
  10846. * src/message.h
  10847. Print gid instead of idx.
  10848. * src/RequestGroupMan.cc
  10849. Removed exception throwers declaration.
  10850. * src/DirectDiskAdaptor.{h, cc}
  10851. * src/SocketCore.{h, cc}
  10852. * src/MultiDiskAdaptor.{h, cc}
  10853. * src/HttpConnection.{h, cc}
  10854. * src/HttpResponse.{h, cc}
  10855. * src/DiskAdaptor.{h, cc}
  10856. * src/CopyDiskAdaptor.{h, cc}
  10857. * src/MultiDiskAdaptor.{h, cc}
  10858. * src/HttpHeaderProcessor.{h, cc}
  10859. * src/AbstractSingleDiskAdaptor.{h, cc}
  10860. * src/Util.{h, cc}
  10861. * test/UtilTest.cc
  10862. * src/DefaultDiskWriter.{h, cc}
  10863. * src/FtpConnection.{h, cc}
  10864. * src/AbstractDiskWriter.{h, cc}
  10865. Removed duplicate code.
  10866. * src/StreamCheckIntegrityEntry.cc
  10867. Removed unnecessary include.
  10868. * src/DiskWriter.h
  10869. Included Exception.h
  10870. * src/option_processing.cc
  10871. Included 2 files and added doc
  10872. * src/TrackerWatcherCommand.cc
  10873. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10874. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Changed CheckIntegrityEntry interface so that it can define
  10876. the action when all the chunk checksums are valid.
  10877. * src/CheckIntegrityEntry.h
  10878. * src/StreamCheckIntegrityEntry.{h, cc}
  10879. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10880. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10881. to exit rather than doing seeding. So, it would be good to toggle this
  10882. behavior.
  10883. * src/CheckIntegrityCommand.cc
  10884. * src/AbstractCommand.cc
  10885. * src/RequestGroup.cc
  10886. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Reflect the download length of in-flight pieces.
  10888. It makes the download length readout more precise.
  10889. * src/DefaultPieceStorage.{h, cc}
  10890. * test/DefaultPieceStorageTest.cc
  10891. * src/a2functional.h
  10892. * test/a2functionalTest.cc
  10893. Lower CPU load when --max-download-limit is used.
  10894. There is up and down in speed indicator when enabling
  10895. http-pipelining but a download goes well. I think the problem is that
  10896. because http-pipelining is enabled, DownloadCommand is created for
  10897. each segment and in its constructor, PeerStat::downloadStart() is
  10898. called. In PeerStat::downloadStart(), speed calculation object is
  10899. reseted, which makes download speed zero.
  10900. * src/DownloadCommand.cc
  10901. Rewritten using accumulate.
  10902. * src/RequestGroupMan.cc (calculateStat)
  10903. Code clearnup.
  10904. * src/FtpNegotiationCommand.cc
  10905. * src/HttpResponseCommand.cc
  10906. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. Fixed: Can not resume: aria2 reports download already finished.
  10908. * src/AbstractCommand.{h, cc}
  10909. * src/HttpResponseCommand.cc
  10910. * src/FtpNegotiateCommand.cc
  10911. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Now a file is stored in the directory specified in .metalnk file
  10913. (file[@name]).
  10914. * src/Metalink2RequestGroup.cc
  10915. Create the directory structure when opening the file if it doesn't
  10916. exist.
  10917. * src/AbstractDiskWriter.cc
  10918. * src/Util.{h, cc}
  10919. * src/File.h
  10920. * test/UtilTest.cc
  10921. Removed file name comparison
  10922. * src/Metalink2RequestGroup.cc
  10923. * src/HttpResponseCommand.cc
  10924. Rewritten using Util::mkdirs()
  10925. * src/FileEntry.cc (setupDir)
  10926. * test/FileEntryTest.cc
  10927. Updated doc
  10928. * src/SingleFileDownloadContext.h
  10929. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Now SleepCommand dispatches nextCommand when halt is requested.
  10931. It avoids a possible long wait after hitting CTRL-C.
  10932. * src/SleepCommand.{h, cc}
  10933. * src/RequestGroupAware.{h, cc}
  10934. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10936. to open listen port, then remove the port number from the tracker
  10937. request.
  10938. * src/DefaultBtAnnounce.cc
  10939. * test/DefaultBtAnnounceTest.cc
  10940. * test/MockPieceStorage.h
  10941. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10942. them more testable.
  10943. * src/DefaultBtAnnounce.{h, cc}
  10944. * src/DefaultBtContext.{h, cc}
  10945. * src/Util.{h, cc}
  10946. * test/DefaultBtAnnounceTest.cc
  10947. * test/DefaultBtContextTest.cc
  10948. * test/UtilTest.cc
  10949. Added 'B' to upload bytes readout.
  10950. * src/ConsoleStatCalc.cc
  10951. Now the listen port for BitTorrent download is opened when it is
  10952. needed.
  10953. * src/DownloadEngineFactory.cc
  10954. * src/BtSetup.{h, cc}
  10955. * src/PeerListenCommand.{h, cc}
  10956. Now an exception thrown while parsing tracker response is now logged.
  10957. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10958. called, which means no retry is made in this case, assuming a tracker
  10959. has a problem.
  10960. * src/TrackerWatcherCommand.cc
  10961. Fixed: downloading a file whose length is unkown fails.
  10962. * src/DownloadCommand.cc
  10963. Simplified prepareForNextSegment()
  10964. * src/DownloadCommand.cc
  10965. Updated
  10966. * po/POTFILES.in
  10967. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10968. Re-implemented a file listing for Metalink, which was dropped while
  10969. http/ftp/torrent integration was being implemented.
  10970. * src/MetalinkHelper.{h, cc}: New class.
  10971. * test/MetalinkHelperTest.cc
  10972. * src/main.cc
  10973. * src/Metalink2RequestGroup.cc
  10974. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10975. Added the ability to display the detailed torrent file information.
  10976. Now -S option gives not only a file listing, but also total download
  10977. length, info hash, announce URI, piece length, the number of pieces,
  10978. and mode(single or multi-torrent).
  10979. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10980. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10981. KiB)
  10982. * test/UtilTest.cc
  10983. * src/main.cc
  10984. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Added ftp://USER:PASSWD@Servername automatic parsing.
  10986. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10987. _password. Recognize username and password in URI.
  10988. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10989. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10990. * src/RequestFactory.{h, cc}: Removed.
  10991. * src/AuthConfigFactory.{h, cc}: New class.
  10992. * src/FtpConnection.cc: Use AuthConfigFactory.
  10993. * src/HttpRequest.cc: Use AuthConfigFactory.
  10994. * test/HttpRequestTest.cc: Updated.
  10995. * test/RequestTest.cc: Updated.
  10996. * test/AuthConfigFactoryTest.cc: New class.
  10997. * test/RequestFactoryTest.cc: Removed.
  10998. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10999. Use RequestGroup::allDownloadFinished() to decide whether the control
  11000. file should be removed or saved.
  11001. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11002. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11003. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Use File::renameTo()
  11005. * src/DefaultBtProgressInfoFile.cc
  11006. Added --no-file-allocation-limit command-line option.
  11007. * src/version_usage.cc
  11008. * src/option_processing.cc
  11009. * src/OptionHandlerFactory.cc
  11010. * src/RequestGroup.{h, cc}
  11011. * src/BtCheckIntegrityEntry.cc
  11012. * src/StreamCheckIntegrityEntry.cc
  11013. * src/prefs.h
  11014. * doc/aria2c.1.txt
  11015. * doc/aria2c.1
  11016. Now prealloc is the default value for --file-allocation option.
  11017. * src/version_usage.cc
  11018. * src/option_processing.cc
  11019. * doc/aria2c.1.txt
  11020. * doc/aria2c.1
  11021. Don't URL-encode user-agent.
  11022. * src/HttpRequest.cc
  11023. Updated translations
  11024. * po/LINGUAS: Added nl for Dutch translation.
  11025. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11026. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11027. * po/POTFILES.in: Updated.
  11028. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Added the ability to recognize url-list in a torrent file.
  11030. The retrieved URLs are attached to the corresponding FileEntry.
  11031. * src/DefaultBtContext.{h, cc}
  11032. * src/FileEntry.{h, cc}
  11033. * test/DefaultBtContextTest.cc
  11034. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11036. after the download finishes.
  11037. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11039. the data smaller than block length.
  11040. A block length can be specified by constructor's argument.
  11041. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11042. Get a missing piece in the range of given FileEntry. This function is
  11043. not used in the program yet.
  11044. * src/Util.h: Added some macros.
  11045. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11046. Added HTTP/1.1 keep alive and pipelining support.
  11047. See --enable-http-keep-alive and --enable-http-pipelining option.
  11048. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11049. Segment.
  11050. * src/HttpDownloadCommand.{h, cc}
  11051. * src/OptionHandlerFactory.cc
  11052. * src/HttpConnection.{h, cc}
  11053. * src/version_usage.cc
  11054. * src/HttpInitiateConnectionCommand.cc
  11055. * src/FtpInitiateConnectionCommand.cc
  11056. * src/Segment.h
  11057. * src/HttpRequestCommand.{h, cc}
  11058. * src/option_processing.cc
  11059. * src/prefs.h
  11060. * src/HttpResponseCommand.cc
  11061. * src/SegmentMan.{h, cc}
  11062. * src/FtpNegotiateCommand.cc
  11063. * src/HttpProxyResponseCommand.cc
  11064. * src/Request.cc
  11065. * src/HttpRequest.cc
  11066. * src/DownloadCommand.cc
  11067. * test/HttpRequestTest.cc
  11068. * test/RequestTest.cc
  11069. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11071. finished.
  11072. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11074. catching it inside the method.
  11075. When no file entry is found in a metalink without querying user
  11076. preferences, throw the exception with the error message that suggests
  11077. metalink file is probably broken.
  11078. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11079. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11081. processed.
  11082. * src/RequestGroupMan.cc (removeStoppedGroup)
  11083. Added debug message.
  11084. * src/BtPostDownloadHandler.cc
  11085. * src/MetalinkPostDownloadHandler.cc
  11086. * src/PostDownloadHandler.{h, cc}
  11087. * src/RequestGroup.cc
  11088. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11090. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11092. stops and there are any unfinished or in-progress downloads.
  11093. Added the legend of "stat".
  11094. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Throw exception when chunck checksum verification fails.
  11096. * src/DownloadCommand.cc (validatePieceHash): New function.
  11097. * src/PiecedSegment.{h, cc} (clear): New function.
  11098. * src/GrowSegment.{h, cc} (clear): New function.
  11099. * src/Segment.h (clear): New function.
  11100. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11101. * test/SegmentTest.cc
  11102. * test/GrowSegmentTest.cc
  11103. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11104. Do not send referer when redirected.
  11105. * src/Request.cc (redirectUrl)
  11106. * test/RequestTest.cc
  11107. * test/HttpRequestTest.cc
  11108. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11109. Implemented BitTorrent/http/ftp integrated download.
  11110. I've rewritten lots of files and now some headers have forward
  11111. class declarations to reduce compile time.
  11112. The implementation is extremely alpha stage, I recommend to use this
  11113. for testing purpose only.
  11114. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11115. Fixed the compilation error on 64bit platform.
  11116. * test/HttpHeaderProcessorTest.cc
  11117. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. Merged Ross's patch that fixes compilation problem in MinGW
  11119. * test/DefaultBtProgressInfoFileTest.cc
  11120. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Updated fr.po by sebone
  11122. * po/fr.po
  11123. Updated man page.
  11124. * doc/aria2c.1.txt
  11125. * Release 0.11.3
  11126. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11128. failure in Metalink.
  11129. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Automatically save *.aria2 control file of http/ftp download in every
  11131. 60 seconds.
  11132. * src/AutoSaveCommand.{h, cc}: New class.
  11133. * src/TimeBasedCommand.{h, cc}: New class.
  11134. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11135. Disable parameterized URI support by default. Added -P option to
  11136. enable the feature.
  11137. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11138. * src/OptionHandlerFactory.cc
  11139. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11140. Updated Japanese translation.
  11141. * po/ja.po
  11142. Updated man page.
  11143. * doc/aria2c.1.txt
  11144. * Release 0.11.3-rc
  11145. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11147. it is successful, then renamed to *.aria2.
  11148. This prevents *.aria2 file from being truncated or corrupted when
  11149. file system becomes out of space.
  11150. * src/DefaultBtProgressInfoFile.cc (save)
  11151. * src/SegmentMan.cc (save)
  11152. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11153. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Reduced the fragmentation of bitfield in http/ftp download.
  11155. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11156. * test/BitfieldManTest.cc
  11157. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Added the ability to disable segmented download in .metalink.
  11159. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11160. 'url' tag.
  11161. * src/MetalinkEntry.{h, cc}
  11162. * src/RequestResource.{h, cc}
  11163. * src/MetalinkRequestInfo.cc
  11164. * src/Xml2MetalinkProcessor.cc
  11165. * test/Xml2MetalinkProcessorTest.cc
  11166. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. Added parameterized URI support.
  11168. * src/main.cc: -Z option added.
  11169. * src/OptionHandlerFactory.cc
  11170. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11171. * src/PStringDatum.h: New class.
  11172. * src/PStringSegment.{h,cc}: New class.
  11173. * src/PStringNumLoop.h: New class.
  11174. * src/PStringSelect.h: New class.
  11175. * src/NumberDecorator.h: New class.
  11176. * src/FixedWidthNumberDecorator.h: New class.
  11177. * src/AlphaNumberDecorator.h: New class.
  11178. * src/PStringVisitor.h: New class.
  11179. * src/PStringBuildVisitor.{h,cc}: New class.
  11180. * src/ParameterizedStringParser.{h,cc}: New class.
  11181. * src/Util.{h,cc}
  11182. (isNumber): New function.
  11183. (isLowercase): New function.
  11184. (isUppercase): New function.
  11185. (alphaToNum): New function.
  11186. * test/ParameterizedStringParserTest.cc: New class.
  11187. * test/AlphaNumberDecoratorTest.cc: New class.
  11188. * test/PStringBuildVisitorTest.cc: New class.
  11189. * test/UtilTest.cc
  11190. (testIsNumber): New function.
  11191. (testIsLowercase): New function.
  11192. (testIsUppercase): New function.
  11193. (testAlphaToNum): New function.
  11194. Added '\n' after the error message
  11195. * src/RequestInfo.h (printDownloadAbortMessage)
  11196. Added auto file renaming feature in http(s)/ftp download.
  11197. * src/main.cc: Added --auto-file-renaming command-line option.
  11198. * src/OptionHandlerFactory.cc
  11199. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11200. * src/RequestGroup.{h, cc}
  11201. (shouldCancelDownloadForSafety): Rewritten
  11202. (tryAutoFileRenaming): New function.
  11203. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11204. * src/HttpResponseCommand.cc
  11205. (executeInternal): Removed the call to RequestGroupMan::
  11206. isSameFileBeingDownloaded()
  11207. * src/FtpNegotiateCommand.cc
  11208. (recvSize): Removed the call to RequestGroupMan::
  11209. isSameFileBeingDownloaded()
  11210. * test/RequestGroupTest.cc: New class.
  11211. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11213. IO.
  11214. * src/DefaultBtProgressInfoFile.cc
  11215. * src/MetaFileUtil.cc
  11216. * src/SimpleLogger.cc
  11217. * src/SegmentMan.cc
  11218. * src/Util.cc
  11219. * src/Platform.cc
  11220. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11222. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11223. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11224. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11225. Fixed the bug that prevents file allocation is not done when
  11226. dowloading multi-torrent file.
  11227. * src/AbstractDiskWriter.cc (openFile)
  11228. Increase the maximum number of -j option from 15 to 45.
  11229. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11230. Added fr.po, thanks to Charles Landemaine.
  11231. * po/fr.po
  11232. * po/LINGUAS
  11233. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11234. gcc 3.4.4 support:
  11235. * src/DefaultBtContext.cc: int32_t -> int
  11236. * src/main.cc: int -> int32_t, int32_t -> int
  11237. * src/messageDigest.h: uint32_t -> unsigned int
  11238. * src/NameResolver.h: int32_t -> int
  11239. * src/PeerConnection.cc: int -> int32_t
  11240. * src/SpeedCalc.cc: int32_t -> int
  11241. * src/TrackerUpdateCommand.h: int -> int32_t
  11242. * src/Util.cc: int32_t -> int
  11243. * src/Util.h: int32_t -> int
  11244. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11245. * test/AnnounceListTest.cc: int -> int32_t
  11246. * test/ChunkedEncodingTest.cc: int -> int32_t
  11247. * test/DataTest.cc: int -> int32_t
  11248. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11249. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11250. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11251. * test/FeatureConfigTest.cc: int -> int32_t
  11252. * test/MetalinkEntryTest.cc: int -> int32_t
  11253. * test/MockBtRequestFactory.h: int -> int32_t
  11254. * test/MockPieceStorage.h: int -> int32_t
  11255. * test/OptionTest.cc: int -> int32_t
  11256. * test/RequestTest.cc: int -> int32_t
  11257. * test/SegmentManTest.cc: int -> int32_t
  11258. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11259. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11260. Move sleep functions to Util class:
  11261. * src/Util.cc
  11262. (sleep): New function.
  11263. (usleep): New function.
  11264. * src/DownloadCommand.cc: sleep -> Util::sleep
  11265. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11266. MinGW build enhancements. The following files are added:
  11267. * src/timegm.{c,h}
  11268. Changes to support the above new files:
  11269. * configure.ac
  11270. * src/Makefile.am
  11271. * src/a2time.h
  11272. * src/Util.cc:
  11273. * src/strptime.c: Added support for %Z option.
  11274. Fixed MinGW non-blocking bug.
  11275. * src/SocketCore.cc
  11276. * src/HttpRequestCommand.cc
  11277. Miscellenous build fixes/enhancements.
  11278. * configure.ac: Added summary report.
  11279. * src/Platform.h: Tweaked #include's.
  11280. * src/a2netcompat.h: Tweaked #include's.
  11281. * src/strptime.h: Tweaked #include's.
  11282. * src/gai_strerror.c: Tweaked #include's.
  11283. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11284. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11285. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11286. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11287. Increased the initial connection size in BitTorrent download to 40.
  11288. * src/BtRuntime.h
  11289. Added the usage message of --peer-id-prefix option.
  11290. * src/main.cc
  11291. * Release 0.11.2
  11292. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. MessageDigestHelper is introduced in order to simplify the use
  11294. of message digest. Removed repeated code.
  11295. The message digest algorithm is now specified by string, like "sha1",
  11296. "md5".
  11297. * src/messageDigest.{h, cc}
  11298. * src/MessageDigestHelper.{h, cc}: New class.
  11299. * src/DefaultPieceStorage.cc
  11300. * src/DefaultBtContext.{h, cc}
  11301. (computeFastSet): New function.
  11302. (setInfoHash): Added for unit testing.
  11303. (setNumPieces): Added for unit testing.
  11304. * src/DefaultBtInteractive.cc
  11305. * src/BtPieceMessage.cc
  11306. * src/Peer.cc
  11307. * src/Checksum.h
  11308. * src/message.h
  11309. * src/IteratableChecksumValidator.h
  11310. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11311. inside it.
  11312. * src/SegmentMan.{h, cc}
  11313. (checkIntegrity): Removed.
  11314. * src/IteratableChunkChecksumValidator.{h, cc}
  11315. * src/Util.h
  11316. (sha1Sum): Removed.
  11317. (simpleMessageDigest): Removed.
  11318. (fileChecksum): Removed.
  11319. (computeFastSet): Removed.
  11320. * src/ShaVisitor.cc
  11321. * src/ChunkChecksum.h
  11322. * src/DownloadCommand.cc
  11323. Removed messageDigest virtual functions.
  11324. * src/MultiDiskAdaptor.{h, cc}
  11325. * src/DiskAdaptor.h
  11326. * src/ByteArrayDiskWriter.h
  11327. * src/DiskWriter.h
  11328. * src/DiskAdaptorWriter.h
  11329. * src/AbstractSingleDiskAdaptor.{h, cc}
  11330. * src/AbstractDiskWriter.{h, cc}
  11331. Fixed comilation error when message digest is disabled.
  11332. * src/MetalinkEntry.{h, cc}
  11333. * src/MetalinkRequestInfo.cc
  11334. Removed srandom and random.
  11335. * src/SimpleRandomizer.h
  11336. Added size() virtual function to DiskAdaptor
  11337. * src/MultiDiskAdaptor.h
  11338. Fixed the bug that causes that files are not opened correctly in
  11339. multi-file torrent.
  11340. * src/TorrentRequestInfo.cc
  11341. * src/MultiDiskAdaptor.cc
  11342. Added SHA256 support
  11343. * src/messageDigest.cc
  11344. * src/Xml2MetalinkProcessor.cc
  11345. Show supported message digest algorithms
  11346. * src/main.cc
  11347. Updated contact info.
  11348. * src/main.cc
  11349. Applied Ross's patch
  11350. * src/a2netcompat.h
  11351. * src/main.cc
  11352. Fixed the bug that prevents a remote metalink from not being processed
  11353. even if '-o foo.metalink' is specified.
  11354. * src/MetalinkRequestInfo.cc
  11355. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. Merged Dan's patch:
  11357. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11358. Use va_copy to avoid core dump on amd64:
  11359. * src/SimpleLogger.cc
  11360. Updated contact info.
  11361. * src/main.cc
  11362. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11363. digest is not available.
  11364. * src/MetalinkEntry.h
  11365. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Make a2netcompat.h include a2io.h to fix compilation error:
  11367. * src/a2netcompat.h
  11368. * src/SocketCore.cc: Removed include of a2io.h
  11369. * src/Util.cc: Removed include of a2io.h
  11370. Gather time related functions to a2time.h:
  11371. * src/a2time.h: New file.
  11372. * src/DefaultPeerStorage.cc
  11373. * src/SimpleLogger.cc
  11374. * src/Util.{h, cc}
  11375. * src/SimpleRandomizer.h
  11376. * src/TimeA2.{h,cc}
  11377. * src/DownloadCommand.cc
  11378. * src/main.cc
  11379. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11380. a2netcompat.h:
  11381. * src/NameResolver.cc
  11382. Fixed compilation error without openssl:
  11383. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11384. Added default block to suppress compiler warnings:
  11385. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11386. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11387. MinGW build enhancements. The following files are added:
  11388. * src/gai_strerror.{c,h}
  11389. * src/gettimeofday.{c,h}
  11390. Changes to support the above new files:
  11391. * configure.ac
  11392. * src/Makefile.am
  11393. * src/a2netcompat.h
  11394. * src/TimeA2.cc
  11395. * src/DefaultPeerStorage.cc
  11396. * src/NameResolver.cc: removed mingw_strerror() function.
  11397. * src/SocketCore.cc: removed mingw_strerror() function.
  11398. Miscellaneous MinGW build fixes.
  11399. * src/a2io.h: Use _lseeki64() instead of lseek()
  11400. * src/common.h
  11401. * src/DefaultFileAllocator.cc
  11402. * src/GlowFileAllocator.cc
  11403. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11404. * src/NameResolver.cc
  11405. (callback): Changed int32_t to int.
  11406. (resolve): Changed int32_t to int.
  11407. * src/Platform.cc
  11408. * src/Platform.h
  11409. * test/MultiDiskWriterTest.cc
  11410. * test/PeerMessageUtilTest.cc
  11411. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11412. Other enhancements and fixes.
  11413. * src/HttpRequestCommand.cc
  11414. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11415. * src/SocketCore.cc:
  11416. (error): New function to abstract errno/WSAGetLastError().
  11417. (errorMsg): New function to abstract errno/WSAGetLastError().
  11418. (initiateSecureConnection): Added more detailed error reporting.
  11419. * src/SocketCore.h: Added private variable blocking, to allow
  11420. proper handling of OpenSSL psuedo-errors.
  11421. * src/message.h
  11422. (EX_SSL_INIT_FAILURE)
  11423. (EX_SSL_IO_ERROR)
  11424. (EX_SSL_PROTOCOL_ERROR)
  11425. (EX_SSL_UNKNOWN_ERROR)
  11426. (EX_SSL_CONNECT_ERROR)
  11427. (EX_SOCKET_BLOCKING)
  11428. (EX_SOCKET_NONBLOCKING)
  11429. (EX_SOCKET_UNKNOWN_ERROR)
  11430. * src/Util.cc
  11431. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11432. reserved name.
  11433. (httpGMT): Fixed typo.
  11434. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Merged Ross's win32 patch(manually)
  11436. In the course of merging, following files are added.
  11437. * src/strptime.{h,c}
  11438. * src/libgen.{h,c}
  11439. * src/inet_aton.{h,c}
  11440. * src/Platform.{h,cc}
  11441. * src/localtime_r.{h,c}
  11442. * src/getaddrinfo.{h,c}
  11443. I've gethered network related things, and put them to following file:
  11444. * src/a2netcompat.h
  11445. Also io related things are put to following file:
  11446. * src/a2io.h
  11447. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11448. * src/message.h
  11449. (MSG_ALLOCATION_COMPLETED)
  11450. (EX_TOO_LARGE_FILE)
  11451. (EX_SIZE_MISMATCH)
  11452. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11453. (EX_INVALID_CHUNK_CHECKSUM)
  11454. (EX_INVALID_RANGE_HEADER)
  11455. * src/FileAllocationCommand.cc
  11456. * src/HttpResponse.cc
  11457. * src/RequestGroup.cc
  11458. * src/MultiDiskAdaptor.cc
  11459. * src/OptionHandlerImpl.h
  11460. * src/HttpResponseCommand.cc
  11461. * src/FtpNegotiateCommand.cc
  11462. * src/IteratableChecksumValidator.cc
  11463. * src/SegmentMan.cc
  11464. * src/ChunkChecksumValidator.cc
  11465. Added Randomizer::getRandomNumber(long int)
  11466. * src/Randomizer.h (getRandomNumber)
  11467. * src/SimpleRandomizer.h (getRandomNumber)
  11468. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11469. * src/Util.cc (randomAlpha): Use this new function.
  11470. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Converted int's to in32_t. long long int's are also converted to
  11472. int64_t
  11473. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11474. Fixed the bug that prevents cookies from being sent to the server
  11475. if the domain of cookie is FQDN and starts with ".".
  11476. * src/Cookie.cc (match)
  11477. To add the ability to change peer id.
  11478. * src/DefaultBtContext.h
  11479. (_peerIdPrefix): New variable
  11480. (setPeerIdPrefix): New function.
  11481. * src/torrentRequestInfo.cc
  11482. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11483. DefaultBtContext.
  11484. * src/main.cc (main): Added peer-id-prefix command-line option.
  11485. The usage message is not added yet.
  11486. * src/DefaultBtContext.cc
  11487. (generatePeerId): Use _peerIdPrefix.
  11488. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11489. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Fixed the bug that prevents filename in content-disposition from
  11491. being retrieved when filename is not quoted.
  11492. * src/Util.cc (getContentDispositionFilename)
  11493. Fixed the bug that causes infinate loop and memory leak when file open
  11494. operation failed.
  11495. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11496. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Fixed the bug that causes segfault when all URIs specified are
  11498. unsupported.
  11499. * src/RequestGroupMan.cc (getInitialCommands)
  11500. Check if RequestGroup::createNextCommand() returns empty list of
  11501. commands.
  11502. * src/RequestGroup.cc (createNextCommand)
  11503. Change log level from info to error so that users can notice that
  11504. an error occurred.
  11505. Fixed the bug that causes segfault when a zero-sized file is
  11506. downloaded.
  11507. * src/BitfieldMan.cc (isAllBitSet)
  11508. Return true if bitfieldLength is 0.
  11509. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. * src/main.cc
  11511. (showUsage): Added 3 usage examples for metalink download.
  11512. Replace MetalinkChunkChecksum with ChunkChecksum.
  11513. * src/MetalinkChunkChecksum.h: Removed.
  11514. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11515. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11516. * src/Xml2MetalinkProcessor.cc
  11517. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11518. * src/MetalinkRequestInfo.cc (execute)
  11519. * Release 0.11.1
  11520. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11521. Reads URIs from stdin when "-i -" is specified.
  11522. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11523. * src/UriListParser.h, src/UriListParser.cc: New class.
  11524. * src/StreamUriListParser.h: New class.
  11525. * src/FileUriListParser.h: New class.
  11526. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11527. instead of UriFileListParser.
  11528. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Made console readout more readable.
  11530. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11531. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Fix the bug that causes -s option not to work.
  11533. * src/main.cc (main)
  11534. * src/a2algo.h: New file.
  11535. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Create directory structure specified in metalink file.
  11537. * src/RequestGroup.h, src/RequestGroup.cc
  11538. (initAndOpenFile): Create a directory to store files if it does not
  11539. exist.
  11540. (getDir): New function.
  11541. Added ETA and download speed for an individual file to readout.
  11542. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11543. * src/RequestGroup.h
  11544. (calculateDownloadSpeed): New function.
  11545. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11546. Made -S option work with metalink file and provided selective download
  11547. to metalink.
  11548. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11549. (filename): Removed.
  11550. (file): New variable.
  11551. (size): Removed.
  11552. (operator=): Updated.
  11553. (getPath): New function.
  11554. (getLength): New function.
  11555. (toFileEntry): New function.
  11556. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11557. (execute): Use toStream.
  11558. (showFileEntry): Removed.
  11559. * src/MetalinkRequestInfo.h
  11560. (targetFiles): New variable.
  11561. (setTargetFiles): New variable.
  11562. * src/MetalinkRequestInfo.cc
  11563. (execute): Added the ability to print file information included in
  11564. a metalink file.
  11565. Added selective download mode to metalink.
  11566. * src/main.cc
  11567. (showUsage): Updated to denote that -S and --select-file options are
  11568. applicable to metalink.
  11569. * src/FileEntry.h
  11570. (operator=): New function.
  11571. (getBasename): New function.
  11572. (getDirname): New function.
  11573. * src/Util.h, src/Util.cc
  11574. (toStream): New function.
  11575. * src/Xml2MetalinkProcessor.cc: Updated.
  11576. Made aria2 work with metalink with directory structure.
  11577. * src/File.h, src/File.cc
  11578. (getBasename): New function.
  11579. (getDirname): New function.
  11580. * src/RequestGroup.h, src/RequestGroup.cc
  11581. (_topDir): New variable.
  11582. (setTopDir): New function.
  11583. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11584. Rewrote HTTP header parsing with stringstream.
  11585. * src/HttpConnection.h, src/HttpConnection.cc
  11586. (HttpRequestEntry): New class.
  11587. (headerBuf): Removed.
  11588. (headerBufLength): Removed.
  11589. (outstandingHttpRequests): Now its element type is
  11590. HttpRequestEntryHandle.
  11591. (findEndOfHeader): Removed.
  11592. (receiveResponse): Rewritten.
  11593. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11594. Updated doc for -j option to notice that it should be used with -i
  11595. option.
  11596. * src/main.cc (showUsage)
  11597. Removed unused classes.
  11598. * src/RequestInfo.h
  11599. (FileInfo): Removed.
  11600. (checksum): Removed.
  11601. (fileInfo): Removed.
  11602. (setChecksum): Removed.
  11603. (getChecksum): Removed.
  11604. (getFileInfo): Removed.
  11605. Use ISO units.
  11606. * src/ConsoleDownloadEngine.cc
  11607. * src/TorrentConsoleDownloadEngine.cc
  11608. * src/Util.cc (abbrevSize)
  11609. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11610. Added the default listening ports to the help message.
  11611. * src/main.cc (showUsage)
  11612. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11613. Reduce the number of calls to gettimeofday to lower CPU load.
  11614. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11615. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11616. * src/Peer.h (calculateUploadSpeed): New function.
  11617. (calculateDownloadSpeed): New function.
  11618. * src/DefaultPeerStorage.cc
  11619. (CalculateStat): Added _now variable.
  11620. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11621. and Peer::calculateUploadSpeed(const struct timeval&)
  11622. Drop connection if no request or piece message is exchanged in
  11623. a certain interval.
  11624. * src/DefaultBtInteractive.h
  11625. (btRuntime): New variable.
  11626. (inactiveCheckPoint): New variable.
  11627. (checkActiveInteraction): New function.
  11628. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11629. request or piece message is received.
  11630. (checkActiveInteraction): New function.
  11631. (doInteractionProcessing): Call checkActiveInteraction.
  11632. Fixed the bug that causes remote Metalink and Torrent files are not
  11633. processed.
  11634. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11635. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11636. Changed format of log file.
  11637. * src/SimpleLogger.cc
  11638. * Release 0.11.0
  11639. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. * src/AbstractCommand.cc
  11641. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11642. MSG_MAX_TRY from error to info.
  11643. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11644. * src/message.h
  11645. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11646. (MSG_DOWNLOAD_ABORTED): Added %s.
  11647. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11648. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11649. * src/PeerAbstractCommand.cc
  11650. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11651. * src/Request.h
  11652. (cookieBox): Made ShardHandle.
  11653. * src/RequestGroup.h, src/RequestGroup.cc
  11654. (createNextCommandWithAdj): New function.
  11655. * src/FileAllocationCommand.cc
  11656. (executeInternal): Use createNextCommandWithAdj().
  11657. * src/CheckIntegrityCommand.cc
  11658. (executeInternal): Use createNextCommandWithAdj().
  11659. Added --load-cookies command-option.
  11660. * src/OptionHandlerFactory.cc
  11661. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11662. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11663. Now aria2 can handle cookie's expiration date.
  11664. * src/Cookie.h (expires): Changed its type to time_t.
  11665. * src/main.cc: Added --load-cookies command-line option.
  11666. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11667. * src/Util.h, src/Util.cc (httpGMT): New function.
  11668. * src/Request.cc (Request): Initialize cookieBox using
  11669. CookieBoxFactory.
  11670. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11671. * src/CookieParser.h, src/CookieParser.cc: New class.
  11672. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11673. * src/HttpResponseCommand.cc
  11674. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11675. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11676. download.
  11677. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Added -j command-line option.
  11679. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11680. * src/main.cc
  11681. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11682. Rewritten using stringstream.
  11683. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11684. Rewritten using stringstream.
  11685. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11686. Make download size shown in MB, KB.
  11687. * src/ConsoleDownloadEngine.h (sendStatistics)
  11688. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11689. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11690. Accept incoming connections if download rate is low.
  11691. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11692. (_lowestSpeedLimit): New variable.
  11693. (setLowestSpeedLimit): New function.
  11694. (execute): Accept incoming connections if download rate is low.
  11695. MAX_PEERS is ignored in this case.
  11696. Disable PREF_OUT in multiple concurrent download:
  11697. * src/RequestGroup.h, src/RequestGroup.cc
  11698. (setUserDefinedFilename): New function.
  11699. * src/DownloadEngineFactory.cc
  11700. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11701. concurrent download.
  11702. * src/DefaultSegmentManFactory.cc
  11703. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11704. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11705. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11706. Added its overloaded method.
  11707. * src/RequestGroup.h
  11708. (_numConcurrentCommand): New variable.
  11709. (setNumConcurrentCommand): New function.
  11710. * src/RequestGroup.cc
  11711. Abort download if same file is being downloaded concurrently.
  11712. * src/RequestGroup.h, src/RequestGroupMan.cc
  11713. (isSameFileBeingDownloaded): New function.
  11714. * src/HttpResponseCommand.cc (executeInternal)
  11715. * src/FtpNegotiateCommand.cc (recvSize)
  11716. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11717. * main.cc: Added help message for -i option.
  11718. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11720. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11721. * src/MetalinkEntry.h
  11722. (checksum): Changed to ChecksumHandle
  11723. * src/MetalinkRequestInfo.cc
  11724. (checksum): Changed to ChecksumHandle
  11725. * src/File.cc
  11726. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11727. * src/common.h
  11728. (DIR_OPEN_MODE): New definition
  11729. * src/RequestGroup.cc
  11730. (prepareForNextAction): Added an argument.
  11731. * src/message.h
  11732. (MSG_GOOD_CHECKSUM): New definition
  11733. (MSG_BAD_CHECKSUM): New definition
  11734. * src/HttpResponseCommand.cc
  11735. (handleDefaultEncoding): Continue download sequence in new
  11736. non-segmented download.
  11737. * src/FileAllocationEntry.h
  11738. (_nextDownloadCommand): New variable.
  11739. * src/DownloadCommand.cc
  11740. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11741. available.
  11742. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11743. * src/IteratableChecksumValidator.h,
  11744. src/IteratableChecksumValidator.cc: New class.
  11745. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11746. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Change file mode to 666:
  11748. * src/common.h (OPEN_MODE): New definition.
  11749. * src/File.cc
  11750. * src/Util.cc
  11751. * src/Directry.cc
  11752. * src/AbstractDiskWriter.cc
  11753. Change the level of log message "download aborted" to debug:
  11754. * src/PeerAbstractCommand.cc (execute)
  11755. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11756. * src/TrackerWatcherCommand.cc
  11757. (createCommand): Sleep some seconds after request failed.
  11758. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11759. then abort tracker request.
  11760. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11761. * Added the simultaneous download feature.
  11762. * src/main.cc: Print "Exception caught: " when exception is caught.
  11763. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11764. * src/ActivePeerConnectionCommand.cc
  11765. * src/PeerInteractionCommand.cc
  11766. * src/BtRuntime.h
  11767. (cuidCounter): Removed.
  11768. (getNewCuid): Removed.
  11769. * src/DownloadEngineFactory.cc
  11770. * src/PeerListenCommand.cc
  11771. * src/TrackerUpdateCommand.cc
  11772. * src/PeerInitiateConnectionCommand.cc
  11773. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. * src/PeerAbstractCommand.cc
  11775. (onAbort): Call PeerStorage::returnPeer()
  11776. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11777. (incomingPeers): New variable.
  11778. (addIncomingPeer): New function.
  11779. (returnPeer): New function.
  11780. (onErasingPeer): New function.
  11781. (addPeer): push_back -> push_front
  11782. (getActivePeers): Rewritten.
  11783. (calculateStat): Rewritten.
  11784. * src/PeerStorage.h
  11785. (TransferStat::copy): New function.
  11786. (TransferStat::TransferStat): New function.
  11787. (TransferStat::operator=): New function.
  11788. (addIncomingPeer): New function.
  11789. (returnPeer): New function.
  11790. * src/PeerListenCommand.cc
  11791. (execute): Use PeerStorage::addIncomingPeer() instead of
  11792. Peer::addPeer().
  11793. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. Connect to a peer actively when download speed is lower than specified
  11795. speed in torrent download:
  11796. * src/ActivePeerConnectionCommand.h: New class.
  11797. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11798. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11799. * src/main.cc: Fixed the bug that prevents download if .netrc
  11800. doesn't exist.
  11801. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11802. To cache resolved hostname:
  11803. * src/AbstractCommand.h, src/AbstractCommand.cc
  11804. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11805. Added dns cache.
  11806. * src/FtpInitiateConnectionCommand.cc
  11807. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11808. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11809. NameResolver working without ares.
  11810. * src/TorrentRequestInfo.cc
  11811. (execute): Don't cache dns in torrent download.
  11812. * src/HttpInitiateConnectionCommand.cc
  11813. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11814. * src/DNSCache.h: New class.
  11815. * src/UrlRequestInfo.cc
  11816. (execute): Use dns cache.
  11817. In http request, suppress port number in http request header if port
  11818. is 80 or 443:
  11819. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11820. request header if port is 80 or 443.
  11821. (createProxyRequest): Allways send port number.
  11822. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. To add the command-line option which disables netrc support:
  11824. * src/OptionHandlerFactory.cc
  11825. (createOptionHandlers): Added PREF_NO_NETRC.
  11826. * src/main.cc: Added -n option.
  11827. * src/prefs.h (PREF_NO_NETRC): New definition.
  11828. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11829. V_TRUE.
  11830. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11831. is V_FALSE. This may get configurable in the future release.
  11832. To clear peer's error status by time basis:
  11833. * src/PeerAbstractCommand.cc
  11834. (onAbort): Call Peer::startBadCondition().
  11835. * src/Peer.h, src/Peer.cc
  11836. (error): Removed.
  11837. (_badConditionStartTime): New variable.
  11838. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11839. (startBadCondition): New function.
  11840. (isGood): New function.
  11841. * src/DefaultPeerStorage.cc
  11842. (addPeer): Use Peer::isGood().
  11843. (FindFinePeer): Use Peer::isGood().
  11844. Always include port number in http request header:
  11845. * src/HttpRequest.cc (getHostText): Always include port number in
  11846. http request header.
  11847. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11848. To the ability to read options from a config file:
  11849. * src/main.cc: Command-line parameter validation is delegated to
  11850. OptionHandler class.
  11851. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11852. * src/Option.h, src/Option.cc (clear): New function.
  11853. * src/OptionParser.h, src/OptionParser.cc: New class.
  11854. * src/OptionHandler.h: New class.
  11855. * src/NameMatchOptionHandler.h: New class.
  11856. * src/OptionHandlerImpl.h: New classes.
  11857. * src/prefs.h: '_' -> '-'
  11858. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11859. (FTP_PASV): New definition.
  11860. * src/Util.h, src/Util.cc (getRealSize): New function.
  11861. To disable netrc support if .netrc file does not have correct
  11862. permissions:
  11863. * src/File.h, src/File.cc (mode): New function.
  11864. To prevent confidential information to be logged:
  11865. * src/HttpConnection.h, src/HttpConnection.cc
  11866. (eraseConfidentialInfo): New function.
  11867. (sendRequest): Call eraseConfidentialInfo().
  11868. (sendProxyRequest): Call eraseConfidentialInfo().
  11869. * src/main.cc: Validate permissions of .netrc file.
  11870. To add --user-agent command-line option:
  11871. * src/main.cc: Added new command line option: --user-agent
  11872. * src/prefs.h (PREF_USER_AGENT): New definition.
  11873. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11874. parameter to HttpRequest object.
  11875. * src/AbstractProxyRequestCommand.cc
  11876. (executeInternal): Set user-agent option parameter to HttpRequest
  11877. object.
  11878. Marged the patches from Dan Fandrich.
  11879. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. Use filename and size from Metalink file instead of sending HEAD
  11881. request:
  11882. * src/UrlRequestInfo.h
  11883. (_filename): New variable.
  11884. (_totalLength): New variable.
  11885. (setTotalLength): New variable.
  11886. (setFilename): New variable.
  11887. * src/MetalinkRequestInfo.cc
  11888. (execute): Set filename and size to UrlRequestInfo
  11889. * src/UrlRequestInfo.cc
  11890. (execute): Use filename and size from Metalink instead of seding
  11891. HEAD request to servers.
  11892. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. To add the ability to resume downloading a partially downloaded file
  11894. which is downloaded from the beginning:
  11895. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11896. takes this role.
  11897. * src/main.cc: Added -c option.
  11898. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11899. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11900. * src/prefs.h (PREF_CONTINUE): New definition.
  11901. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11902. * src/DefaultDiskWriter.cc
  11903. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11904. * src/AbstractDiskWriter.h
  11905. (glowFileAllocator): New variable.
  11906. * src/AbstractDiskWriter.cc
  11907. (openExistingFile): Now preallocate file space from the end of the
  11908. existing file if totalLength argument is specified and grater than 0.
  11909. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11910. to download exists in local, continue the download of the file.
  11911. --allow-overwrite=true is assumed in this context.
  11912. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11913. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11914. Throw exception if --check-integrity=true is specified but chunk
  11915. checksums are not provided:
  11916. * src/UrlRequestInfo.cc
  11917. Do not print URLs to stdout:
  11918. * src/UrlRequestInfo.cc
  11919. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. * src/Request.h: Use AuthResolver to get authentication information.
  11921. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11922. set to RequestFactory object.
  11923. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11924. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11925. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11926. create Request object.
  11927. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11928. To integrate Netrc into exsiting classes:
  11929. * src/Request.h
  11930. (_userDefinedAuthConfig): New variable.
  11931. (findNetrcAuthenticator): New function.
  11932. (segment): Removed.
  11933. (setUserDefinedAuthConfig): New function.
  11934. (resolveHttpAuthConfigItem): New function.
  11935. (resolveFtpAuthConfigItem): New function.
  11936. (resolveHttpProxyAuthConfigItem): New function.
  11937. * src/HttpRequest.h
  11938. (authConfig): Removed.
  11939. (proxyAuthConfig): Removed.
  11940. (setAuthConfig): Removed.
  11941. (setProxyAuthConfig): Removed.
  11942. * src/UrlRequest.h
  11943. (getHeadResult): Added a parameter: authConfigHandle
  11944. * src/common.h
  11945. (SingletonHolder.h): New include.
  11946. * src/main.cc
  11947. (Netrc.h): New include.
  11948. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11949. Added initial value of PREF_NETRC_PATH.
  11950. Added the initialization of netrc.
  11951. * src/AuthConfig.h: New class.
  11952. * src/prefs.h
  11953. (PREF_NETRC_PATH): New definition.
  11954. * src/HttpAuthConfig.h: Removed.
  11955. * src/Netrc.cc
  11956. (getRequiredNextToken): New function.
  11957. (skipMacdef): New function.
  11958. (parse): Rewritten.
  11959. * src/Netrc.h
  11960. (getRequiredNextToken): New function.
  11961. (skipMacdef): New function.
  11962. * src/Util.h, src/Util.cc
  11963. (getHomeDir): New function.
  11964. * src/TrackerWatcherComand.cc
  11965. (createRequestCommand): Use AuthConfig.
  11966. * src/FtpConnection.cc
  11967. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11968. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11969. * src/Request.cc
  11970. (findNetrcAuthenticator): New function.
  11971. (resolveHttpAuthConfigItem): New function.
  11972. (resolveFtpAuthConfigItem): New function.
  11973. (resolveHttpProxyAuthConfigItem): New function.
  11974. * src/UrlRequestInfo.cc: Use AuthConfig.
  11975. * src/HttpRequest.cc
  11976. (createRequest): Use authConfig.
  11977. (getProxyAuthString): Use authConfig.
  11978. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11979. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11980. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11981. To reduce overhead to find commands whose socket is either
  11982. readable or writable in the download engine loop:
  11983. * src/Command.h, src/Command.cc
  11984. (STATUS): New enum.
  11985. (status): New variable.
  11986. (statusMatch): New function.
  11987. (setStatusActive): New function.
  11988. (setStatusInactive): New function.
  11989. * src/DownloadEngine.h, src/DownloadEngine.cc
  11990. (executeCommand): New function.
  11991. (run): Simplified.
  11992. (waitData): Call Command::setStatusActive() when command's socket is
  11993. readable or writable.
  11994. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. To handle Segment as SegmentHandle:
  11996. * src/AbstractCommand.cc (execute): Rewritten.
  11997. * src/SegmentMan.h: Segment -> SegmentHandle
  11998. Introducded HttpResponse class, HttpRequest class to improve code
  11999. extensiveness and make it clear:
  12000. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12001. HttpResponse class.
  12002. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12003. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12004. * src/HttpConnection.cc: Contruction of http request were moved to
  12005. HttpRequest class.
  12006. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12007. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12008. * src/HttpAuthConfig.h: New class.
  12009. * src/Range.h: New class.
  12010. To make FtpTunnel{Request, Response}Command and
  12011. HttpProxy{Request, Response}Command derived from
  12012. AbstractProxy{Request, Response}Command:
  12013. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12014. Derived from AbstractProxyRequestCommand class.
  12015. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12016. Derived from AbstractProxyResponseCommand class.
  12017. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12018. Derived from AbstractProxyRequestCommand class.
  12019. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12020. Derived from AbstractProxyResponseCommand class.
  12021. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12022. : New class.
  12023. * src/AbstractProxyResponseCommand.h,
  12024. src/AbstractProxyResponseCommand.cc: New class.
  12025. To add netrc support:
  12026. * src/Netrc.h, src/Netrc.cc: New class.
  12027. * src/Util.h, src/Util.cc (split): New function.
  12028. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12029. "Content-Range" header instead of "Range" header.
  12030. * src/HttpHeader.h
  12031. (getStatus): Removed.
  12032. (setStatus): Removed.
  12033. * src/Segment.h
  12034. (getPositionToWrite): New function.
  12035. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. * src/HttpHeader.h
  12037. (Range.h): New include.
  12038. (status): New variable.
  12039. (HttpHeader): Initialized status with 0.
  12040. (getStatus): New function.
  12041. (setStatus): New function.
  12042. (getRange): New function.
  12043. (HttpHeaderHandle): New function.
  12044. * src/HttpHeader.cc
  12045. (getRange): New function.
  12046. * src/Request.h
  12047. (RequestWeakHandle): New definition.
  12048. * src/HttpConnection.h
  12049. (HttpConnectionHandle): New type definition.
  12050. * src/HttpConnection.cc
  12051. (receiveResponse): Set HTTP status to headers.
  12052. * src/main.cc
  12053. (showUsage): Fixed typo.
  12054. * src/Segment.h
  12055. (SegmentHandle): New type definition.
  12056. * src/BitfieldMan.h
  12057. (getMissingUnusedLength): New function.
  12058. * src/BitfieldMan.cc
  12059. (getMissingUnusedLength): New function.
  12060. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12061. To fix static initialization order problem:
  12062. * src/BitfieldManFactory.h
  12063. (defaultRandomizer): Removed.
  12064. (factory): New variable.
  12065. (getNewFactory): Removed.
  12066. (getFactoryInstance): New function.
  12067. (setDefaultRandomizer): Rewritten.
  12068. (getDefaultRandomizer): Rewritten.
  12069. * src/BitfieldManFactory.cc
  12070. (defaultRandomizer): Removed.
  12071. (factory): Initialized to 0.
  12072. (BitfieldManFactory): Initialized randomizer to 0.
  12073. * src/DefaultPieceStorage.cc
  12074. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12075. * src/Peer.cc
  12076. (Peer): getNewFactory() -> getFactoryInstance()
  12077. * src/SegmentMan.cc
  12078. (initBitfield): getNewFactory() -> getFactoryInstance()
  12079. * src/Piece.cc
  12080. (Piece): getNewFactory() -> getFactoryInstance()
  12081. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. To fix the bug that causes crash on Max OS X:
  12083. * src/SimpleRandomizer.h
  12084. (getInstance): Create new instance if the static variable is null.
  12085. * src/SimpleRandomizer.cc
  12086. (randomizer): Initialized to 0.
  12087. * src/BitfieldManFactory.h
  12088. (getNewFactory): Removed the call to setRandomizer().
  12089. To fix the miscalculation of the range of checksum:
  12090. * src/BitfieldMan.h
  12091. (isBitSetOffsetRange): New function.
  12092. * src/BitfieldMan.cc
  12093. (isBitSetOffsetRange): New function.
  12094. * src/SegmentMan.cc
  12095. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12096. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12097. * Release 0.10.1
  12098. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. To lower CPU usage in BitTorrent download when --max-upload-limit
  12100. command-line option specified:
  12101. * src/DefaultBtMessageDispatcher.cc
  12102. (sendMessages): Calculate uploading speed only when current message
  12103. is uploading data and is not sent yet.
  12104. * src/DefaultPeerStorage.h
  12105. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12106. * src/HttpResponseCommand.cc
  12107. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12108. This fixes compile error in Soralis 10.
  12109. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12110. To fix segfault in Metalink download:
  12111. * src/UrlRequestInfo.h
  12112. (filename): Removed.
  12113. (totalLength): Removed.
  12114. (setTotalLength): Removed.
  12115. (setFilename): Removed.
  12116. * src/MetalinkRequestInfo.cc
  12117. (execute): Do not set filename and totalLength to reqInfo.
  12118. Set chunk checksum to reqInfo if it is not null.
  12119. * src/HttpResponseCommand.cc
  12120. (executeInternal): Fixed filename in log.
  12121. (handleDefaultEncoding): Removed the call to initBitfield() and
  12122. markAllPiecesDone().
  12123. (handleOtherEncoding): Added HEAD method handling.
  12124. * src/FtpNegotiateCommand.cc
  12125. (executeInternal): Added SEQ_HEAD_OK handling.
  12126. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12127. return false.
  12128. * src/FtpNegotiateCommand.h
  12129. (SEQ_HEAD_OK): New definition.
  12130. * src/SegmentMan.cc
  12131. (initBitfield): Delete bitfield.
  12132. (isChunkChecksumValidationReady): Fixed the condition.
  12133. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12134. works fine.
  12135. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12136. * src/Xml2MetalinkProcessor.h
  12137. (xpathExists): New function.
  12138. * src/Xml2MetalinkProcessor.cc
  12139. (xpathExists): New function.
  12140. Not to send HEAD request if filename and size are available in Metalink
  12141. file:
  12142. * src/UrlRequestInfo.h
  12143. (filename): New variable.
  12144. (totalLength): New variable.
  12145. (setTotalLength): New function.
  12146. (setFilename): New function.
  12147. * src/MetalinkRequestInfo.cc
  12148. (execute): Set filename and size to UrlRequestInfo.
  12149. * src/MetalinkEntry.cc
  12150. (MetalinkEntry): Initialize size with 0.
  12151. * src/UrlRequestInfo.cc
  12152. (execute): Set filename and size to SegmentMan.
  12153. Not to download rest of the files after selected files are downloaded
  12154. in BitTorrent:
  12155. * src/PieceStorage.h
  12156. (allDownloadFinished): New function.
  12157. * src/DefaultBtAnnounce.cc
  12158. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12159. downloadFinished.
  12160. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12161. * src/DefaultPieceStorage.cc
  12162. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12163. Commented out the call to finishSelectiveDownloadingMode().
  12164. (downloadFinished): Call isFilteredAllBitSet() instead of
  12165. isAllBitSet().
  12166. (allDownloadFinished): New function.
  12167. * src/DefaultBtInteractive.cc
  12168. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12169. downloadFinished().
  12170. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12171. * src/TorrentDownloadEngine.cc
  12172. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12173. * src/BitfieldMan.h
  12174. (isFilteredAllBitSet): New function.
  12175. * src/ShareRatioSeedCriteria.h
  12176. (PieceStorage.h): New include.
  12177. (pieceStorage): New variable.
  12178. (evaluate):
  12179. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12180. * src/BitfieldMan.cc
  12181. (isFilteredAllBitSet): New function.
  12182. (isAllBitSet): Filter is not took into account.
  12183. Rename --force-truncate as --allow-overwrite:
  12184. * src/TorrentRequestInfo.cc
  12185. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12186. * src/main.cc
  12187. (showUsage): --force-truncate -> --allow-overwrite
  12188. * src/message.h
  12189. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12190. * src/prefs.h
  12191. (PREF_FORCE_TRUNCATE): Removed.
  12192. (PREF_ALLOW_OVERWRITE): New definition.
  12193. * src/SegmentMan.cc
  12194. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12195. * src/MetalinkRequestInfo.cc
  12196. (execute): Queueing message are now logged in info level.
  12197. * src/common.h
  12198. (LONG_LONG_MAX): Removed.
  12199. (LONG_LONG_MIN): Removed.
  12200. * src/HttpResponseCommand.cc
  12201. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12202. * src/FtpNegotiateCommand.cc
  12203. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12204. * src/main.cc
  12205. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12206. command-line option.
  12207. (main): Added --check-integriy and --realtime-chunk-checksum
  12208. command-line option.
  12209. --force-truncate -> --allow-overwrite
  12210. Set initial value of --check-integrity option to false.
  12211. Don't show usage when error occurs while persing command-line options.
  12212. Removed deprecated --upload-limit option.
  12213. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12215. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12216. * src/BtAllowedFastMessage.cc:
  12217. * src/BtBitfieldMessage.cc
  12218. * src/BtCancelMessage.cc
  12219. * src/BtChokeMessage.cc
  12220. * src/BtHaveAllMessage.cc
  12221. * src/BtHaveMessage.cc
  12222. * src/BtHaveNoneMessage.cc
  12223. * src/BtInterestedMessage.cc
  12224. * src/BtNotInterestedMessage.cc
  12225. * src/BtPieceMessage.cc
  12226. * src/BtPortMessage.cc
  12227. * src/BtRejectMessage.cc
  12228. * src/BtRequestMessage.cc
  12229. * src/BtSuggestPieceMessage.cc
  12230. * src/BtUnchokeMessage.cc
  12231. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12232. files are affected.
  12233. * src/ChunkChecksumValidator.cc
  12234. * src/SegmentMan.cc
  12235. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. To add chunk checksum validation:
  12237. * src/MetalinkEntry.h
  12238. (MetalinkChunkChecksum.h): New include.
  12239. (chunkChecksum): New variable.
  12240. * src/Request.h
  12241. (method): New variable.
  12242. (setMethod): New function.
  12243. (getMethod): New function.
  12244. (METHOD_GET): New static constant.
  12245. (METHOD_HEAD): New static constant.
  12246. * src/Xml2MetalinkProcessor.h
  12247. (getPieceHash): New function.
  12248. * src/PieceStorage.h
  12249. (markAllPiecesDone): New function.
  12250. (checkIntegrity): New function.
  12251. * src/FileAllocator.h
  12252. (NullFileAllocationMonitor.h): New include.
  12253. (FileAllocator): Initialize fileAllocationMonitor with new
  12254. NullFileAllocationMonitor().
  12255. * src/MultiDiskAdaptor.h
  12256. (messageDigest.h): Remove include.
  12257. (ctx): Removed.
  12258. (hashUpdate): Added ctx.
  12259. (MultiDiskAdaptor): Removed ctx.
  12260. (sha1Sum): Renamed as messageDigest.
  12261. (messageDigest): New function.
  12262. * src/UrlRequestInfo.h
  12263. (HeadResult): New class.
  12264. (digestAlgo): New variable.
  12265. (chunkChecksumLength): New variable.
  12266. (chunkChecksums): New variable.
  12267. (getHeadResult): New function.
  12268. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12269. (setDigestAlgo): New function.
  12270. (setChunkChecksumLength): New function.
  12271. (setChunkChecksums): New function.
  12272. * src/DefaultPieceStorage.cc
  12273. (DiskAdaptorWriter.h): New include.
  12274. (ChunkChecksumValidator.h): New include.
  12275. (markAllPiecesDone): New function.
  12276. (checkIntegrity): New function.
  12277. * src/DefaultBtContext.h
  12278. (getPieceHashes): New function.
  12279. * src/TorrentRequestInfo.cc
  12280. (execute): Try to validate chunk checksum if file already exists and
  12281. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12282. * src/messageDigest.h
  12283. (~MessageDigestContext): Added digestFree().
  12284. * src/MetalinkRequestInfo.cc
  12285. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12286. * src/DiskAdaptor.h
  12287. (messageDigest.h): New include.
  12288. (sha1Sum): Renamed as messageDigest.
  12289. (messageDigest): New function.
  12290. * src/DownloadCommand.h
  12291. (PeerStat.h): New include.
  12292. (maxDownloadSpeedLimit): New variable.
  12293. (startupIdleTime): New variable.
  12294. (lowestDownloadSpeedLimit): New variable.
  12295. (peerStat): New variable.
  12296. (setMaxDownloadSpeedLimit): New function.
  12297. (setStartupIdleTime): New function.
  12298. (setLowestDownloadSPeedLimit): New function.
  12299. * src/BtContext.h
  12300. (getPieceHashes): New function.
  12301. * src/main.cc
  12302. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12303. option to true for testing purpose.
  12304. * src/BtPieceMessage.cc
  12305. (checkPieceHash): Use messageDigest
  12306. * src/DownloadEngine.cc
  12307. (SetDescriptor): Removed.
  12308. (AccumulateActiveCommand): Removed.
  12309. (waitData): Rewritten.
  12310. (updateFdSet): Rewritten.
  12311. * src/MultiDiskAdaptor.cc
  12312. (hashUpdate): Added ctx.
  12313. (sha1Sum): Renamed as messageDigest.
  12314. (messageDigest): New function.
  12315. * src/BitfieldMan.h
  12316. (isBitRangeSet): New function.
  12317. (unsetBitRange): New function.
  12318. * src/ByteArrayDiskWriter.h
  12319. (sha1Sum): Renamed as messageDigest.
  12320. (messageDigest): New function.
  12321. * src/ConsoleDownloadEngine.cc
  12322. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12323. * src/DiskWriter.h
  12324. (messageDigest.h): New include.
  12325. (sha1Sum): Renamed as messageDigest.
  12326. (messageDigest): New function.
  12327. * src/ChunkChecksumValidator.h: New class.
  12328. * src/DiskAdaptorWriter.h: New class.
  12329. * src/prefs.h
  12330. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12331. (PREF_CHECK_INTEGRITY): New definition.
  12332. * src/HttpResponseCommand.cc
  12333. (handleDefaultEncoding): Added method "HEAD" handling.
  12334. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12335. (handleOtherEncoding):
  12336. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12337. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12338. startupIdleTime, lowestDownloadSpeedLimit to command.
  12339. * src/SegmentMan.h
  12340. (getSegmentEntryByIndex): New function.
  12341. (getSegmentEntryByCuid): New function.
  12342. (getSegmentEntryIteratorByCuid): New function.
  12343. (diskWriter): DiskWriter -> DiskWriterHandle
  12344. (pieceHashes): New variable.
  12345. (chunkHashLength): New variable.
  12346. (digestAlgo): New variable.
  12347. (FindPeerStat): Removed.
  12348. (getPeerStat): Rewritten.
  12349. (markAllPiecesDone): New function.
  12350. (checkIntegrity): New function.
  12351. (tryChunkChecksumValidation): New function.
  12352. (isChunkChecksumValidationReady): New function.
  12353. * src/BitfieldMan.cc
  12354. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12355. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12356. blocks to 0.
  12357. (isBitRangeSet): New function.
  12358. (unsetBitRange): New function.
  12359. * src/FtpNegotiateCommand.cc
  12360. (executeInternal): Set maxDownloadSpeedLimit,
  12361. startupIdleTime, lowestDownloadSpeedLimit to command.
  12362. (recvSize): Added method "HEAD" handling.
  12363. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12364. * src/AbstractSingleDiskAdaptor.cc
  12365. (sha1Sum): Renamed as messageDigest.
  12366. (messageDigest): New function.
  12367. * src/AbstractSingleDiskAdaptor.h
  12368. (sha1Sum): Renamed as messageDigest.
  12369. (messageDigest): New function.
  12370. * src/Util.h
  12371. (indexRange): New function.
  12372. * src/MetalinkEntry.cc
  12373. (MetalinkEntry): Initialized chunkChecksum to 0.
  12374. * src/ShaVisitor.cc
  12375. (~ShaVisitor): Removed the call to ctx.digestFree().
  12376. * src/SegmentMan.cc
  12377. (ChunkChecksumValidator.h): New include.
  12378. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12379. to DIGEST_ALGO_SHA1.
  12380. (~SegmentMan): Removed diskWriter.
  12381. (FindSegmentEntryByIndex): Removed.
  12382. (FindSegmentEntryByCuid): Removed.
  12383. (checkoutSegment): Rewritten.
  12384. (findSlowerSegmentEntry): Rewritten.
  12385. (getSegment): Rewritten.
  12386. (updateSegment): Rewritten.
  12387. (completeSegment): Rewritten.
  12388. (markAllPiecesDone): New function.
  12389. (checkIntegrity): New function.
  12390. (isChunkChecksumValidationReady): New function.
  12391. (tryChunkChecksumValidation): New function.
  12392. * src/Xml2MetalinkProcessor.cc
  12393. (getEntry): Get size and set it to entry.
  12394. Get chunk checksum and set it to entry.
  12395. (getPieceHash): New function.
  12396. * src/Util.cc
  12397. (sha1Sum): Removed ctx.digestFree()
  12398. (fileChecksum): Removed ctx.digestFree()
  12399. (indexRange): New function.
  12400. * src/Request.cc
  12401. (METHOD_GET): New variable.
  12402. (METHOD_HEAD): New variable.
  12403. (Request): Added method.
  12404. * src/UrlRequestInfo.cc
  12405. (FatalException.h): New include.
  12406. (message.h): New include.
  12407. (operator<<): Added operator<< for class HeadResult.
  12408. (getHeadResult): New function.
  12409. (execute): Get filename and size in separate download engine.
  12410. * src/ChunkChecksumValidator.cc: New class.
  12411. * src/DownloadCommand.cc:
  12412. (DownloadCommand): Added peerStat.
  12413. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12414. the value from Option.
  12415. The buffer size is now 16KB.
  12416. Use peerStat member instead of getting it from SegmentMan.
  12417. Use startupIdleTime member instead of gettingit from Option.
  12418. Added chunk checksum validation.
  12419. * src/AbstractDiskWriter.cc
  12420. (AbstractDiskWriter): Removed ctx.
  12421. (~AbstractDiskWriter): Removed ctx.digestFree()
  12422. (writeDataInternal): Returns the return value of write.
  12423. (readDataInternal): Returns the return value of read.
  12424. (sha1Sum): Renamed as messageDigest
  12425. (messageDigest): New function.
  12426. * src/AbstractDiwkWriter.h
  12427. (messageDigest.h): Removed include.
  12428. (ctx): Removed.
  12429. (sha1Sum): Renamed as messageDigest
  12430. (messageDigest): New function.
  12431. * src/DefaultPieceStorage.h
  12432. (markAllPiecesDone): New function.
  12433. (checkIntegrity): New function.
  12434. * src/NullFileAllocationMonitor.h: New class.
  12435. * src/MetalinkChunkChecksum.h: New class.
  12436. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12437. To decrease CPU usage in bittorrent download, calculation results in
  12438. BitfieldMan were cached and realtime fetching PeerObject was removed
  12439. with WeakHandle introduced. Option values are set to the objects
  12440. by setter before download begins.
  12441. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12442. * src/DefaultBtRequestFactory.h
  12443. (dispatcher): BtMessageDispatcherHandle ->
  12444. BtMessageDispatcherWeakHandle.
  12445. (messageFactory): New variable.
  12446. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12447. BtMessageDispatcherWeakHandle.
  12448. (setBtMessageFactory): New function.
  12449. * src/DefaultBtMessageDispatcher.cc:
  12450. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12451. from Option.
  12452. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12453. feating the value from Option.
  12454. Use messageFactory member.
  12455. * src/PeerInteractionCommand.cc
  12456. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12457. Add reverse dependencies to factory object.
  12458. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12459. dispatcher.
  12460. Set messageFactory to receiver.
  12461. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12462. btInteractive.
  12463. Set receiver to peerObject.
  12464. Set maxDownloadSpeedLimit to this.
  12465. (executeInternal): Use maxDownloadSpeedLimit member.
  12466. * src/BtChokeMessage.cc
  12467. (doReceivedAction): Use dispatcher, requestFactory member.
  12468. (onSendComplete): Use dispatcher member.
  12469. * src/PeerInteractionCommand.h
  12470. (maxDownloadSpeedLimit): New variable.
  12471. * src/DefaultBtMessageReceiver.h
  12472. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12473. (dispatcher):
  12474. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12475. (messageFactory): New variable.
  12476. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12477. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12478. (setDispatcher):
  12479. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12480. (setBtMessageFactory): New function.
  12481. * src/DefaultBtInteractive.cc
  12482. (initiateHandshake): Use messageFactory member.
  12483. (addBitfieldMessageToQueue): Use messageFactory member.
  12484. (addAllowedFastMessageToQueue): Use messageFactory member.
  12485. (decideChoking): Use messageFactory member.
  12486. (checkHave): Use messageFactory member.
  12487. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12488. (receiveMessages): Use maxDownloadSpeedLimit member.
  12489. (decideInterest): Use messageFactory member.
  12490. * src/BtRequestMessage.cc
  12491. (doReceivedAction): Use messageFactory, dispatcher member.
  12492. (onQueued): Use dispatcher member.
  12493. * src/BtPieceMessage.cc
  12494. (doReceivedAction): Use dispatcher member.
  12495. (send): Use peerConnection member.
  12496. (onWrongPiece): Use requestFactory member.
  12497. (handleChokingEvent): Use messageFactory, dispatcher member.
  12498. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12499. * src/BtMessageDispatcher.h
  12500. (BtMessageDispatcherWeakHandle): New type definition.
  12501. * src/SimpleBtMessage.cc
  12502. (send): Use peerConnection member.
  12503. * src/BtRejectMessage.cc
  12504. (doReceivedAction): Use dispatcher member.
  12505. * src/DefaultBtMessageDispatcher.h
  12506. (Option.h): Removed include.
  12507. (messageFactory): New variable.
  12508. (option): Removed.
  12509. (maxUploadSpeedLimit): New variable.
  12510. (requestTimeout): New variable.
  12511. (DefaultBtMessageDispatcher): Removed option.
  12512. Added maxUploadSpeedLimit, requestTimeout.
  12513. (setOption): Removed.
  12514. (getOption): Removed.
  12515. (setMaxUploadSpeedLimit): New function.
  12516. (setRequestTimeout): New function.
  12517. (setBtMessageFactory): New function.
  12518. * src/DefaultBtInteractive.h
  12519. (btMessageReceiver):
  12520. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12521. (dispatcher):
  12522. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12523. (btRequestFactory):
  12524. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12525. (peerConnection):
  12526. PeerConnectionHandle -> PeerConnectionWeakHandle
  12527. (messageFactory): New variable.
  12528. (option): Removed.
  12529. (keepAliveInterval): New variable.
  12530. (maxDownloadSpeedLimit): New variable.
  12531. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12532. (setBtMessageReceiver):
  12533. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12534. (setDispatcher):
  12535. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12536. (setBtRequestFactory):
  12537. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12538. (setPeerConnection):
  12539. PeerConnectionHandle -> PeerConnectionWeakHandle
  12540. (setOption): Removed.
  12541. (setKeepAliveInterval): New function.
  12542. (setMaxDownloadSpeedLimit): New function.
  12543. (setBtMessageFactory): New function.
  12544. * src/BitfieldMan.h
  12545. (cachedNumMissingBlock): New variable.
  12546. (cachedNumFilteredBlock): New variable.
  12547. (cachedCompletedLength): New variable.
  12548. (cachedFilteredComletedLength): New variable.
  12549. (cachedFilteredTotalLength): New variable.
  12550. (countMissingBlockNow): New function.
  12551. (countFilteredBlockNow): New function.
  12552. (getFilteredTotalLengthNow): New function.
  12553. (getCompletedLengthNow): New function.
  12554. (getFilteredCompletedLengthNow): New function.
  12555. (updateCache): New function.
  12556. * src/AbstractBtMessage.h
  12557. (BtMessageDispatcher.h): New include.
  12558. (PeerConnection.h): New include.
  12559. (BtRequestFactory.h): New include
  12560. (BtMessageFactory.h): New include.
  12561. (dispatcher): New variable.
  12562. (messageFactory): New variable.
  12563. (peerConnection: New variable.
  12564. (setBtMessageDispatcher): New function.
  12565. (setPeerConnection): New function.
  12566. (setBtMessageFactory): New function.
  12567. (setBtRequestFactory): New function.
  12568. * src/DefaultBtMessageFactory.cc
  12569. (setCommonProperty): Set dispatcher, requestFactory, this,
  12570. peerConnection to msg.
  12571. * src/BtRegistry.h
  12572. (BT_MESSAGE_RECEIVER): New macro.
  12573. * src/PeerConnection.h
  12574. (PeerConnectionWeakHandle): New type definition.
  12575. * src/BtMessageFactory.h
  12576. (BtMessageFactoryWeakHandle): New type definition.
  12577. * src/BitfieldMan.cc
  12578. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12579. cachedCompletedLength, cachedFilteredComletedLength,
  12580. cachedFilteredTotalLength.
  12581. Call updateCache().
  12582. (countMissingBlock): Return cachedNumMissingBlock.
  12583. (countMissingBlockNow): New function.
  12584. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12585. (countFilteredBlockNow): New function.
  12586. (setBit): Call updateCache().
  12587. (unsetBit): Call updateCache().
  12588. (setBitfield): Call updateCache().
  12589. (clearAllBit): Call updateCache().
  12590. (setAllBit): Use setBitInternal instead of setBit.
  12591. Call updateCache().
  12592. (addFilter): Call updateCache().
  12593. (enableFilter): Call updateCache().
  12594. (disableFilter): Call updateCache().
  12595. (clearFilter): Call updateCache().
  12596. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12597. (getFilteredTotalLengthNow): New function.
  12598. (getCompletedLength): Return cachedCompletedLength.
  12599. (getCompletedLengthNow): New function.
  12600. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12601. (getFilteredCompletedLengthNow): New function.
  12602. (updateCache): New function.
  12603. * src/BtMessageReceiver.h
  12604. (BtMessageReceiverWeakHandle): New type definition.
  12605. * src/DefaultBtMessageReceiver.cc
  12606. (receiveHandshake): Use messageFactory member.
  12607. (sendHandshake): Use messageFactory member.
  12608. (receiveMessage): Use messageFactory member.
  12609. * src/DefaultBtMessageFactory.h
  12610. (dispatcher): New variable.
  12611. (requestFactory): New variable.
  12612. (peerConnection): New variablle.
  12613. (setBtMessageDispatcher): New function.
  12614. (setBtRequestFactory): New function.
  12615. (setPeerConnection): New function.
  12616. * src/SharedHandle.h
  12617. (RefCount): New class.
  12618. (WeakHandle): New class.
  12619. * src/PeerObject.h
  12620. (BtMessageReceiver.h): New include.
  12621. (PeerObject): Added btMessageReceiver.
  12622. (btMessageReceiver): New variable.
  12623. * src/Util.cc
  12624. (countBit): Simplified.
  12625. * src/BtCancelMessage.cc
  12626. (doReceivedAction): Use dispatcher member.
  12627. * src/BtRequestFactory.h
  12628. (BtRequestFactoryWeakHandle): New type definition.
  12629. * src/PeerStorage.h
  12630. (downloadSpeed): int -> uint32_t
  12631. (uploadSpeed): int -> uint32_t
  12632. (sessionDownloadLength): long long int -> uint64_t
  12633. (sessionUploadLength): long long int -> uint64_t
  12634. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12635. To add RecoverableException, FatalException:
  12636. * src/AbstractCommand.cc
  12637. (onAbort): Exception -> RecoverableException
  12638. * src/PeerAbstractCommand.h
  12639. (RecoverableException.h): New include.
  12640. (onAbort): Exception -> RecoverableException.
  12641. * src/PeerInteractionCommand.cc
  12642. (onAbort): Exception -> RecoverableException.
  12643. * src/PeerAbstractCommand.cc
  12644. (execute): Exception -> RecoverableException.
  12645. (onAbort): Exception -> RecoverableException.
  12646. * src/TorrentRequestInfo.cc
  12647. (execute): Exception -> RecoverableException.
  12648. * src/MetalinkRequestInfo.cc
  12649. (execute): Exception -> RecoverableException.
  12650. * src/MetaFileUtil.cc: RecoverableException.
  12651. * src/AbstractCommand.h
  12652. (onAbort): Exception -> RecoverableException.
  12653. * src/DlRetryEx.h: Exception -> RecoverableException.
  12654. * src/DlAbortEx.h: Exception -> RecoverableException.
  12655. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12656. * src/Util.cc: Exception -> RecoverableException.
  12657. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12658. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12659. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12660. To make ID static const int
  12661. * src/BtInterestedMessage.h
  12662. (ID_t): Removed.
  12663. (ID): New variable.
  12664. (getId): Made non-const.
  12665. * src/BtPieceMessage.h
  12666. (ID_t): Removed.
  12667. (ID): New variable.
  12668. (getId): Made non-const.
  12669. * src/BtChokeMessage.h
  12670. (ID_t): Removed.
  12671. (ID): New variable.
  12672. (getId): Made non-const.
  12673. * src/BtHaveAllMessage.h
  12674. (ID_t): Removed.
  12675. (ID): New variable.
  12676. (getId): Made non-const.
  12677. * src/BtKeepAliveMessage.h
  12678. (ID_t): Removed.
  12679. (ID): New variable.
  12680. (getId): Made non-const.
  12681. * src/BtHandshakeMessage.h
  12682. (ID): New variable.
  12683. (getId): Made non-const.
  12684. * src/BtSuggestPieceMessage.h
  12685. (ID_t): Removed.
  12686. (ID): New variable.
  12687. (getId): Made non-const.
  12688. * src/BtPortMessage.h
  12689. (ID_t): Removed.
  12690. (ID): New variable.
  12691. (getId): Made non-const.
  12692. * src/AbstractBtMessage.h
  12693. (id): Removed.
  12694. (AbstractBtMessage): Removed id.
  12695. (getId): Removed.
  12696. * src/BtHaveMessage.h
  12697. (ID_t): Removed.
  12698. (ID): New variable.
  12699. (getId): Made non-const.
  12700. * src/BtAllowedFastMessage.h
  12701. (ID_t): Removed.
  12702. (ID): New variable.
  12703. (getId): Made non-const.
  12704. * src/BtCancelMessage.h
  12705. (ID_t): Removed.
  12706. (ID): New variable.
  12707. (getId): Made non-const.
  12708. * src/BtNotInterestedMessage.h
  12709. (ID_t): Removed.
  12710. (ID): New variable.
  12711. (getId): Made non-const.
  12712. * src/BtChokeMessage.h
  12713. (ID_t): Removed.
  12714. (ID): New variable.
  12715. (getId): Made non-const.
  12716. * src/BtRejectMessage.h
  12717. (ID_t): Removed.
  12718. (ID): New variable.
  12719. (getId): Made non-const.
  12720. * src/BtBitfieldMessage.h
  12721. (ID_t): Removed.
  12722. (ID): New variable.
  12723. (getId): Made non-const.
  12724. * src/BtUnchokeMessage.h
  12725. (ID_t): Removed.
  12726. (ID): New variable.
  12727. (getId): Made non-const.
  12728. * src/BtRequestMessage.h
  12729. (ID_t): Removed.
  12730. (ID): New variable.
  12731. (getId): Made non-const.
  12732. * src/BtHaveMessage.h
  12733. (ID_t): Removed.
  12734. (ID): New variable.
  12735. (getId): Made non-const.
  12736. To add --force-truncate command-line option and a check whether
  12737. the file already exists:
  12738. * src/DirectDiskAdaptor.h
  12739. (getFilePath): Made virtual public.
  12740. * src/MultiDiskAdaptor.h
  12741. (File.h): New include.
  12742. (DiskWriterEntry::fileEntry): Made private.
  12743. (DiskWriterEntry::fileExists): New function.
  12744. (DiskWriterEntry::getFileEntry): New function.
  12745. (fileExists): New function.
  12746. (getFilePath): New function.
  12747. * src/TorrentRequestInfo.cc
  12748. (FatalException.h): New include.
  12749. (message.h): New include.
  12750. (RecoverableException.h): New include.
  12751. (execute): Added a check whether file is already exists or not.
  12752. * src/DiskAdaptor.h
  12753. (fileExists): New function.
  12754. (getFilePath): New function.
  12755. * src/main.cc
  12756. (showUsage): Added an explanation of --force-truncate command-line
  12757. option.
  12758. (main): Added --force-truncate command-line option.
  12759. * src/Exception.h
  12760. (setMsg): buf[256] -> buf[1024]
  12761. * src/CopyDiskWriter.h
  12762. (getFilePath): Made public virtual.
  12763. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12764. (fileExists): New function.
  12765. * src/DownloadEngineFactory.cc
  12766. (newTorrentConsoleEngine): Don't open file here.
  12767. * src/message.h
  12768. (EX_FILE_ALREADY_EXISTS): New definition.
  12769. * src/prefs.h
  12770. (PREF_FOECE_TRUNCATE): New definition.
  12771. * src/HttpResponseCommand.cc
  12772. (handleDefaultEncoding): Added a check whether the file already exists.
  12773. * src/SegmentMan.h
  12774. (fileExists): New function.
  12775. (shouldCancelDownloadForSafety): New function.
  12776. * src/FtpNegotiateCommand.cc
  12777. (recvSize): Added a check whether the file already exists.
  12778. * src/AbstractSingleDiskAdaptor.cc
  12779. (File.h): New include.
  12780. (fileExists): New function.
  12781. * src/AbstractSingleDiskAdaptor.h
  12782. (getFilePath): Removed.
  12783. (fileExists): New function.
  12784. * src/SegmentMan.cc
  12785. (fileExists): New function.
  12786. (shouldCancelDownloadForSafety): New function.
  12787. To fix regression bug in torrent downloading:
  12788. * src/DefaultBtRequestFactory.cc
  12789. (doChokedAction): New function.
  12790. * src/DefaultBtRequestFactory.h
  12791. (doChokedAction): New function.
  12792. * src/DefaultBtMessageDispatcher.cc
  12793. (doChokedAction): Do not delete request if its target is in allowed
  12794. fast set.
  12795. * src/DefaultBtInteractive.cc
  12796. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12797. (sendKeepAlive): Send keep alive message even if the outgoing message
  12798. queue is not empty.
  12799. (decideInterest): Simplified the code.
  12800. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12801. it is already called when BtChokeMessage is received from a peer.
  12802. * src/BtRequestFactory.h
  12803. (doChokedAction): New function.
  12804. To clean up code:
  12805. * src/PeerInteractionCommand.h
  12806. (executeInternal): Added virtual keyword explicitly.
  12807. (prepareForRetry): Added virtual keyword explicitly.
  12808. (prepareForNextPeer): Added virtual keyword explicitly.
  12809. (onAbort): Added virtual keyword explicitly.
  12810. * src/RequestSlot.cc
  12811. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12812. * src/BtPieceMessage.cc
  12813. (doReceivedAction): Added a debug log of piece's bitfield.
  12814. * src/Piece.h
  12815. (getBitfieldLength): New function.
  12816. * src/ByteArrayDiskWriter.cc
  12817. (clear): Added buf = 0 to avoid double free corruption.
  12818. * src/FileAllocator.cc
  12819. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12820. Added cp.reset().
  12821. * src/BitfieldMan.h
  12822. (operator=): Rewritten.
  12823. * src/BitfieldMan.cc
  12824. (BitfieldMan): Initialized bitfield, useBitfield.
  12825. * src/PeerConnection.cc
  12826. (receiveMessage): Added a call to socket->readable() after getting
  12827. message length to avoid possible EOF.
  12828. * src/Util.cc
  12829. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12830. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12831. To add an ability to pre-allocate file space:
  12832. * src/DirectDiskAdaptor.h: Rewritten.
  12833. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12834. * src/MultiDiskAdaptor.h: Rewritten.
  12835. * src/DefaultPieceStorage.cc
  12836. (MultiDiskWriter.h): Removed include.
  12837. (PreAllocationDiskWriter.h): Removed include.
  12838. (FileAllocationMonitor.h): New include.
  12839. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12840. (initStorage): Rewritten.
  12841. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12842. * src/FileAllocator.h: New class.
  12843. * src/FileAllocator.cc: New class.
  12844. * src/FileAllocationMonitor.h: New class.
  12845. * src/FileAllocationMonitor.cc: New class.
  12846. * src/ConsoleFileAllocationMonitor.h: New class.
  12847. * src/ConsoleFileAllocationMonitor.cc: New class.
  12848. * src/AbstractSingleDiskAdaptor.h: New class.
  12849. * src/AbstractSingleDiskAdaptor.cc: New class.
  12850. * src/DiskAdaptor.h
  12851. (Directory.h): Removed include.
  12852. (DiskWriter.h): Removed include.
  12853. (FileEntry.h): Removed include.
  12854. (diskWriter): Removed.
  12855. (DiskAdaptor): Removed diskWriter.
  12856. (openFile): Made pure virtual.
  12857. (closeFile): Made pure virtual.
  12858. (openExistingFile): Made pure virtual.
  12859. (initAndOpenFile): Made pure virtual.
  12860. (writeData): Made pure virtual.
  12861. (readData): Made pure virtual.
  12862. (sha1Sum): Made pure virtual.
  12863. (getStoreDir): Returns const reference of storeDir.
  12864. (DiskAdaptorHandle): New type definition.
  12865. * src/main.cc
  12866. (ConsoleFileAllocationMonitor.h): New include.
  12867. (showUsage): Added default value description of -s option.
  12868. Added the description of --file-allocation option.
  12869. (main): Set default value of --file-allocation option to 'none'.
  12870. Added --file-allocation command-line option.
  12871. Setup FileAllocationMonitorFactory.
  12872. * src/FtpInitiateConnectionCommand.cc
  12873. (executeInternal): Removed diskWriter related processing, which was
  12874. moved to FtpNegotiationCommand.cc.
  12875. * src/DirectDiskAdaptor.cc
  12876. (getFilePath): Made non-const.
  12877. * src/CopyDiskAdaptor.h
  12878. (DiskAdaptor.h): Removed include.
  12879. (DiskWriter.h): Removed include.
  12880. (AbstractSingleDiskAdaptor.h): New include.
  12881. (getFilePath): Made non-const. Added virtual keyword.
  12882. (CopyDiskAdaptor): Removed diskWriter.
  12883. (getTempFile): Returns const reference.
  12884. (CopyDiskAdaptorHandle): New type definition.
  12885. * src/ByteArrayDiskWriter.cc
  12886. (clear): Simplified.
  12887. (initAndOpenFile): Rewritten.
  12888. (openFile): Call initAndOpenFile()
  12889. * src/MultiDiskAdaptor.cc: Rewritten.
  12890. * src/DownloadEngineFactory.cc
  12891. (FileAllocator.h): New include.
  12892. (FileAllocationMonitor.h): New include.
  12893. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12894. create DefaultDiskWriter with file allocator.
  12895. * src/DiskWriter.h
  12896. (initAndOpenFile): Added totalLength argument.
  12897. (openFile): Added totalLength argument.
  12898. * src/prefs.h
  12899. (PREF_FILE_ALLOCATION): New definition.
  12900. (V_PREALLOC): New definition.
  12901. (V_NONE): New definition.
  12902. * src/HttpResponseCommand.cc
  12903. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12904. size.
  12905. * src/FtpNegotiateCommand.cc
  12906. (Util.h): New include.
  12907. (recvSize): Open file here.
  12908. * src/Util.h
  12909. (ullitos): New function.
  12910. * src/CopyDiskWriter.h
  12911. (getFilePath): Made non-const.
  12912. * src/DefaultDiskWriter.h
  12913. (Option.h): New include.
  12914. (totalLength): Removed.
  12915. (DefaultDiskWriter): Removed totalLength.
  12916. (initAndOpenFile): Added totalLength argument.
  12917. (DefaultDiskWriterHandle): New type definition.
  12918. (createNewDiskWriter): New function.
  12919. * src/Util.cc
  12920. (ullitos): New function.
  12921. * src/DefaultDiskWriter.cc
  12922. (message.h): New include.
  12923. (FileAllocator.h): New include.
  12924. (prefs.h): New include.
  12925. (Util.h): New include.
  12926. (DefaultDiskWriter): Removed totalLength.
  12927. (initAndOpenFile): Added file allocation.
  12928. (createNewDiskWriter): New function. Just for temporary solution.
  12929. It will be rewritten later.
  12930. * src/DiskAdaptor.cc
  12931. (DiskAdaptor): Removed diskWriter.
  12932. * src/AbstractDiskWriter.cc
  12933. (LogFactory.h): New include.
  12934. (AbstractDiskWriter): Added fileAllocator, logger.
  12935. (openFile): Added totalLength argument.
  12936. * src/AbstractDiskWriter.h
  12937. (FileAllocator.h): New include.
  12938. (Logger.h): New include.
  12939. (fileAllocator): New variable.
  12940. (logger): New variable.
  12941. (openFile): Added totalLength argument. Added virtual keyword
  12942. explicitly.
  12943. (openExistingFile): Added totalLength argument. Added virtual keyword
  12944. explicitly.
  12945. (closeFile): Added virtual keyword explicitly.
  12946. (sha1Sum): Added virtual keyword explicitly.
  12947. (writeData): Added virtual keyword explicitly.
  12948. (readData): Added virtual keyword explicitly.
  12949. (setFileAllocator): New function.
  12950. * src/DefaultPieceStorage.h
  12951. (FileAllocator.h): New include.
  12952. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12953. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12954. * src/FileProgressMonitor.h: New class.
  12955. To compile aria2 on PC-BSD:
  12956. * src/DefaultBtContext.cc
  12957. (libgen.h): New include.
  12958. To fix memory leak:
  12959. * src/Exception.h
  12960. (~Exception): Delete cause. Fixed memory leak.
  12961. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12962. Rewritten a portion of bittorrent implementation:
  12963. * src/BtMessageValidator.h: New class.
  12964. * src/BtBitfieldMessageValidator.h: New class.
  12965. * src/BtHandshakeMessageValidator.h: New class.
  12966. * src/BtRequestMessageValidator.h: New class.
  12967. * src/BtSuggestPieceMessageValidator.h: New class.
  12968. * src/BtAllowedFastMessageValidator.h: New class.
  12969. * src/BtRejectMessageValidator.h: New class.
  12970. * src/BtCancelMessageValidator.h: New class.
  12971. * src/BtPieceMessageValidator.h: New class.
  12972. * src/BtHaveMessageValidator.h: New class.
  12973. * src/BtEventListener.h: New class.
  12974. * src/AbstractBtEventListener.h: New class.
  12975. * src/BtEvent.h: New class.
  12976. * src/BtChokingEvent.h: New class.
  12977. * src/BtChokedEvent.h: New class.
  12978. * src/BtCancelSendingPieceEvent.h: New class.
  12979. * src/BtAbortOutstandingRequestEvent.h: New class.
  12980. * src/Randomizer.h: New class.
  12981. * src/SimpleRandomizer.h: New class.
  12982. * src/BtMessage.h: New class.
  12983. * src/AbstractBtMessage.h: New class.
  12984. * src/SimpleBtMessage.h: New class.
  12985. * src/BtHaveMessage.h: New class.
  12986. * src/BtInterestedMessage.h: New class.
  12987. * src/BtAllowedFastMessage.h: New class.
  12988. * src/BtUnchokeMessage.h: New class.
  12989. * src/BtCancelMessage.h: New class.
  12990. * src/BtNotInterestedMessage.h: New class.
  12991. * src/BtChokeMessage.h: New class.
  12992. * src/BtHaveNoneMessage.h: New class.
  12993. * src/BtHandshakeMessage.h: New class.
  12994. * src/BtSuggestPieceMessage.h: New class.
  12995. * src/BtHaveMessage.h: New class.
  12996. * src/BtPieceMessage.h: New class.
  12997. * src/BtHaveAllMessage.h: New class.
  12998. * src/BtKeepAliveMessage.h: New class.
  12999. * src/BtPortMessage.h: New class.
  13000. * src/BtRejectMessage.h: New class.
  13001. * src/BtBitfieldMessage.h: New class.
  13002. * src/BtRequestMessage.h: New class.
  13003. * src/DefaultBtRequestFactory.h: New class.
  13004. * src/DefaultBtMessageReceiver.h: New class.
  13005. * src/BtInteractive.h: New class.
  13006. * src/BtMessageDispatcher.h: New class.
  13007. * src/DefaultBtMessageDispatcher.h: New class.
  13008. * src/DefaultBtInteractive.h: New class.
  13009. * src/BitfieldManFactory.h: New class.
  13010. * src/HandleRegistry.h: New class.
  13011. * src/BtMessageFactory.h: New class.
  13012. * src/BtMessageReceiver.h: New class.
  13013. * src/DefaultBtMessageFactory.h: New class.
  13014. * src/PeerObject.h: New class.
  13015. * src/BtRequestFactory.h: New class.
  13016. * src/SuggestPieceMessage.h: Removed.
  13017. * src/PortMessage.h: Removed.
  13018. * src/SuggestPieceMessage.h: Removed.
  13019. * src/KeepAliveMessage.h: Removed.
  13020. * src/HandshakeMessage.h: Removed.
  13021. * src/PeerInteraction.h: Removed.
  13022. * src/UnchokeMessage.h: Removed.
  13023. * src/PieceMessage.h: Removed.
  13024. * src/RequestMessage.h: Removed.
  13025. * src/InterestedMessage.h: Removed.
  13026. * src/HaveMessage.h: Removed.
  13027. * src/CancelMessage.h: Removed.
  13028. * src/RejectMessage.h: Removed.
  13029. * src/AllowedFastMessage.h: Removed.
  13030. * src/HaveNoneMessage.h: Removed.
  13031. * src/SimplePeerMessage.h: Removed.
  13032. * src/HaveAllMessage.h: Removed.
  13033. * src/BitfieldMessage.h: Removed.
  13034. * src/PeerMessageFactory.h: Removed.
  13035. * src/NotInterestedMessage.h: Removed.
  13036. * src/ChokeMessage.h: Removed.
  13037. * src/PeerMessage.h: Removed.
  13038. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13039. To know root cause of exception:
  13040. * src/Exception.h
  13041. (cause): New variable.
  13042. (Exception): Added a parameter.
  13043. (getMsg): Return const reference to msg.
  13044. (getCause): New function.
  13045. * src/DlRetryEx.h
  13046. (DlRetryEx): Added a parameter 'cause'.
  13047. Added an overloaded constructor.
  13048. (DlAbortEx): Added a parameter 'cause'.
  13049. Added an overloaded constructor.
  13050. * src/SimpleLogger.cc
  13051. (writeLog): Log nested exception messages recursively.
  13052. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13053. * src/DefaultBtProgressInfoFile.cc
  13054. (load): Fixed memory leak when the infohash doesn't match.
  13055. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13056. * src/DefaultPeerStorage.cc
  13057. (calculateStat): Simplified the code by combining 2 loops into 1.
  13058. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13060. for BitTorrent download:
  13061. * src/PeerAbstractCommand.cc
  13062. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13063. * src/main.cc:
  13064. (timeoutSpecified): Removed.
  13065. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13066. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13067. * src/TorrentRequestInfo.cc
  13068. (timeoutSpecified): Removed.
  13069. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13070. timeout value.
  13071. * src/prefs.h
  13072. (PREF_BT_TIMEOUT): New definition.
  13073. Delete unused variables:
  13074. * src/TorrentRequestInfo.cc
  13075. (requestInfo): Removed.
  13076. Move setSignalHander to Util::setGlobalSignalHandler:
  13077. * src/TorrentRequestInfo.cc:
  13078. setSignalHander -> Util::setGlobalSignalHandler
  13079. * src/main.cc
  13080. (setSignalHander): Removed.
  13081. (main): setSignalHander -> Util::setGlobalSignalHandler
  13082. * src/Util.h
  13083. (setGlobalSignalHandler): New function.
  13084. * src/Util.cc
  13085. (setGlobalSignalHandler): New function.
  13086. * src/UrlRequestInfo.cc:
  13087. setSignalHander -> Util::setGlobalSignalHandler
  13088. Reset peer status in order to exit gracefully:
  13089. * src/PeerAbstractCommand.cc
  13090. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13091. To fix the bug that causes the number of bytes uploaded is not saved
  13092. to .aria2 file:
  13093. * src/DefaultPeerStorage.h
  13094. (removedPeerSessionDownloadLength): New variable.
  13095. (removedPeerSessionUploadLength): New variable.
  13096. * src/DefaultPeerStorage.cc
  13097. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13098. removedPeerSessionUploadLength(0).
  13099. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13100. through all peers, and then add removedPeerSessionDownloadLength(
  13101. removedPeerSessionUploadLength) to it.
  13102. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13103. (to) the peer to removedPeerSessionDownloadLength
  13104. (removedPeerSessionUploadLength).
  13105. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13106. To add Metalink location option:
  13107. * src/MetalinkRequestInfo.cc
  13108. (execute): Call MetalinkEntry::setLocationPreference()
  13109. * src/main.cc
  13110. (showUsage): Added the help message for --metalink-location option.
  13111. (main): Added --metalink-location option.
  13112. * src/prefs.h
  13113. (PREF_METALINK_LOCATION): New definition.
  13114. * src/MetalinkEntry.cc
  13115. (AddLocationPreference): New function object.
  13116. (setLocationPreference): New function.
  13117. * src/Xml2MetalinkProcessor.cc
  13118. (getResource): Set location attribute to MetalinkResource
  13119. To show URLs to download
  13120. * src/UrlRequestInfo.h
  13121. (printUrls): New function.
  13122. To add multiple <file> Metalink support:
  13123. * src/MetalinkEntry.h
  13124. (MetalinkResources): Removed.
  13125. (setLocationPreference): New function.
  13126. (MetalinkEntryHandle): New type definition.
  13127. (MetalinkEntries): New type definition.
  13128. * src/Xml2MetalinkProcessor.h
  13129. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13130. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13131. (parseFile): Metalinker* -> MetalinkerHandle
  13132. * src/UrlRequestInfo.h
  13133. (execute): RequestInfo* -> RequestInfos
  13134. * src/MetalinkRequestInfo.cc
  13135. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13136. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13137. (execute): RequestInfo* -> RequestInfos
  13138. Added multiple <file> support. Print filename when it is queued.
  13139. * src/MetalinkRequestInfo.h
  13140. (execute): RequestInfo* -> RequestInfos
  13141. (getDownloadEngine): Removed.
  13142. * src/RequestInfo.h
  13143. (RequestInfoHandle): New type definition.
  13144. (RequestInfos): New type definition.
  13145. (execute): RequestInfo* -> RequestInfos
  13146. (getDownloadEngine): Removed.
  13147. * src/MetalinkResource.h
  13148. (MetalinkResourceHandle): New type definition.
  13149. (MetalinkResources): New type definition.
  13150. * src/MetalinkEntry.cc
  13151. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13152. because the element is now of type MetalinkResourceHandle.
  13153. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13154. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13155. (dropUnsupportedResource): Removed the deletion of the elements of
  13156. resources because the element is now of type MetalinkResourceHandle.
  13157. * src/Xml2MetalinkProcessor.cc
  13158. (parseFile): Metalinker* -> MetalinkerHandle
  13159. MetalinkEntry* -> MetalinkEntryHandle
  13160. Removed try-catch block.
  13161. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13162. MetalinkResource* -> MetalinkResourceHandle
  13163. Removed try-catch block.
  13164. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13165. Free result by using xmlXPathFreeObject()
  13166. * src/Metalinker.cc
  13167. (~Metalinker): Removed the deletion of entries.
  13168. MetalinkEntry* -> MetalinkEntryHandle
  13169. (queryEntry): Add multiple <file> Metalink support.
  13170. * src/Metalinker.h
  13171. (MetalinkEntries): Removed.
  13172. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13173. * src/MetalinkProcessor.h
  13174. (parseFile): Metalinker* -> MetalinkerHandle
  13175. Bug fixes:
  13176. * src/PeerChokeCommand.cc
  13177. (execute): cat01->cat02
  13178. * src/DefaultPieceStorage.cc
  13179. (DefaultPieceStorage): Added diskAdaptor(0)
  13180. * src/TrackerWatcherComand.cc:
  13181. (execute): Use btAnnounce->noMoreAnnounce()
  13182. to determin whether the function returns true or not.
  13183. * src/TrackerUpdateCommand.cc:
  13184. (execute): Use btAnnounce->noMoreAnnounce()
  13185. to determin whether the function returns true or not.
  13186. * src/FtpConnection.cc
  13187. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13188. This is the fix of the busy loop bug.
  13189. * src/DownloadCommand.cc
  13190. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13191. cached PeerStat.
  13192. The value of "name" entry in torrent file is now set by
  13193. *DiskAdaptor::setTopDir(...) methods.
  13194. * src/MultiDiskAdaptor.h
  13195. (topDir): New variable.
  13196. (setTopDir): New function.
  13197. (getTopDir): New function.
  13198. * src/MultiDiskAdaptor.cc
  13199. (getFilePath): Concat storDir, "/" and topDir.
  13200. (mkdir): Use getFilePath() to get the directory path for output.
  13201. * src/DefaultPieceStorage.cc
  13202. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13203. CopyDiskAdaptor.
  13204. * src/CopyDiskAdaptor.h
  13205. (topDir): New variable.
  13206. (setTopDir): New function.
  13207. (getTopDir): New function.
  13208. * src/CopyDiskAdaptor.cc
  13209. (fixFilename): Updated.
  13210. Misc
  13211. * src/UrlRequestInfo.h
  13212. (e): Removed.
  13213. (UrlRequestInfo): Removed e.
  13214. (getDownloadEngine): Removed.
  13215. * src/UrlRequestInfo.cc
  13216. (handler): Rewritten.
  13217. (printUrls): New function.
  13218. (execute): Call printUrls().
  13219. * src/HandshakeMessage.cc
  13220. (check): peerinteraction->getBtContext() -> btContext
  13221. * src/PeerInteraction.h
  13222. (getBtContext): Removed.
  13223. * src/TorrentRequestInfo.h
  13224. (execute): RequestInfo* -> RequestInfos
  13225. (getDownloadEngine): Removed.
  13226. * src/TorrentRequestInfo.cc
  13227. (haltRequested): Removed.
  13228. (btHaltRequested): New variable.
  13229. (torrentHandler): haltRequested -> btHaltRequested
  13230. (execute): RequestInfo* -> RequestInfos
  13231. * src/TorrentConsoleDownloadEngine.cc
  13232. (afterEachIteration): haltRequested -> btHaltRequested.
  13233. * src/ConsoleDownloadEngine.h
  13234. (initStatistics): Added virtual.
  13235. (calculateStatistics): Added virtual.
  13236. (onEndOfRun): Added virtual.
  13237. (afterEachIteration): Added virtual.
  13238. * src/ConsoleDownloadEngine.cc
  13239. (haltRequested): New variable.
  13240. (afterEachIteration): New function.
  13241. * src/main.cc
  13242. (requestInfo): Removed.
  13243. * src/SegmentMan.cc
  13244. (findSlowerSegmentEntry): Refactored.
  13245. * Release 0.9.0
  13246. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13247. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13248. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13249. * src/TorrentMan.h: Removed.
  13250. * src/TorrentMan.cc: Removed.
  13251. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13252. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13253. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13254. * src/PeerAbstractCommand.cc: Use btRuntime.
  13255. * src/BtContextAwareCommand.h: New class.
  13256. * src/FileEntry.h: Added accessor methods for following variables.
  13257. (path): Made private.
  13258. (length): Made private.
  13259. (offset): Made private.
  13260. (extracted): Made private.
  13261. (requested): Made private.
  13262. (FileEntries): New definition.
  13263. (FileEntryHandle): New definition.
  13264. * src/FileEntry.cc: New file.
  13265. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13266. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13267. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13268. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13269. * src/PieceStorage.h: New file.
  13270. * src/PeerInteractionCommand.h: Use btContext.
  13271. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13272. btRuntime.
  13273. * src/DefaultBtProgressInfoFile.h: New file.
  13274. * src/DefaultBtProgressInfoFile.cc: New file.
  13275. * src/File.cc
  13276. (Util.h): New include.
  13277. (mkdirs): New function.
  13278. * src/MultiDiskAdaptor.h
  13279. (mkdir): New function.
  13280. * src/PeerListProcessor.h
  13281. (Peers): Removed.
  13282. * src/PeerInteraction.h
  13283. (torrentMan): Removed.
  13284. (btContext): New variable.
  13285. (peerStorage): New variable.
  13286. (pieceStorage): New variable.
  13287. (btAnnounce): New variable.
  13288. (getTorrentMan): Removed.
  13289. (getBtContext): New function.
  13290. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13291. btAnnounce.
  13292. * src/HandshakeMessage.h
  13293. (TorrentMan.h): Removed.
  13294. * src/HandshakeMessage.cc: Use btContext.
  13295. * src/DefaultBtAnnounce.cc: New file.
  13296. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13297. * src/DefaultPieceStorage.cc: New file.
  13298. * src/DefaultBtContext.h: New file.
  13299. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13300. Use the accessor methods of FileEntry.
  13301. * src/CookieBox.cc: Updated to use Util::slice().
  13302. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13303. * src/common.h (SharedHandle.h): New include.
  13304. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13305. pieceStorage.
  13306. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13307. * src/DiskAdaptor.h
  13308. (topDir): Removed.
  13309. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13310. (setTopDir): Removed.
  13311. (getTopDir): Removed.
  13312. * src/BtContext.h: New file.
  13313. * src/DefaultPeerStorage.h: New file.
  13314. * src/PieceMessage.h (TorrentMan.h): Removed.
  13315. * src/RequestMessage.h (TorrentMan.h): Removed.
  13316. * src/TorrentDownloadEngine.h
  13317. (uploadLength): New variable.
  13318. (btContext): New variable.
  13319. (btRuntime): New variable.
  13320. (pieceStorage): New variable.
  13321. (peerStorage): New variable.
  13322. (btAnnounce): New variable.
  13323. (btProgressInfoFile): New variable.
  13324. (torrentMan): Removed.
  13325. (setBtContext): New function.
  13326. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13327. peerStorage, btAnnounce, btProgressInfoFile.
  13328. * src/Piece.h
  13329. (toString): New function.
  13330. (Pieces): New type definition.
  13331. * src/Peer.h
  13332. (active): New variable.
  13333. (Peer): Added active.
  13334. (activate): Set active to true.
  13335. (deactivate): Set active to false.
  13336. (isActive): New function.
  13337. (Peers): New type definition.
  13338. * src/DirectDiskAdaptor.cc
  13339. (getFilePath): Use the accessor methods of FileEntry.
  13340. * src/TorrentConsoleDownloadEngine.h
  13341. (afterEachIteration): New function.
  13342. * src/TorrentConsoleDownloadEngine.cc
  13343. (haltRequested): New variable.
  13344. (sendStatistics): Use pieceStorage, btRuntime.
  13345. (afterEachIteration): New function.
  13346. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13347. * src/Directry.h
  13348. (Directory): New function.
  13349. (DirectoryHandle): New type definition.
  13350. * src/BtProgressInfoFile.h: New file.
  13351. * src/RequestMessage.cc: Use pieceStorage.
  13352. * src/BtRuntime.h: New file.
  13353. * src/DefaultBtContext.cc: New file.
  13354. * src/BitfieldMan.h
  13355. (getCompletedLength): New function(private).
  13356. (getCompletedLength): New function.
  13357. (getFilteredCompletedLength): New function.
  13358. * src/BitfieldMan.h
  13359. (getCompletedLength): New function(private).
  13360. (getCompletedLength): New function.
  13361. (getFilteredCompletedLength): New function.
  13362. * src/MultiDiskAdaptor.cc
  13363. (mkdir): New function.
  13364. (openFile): Call mkdir().
  13365. (initAndOpenFile): Call mkdir().
  13366. * src/CancelMessage.h
  13367. (TorrentMan.h): Removed.
  13368. * src/RejectMessage.h
  13369. (TorrentMan.h): Removed.
  13370. * src/DownloadEngineFactory.cc
  13371. (DefaultPieceStorage.h): New include.
  13372. (DefaultPeerStorage.h): New include.
  13373. (DefaultBtAnnounce.h): New include.
  13374. (DefaultBtProgressInfoFile.h): New include.
  13375. (newTorrentConsoleEngine): Rewritten.
  13376. * src/ShareRatioSeedCriteria.h
  13377. (torrentMan): Removed.
  13378. (btContext): New variable.
  13379. (peerStorage): New variable.
  13380. (btRuntime): New variable.
  13381. (evaluate): Use btContext, btRuntime, peerStorage.
  13382. * src/AnnounceTier.h: New file.
  13383. * src/BtAnnounce.h: New file.
  13384. * src/BtRegistry.h: New file.
  13385. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13386. * src/PeerConnection.h (TorrentMan.h): Removed.
  13387. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13388. * src/Util.h
  13389. (slice): Added an argument.
  13390. * src/Util.cc
  13391. (slice): Added an argument to control whether trim is made or not.
  13392. * src/PeerStorage.h: New file.
  13393. * src/BtRegistry.cc: New file.
  13394. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13395. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13396. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13397. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13398. * src/TorrentRequestInfo.h
  13399. (e): Removed.
  13400. (showFileEntry): Added an argument.
  13401. (getDownloadEngine): Return 0.
  13402. * src/DefaultBtAnnounce.h: New file.
  13403. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13404. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13405. * src/PeerMessageFactory.h
  13406. (btContext): New variable.
  13407. (pieceStorage): New variable.
  13408. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13409. btAnnounce.
  13410. * src/DiskAdaptor.cc
  13411. (DiskAdaptor): Removed topDir.
  13412. (~DiskAdaptor): Removed topDir.
  13413. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13414. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13415. * src/File.h (mkdirs): New function.
  13416. * src/DefaultPeerStorage): New file.
  13417. * src/DownloadEngineFactory.h
  13418. (newTorrentConsoleEngine): Use btContext.
  13419. * src/BtContextAwareCommand.cc: New file.
  13420. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13421. * src/PeerMessage.h
  13422. (btContext): New variable.
  13423. (peerStorage): New variable.
  13424. (pieceStorage): New variable.
  13425. (setBtContext): New function.
  13426. * src/Directry.cc
  13427. (Directory): New function.
  13428. (createDir): Do nothing if name.size() == 0.
  13429. * src/AnnounceList.h
  13430. (AnnounceTier): Removed.
  13431. (AnnounceTiers): Removed.
  13432. * src/DefaultPieceStorage.h: New file.
  13433. * src/Piece.cc (toString): New function.
  13434. To fix typo:
  13435. * src/main.cc (showVersion): Fixed typo.
  13436. To fix compile warning:
  13437. * src/DelegatingPeerListProcessor.cc
  13438. (canHandle): Added "return false".
  13439. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13440. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13441. make the process of announce request testable.
  13442. * src/TrackerWatcherCommand.h
  13443. (TimeA2.h): Removed.
  13444. (interval): Removed.
  13445. (checkPoint): Removed.
  13446. (createRequestCommand): Added an argument 'url'.
  13447. (TrackerWatherCommand): Removed interval.
  13448. (createCommand): New function.
  13449. * src/DownloadEngineFactory.cc
  13450. (newTorrentConsoleEngine): Updated according to the changes in
  13451. TrackerWatherCommand.
  13452. * src/TorrentMan.cc
  13453. (DelegatingPeerListProcessor.h): New includes.
  13454. (TorrentMan): Added the initialization of announceInterval.
  13455. (isStoppedAnnounceReady): New function.
  13456. (isCompletedAnnounceReady): New function.
  13457. (isDefaultAnnounceReady): New function.
  13458. (isAnnounceReady): New function.
  13459. (getAnnounceUrl): New function.
  13460. (announceStart): New function.
  13461. (announceFailure): New function.
  13462. (announceSuccess): New function.
  13463. (isAllAnnounceFailed): New function.
  13464. (resetAnnounce): New function.
  13465. (processAnnounceResponse): New function.
  13466. (needMorePeerConnection): New function.
  13467. (noMoreAnnounce): New function.
  13468. * src/TrackerUpdateCommand.h
  13469. (getTrackerResponse): int->size_t
  13470. * src/TorrentMan.h
  13471. (isStoppedAnnounceReady): New function.
  13472. (isCompletedAnnounceReady): New function.
  13473. (isDefaultAnnounceReady): New function.
  13474. (announceInterval): New variable.
  13475. (isAnnounceReady): New function.
  13476. (getAnnounceUrl): New function.
  13477. (announceStart): New function.
  13478. (announceFailure): New function.
  13479. (announceSuccess): New function.
  13480. (isAllAnnounceFailed): New function.
  13481. (resetAnnounce): New function.
  13482. (processAnnounceResponse): New function.
  13483. (needMorePeerConnection): New function.
  13484. (noMoreAnnounce): New function.
  13485. * src/TrackerWatcherCommand.cc
  13486. (TrackerWatherCommand): Removed interval and checkPoint.
  13487. (execute): Rewritten.
  13488. (createCommand): New function.
  13489. (createRequestCommand): Rewritten.
  13490. * src/TrackerUpdateCommand.cc
  13491. (MetaFileUtil.h): Removed.
  13492. (DelegatingPeerListProcessor.h): Removed.
  13493. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13494. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13495. Request -> RequestHandle:
  13496. * src/HttpResponseCommand.h: Request->RequestHandle
  13497. * src/AbstractCommand.cc: Request->RequestHandle
  13498. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13499. * src/HttpRequestCommand.cc: Request->RequestHandle
  13500. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13501. * src/AbstractCommand.h: Request->RequestHandle
  13502. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13503. * src/HttpResponseCommand.cc: Request->RequestHandle
  13504. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13505. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13506. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13507. * src/HttpConnection.h: Request->RequestHandle
  13508. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13509. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13510. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13511. * src/DownloadCommand.h: Request->RequestHandle
  13512. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13513. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13514. * src/HttpRequestCommand.h: Request->RequestHandle
  13515. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13516. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13517. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13518. * src/HttpDownloadCommand.h: Request->RequestHandle
  13519. * src/FtpConnection.cc: Request->RequestHandle
  13520. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13521. * src/UrlRequestInfo.cc: Request->RequestHandle
  13522. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13523. * src/HttpConnection.h: Request->RequestHandle
  13524. * src/DownloadCommand.cc: Request->RequestHandle
  13525. * src/FtpConnection.h: Request->RequestHandle
  13526. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13527. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13528. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13529. * src/Request.h
  13530. (SharedHandle.h): New include.
  13531. (RequestHandle): New type definition.
  13532. (Requests): Redefined.
  13533. To add MULTITRACKER support:
  13534. * src/TrackerWatcherCommand.h
  13535. (createRequestCommand): New function.
  13536. * src/DownloadEngineFactory.cc
  13537. (newTorrentConsoleEngine): Removed req.
  13538. * src/prefs.h
  13539. (PREF_TRACKER_MAX_TRIES): New definition.
  13540. * src/TorrentMan.cc
  13541. (TorrentMan): Removed req. Added trackerNumTry.
  13542. (~TorrentMan): Removed req.
  13543. (setupInternal1): Added announceList.
  13544. * src/TorrentRequestInfo.cc
  13545. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13546. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13547. * src/main.cc
  13548. (main): Added PREF_TRACKER_MAX_TRIES.
  13549. * src/TorrentMan.h
  13550. (Request.h): Removed.
  13551. (AnnounceList.h): New include.
  13552. (trackerNumTry): New variable.
  13553. (req): Removed.
  13554. (announceList): New variable.
  13555. * src/TrackerWatcherCommand.cc
  13556. (execute): Rewritten.
  13557. (createRequestCommand): New function.
  13558. * src/TrackerUpdateCommand.cc
  13559. (execute): Updated with the use of AnnounceList.
  13560. * src/AnnounceList.cc: New class.
  13561. * src/AnnounceList.h: New class.
  13562. To fix typo:
  13563. * src/prefs.h
  13564. (PREF_MAX_TRIES): max_try->max_tries
  13565. To not to decode "+" as space in URL decode:
  13566. * src/Util.cc
  13567. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13568. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13569. To add timeout to async name resolution:
  13570. * src/AbstractCommand.h
  13571. (nameResolveFinished): New function. This is not elegant way. It needs
  13572. to be more refined.
  13573. (nameResolverCheck): New variable.
  13574. * src/AbstractCommand.cc
  13575. (AbstractCommand): Added nameResolverCheck.
  13576. (execute): Added the check whether the name resolution has finished.
  13577. (setNameResolverCheck): Set nameResolverCheck to true.
  13578. (disableNameResolverCheck): Set nameResolverCheck to false.
  13579. (nameResolverFinished): New function.
  13580. * src/FtpInitiateConnectionCommand.h
  13581. (nameResolverFinished): New function.
  13582. * src/FtpInitiateConnectionCommand.cc
  13583. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13584. * src/HttpInitiateConnectionCommand.h
  13585. (nameResolverFinished): New function.
  13586. * src/HttpInitiateConnectionCommand.cc
  13587. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13588. * src/prefs.h
  13589. (PREF_DNS_TIMEOUT): New definition.
  13590. * src/main.cc
  13591. (main): Added PREF_DNS_TIMEOUT.
  13592. To add the support for a non-compact response from a tracker:
  13593. * src/PeerListProcessor.h: New class.
  13594. * src/DefaultPeerListProcessor.h: New class.
  13595. * src/DefaultPeerListProcessor.cc: New class.
  13596. * src/CompactPeerListProcessor.h: New class.
  13597. * src/CompactPeerListProcessor.cc: New class.
  13598. * src/DelegatingPeerListProcessor.h: New class.
  13599. * src/DelegatingPeerListProcessor.cc: New class.
  13600. * src/TorrentMan.cc
  13601. (addPeer): New function(overload).
  13602. (addPeer): Delete unused peers only when new peer is added.
  13603. * src/TorrentMan.h
  13604. (PeerListProcessor.h): Included.
  13605. (Peers): Removed.
  13606. (addPeer): New function(overload).
  13607. * src/TrackerUpdateCommand.cc
  13608. (netinet/in.h): Removed.
  13609. (DelegatingPeerListProcessor.h): Included.
  13610. (execute): Updated to use DelegatingPeerListProcessor.
  13611. To fix the memory leak in TorrentMan::peers:
  13612. * src/PeerAbstractCommand.cc
  13613. (onAbort): Added peer->resetStatus().
  13614. * src/Peer.h
  13615. (resetStatus): Made public.
  13616. To improve the precision of the speed calculation:
  13617. * src/SpeedCalc.h
  13618. (nextInterval): New variable.
  13619. * src/SpeedCalc.cc
  13620. (reset): Added nextInterval.
  13621. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13622. (changeSw): Set nextInterval to 15 seconds relative to the current
  13623. instant time.
  13624. * src/main.cc
  13625. (showVersion): Updated.
  13626. (showUsage): Updated.
  13627. * Release 0.8.1
  13628. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13629. * src/main.cc
  13630. (showUsage): Commented out --min-segment-size option.
  13631. (main): Commented out --min-segment-size option.
  13632. * Release 0.8.0
  13633. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13634. * src/*.{h,cc}:
  13635. Added an exception to the license which allows linking with OpenSSL.
  13636. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13637. * src/AbstractCommand.cc
  13638. (execute): Check whether the download has finished before checking
  13639. socket status.
  13640. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13641. Do not exit even if no segment is available.
  13642. * src/prefs.h
  13643. (PREF_STARTUP_IDLE_TIME): New definition.
  13644. * src/PeerInteractionCommand.cc
  13645. (executeInternal): Removed max speed limit. Because it performs bad.
  13646. (receiveMessages): Added max speed limit. This was better than above,
  13647. but still a little bit to be desired. Sometimes the download speed
  13648. became much faster than I specified.
  13649. * src/SpeedCalc.h
  13650. (start): New variable.
  13651. (accumulatedLength): New variable.
  13652. (getAvgSpeed): New function.
  13653. * src/SpeedCalc.cc
  13654. (reset): Added start, accumulatedLength.
  13655. (update): Added calculation of an average speed.
  13656. (getAvgSpeed): New function.
  13657. * src/DownloadCommand.h
  13658. (sw): Removed.
  13659. * src/main.cc
  13660. (main): Added PREF_STARTUP_IDLE_TIME.
  13661. * src/PeerStat.h
  13662. (STATUS): Added REQUEST_IDLE.
  13663. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13664. (getAvgDownloadSpeed): New function
  13665. (requestIdle): New function.
  13666. * src/SegmentMan.h
  13667. (SegmentEntryHandle): New type definition.
  13668. (SegmentEntries): Now holds SegmentEntryHandle.
  13669. (findSlowerSegmentEntry): New funtion.
  13670. * src/SegmentMan.cc
  13671. (save): Updated according to the changes in SegmentEntries.
  13672. (read): Updated according to the changes in SegmentEntries.
  13673. (FindSegmentEntryByIndex): Updated according to the changes in
  13674. SegmentEntries.
  13675. (FindSegmentEntryByCuid): Updated according to the changes in
  13676. SegmentEntries.
  13677. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13678. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13679. Renamed uitr as itr.
  13680. (findSlowerSegmentEntry): New function.
  13681. (getSegment): Updated according to the changes in SegmentEntries.
  13682. Added the feature that cancels the segment with slow server and fast
  13683. one takes it over.
  13684. (cancelSegment): Updated according to the changes in SegmentEntries.
  13685. (getDownloadLength): Updated according to the changes in
  13686. SegmentEntries.
  13687. (init): Assigned 0 to bitfield after deleting it.
  13688. * src/DownloadCommand.cc
  13689. (STARTUP_IDLE_TIME): Removed.
  13690. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13691. * src/PeerChokeCommand.cc
  13692. (optUnchokingPeer): Updated according to the changes in Peer.
  13693. (ResetDelta): Removed.
  13694. (UploadFaster): Updated according to the changes in Peer.
  13695. (DownloadFaster): Updated according to the changes in Peer.
  13696. (execute): I clarify the meaning of "upload" and "download" here.
  13697. "upload" means the transfer from localhost to remote host.
  13698. "download" means the transfer from remote host to localhost.
  13699. Based on this rule, I swapped orderByUploadRate and
  13700. orderByDownloadRate.
  13701. * src/PeerInteractionCommand.cc
  13702. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13703. (executeInternal): Removed the argument of
  13704. peerInteraction->sendMessages().
  13705. (receiveMessages): Rewritten download speed limit.
  13706. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13707. * src/HttpResponseCommand.cc
  13708. (handleDefaultEncoding): If file size is unknown in torrent request,
  13709. do not call segmentMan->initBitfield() here.
  13710. Disabled persistent connection feature in torrent request.
  13711. * src/UrlRequestInfo.h
  13712. (UrlRequestInfo): Removed const qualifier from option.
  13713. * src/TorrentMan.h
  13714. (TransferStat): New class.
  13715. (deltaDownloadLength): Removed.
  13716. (deltaUploadLength): Removed.
  13717. (addDeltaDownloadLength): Removed.
  13718. (getDeltaDownloadLength): Removed.
  13719. (resetDeltaDownloadLength): Removed.
  13720. (addDeltaUploadLength): Removed.
  13721. (getDeltaUploadLength): Removed.
  13722. (resetDeltaUploadLength): Removed.
  13723. (addActivePeer): Added peer->activate().
  13724. (deleteActivePeer): Added peer->deactivate().
  13725. (calculateStat): New function.
  13726. * src/TorrentMan.cc
  13727. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13728. (calculateStat): New function.
  13729. * src/PeerInteraction.h
  13730. (uploadLimit): Removed.
  13731. (option): New variable.
  13732. (setUploadLimit): Removed.
  13733. (getUploadSpeed): Removed.
  13734. (sendMessages): Removed the argument "currentUploadSpeed".
  13735. * src/PeerInteraction.cc
  13736. (prefs.h): Included.
  13737. (PeerInteraction): Removed uploadLimit. Added option.
  13738. (sendMessages): Rewritten upload speed limit.
  13739. (sendHandshake): Removed the argument from sendMessages().
  13740. (sendBitfield): Removed the argument from sendMessages().
  13741. * src/PeerAbstractCommand.cc
  13742. (execute): Commented out the portion of upload limit.
  13743. (onAbort): Removed peer->resetStatus().
  13744. * src/TorrentRequestInfo.cc
  13745. (timeoutSpecified): Declared extern.
  13746. (execute): Set timeout to 180 if timeout is not specified by.
  13747. command-line.
  13748. * src/PieceMessage.cc
  13749. (receivedAction): Added peer->updateDownloadLength().
  13750. Removed peer->addPeerUpload().
  13751. Removed torrentMan->addDeltaDownloadLength().
  13752. (send): Added peer->updateUploadLength().
  13753. Removed peer->addPeerDownload().
  13754. Removed torrentMan->addDeltaUploadLength().
  13755. * src/main.cc
  13756. (timeoutSpecified): New variable.
  13757. (main): Set timeoutSpecified to false.
  13758. If the command-line option "--upload-limit" is specified, then
  13759. timeoutSpecified is set to true. This option will remain in the next
  13760. release, but be deprecated in the future release.
  13761. * src/TorrentRequestInfo.h
  13762. (TorrentRequestInfo): Removed const qualifier from op.
  13763. * src/PeerStat.h
  13764. (uploadSpeed): New variable.
  13765. (PeerStat): Added default value to cuid.
  13766. (calculateUploadSpeed): New function.
  13767. (updateUploadLength): New function.
  13768. (getMaxUploadSpeed): New function.
  13769. (getAvgUploadSpeed): New function.
  13770. (reset): Added uploadSpeed. Set status to IDLE.
  13771. * src/TorrentDownloadEngine.h
  13772. (cp): Declared as Time.
  13773. (sessionDownloadLengthArray): Removed.
  13774. (sessionUploadLengthArray): Removed.
  13775. (currentCp): Removed.
  13776. (lastCalcStat): New variable
  13777. (lastElapsed): Removed.
  13778. (sessionDownloadLength): Removed.
  13779. (calculateStat): New function.
  13780. * src/TorrentDownloadEngine.cc
  13781. (initStatistics): Removed lastElapsed, cp[],
  13782. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13783. currentCp, sessionDownloadLength.
  13784. Added cp.reset() and lastCalcStat.reset().
  13785. (calculateSpeed): Changed the name of the argument.
  13786. (calculateStatistics): Rewritten.
  13787. (calculateStat): New function.
  13788. * src/Peer.h
  13789. (PeerStat.h): Included.
  13790. (peerUpload): Removed.
  13791. (peerDownload): Removed.
  13792. (peerStat): New variable.
  13793. (sessionUploadLength): New variable.
  13794. (sessionDownloadLength): New variable.
  13795. (deltaUpload): Removed.
  13796. (deltaDownload): Removed.
  13797. (resetStatus): Made private.
  13798. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13799. Removed peerUpload, peerDownload.
  13800. (updateUploadLength): New function.
  13801. (addDeltaUpload): Removed.
  13802. (updateDownloadLength): New function.
  13803. (resetDeltaUpload): Removed.
  13804. (getDeltaUpload): Removed.
  13805. (addDeltaDownload): Removed.
  13806. (calculateUploadSpeed): New function.
  13807. (resetDeltaDownload): Removed.
  13808. (getDeltaDownload): Removed.
  13809. (calculateDownloadSpeed): New function.
  13810. (getSessionUploadLength): New function.
  13811. (getSessionDownloadLength): New function.
  13812. (activate): New function.
  13813. (deactivate): New function.
  13814. (addPeerUpload): Removed.
  13815. (setPeerUpload): Removed.
  13816. (getPeerUpload): Removed.
  13817. (addPeerDownload): Removed.
  13818. (setPeerDownload): Removed.
  13819. (getPeerDownload): Removed.
  13820. * src/Peer.cc
  13821. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13822. * src/MetalinkRequestInfo.h
  13823. (MetalinkRequestInfo): Removed const qualifier from op.
  13824. * src/RequestInfo.h
  13825. (op): Removed const qualifier.
  13826. (RequestInfo): Removed const qualifier from op.
  13827. * src/prefs.h
  13828. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13829. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13830. * src/PeerInteractionCommand.cc
  13831. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13832. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13833. * src/PeerInteraction.cc
  13834. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13835. * src/main.cc
  13836. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13837. Added the description of "--max-download-limit" option.
  13838. Removed the description of "--upload-limit" option.
  13839. Added the description of "--max-upload-limit" option.
  13840. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13841. Added "--max-download-limit" option and "--max-upload-limit" option.
  13842. Added the warning message if "--upload-limit" option is used.
  13843. * src/DownloadCommand.cc
  13844. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13845. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13846. To rewrite segment download mechanism for HTTP/FTP download.
  13847. Use BitfieldMan to manage segment download.
  13848. * src/HttpResponseCommand.h
  13849. (executeInternal): Pass the reference of segment.
  13850. * src/AbstractCommand.cc
  13851. (prepareForRetry): Call segmentMan->cancelSegment here.
  13852. (onAbort): Call segmentMan->cancelSegment here.
  13853. * src/HttpDownloadCommand.cc
  13854. (prepareForNextSegment): New function.
  13855. * src/DownloadEngineFactory.cc
  13856. (newConsoleEngine): Removed splitter.
  13857. (newTorrentConsoleEngine): Removed splitter.
  13858. * src/Request.h
  13859. (segment): Renamed from seg.
  13860. * src/FtpInitiateConnectionCommand.h
  13861. (executeInternal): Pass the reference of segment.
  13862. * src/AbstractCommand.h
  13863. (executeInternal): Pass the reference of segment.
  13864. * src/pref.h
  13865. (PREF_SEGMENT_SIZE): New definition.
  13866. * src/HttpProxyRequestCommand.h
  13867. (executeInternal): Pass the reference of segment.
  13868. * src/HttpResponseCommand.cc
  13869. (checkResponse): Allowed status 206 when a request range starts 0.
  13870. (handleDefaultEncoding): Rewritten the code related to Segment.
  13871. (handleOtherEncoding): Rewritten the code related to Segment.
  13872. * src/SegmentMan.h
  13873. (SegmentEntry): New class.
  13874. (SegmentEntries): New type definition.
  13875. (bitfield): New variable.
  13876. (usedSegmentEntries): New variable.
  13877. (onNullBitfield): New function.
  13878. (checkoutSegment): New function.
  13879. (segments): Removed.
  13880. (splitter): Removed.
  13881. (unregisterId): Removed.
  13882. (getSegment): New function(overload)
  13883. (getDownloadedSize): Removed.
  13884. (cancelSegment): New function.
  13885. (completeSegment): New function.
  13886. (initBitfield): New function.
  13887. (hasSegment): New function.
  13888. (getDownloadLength): New function.
  13889. * src/BitfieldMan.h
  13890. (getStartIndex): New function.
  13891. (getEndIndex): New function.
  13892. (getMissingUnusedIndex): New function(overload).
  13893. (getSparseMissingUnusedIndex): New function.
  13894. * src/BitfieldMan.cc
  13895. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13896. (getMissingUnusedIndex): New function(overload).
  13897. (Range): New class.
  13898. (getStartIndex): New function.
  13899. (getEndIndex): New function.
  13900. (getSparseMissingUnusedIndex): New function.
  13901. (isBitSetInternal): Return false if the given index is less than 0.
  13902. * src/HttpInitiateConnectionCommand.h
  13903. (executeInternal): Pass the reference of segment.
  13904. * src/FtpNegotiateCommand.h
  13905. (executeInternal): Pass the reference of segment.
  13906. * src/FtpNegotiateCommand.cc
  13907. (recvSize): Initialize bitfield here.
  13908. * src/FtpTunnelResponseCommand.h
  13909. (executeInternal): Pass the reference of segment.
  13910. * src/HttpConnection.cc
  13911. (createRequest): Rewritten range header processing.
  13912. * src/DownloadCommand.h
  13913. (executeInternal): Pass the reference of segment.
  13914. (prepareForRetry): Removed.
  13915. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13916. function.
  13917. * src/main.cc
  13918. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13919. * src/SegmentMan.cc
  13920. (SegmentMan): Added bitfield. Removed splitter.
  13921. (~SegmentMan): Added bitfield. Removed splitter.
  13922. (unregisterId): Removed.
  13923. (getSegment): Rewritten.
  13924. (updateSegment): Rewritten.
  13925. (save): Rewritten.
  13926. (read): Rewritten.
  13927. (finished): Rewritten.
  13928. (getDownloadedSize): Removed.
  13929. (initBitfield): New function.
  13930. (FindSegmentEntryByIndex): New function object.
  13931. (FindSegmentEntryByCuid): New function object.
  13932. (checkoutSegment): New function.
  13933. (onNullBitfield): New function.
  13934. (getSegment): New function(overload).
  13935. (CancelSegment): New function object.
  13936. (cancelSegment): New function.
  13937. (completeSegment): New function.
  13938. (hasSegment): New function.
  13939. (getDownloadLength): New function.
  13940. * src/FtpInitiateConnectionCommand.cc
  13941. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13942. * src/Segment.h: Rewritten.
  13943. * src/Segment.cc (operator<<): New function.
  13944. * src/HttpDownloadCommand.h
  13945. (prepareForNextSegment): New function.
  13946. * src/Request.cc
  13947. (resetUrl): Made segment null.
  13948. * src/DownloadEngine.cc
  13949. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13950. * src/HttpProxyRequestCommand.h
  13951. (executeInternal): Pass the reference of segment.
  13952. * src/DownloadCommand.cc
  13953. (executeInternal): Rewritten the code related to Segment.
  13954. (prepareForRetry): Removed.
  13955. (prepareForNextSegment): Rewritten.
  13956. * src/FtpTunnelResponseCommand.h
  13957. (executeInternal): Pass the reference of segment.
  13958. To add HTTP 1.1 persistent connection support(experimental)
  13959. * src/HttpRequestCommand.cc
  13960. (executeInternal): Disable keep alive if it is disabled by
  13961. configuration.
  13962. * src/Request.h
  13963. (keepAlive): New variable.
  13964. (isKeepAlive): New function.
  13965. (setKeepAlive): New function.
  13966. * src/pref.h
  13967. (PREF_HTTP_KEEP_ALIVE): New definition.
  13968. * src/HttpResponseCommand.cc
  13969. (executeInternal): Check the remote server supports keep alive.
  13970. * src/HttpConnection.cc
  13971. (createRequest): Send "Connection: close" only if keep alive is
  13972. disabled.
  13973. * src/main.cc
  13974. (main):
  13975. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13976. To add max download speed limit:
  13977. * src/pref.h
  13978. (PREF_MAX_SPEED_LIMIT): New definition.
  13979. * src/PeerInteractionCommand.cc
  13980. (executeInternal): Added max download speed limit. Not tested yet.
  13981. * src/SegmentMan.h
  13982. (PeerStats): New type definition.
  13983. (peerStats): New variable.
  13984. (registerPeerStat): New function.
  13985. (FindPeerStat): New function object.
  13986. (getPeerStat): New function.
  13987. (calculateDownloadSpeed): New function.
  13988. * src/SpeedCalc.h: New class.
  13989. * src/SpeedCalc.cc: New class.
  13990. * src/main.cc
  13991. (main):
  13992. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13993. download speed is not restricted).
  13994. * src/PeerStat.h: New class.
  13995. * src/SegmentMan.cc
  13996. (registerPeerStat): New function.
  13997. (calculateDownloadSpeed): New function.
  13998. * src/DownloadCommand.cc
  13999. (STARTUP_IDLE_TIME): New definition.
  14000. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14001. downloadStart.
  14002. (~DownloadCommand): Call peerStat->downloadStop.
  14003. (executeInternal): Added download speed limitter. Rewritten lowest
  14004. speed limitter.
  14005. * src/HttpConnection.cc
  14006. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14007. * src/AbstractCommand.cc
  14008. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14009. Added hostname to the error message.
  14010. * src/ConsoleDownloadEngine.cc
  14011. (calculateStatistics): Initialize psize with dlSize.
  14012. * src/PieceMessage.cc
  14013. (receivedAction): Do not call peerInteraction->abortPiece here.
  14014. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14015. * src/BitfieldMan.h
  14016. (clearAllUseBit): New function.
  14017. (setAllUseBit): New function.
  14018. * src/BitfieldMan.cc
  14019. (clearAllBit): Do not clear useBitfield here.
  14020. (clearAllUseBit): New function.
  14021. (setAllUseBit): New function.
  14022. * src/Piece.cc
  14023. (clearAllBlock): Call bitfield->clearAllUseBit().
  14024. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14025. To make filename URL-decoded:
  14026. * src/HttpResponseCommand.h: Updated doc.
  14027. * src/HttpResponseCommand.cc
  14028. (determinFilename): Made filename URL-decoded.
  14029. * src/FtpInitiateConnectionCommand.cc
  14030. (executeInternal): Made filename URL-decoded.
  14031. * src/Util.h (urldecode): New function.
  14032. * src/Util.cc (urldecode): New function.
  14033. To fix a bug that caused assertion failure in ares_strerror:
  14034. * src/NameResolver.cc (callback): Fixed the bug.
  14035. * Release 0.7.3
  14036. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14037. To add --seed-time and --seed-ratio command-line option:
  14038. * src/Option.h (getAsDouble): New function.
  14039. * src/Option.cc (getAsDouble): New function.
  14040. * src/SeedCheckCommand.h: New class.
  14041. * src/SeedCheckCommand.cc: New class.
  14042. * src/DownloadEngineFactory.cc
  14043. (SeedCheckCommand.h): Included.
  14044. (UnionSeedCriteria.h): Included.
  14045. (TimeSeedCriteria.h): Included.
  14046. (ShareRatioSeedCriteria.h): Included.
  14047. (newTorrentConsoleEngine): Added the processing of seed option.
  14048. * src/SeedCriteria.h: New class.
  14049. * src/ShareRatioSeedCriteria.h: New class.
  14050. * src/TimeSeedCriteria.h: New class.
  14051. * src/UnionSeedCriteria.h: New class.
  14052. * src/prefs.h
  14053. (PREF_SEED_TIME): New definition.
  14054. (PREF_SEED_RATIO): New definition.
  14055. * src/main.cc
  14056. (showUsage): Added --seed-time and --seed-ratio option.
  14057. (main): Added --seed-time and --seed-ratio option.
  14058. Made default log file name "/dev/null".
  14059. * src/SharedHandle.h
  14060. (SharedHandle): Copy constructor. Made it assignable from the
  14061. SharedHandle of the subclasses.
  14062. (operator=): Made it assignable from the SharedHandle of the
  14063. subclasses.
  14064. (getRefCount): New function.
  14065. To add notice log level and the switch to write log to stdout. This
  14066. switch is configurable per log level.
  14067. * src/Logger.h
  14068. (notice): New function.
  14069. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14070. constant.
  14071. * src/LogFactory.cc
  14072. (getInstance): The use of NullLogger was removed. A log message with
  14073. notice log level was made written to stdout along with log file.
  14074. * src/NullLogger.h
  14075. (notice): New function.
  14076. * src/SimpleLogger.h
  14077. (writeHeader): Added the 'file' argument.
  14078. (writeLog): Added the 'file' argument.
  14079. (writeFile): New function.
  14080. (stdoutField): New variable.
  14081. (SimpleLogger): Removed the default constructor.
  14082. (SimpleLogger): Made the default value of logfile 0.
  14083. (debug): Added 'virtual' keyword.
  14084. (info): Added 'virtual' keyword.
  14085. (warn): Added 'virtual' keyword.
  14086. (error): Added 'virtual' keyword.
  14087. (notice): New function.
  14088. (setStdout): New function.
  14089. * src/SimpleLogger.cc
  14090. (WRITE_LOG): Replaced writeLog with writeFile.
  14091. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14092. (SimpleLogger): Removed the default constructor.
  14093. (setStdout): New function.
  14094. (writeLog): Added the handling of NOTICE log level.
  14095. (writeFile): New function.
  14096. (notice): New function.
  14097. * src/TorrentMan.h: Updated doc.
  14098. * src/BitfieldMan.h: Updated doc.
  14099. * src/TrackerWatcherCommand.cc
  14100. (execute): Return true if error occurred in the request to the tracker
  14101. and halt is requested.
  14102. * src/TrackerUpdateCommand.cc
  14103. (execute): Return true if error occurred in the request to the tracker
  14104. and halt is requested.
  14105. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14106. DownloadEngine:
  14107. * src/TorrentConsoleDownloadEngine.h
  14108. (onSelectiveDownloadingCompletes): Removed.
  14109. * src/TorrentConsoleDownloadEngine.cc
  14110. (onSelectiveDownloadingCompletes): Removed.
  14111. * src/TorrentDownloadEngine.h
  14112. (onEndOfRun): Added 'virtual' keyword.
  14113. (afterEachIteration): Removed.
  14114. (onSelectiveDownloadingCompletes): Removed.
  14115. * src/TorrentDownloadEngine.cc
  14116. (onEndOfRun): Removed filenameFixed.
  14117. (afterEachIteration): Removed.
  14118. * src/TorrentMan.cc
  14119. (completePiece): Call onDownloadComplete here.
  14120. (onDownloadComplete): Added 2 log messages.
  14121. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14122. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14123. * src/NameResolver.h: Added the prototype declaration of callback().
  14124. To support c-ares library:
  14125. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14126. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14127. * src/FtpInitiateConnectionCommand.h:
  14128. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14129. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14130. * src/HttpInitiateConnectionCommand.h:
  14131. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14132. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14133. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14134. #1542285 by tizianomueller)
  14135. * src/HttpInitiateConnectionCommand.cc:
  14136. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14137. * src/FtpInitiateConnectionCommand.cc:
  14138. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14139. * src/DownloadEngine.h:
  14140. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14141. * src/DownloadEngine.cc:
  14142. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14143. To fix the bug that causes compilation failure with metalink-support
  14144. disabled(bug#1543587):
  14145. * src/main.cc: Fixed with the patch by tizianomueller.
  14146. * Release 0.7.2
  14147. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14148. * src/main.cc
  14149. (main): Added a message to inform users that aria2 is starting to
  14150. verify checksum.
  14151. * src/RequestInfo.cc
  14152. (printDownloadAbortMessage): Added a message to inform users that
  14153. transfer can be resumed.
  14154. * src/FeatureConfig.cc
  14155. (FEATURE_ASYNC_DNS): New definition.
  14156. (FeatureConfig): Added aysnc DNS entry.
  14157. To replace CommandUuid with Command* in SocketEntry and
  14158. NameResolverEntry:
  14159. * src/DownloadEngine.h
  14160. (CommandUuids): Removed.
  14161. (SocketEntry::commandUuid): Removed.
  14162. (SocketEntry::command): New variable.
  14163. (SocketEntry::SocketEntry): Updated.
  14164. (SocketEntry::operator==): Updated.
  14165. (NameResolverEntry::commandUuid): Removed.
  14166. (NameResolverEntry::command): New variable.
  14167. (NameResolverEntry::NameResolverEntry): Updated.
  14168. (NameResolverEntry::operator==): Updated.
  14169. (waitData): Changed the argument type.
  14170. (addSocketForReadCheck): Changed the argument type.
  14171. (deleteSocketForReadCheck): Changed the argument type.
  14172. (addSocketForWriteCheck): Changed the argument type.
  14173. (deleteSocketForWriteCheck): Changed the argument type.
  14174. (addNameResolverCheck): Changed the argument type.
  14175. (deleteNameResolverCheck): Changed the argument type.
  14176. * src/DownloadEngine.cc
  14177. (FindCommand): Removed.
  14178. (run): Removed activeUuid. Added activeCommands instead.
  14179. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14180. (AccumulateActiveCommand): New function object.
  14181. (waitData): Use AccumulateActiveCommand.
  14182. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14183. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14184. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14185. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14186. (addNameResolverCheck): Use Command instead of CommandUuid.
  14187. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14188. * src/AbstractCommand.cc
  14189. (disableReadCheckSocket): Updated according to the changes in
  14190. DownloadEngine.
  14191. (setReadCheckSocket): Updated according to the changes in
  14192. DownloadEngine.
  14193. (disableWriteCheckSocket): Updated according to the changes in
  14194. DownloadEngine.
  14195. (setWriteCheckSocket): Updated according to the changes in
  14196. DownloadEngine.
  14197. (setNameResolverCheck): Updated according to the changes in
  14198. DownloadEngine.
  14199. (disableNameResolverCheck): Updated according to the changes in
  14200. DownloadEngine.
  14201. * src/AbstractCommand.cc
  14202. (disableReadCheckSocket): Updated according to the changes in
  14203. DownloadEngine.
  14204. (setReadCheckSocket): Updated according to the changes in
  14205. DownloadEngine.
  14206. (disableWriteCheckSocket): Updated according to the changes in
  14207. DownloadEngine.
  14208. (setWriteCheckSocket): Updated according to the changes in
  14209. DownloadEngine.
  14210. * release 0.7.1
  14211. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14212. To handle the case where some BitTorrent tracker requires all letters
  14213. except for [A-Za-z0-9] is URL encoded.
  14214. * src/Util.h
  14215. (torrentUrlencode): New function.
  14216. * src/Util.cc
  14217. (ctype.h): Included.
  14218. (torrentUrlencode): New function.
  14219. * src/TrackerWatcherCommand.cc
  14220. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14221. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14222. To add asynchronous DNS support(libares):
  14223. * src/AbstractCommand.h
  14224. (setNameResolverCheck): New function.
  14225. (disableNameResolverCheck): New function
  14226. (resolveHostname): New function.
  14227. * src/AbstractCommand.cc
  14228. (setNameResolverCheck): New function.
  14229. (disableNameResolverCheck): New function
  14230. (resolveHostname): New function.
  14231. * src/FtpInitiateConnectionCommand.h
  14232. (nameResolver): New function.
  14233. * src/FtpInitiateConnectionCommand.cc
  14234. (Util.h): Included.
  14235. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14236. disableWriteCheckSocket.
  14237. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14238. (executeInternal): Added async DNS support.
  14239. * src/HttpInitiateConnectionCommand.h
  14240. (nameResolver): New function.
  14241. * src/HttpInitiateConnectionCommand.cc
  14242. (DlRetryEx.h): Included.
  14243. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14244. disableWriteCheckSocket.
  14245. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14246. (executeInternal): Added async DNS support.
  14247. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14248. by extern "C" declaration.
  14249. * src/NameResolver.cc: New class.
  14250. * src/Util.h:
  14251. (isNumberAndDotsNotation): New function
  14252. * src/Util.cc
  14253. (isNumberAndDotsNotation): New function.
  14254. * src/DownloadEngine.h
  14255. (NameResolver.h): Included.
  14256. (NameResolverEntry): New class.
  14257. (NameResolverEntries): New type definition.
  14258. (addNameResolverCheck): New function.
  14259. (deleteNameResolverCheck): New function.
  14260. * src/DownloadEngine.cc
  14261. (run): Initialize cp with 0.
  14262. (SetDescriptor::operator()): Added for NameResolverEntry.
  14263. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14264. (waitData): Check nameResolver entries.
  14265. (updateFdSet): Update fds in nameResolver entries.
  14266. (addNameResolverCheck): New function.
  14267. (deleteNameResolverCheck): new function.
  14268. * src/PeerInteractionCommand.cc
  14269. (executeInternal): Fixed wrong socket handling.
  14270. * src/main.cc
  14271. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14272. * src/Util.cc
  14273. (fileChecksum): Removed the call to ctx.digestReset().
  14274. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14275. * po/ru.po: Azamat sent me Russian translation.
  14276. * src/FtpNegotiateCommand.cc
  14277. (recvGreeting): Call disableWriteCheckSocket just after
  14278. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14279. (recvRetr): Recognized status code 125 as a acceptable response code.
  14280. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14281. case-insesitive filesystem(BUG#1531057).
  14282. * src/Time.h: Renamed as TimeA2.h.
  14283. * src/Time.cc: Renamed as TimeA2.cc.
  14284. * src/TimeA2.h: New class.
  14285. * src/TimeA2.cc: New class.
  14286. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14287. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14288. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14289. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14290. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14291. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14292. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14293. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14294. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14295. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14296. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14297. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14298. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14299. * release 0.7.0
  14300. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14301. * src/PeerChokeCommand.h
  14302. (PeerChokeCommand): Rearranged the arguments.
  14303. * src/PeerChokeCommand.cc
  14304. (PeerChokeCommand): Rearranged the arguments.
  14305. * src/MetalinkEntry.h
  14306. (Checksum.h): Included.
  14307. (md5): Removed.
  14308. (sha1): Removed.
  14309. (checksum): New variable.
  14310. (operator=): Updated.
  14311. (check): Removed.
  14312. * src/prefs.h
  14313. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14314. (PREF_FOLLOW_TORRENT): New definition.
  14315. (PREF_SELECT_FILE): New definition.
  14316. (PREF_FOLLOW_METALINK): New definition.
  14317. * src/MetalinkResource.h
  14318. (TYPE_HTTPS): Added to enum TYPE.
  14319. * src/TorrentMan.cc
  14320. (~TorrentMan): Rewritten.
  14321. * src/MultiDiskWriter.cc
  14322. (MultiDiskAdaptor): Updated according to the changes in
  14323. MessageDigestContext.
  14324. (~MultiDiskAdaptor): Updated according to the changes in
  14325. MessageDigestContext.
  14326. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14327. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14328. * src/Util.h
  14329. (fileChecksum): Updated according to the changes in
  14330. MessageDigestContext.
  14331. * src/Util.cc
  14332. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14333. (fileChecksum): Updated according to the changes in
  14334. MessageDigestContext.
  14335. * src/messageDigest.h: Rewritten.
  14336. * src/MetalinkEntry.cc
  14337. (check): Removed.
  14338. (Supported): Updated.
  14339. (dropUnsupportedResource): Fixed a memory leak.
  14340. * src/ShaVisitor.cc
  14341. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14342. (~ShaVisitor): Updated according to the changes in
  14343. MessageDigestContext.
  14344. (visit): Updated according to the changes in MessageDigestContext.
  14345. * src/main.cc
  14346. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14347. command-line option added.
  14348. * src/DownloadEngine.h
  14349. (SocketEntry): New class.
  14350. (SocketEntries): New definition.
  14351. (PairFind): Removed.
  14352. (SockCmdMap): Removed.
  14353. * src/DownloadEngine.cc
  14354. (DownloadEngine): Rewritten.
  14355. (~DownloadEngine): Rewritten.
  14356. (run): Renamed activeCommandUuids as activeUuids.
  14357. (SetDescriptor): Rewritten.
  14358. (AccumulateActiveCommandUuid): Removed.
  14359. (AccumulateActiveUuid): New function object.
  14360. (waitData): Rewritten.
  14361. (updateFdSet): Rewritten.
  14362. (addSocket): Rewritten.
  14363. (deleteSocket): Rewritten.
  14364. (addSocketForReadCheck): Rewritten.
  14365. (deleteSocketForReadCheck): Rewritten.
  14366. (addSocketForWriteCheck): Rewritten.
  14367. (deleteSocketForWriteCheck): Rewritten.
  14368. * src/Xml2MetalinkProcessor.cc
  14369. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14370. * src/DownloadCommand.cc
  14371. (executeInternal): Added the check routine for lowest speed limit.
  14372. * src/AbstractDiskWriter.cc
  14373. (AbstractDiskWriter): Updated according to the changes in
  14374. MessageDigestContext.
  14375. (~AbstractDiskWriter): Updated according to the changes in
  14376. MessageDigestContext.
  14377. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14378. * src/RequestInfo.h: New class.
  14379. * src/UrlRequestInfo.h: New class.
  14380. * src/UrlRequestInfo.cc: New class.
  14381. * src/TorrentRequestInfo.h: New class.
  14382. * src/TorrentRequestInfo.cc: New class.
  14383. * src/MetalinkRequestInfo.h: New class.
  14384. * src/MetalinkRequestInfo.cc: New class.
  14385. * src/Checksum.h: New class.
  14386. * src/DownloadEngineFactory.h: New class.
  14387. * src/DownloadEngineFactory.cc: New class.
  14388. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14389. * src/Option.h
  14390. (getAsBool): New function.
  14391. * src/Option.cc
  14392. (prefs.h): Included.
  14393. (defined): 0-length value is now recognized as undefined.
  14394. (getAsInt): Rewritten.
  14395. (getAsLLInt): Rewritten.
  14396. (getAsBool): New function.
  14397. * src/FeatureConfig.h: Rewritten.
  14398. * src/FeatureConfig.cc: Rewritten.
  14399. * src/prefs.h
  14400. (PREF_STDOUT_LOG): New definition.
  14401. (PREF_LOG): New definition.
  14402. (PREF_DIR): New definition.
  14403. (PREF_OUT): New definition.
  14404. (PREF_SPLIT): New definition.
  14405. (PREF_DAEMON): New definition.
  14406. (PREF_REFERER): New definition.
  14407. (PREF_TORRENT_FILE): New definition.
  14408. (PREF_LISTEN_PORT): New definition.
  14409. (PREF_METALINK_FILE): New definition.
  14410. (PREF_METALINK_VERSION): New definition.
  14411. (PREF_METALINK_LANGUAGE): New definition.
  14412. (PREF_METALINK_OS): New definition.
  14413. (PREF_METALINK_SERVERS): New definition.
  14414. * src/main.cc
  14415. (main): Following command-line parameters are now put into Option
  14416. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14417. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14418. metalinkLanguage, metalinkOs, metalinkServers
  14419. To fix the bug that aria2 can not handle http response header properly.
  14420. * src/HttpHeader.cc
  14421. (put): Made name lowercased.
  14422. (defined): Made name lowercased.
  14423. (getFirst): Made name lowercased.
  14424. (get): Made name lowercased.
  14425. (getFirstAsInt): Rewritten.
  14426. (getFirstAsLLInt): Rewritten.
  14427. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14428. * src/TorrentMan.h:
  14429. (advertisePiece): Updated doc.
  14430. (getAdvertisedPieceIndexes): Updated doc.
  14431. (removeAdvertisedPiece); New function.
  14432. * src/TorrentMan.cc
  14433. (FindElapsedHave): New function object.
  14434. (removeAdvertisedPiece): New function.
  14435. * src/HaveEraseCommand.h: New class.
  14436. * src/HaveEraseCommand.cc: New class.
  14437. * src/FeatureConfig.h: New class.
  14438. * src/FeatureConfig.cc: New class.
  14439. * src/Request.h
  14440. (defaultPorts): Removed.
  14441. * src/Request.cc
  14442. (FeatureConfig.h): Included.
  14443. (Request): Removed the statements related to defaultPorts.
  14444. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14445. A default port number is now retrieved from FeatureConfig.
  14446. * src/main.cc
  14447. (HaveEraseCommand.h): Included.
  14448. (showVersion): Added the output of feature list.
  14449. (main): Added HaveEraseCommand to command queue in BitTorrent
  14450. downloading.
  14451. * src/PeerInteractionCommand.h
  14452. (chokeCheckPoint): Commented out.
  14453. (periodicExecPoint): New variable.
  14454. * src/PeerInteractionCommand.cc
  14455. (executeInternal): Following methods are now called in at least every
  14456. 0.5 seconds to reduce CPU usage:
  14457. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14458. checkHave(), sendKeepAlive().
  14459. (checkLongTimePeerChoking): Commented out.
  14460. * src/BitfieldMan.h
  14461. (getNthBitIndex): Changed the method signature.
  14462. (getMissingIndexRandomly): Changed the method signature.
  14463. * src/BitfieldMan.cc
  14464. (getNthBitIndex): Rewritten
  14465. (getMissingIndexRandomly): Rewritten.
  14466. (hasMissingPiece): Rewritten.
  14467. (getMissingIndex): Refactored.
  14468. (getMissingUnusedIndex); Refactored.
  14469. (getMissingIndex): Refactored.
  14470. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14471. * src/PeerMessage.h
  14472. (Piece.h): Included.
  14473. (SharedHandle.h): Included.
  14474. (invalidate): New variable.
  14475. (uploading): New variable.
  14476. (isInvalidate): New function.
  14477. (isUploading): New function.
  14478. (onPush): New function.
  14479. (onChoked): New function.
  14480. (onCanceled): New function.
  14481. (onAbortPiece): New function.
  14482. (PeerMessageHandle): New type definition.
  14483. * src/PeerMessage.cc
  14484. (PeerMessage): Added the initialization for invalidate and uploading.
  14485. * src/CancelMessage.h
  14486. (CancelMessage): Rewritten.
  14487. * src/RejectMessage.h
  14488. (RejectMessage): Rewritten.
  14489. * src/Metalinker.h
  14490. (operator=): Defined.
  14491. * src/MetaEntry.h
  14492. (operator=): Defined.
  14493. * src/MetalinkResource.h
  14494. (operator=): Defined.
  14495. * src/AllowedFastMessage.h
  14496. (AllowedFastMessage): Rewritten.
  14497. * src/HandshakeMessage.h
  14498. (HandshakeMessage): New function(overload).
  14499. * src/HandshakeMessage.cc
  14500. (HandshakeMessage): Rewritten.
  14501. (init): New function.
  14502. * src/HaveMessage.h
  14503. (HaveMessage): Rewritten.
  14504. * src/Time.h
  14505. (operator=): Defined the function body here.
  14506. * src/Time.cc
  14507. (operator=): Removed.
  14508. * src/SocketCore.h
  14509. (operator==): Defined here.
  14510. (operator!=): Defined here.
  14511. (operator<): Defined here.
  14512. * src/SocketCore.cc
  14513. (operator==): Removed.
  14514. (operator<): Removed.
  14515. * src/BitfieldMan.h
  14516. (operator=): Defined the function body here.
  14517. * src/BitfieldMan.cc
  14518. (operator=): Removed.
  14519. * src/TorrentMan.h
  14520. (deleteErrorPeer): Removed.
  14521. (deleteUnusedPeer); New function.
  14522. * src/TorrentMan.cc
  14523. (addPeer): Call deleteUnusedPeer.
  14524. (deleteErrorPeer): Removed.
  14525. (deleteUnusedPeer): New function.
  14526. * src/PeerAbstractCommand.h
  14527. (setNoCheck): New function.
  14528. (noCheck): New variable.
  14529. * src/PeerAbstractCommand.cc
  14530. (PeerAbstractCommand): Added the initialization of noCheck.
  14531. (execute): Added a check for noCheck.
  14532. (setNoCheck): New function.
  14533. * src/Util.h
  14534. (stdio.h): Included.
  14535. * src/Util.cc
  14536. (unistd.h): Included.
  14537. * src/DefaultDiskWriter.cc
  14538. (unistd.h): Included.
  14539. * src/Peer.h
  14540. (operator==): Defined the function body here.
  14541. (operator!=): Defined the function body here.
  14542. * src/Peer.cc
  14543. (operator==): Removed.
  14544. (operator!=): Removed.
  14545. * src/Piece.h
  14546. (Piece): Defined the function body here(copy constructor).
  14547. (operator=): Defined the function body here.
  14548. (operator==): Defined the function body here.
  14549. * src/Piece.cc
  14550. (Piece): Removed(copy constructor).
  14551. (operator=): Removed.
  14552. (operator==): Removed.
  14553. * src/PeerMessageUtil.h
  14554. (ChokeMessage.h): Removed.
  14555. (UnchokeMessage.h): Removed.
  14556. (InterestedMessage.h): Removed.
  14557. (NotInterestedMessage.h): Removed.
  14558. (HaveMessage.h): Removed.
  14559. (BitfieldMessage.h): Removed.
  14560. (RequestMessage.h): Removed.
  14561. (CancelMessage.h): Removed.
  14562. (PieceMessage.h): Removed.
  14563. (HandshakeMessage.h): Removed.
  14564. (KeepAliveMessage.h): Removed.
  14565. (PortMessage.h): Removed.
  14566. (HaveAllMessage.h): Removed.
  14567. (HaveNoneMessage.h): Removed.
  14568. (PeerConnection.h): Removed.
  14569. (HandshakeMessage.h): Included.
  14570. * src/BitfieldMessage.h
  14571. (init): New function.
  14572. (BitfieldMessage): Rewritten.
  14573. (BitfieldMessage): New function(overload).
  14574. * src/RequestSlot.h
  14575. (operator=): Defined the function body here.
  14576. (operator==): Defined the function body here.
  14577. * src/RequestSlot.cc
  14578. (operator=): Removed.
  14579. (operator==): Removed.
  14580. To remove the dependency on the PeerMessage subclass from
  14581. PeerInteraction:
  14582. * src/PeerMessageFactory.h: New class.
  14583. * src/PeerMessageFactory.cc: New class.
  14584. * src/SimplePeerMessage.cc
  14585. (send): If invalidate is true then do nothing.
  14586. * src/PeerInteractionCommand.cc
  14587. (HandshakeMessage.h): Included.
  14588. (KeepAliveMessage.h): Included.
  14589. (ChokeMessage.h): Included.
  14590. (UnchokeMessage.h): Included.
  14591. (HaveMessage.h): Included.
  14592. (executeInternal): Call setNoCheck().
  14593. Removed setWriteCheckSocket(socket).
  14594. * src/PeerInteraction.h
  14595. (ChokeMessage.h): Removed.
  14596. (UnchokeMessage.h): Removed.
  14597. (InterestedMessage.h): Removed.
  14598. (NotInterestedMessage.h): Removed.
  14599. (HaveMessage.h): Removed.
  14600. (BitfieldMessage.h): Removed.
  14601. (RequestMessage.h): Removed.
  14602. (CancelMessage.h): Removed.
  14603. (PieceMessage.h): Removed.
  14604. (HandshakeMessage.h): Removed.
  14605. (KeepAliveMessage.h): Removed.
  14606. (PortMessage.h): Removed.
  14607. (HaveAllMessage.h): Removed.
  14608. (HaveNoneMessage.h): Removed.
  14609. (RejectMessage.h): Removed.
  14610. (AllowedFastMessage.h): Removed.
  14611. (SuggestPieceMessage.h): Removed.
  14612. (PeerMessageFactory.h): Included.
  14613. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14614. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14615. (PeerMessageFactory): New variable.
  14616. (createPeerMessage): Removed.
  14617. (createHandshakeMessage): Removed.
  14618. (setPeerMessageCommonProperty): Removed.
  14619. (addRequestSlot): New function.
  14620. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14621. (getPeerMessageFactory): New function.
  14622. (createRequestMessage): Removed.
  14623. (createCancelMessage): Removed.
  14624. (createPieceMessage): Removed.
  14625. (createHaveMessage): Removed.
  14626. (createChokeMessage): Removed.
  14627. (createUnchokeMessage): Removed.
  14628. (createInterestedMessage): Removed.
  14629. (createNotInterestedMessage): Removed.
  14630. (createBitfieldMessage): Removed.
  14631. (createKeepAliveMessage): Removed.
  14632. (createHaveAllMessage): Removed.
  14633. (createHaveNoneMessage): Removed.
  14634. (createRejectMessage): Removed.
  14635. (createAllowedFastMessage): Removed.
  14636. * src/PeerInteraction.cc
  14637. (PeerInteraction): Allocate PeerMessageFactory here.
  14638. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14639. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14640. PieceMessage::ID.
  14641. (addMessage): Simplified by using PeerMessage::onPush().
  14642. (addRequestSlot): New function.
  14643. (rejectAllPieceMessageInQueue): Simplified by using
  14644. PeerMessage::onChoked().
  14645. (rejectPieceMessageInQueue): Simplified by using
  14646. PeerMessage::onCanceled().
  14647. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14648. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14649. (createHandshakeMessage): Removed.
  14650. (createPeerMessage): Removed.
  14651. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14652. (setPeerMessageCommonProperty): Removed.
  14653. (createRequestMessage): Removed.
  14654. (createCancelMessage): Removed.
  14655. (createPieceMessage): Removed.
  14656. (createHaveMessage): Removed.
  14657. (createChokeMessage): Removed.
  14658. (createUnchokeMessage): Removed.
  14659. (createInterestedMessage): Removed.
  14660. (createNotInterestedMessage): Removed.
  14661. (createBitfieldMessage): Removed.
  14662. (createKeepAliveMessage): Removed.
  14663. (createHaveAllMessage): Removed.
  14664. (createHaveNoneMessage): Removed.
  14665. (createRejectMessage): Removed.
  14666. (createAllowedFastMessage): Removed.
  14667. * src/PieceMessage.h
  14668. (createRejectMessage): New function.
  14669. (PieceMessage): Rewritten.
  14670. (onChoked): New function.
  14671. (onCanceled): New function.
  14672. * src/PieceMessage.cc
  14673. (send): If invalidate is true then do nothing, just return.
  14674. (createRejectMessage): New function.
  14675. (onChoked): New function.
  14676. (onCanceled): New function.
  14677. * src/RequestMessage.h
  14678. (RequestMessage): Rewritten.
  14679. (onPush): New function.
  14680. (onAbortPiece): New function.
  14681. * src/RequestMessage.cc
  14682. (onPush): New function.
  14683. (onAbortPiece): New function.
  14684. Update fd_set when a socket is added or deleted in order to improve
  14685. performance:
  14686. * src/DownloadEngine.h
  14687. (rfdset): New variable.
  14688. (wfdset): New variable.
  14689. (updateFdSet): New function.
  14690. * src/DownloadEngine.cc
  14691. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14692. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14693. (waitData): Copy rfdset and wfdset.
  14694. (updateFdSet): New function.
  14695. (addSocket): Call updateFdSet.
  14696. (deleteSocket): Call updateFdSet.
  14697. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14698. To add the support for Metalink3.0 backward compatible links:
  14699. * src/Request.h
  14700. (SAFE_CHARS): Added '#'.
  14701. (METALINK_MARK): New definition.
  14702. * src/Request.cc
  14703. (parseUrl): Added the support for Metalink3.0 backward compatible
  14704. links.
  14705. etc
  14706. * src/PeerInteraction.cc
  14707. (MsgPushBack): Removed.
  14708. (sendMessages): Use STL copy and back_inserter.
  14709. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14710. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14711. * src/TorrentMan.h
  14712. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14713. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14714. * src/SharedHandle.h: New class.
  14715. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14716. * src/HttpResponseCommand.h
  14717. (HttpResponseCommand): Wrapped Socket.
  14718. * src/SocketCore.h
  14719. (operator==): New function.
  14720. (operator!=): New function.
  14721. (operator<): New function.
  14722. (getSockfd): New function.
  14723. (isOpen): New function.
  14724. (writeData): New function.
  14725. * src/SocketCore.cc
  14726. (operator==): New function.
  14727. (operator!=): New function.
  14728. (operator<): New function.
  14729. * src/AbstractCommand.h
  14730. (socket): Changed its type to SocketHandle.
  14731. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14732. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14733. (disableReadCheckSocket): New function.
  14734. (disableWriteCheckSocket): New function.
  14735. (readCheckTarget): Changed its type to SocketHandle.
  14736. (writeCheckTarget): Changed its type to SocketHandle.
  14737. (AbstractCommand): Replaced Socket with SocketHandle.
  14738. * src/AbstractCommand.cc
  14739. (AbstractCommand): Replaced Socket with SocketHandle.
  14740. (~AbstractCommand): Removed the deallocation for Socket object.
  14741. (disableReadCheckSocket): New function.
  14742. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14743. (disableWriteCheckSocket): New function.
  14744. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14745. * src/HttpDownloadCommand.cc
  14746. (DownloadCommand): Replaced Socket with SocketHandle.
  14747. * src/PeerAbstractCommand.h
  14748. (socket): Changed its type to SocketHandle.
  14749. (peer): Changed its type to PeerHandle.
  14750. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14751. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14752. (disableReadCheckSocket): New function.
  14753. (disableWriteCheckSocket): New function.
  14754. (readCheckTarget): Changed its type to SocketHandle.
  14755. (writeCheckTarget): Changed its type to SocketHandle.
  14756. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14757. Replaced Peer with PeerHandle.
  14758. * src/HttpRequestCommand.cc
  14759. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14760. Use disableReadCheckSocket.
  14761. * src/PeerInitiateConnectionCommand.h
  14762. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14763. * src/PeerChokeCommand.cc
  14764. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14765. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14766. (execute): Use PeerHandle.
  14767. * src/PeerConnection.h
  14768. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14769. (socket): Changed its type to SocketHandle.
  14770. (PeerConnection): Replaced Socket with SocketHandle.
  14771. * src/PeerConnection.cc
  14772. (PeerConnection): Replaced Socket with SocketHandle.
  14773. * src/PeerInteractionCommand.h
  14774. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14775. Replaced Peer with PeerHandle.
  14776. * src/PeerInteractionCommand.cc
  14777. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14778. Replaced Peer with PeerHandle.
  14779. (executeInternal): Use disableWriteCheckSocket.
  14780. Use HandshakeMessageHandle.
  14781. (receiveMessages): Use PeerMessageHandle.
  14782. (prepareForNextPeer): Use PeerHandle.
  14783. * src/HttpProxyRequestCommand.h
  14784. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14785. * src/HttpResponseCommand.cc
  14786. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14787. * src/TorrentMan.cc
  14788. (nullPeer): Added external reference.
  14789. (~TorrentMan): Removed the deallocation of the elements of peers.
  14790. (addPeer): Rewritten.
  14791. (isPeerAvailable): Use nullPeer.
  14792. (deleteOldpeers): Replaced with deleteErrorPeer.
  14793. (deleteErrorPeer): New function.
  14794. (getPeer): Use PeerHandle and nullPeer.
  14795. (hasMissingPiece): Replaced Peer with PeerHandle.
  14796. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14797. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14798. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14799. (getMissingPiece): Replaced Peer with PeerHandle.
  14800. * src/FtpNegotiateCommand.cc
  14801. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14802. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14803. (recvGreeting): Use disableWriteCheckSocket.
  14804. (recvPasv): Removed the allocation of Socket.
  14805. Use disableReadCheckSocket.
  14806. (sendRestPasv): Use disableWriteCheckSocket.
  14807. (recvRetr): Changed assertion.
  14808. * src/PeerInteraction.h
  14809. (SharedHandle.h): Included SharedHandle.h.
  14810. (PeerMessageHandle): New type definition.
  14811. (HandshakeMessageHandle): New type definition.
  14812. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14813. (peer): Changed its type to PeerHandle.
  14814. (createHandshakeMessage): Replaced HandshakeMessage with
  14815. HandshakeMessageHandle.
  14816. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14817. (PeerInteraction): Replaced Peer with PeerHandle.
  14818. Replaced Socket with SocketHandle.
  14819. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14820. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14821. (receiveHandshake): Replaced HandshakeMessage with
  14822. HandshakeMessageHandle.
  14823. * src/PeerInteraction.cc
  14824. (PeerInteraction): Replaced Peer with PeerHandle.
  14825. Replaced Socket with SocketHandle.
  14826. (~PeerInteraction): Removed the deallocation of the elements of
  14827. messageQueue.
  14828. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14829. (isSendingMessageInProgress): Replaced PeerMessage with
  14830. PeerMessageHandle.
  14831. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14832. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14833. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14834. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14835. (abortPiece): Use PeerMessageHandle.
  14836. (receiveHandshake): Replaced HandshakeMessage with
  14837. HandshakeMessageHandle. Removed try-catch block.
  14838. (createHandshakeMessage): Replaced HandshakeMessage with
  14839. HandshakeMessageHandle.
  14840. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14841. Removed try-catch block.
  14842. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14843. * src/HttpProxyResponseCommand.cc
  14844. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14845. * src/FtpTunnelResponseCommand.h
  14846. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14847. * src/HttpConnection.cc
  14848. (HttpConnection): Replaced Socket with SocketHandle.
  14849. * src/PeerAbstractCommand.cc
  14850. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14851. (~PeerAbstractCommand): Removed the deallocation of socket.
  14852. Use disableReadCheckSocket, disableWriteCheckSocket.
  14853. (disableReadCheckSocket): New function.
  14854. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14855. (disableWriteCheckSocket): New function.
  14856. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14857. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14858. * src/FtpTunnelRequestCommand.cc
  14859. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14860. (~FtpTunnelRequestCommand): Corrected indentation.
  14861. * src/DownloadCommand.h
  14862. (DownloadCommand): Replaced Socket with SocketHandle.
  14863. * src/PeerListenCommand.cc
  14864. (PeerListenCommand): Removed the initialization of socket.
  14865. (~PeerListenCommand): Removed the deallocation of socket.
  14866. (bindPort): Use SocketHandle.
  14867. (execute): Use SocketHandle and PeerHandle.
  14868. * src/FtpDowndloadCommand.cc
  14869. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14870. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14871. * src/main.cc
  14872. (main): Corrected indentation.
  14873. * src/HttpInitiateConnectionCommand.cc
  14874. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14875. (executeInternal): Removed the allocation of socket.
  14876. * src/HttpRequestCommand.h
  14877. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14878. * src/FtpNegotiationCommand.h
  14879. (dataSocket): Changed its type to SocketHandle.
  14880. (serverSocket): Changed its type to SocketHandle.
  14881. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14882. * src/TorrentMan.h
  14883. (MAX_PEER_UPDATE): Removed.
  14884. (MAX_PEERS): New definition.
  14885. (Peers): The element is now of type PeerHandle.
  14886. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14887. (getPeer): Replaced Peer with PeerHandle.
  14888. (deleteOldErrorPeers): Removed.
  14889. (deleteErrorPeer): New function.
  14890. (hasMissingPiece): Replaced Peer with PeerHandle.
  14891. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14892. (getMissingPiece): Replaced Peer with PeerHandle.
  14893. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14894. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14895. (addActivePeer): Replaced Peer with PeerHandle.
  14896. (deleteActivePeer): Replaced Peer with PeerHandle.
  14897. Added a check for the return value of find.
  14898. * src/FtpTunnelResponseCommand.cc
  14899. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14900. * src/FtpInitiateConnectionCommand.cc
  14901. (executeInternal): Removed the allocation of socket.
  14902. * src/DownloadEngine.h
  14903. (Sockets): An element is now of type SocketHandle.
  14904. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14905. (CommandUuids): New type definition.
  14906. (rsockets): Changed its type to SockCmdMap.
  14907. (wsockets): Changed its type to SockCmdMap.
  14908. (addSocket): Rewritten.
  14909. (deleteSocket): Rewritten.
  14910. (addSocketForReadCheck): Rewritten.
  14911. (deleteSocketForReadCheck): Rewritten.
  14912. (addSocketForWriteCheck): Rewritten.
  14913. (deleteSocketForWriteCheck): Rewritten.
  14914. (PairFind): New template class.
  14915. * src/HttpDownloadCommand.h
  14916. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14917. * src/FtpConnection.cc
  14918. (FtpConnection): Replaced Socket with SocketHandle.
  14919. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14920. block.
  14921. * src/InitiateConnectionCommandFactory.cc
  14922. (DlAbortEx.h): Included DlAbortEx.h.
  14923. (createInitiateConnectionCommand): Throw exception if the protocol of
  14924. requested URI is not supported.
  14925. * src/Peer.cc
  14926. (nullPeer): Changed its type to PeerHandle.
  14927. (operator==): New function.
  14928. (operator!=): New function.
  14929. * src/Peer.h
  14930. (SharedHandle.h): Included SharedHandle.h.
  14931. (operator==): New function.
  14932. (operator!=): New function.
  14933. (Peer): Added the default constructor.
  14934. Use resetStatus() to initialize member variables.
  14935. (nullPeer): Removed.
  14936. * src/TrackerUpdateCommand.cc
  14937. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14938. with MIN_PEERS.
  14939. * src/PeerListenCommand.h
  14940. (socket): Changed its type to SocketHandle.
  14941. * src/Command.h
  14942. (CommandUuid): New type definition.
  14943. (uuid): New variable.
  14944. (uuidGen): New variable.
  14945. (Command): Added the initialization of uuid.
  14946. (getUuid): New function.
  14947. * src/Socket.h
  14948. (Socket): Removed.
  14949. (SocketHandle): New type definition.
  14950. * src/DownloadEngine.h
  14951. (FindCommand): New function object.
  14952. (run): The portion of socket check was rewritten.
  14953. (SetDescriptor): New function object.
  14954. (AccumulateActiveCommandUuid): New function object.
  14955. (waitData): Rewritten.
  14956. (addSocket): Rewritten.
  14957. (deleteSocket): Rewritten.
  14958. (addSocketForReadCheck): Rewritten.
  14959. (addSocketForWriteCheck): Rewritten.
  14960. (deleteSocketForReadCheck): Rewritten.
  14961. (deleteSocketForWriteCheck): Rewritten.
  14962. * src/HttpProxyResponseCommand.h
  14963. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14964. * src/HttpConnection.h
  14965. (socket): Changed its type to SocketHandle.
  14966. (HttpConnection): Replaced Socket with SocketHandle.
  14967. * src/PeerInitiateConnectionCommand.cc
  14968. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14969. (executeInternal): Removed the allocation of socket.
  14970. (prepareForNextPeer): Use PeerHandle.
  14971. * src/PeerMessage.h
  14972. (peer): Changed its type to PeerHandle.
  14973. (getPeer): Replaced Peer with PeerHandle.
  14974. (setPeer): Replaced Peer with PeerHandle.
  14975. * src/DownloadCommand.cc
  14976. (DownloadCommand): Replaced Socket with SocketHandle.
  14977. * src/FtpConnection.h
  14978. (socket): Changed its type to SocketHandle.
  14979. (FtpConnection): Replaced Socket with SocketHandle.
  14980. (sendPort); Replaced Socket with SocketHandle.
  14981. * src/FtpDowndloadCommand.h
  14982. (ctrlSocket): Changed its type to SocketHandle.
  14983. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14984. * src/HttpProxyRequestCommand.cc
  14985. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14986. * src/FtpTunnelRequestCommand.h
  14987. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14988. etc
  14989. * src/PeerChokeCommand.h
  14990. (setAllPeerChoked): Removed.
  14991. (setAllPeerResetDelta): Removed.
  14992. * src/PeerChokeCommand.cc
  14993. (setAllPeerChoked): Removed.
  14994. (ChokePeer): New function object.
  14995. (setAllPeerResetDelta): Removed.
  14996. (ResetDelta): New function object.
  14997. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14998. (execute): Show download speed when the local node is a seeder.
  14999. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15000. using STL.
  15001. * src/TrackerWatcherCommand.h
  15002. (MIN_PEERS): Removed.
  15003. * src/TorrentMan.cc
  15004. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15005. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15006. To fix the bug that .aria2 file is not saved if downloading is stopped
  15007. by the errors:it results that aria2 can not resume downloading:
  15008. * src/main.cc
  15009. (normalDownload): Added the call to save().
  15010. (main): Added the deletion of the elements in 'reserved'.
  15011. To fix log:
  15012. * src/PeerInteraction.cc
  15013. (receiveHandshake): Fixed log.
  15014. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15015. To improve download performance in BitTorrent:
  15016. * src/TorrentMan.cc
  15017. (getPeer): Check the number of connections. Return nullPeer if
  15018. it is greater than MAX_PEER_UPDATE.
  15019. This code was originally here, but was removed in 0.5.1.
  15020. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15021. To improve the conditional compilation:
  15022. * src/MultiDiskWriter.h:
  15023. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15024. * src/MultiDiskWriter.cc:
  15025. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15026. * src/Util.h:
  15027. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15028. Added ENABLE_BITTORRENT around computeFastSet().
  15029. * src/Util.cc:
  15030. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15031. Added ENABLE_BITTORRENT around computeFastSet().
  15032. * src/messageDigest.h:
  15033. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15034. * src/ShaVisitor.h:
  15035. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15036. * src/ShaVisitor.cc:
  15037. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15038. * src/main.cc:
  15039. Added ENABLE_BITTORRENT around includes and blocks related to
  15040. BitTorrent.
  15041. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15042. digest support is not available.
  15043. * src/AbstractDiskWriter.h:
  15044. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15045. * src/AbstractDiskWriter.cc:
  15046. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15047. * src/MetalinkEntry.cc
  15048. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15049. support is not available.
  15050. To add command-line options for Metalink:
  15051. * src/main.cc:
  15052. Added metalink-version, metalink-language, metalink-os,
  15053. follow-metalink.
  15054. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15055. * src/main.cc: Use these definition.
  15056. * Release 0.6.0
  15057. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15058. To add Metalink support(http/ftp only):
  15059. * src/AbstractCommand.h
  15060. (tryReserved): New function.
  15061. * src/AbstractCommand.cc
  15062. (execute): Call tryReserved().
  15063. (tryReserved): New function.
  15064. * src/Request.h
  15065. (Requests): New type definition.
  15066. * src/SegmentMan.h
  15067. (reserved): New variable.
  15068. * src/Util.h
  15069. (fileChecksum): New function.
  15070. (toUpper): New function.
  15071. (toLower): New function.
  15072. * src/Util.cc
  15073. (messageDigest.h): Included.
  15074. (trim): Trim \r\n\t.
  15075. (fileChecksum): New function.
  15076. (toUpper): New function.
  15077. (toLower): New function.
  15078. * src/main.cc
  15079. (normalDownload): New function.
  15080. (main): Added 2 command-line options: metalink-file,
  15081. metalink-connection. Their usage has not been written yet.
  15082. * src/MetalinkProcessor.h: New class.
  15083. * src/Xml2MetalinkProcessor.h: New class.
  15084. * src/Xml2MetalinkProcessor.cc: New class.
  15085. * src/MetalinkEntry.h: New class.
  15086. * src/MetalinkEntry.cc: New class.
  15087. * src/MetalinkResource.h: New class.
  15088. * src/MetalinkResource.cc: New class.
  15089. To add md5 message digest checking:
  15090. * src/messageDigest.h: Rewritten.
  15091. * src/MultiDiskWriter.cc: Updated according to the changes in
  15092. messageDigest.h.
  15093. * src/ShaVisitor.cc: Updated according to the changes in
  15094. messageDigest.h.
  15095. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15096. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15097. messageDigest.h.
  15098. To fix a bug that causes segfault when the payload length in peer
  15099. message is less than 0:
  15100. * src/PeerConnection.cc:
  15101. (receiveMessage): Fixed the bug.
  15102. * src/PeerMessageUtil.cc
  15103. (checkLength): Throw an exception if length is less than or equals to
  15104. 0.
  15105. To add new interfaces to Base64 encoding/decoding:
  15106. * src/Base64.h
  15107. (part_encode): Changed the method signature.
  15108. (encode): New function(overload).
  15109. (decode): New function(overload).
  15110. * src/Base64.cc
  15111. (part_encode): Rewritten.
  15112. (encode): Rewritten.
  15113. (encode): New function(overload).
  15114. To prevent a peer to download same piece if there is an error in
  15115. checksum:
  15116. * src/PieceMessage.cc
  15117. (receivedAction): Call peerInteraction->abortPiece().
  15118. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15119. To fix the bug that causes same have message is sent many times to
  15120. a single peer.
  15121. * src/Time.cc
  15122. (isNewer): Use Util::difftv().
  15123. * src/Util.cc
  15124. (difftv): Added a cast to (long long int).
  15125. * src/TorrentMan.cc
  15126. (advertisePiece): Use push_front.
  15127. (getAdvertisedPieceIndexes): A performance improvement was made.
  15128. To fix the bug that sends tracker requests without a sleep interval
  15129. when the number of connections is less than 15.
  15130. * src/TrackerWatcherCommand.cc
  15131. (execute): Now the number of connections is not a factor to decide
  15132. whether or not a tracker request should be sent or not.
  15133. * src/Time.h
  15134. (setTimeInSec): New function.
  15135. * src/Time.cc
  15136. (setTimeInSec): New function.
  15137. etc.
  15138. * src/ChokeMessage.cc
  15139. (receivedAction): Removed peer->snubbing = false
  15140. * src/PeerConnection.h
  15141. (receiveHandshake): Updated doc.
  15142. * src/TorrentMan.h
  15143. (getAdvertisedPieceIndexes): Updated the method signature.
  15144. * src/TorrentMan.cc
  15145. (getAdvertisedPieceIndexes): Updated the method signature.
  15146. * src/Time.h
  15147. (getTimeInMicros): Added a cast to (long long int).
  15148. (getTimeInMillis): Added a cast to (long long int).
  15149. * Release 0.5.2
  15150. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15151. To make a listening socket non-block:
  15152. * src/SocketCore.h
  15153. (setNonBlockingMode): New function.
  15154. * src/SocketCore.cc
  15155. (setNonBlockingMode): New function.
  15156. (beginListen): Added a call to setNonBlockingMode().
  15157. (acceptConnection): Call setNonBlockingMode().
  15158. (setBlockingMode): Updated.
  15159. To handle tracker's NAT-checking:
  15160. * src/PeerConnection.cc
  15161. (receiveHandshake): 'msg' param is filled with received data and
  15162. its length is assigned to 'length' param, even if all handshake
  15163. message is not yet received.
  15164. * src/PeerInteractionCommand.cc
  15165. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15166. a new peer connects to localhost.
  15167. A call to peerInteraction->sendHandshake() was removed because
  15168. it is called from peerInteraction->receiveHandshake(true).
  15169. * src/PeerInteraction.h
  15170. (quickReplied): New variable.
  15171. (receiveHandshake): Added an argument.
  15172. * src/PeerInteraction.cc
  15173. (PeerInteraction): Added the initialization of quickReplied.
  15174. (receiveHandshake): Send handshake message as soon as the info hash
  15175. in a handshake message from a peer is correct.
  15176. To change the random part of peer id and key parameter:
  15177. * src/TorrentMan.h
  15178. (key): New variable.
  15179. * src/TorrentMan.cc
  15180. (setupInternal1): Use Util::randomAlpha() to generate random part
  15181. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15182. key is also generated by Util::randomAlpha() and it is now 8 character
  15183. long.
  15184. * src/Util.h
  15185. (randomAlpha): New function.
  15186. * src/Util.cc
  15187. (randomAlpha): New function.
  15188. * src/TrackerWatcherCommand.cc
  15189. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15190. Added no_peer_id=1.
  15191. Set snubbing flag to false when a choke message is received from a
  15192. snubbed peer.
  15193. * src/ChokeMessage.cc
  15194. (receivedAction): Set snubbing flag to false.
  15195. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15196. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15197. * src/SimpleLogger.h (writeHeader): New function.
  15198. * src/SimpleLogger.cc (writeHeader): New function.
  15199. (writeLog): Fixed the bug that causes segfaults if exception message
  15200. contains an unescaped "%" character.
  15201. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15202. when a tracker request fails.
  15203. * src/Request.cc (parseUrl): Query string is now handled properly.
  15204. * Release 0.5.1
  15205. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15206. To add Time class which represents a specific instant in time and
  15207. its precision is microseconds. Time checking procedures were rewritten
  15208. using this object.
  15209. * src/Time.h: New class.
  15210. * src/Time.cc: New class.
  15211. * src/AbstractCommand.h
  15212. (updateCheckPoint): Removed.
  15213. (isTimeoutDetected): Removed.
  15214. (checkPoint): Changed the type to Time.
  15215. (timeout): New variable.
  15216. (setTimeout): New function.
  15217. * src/AbstractCommand.cc
  15218. (AbstractCommand): Removed the initialization of checkPoint.
  15219. Added the initialization of timeout.
  15220. (updateCheckPoint): Removed.
  15221. (isTimeoutDetected): Removed.
  15222. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15223. * src/PeerChokeCommand.h
  15224. (checkPoint): Changed the type to Time.
  15225. * src/PeerChokeCommand.cc
  15226. (PeerChokeCommand): Removed the initialization of checkPoint.
  15227. (execute): Rewritten using Time object.
  15228. * src/TrackerWatcherCommand.h
  15229. (checkPoint): Changed the type to Time.
  15230. * src/TrackerWatcherCommand.cc
  15231. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15232. (execute): Rewritten.
  15233. * src/ConsoleDownloadEngine.h
  15234. (cp): Changed the type to Time.
  15235. (startup): Changed the type to Time.
  15236. * src/ConsoleDownloadEngine.cc
  15237. (initStatistics): Use cp.reset(), startup.reset().
  15238. (calculateStatistics): Rewritten using Time object.
  15239. * src/PeerAbstractCommand.h
  15240. (updateCheckPoint): Removed.
  15241. (isTimeoutDetected): Removed.
  15242. (checkPoint): Changed the type to Time.
  15243. * src/PeerAbstractCommand.cc
  15244. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15245. (updateCheckPoint): Removed.
  15246. (isTimeoutDetected): Removed.
  15247. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15248. * src/PeerInteractionCommand.cc
  15249. (PeerInteractionCommand): Removed the initializations of struct
  15250. timeval variables.
  15251. * src/PeerInteractionCommand.h
  15252. (keepAliveCheckPoint): Changed the type to Time.
  15253. (chokeCheckPoint): Changed the type to Time.
  15254. (freqCheckPoint): Changed the type to Time.
  15255. (haveCheckTime): Changed the type to Time.
  15256. * src/PeerInteractionCommand.cc
  15257. (executeInternal): Rewritten using Time object.
  15258. (detectMessageFlooding): Rewritten using Time object.
  15259. (checkLongTimePeerChoking): Rewritten using Time object.
  15260. (sendKeepAlive): Rewritten using Time object.
  15261. (checkHave): Rewritten using Time object.
  15262. * src/SleepCommand.h
  15263. (checkPoint): Changed the type to Time.
  15264. * src/SleepCommand.cc
  15265. (SleepCommand): Removed the initialization of checkPoint.
  15266. (execute): Rewritten using Time object.
  15267. * src/TorrentAutoSaveCommand.h
  15268. (checkPoint): Changed the type to Time.
  15269. * src/TorrentAutoSaveCommand.cc
  15270. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15271. (execute): Rewritten.
  15272. * src/DownloadCommand.h
  15273. (sw): Changed the type to Time.
  15274. * src/DownloadCommand.cc
  15275. (DownloadCommand): Removed the initialization of sw.
  15276. (executeInternal): Rewritten.
  15277. * src/RequestSlot.h
  15278. (dispatchedTime): Changed the type to Time.
  15279. * src/RequestSlot.cc
  15280. (RequestSlot): Removed the call to setDispatchedTime().
  15281. (setDispatchedTime): Rewirtten.
  15282. (isTimeout): Rewritten.
  15283. (getLatencyInMillis): Rewritten.
  15284. * src/TorrentDownloadEngine.h
  15285. (cp): Changed the type to Time[2].
  15286. (startup): Changed the type to Time.
  15287. * src/TorrentDownloadEngine.cc
  15288. (initStatistics): Rewritten.
  15289. (calculateStatistics): Rewritten.
  15290. * src/DownloadEngine.cc
  15291. (run): Rewritten.
  15292. To detect all attempts to connect to the tracker are failed:
  15293. * src/AbstractCommand.cc
  15294. (execute): Increment e->segmentMan->errors if a command aborted.
  15295. * src/SegmentMan.h
  15296. (errors): New variable.
  15297. * src/SegmentMan.cc
  15298. (SegmentMan): Added the initialization of errors.
  15299. (init): Added the initialization of errors.
  15300. * src/TrackerWatcherCommand.cc
  15301. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15302. request was failed.
  15303. To handle snubbed peers:
  15304. * src/PeerChokeCommand.cc
  15305. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15306. (execute): Snubbed peers don't get unchoked.
  15307. * src/PeerInteraction.h
  15308. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15309. * src/PeerInteraction.cc
  15310. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15311. back the requested 16k block in 60 seconds.
  15312. * src/PieceMessage.cc
  15313. (receivedAction): A peer's snubbed state is cleard if it sends
  15314. the requested 16k block in 60 seconds.
  15315. * src/Peer.h
  15316. (snubbing): New variable.
  15317. * src/Peer.cc
  15318. (resetStatus): Added snubbed = false.
  15319. To fix the bug that causes have message is not sent:
  15320. * src/PeerInteractionCommand.cc
  15321. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15322. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15323. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15324. * src/TorrentMan.h
  15325. (HaveEntry): New class.
  15326. (advertisePiece): Rewritten.
  15327. (getAdvertisedPieceIndexes): Rewritten.
  15328. (Haves): Changed the type.
  15329. (getAdvertisedPieceIndexes): Added an argument.
  15330. Others:
  15331. * src/TorrentMan.h
  15332. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15333. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15334. * src/TorrentMan.cc
  15335. (getPeer): Don't check the number of connections here.
  15336. (setupInternal1): Changed peerId.
  15337. * src/PeerInteractionCommand.h
  15338. (KEEP_ALIVE_INTERVAL): New definition.
  15339. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15340. * src/main.cc
  15341. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15342. * src/DownloadEngine.h: Removed unnecessary header includes.
  15343. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15344. To fix the bug that causes segfaults if a tracker returns a zero-length
  15345. list as "peers":
  15346. * src/TrackerUpdateCommand.cc
  15347. (execute): Added a check to see wether the type of peers is Data*.
  15348. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15349. * Release 0.5.0
  15350. To fix compile issue with gcc3:
  15351. * src/CancelMessage.h
  15352. (ID): Renamed as ID_t
  15353. (ID_t): New enum.
  15354. * src/RejectMessage.h
  15355. (ID): Renamed as ID_t
  15356. (ID_t): New enum.
  15357. * src/SuggestPieceMessage.h
  15358. (ID): Renamed as ID_t
  15359. (ID_t): New enum.
  15360. * src/AllowedFastMessage.h
  15361. (ID): Renamed as ID_t
  15362. (ID_t): New enum.
  15363. * src/PortMessage.h
  15364. (ID): Renamed as ID_t
  15365. (ID_t): New enum.
  15366. * src/HaveNoneMessage.h
  15367. (ID): Renamed as ID_t
  15368. (ID_t): New enum.
  15369. * src/KeepAliveMessage.h
  15370. (ID): Renamed as ID_t
  15371. (ID_t): New enum.
  15372. * src/HaveAllMessage.h
  15373. (ID): Renamed as ID_t
  15374. (ID_t): New enum.
  15375. * src/UnchokeMessage.h
  15376. (ID): Renamed as ID_t
  15377. (ID_t): New enum.
  15378. * src/BitfieldMessage.h
  15379. (ID): Renamed as ID_t
  15380. (ID_t): New enum.
  15381. * src/PieceMessage.h
  15382. (ID): Renamed as ID_t
  15383. (ID_t): New enum.
  15384. * src/RequestMessage.h
  15385. (ID): Renamed as ID_t
  15386. (ID_t): New enum.
  15387. * src/NotInterestedMessage.h
  15388. (ID): Renamed as ID_t
  15389. (ID_t): New enum.
  15390. * src/ChokeMessage.h
  15391. (ID): Renamed as ID_t
  15392. (ID_t): New enum.
  15393. * src/InterestedMessage.h
  15394. (ID): Renamed as ID_t
  15395. (ID_t): New enum.
  15396. * src/HaveMessage.h
  15397. (ID): Renamed as ID_t
  15398. (ID_t): New enum.
  15399. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15400. * src/PeerAbstractCommand.h
  15401. (beforeSocketCheck): Removed.
  15402. * src/PeerAbstractCommand.cc
  15403. Modified in order to call executeInternal() even if socket check
  15404. and upload limit check fail.
  15405. * src/PeerInteractionCommand.h
  15406. (keepAlive): Removed.
  15407. (sendKeepAlive): New function.
  15408. (checkHave): New function.
  15409. (beforeSocketCheck): Removed.
  15410. * src/PeerInteractionCommand.cc
  15411. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15412. calls to checkHave() and sendKeepAlive().
  15413. (keepAlive): Renamed to sendKeepAlive().
  15414. (sendKeepAlive): New function.
  15415. (beforeSocketCheck): Removed.
  15416. (checkHave): New function.
  15417. * src/BitfieldMan.cc
  15418. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15419. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15420. 0.
  15421. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15422. * src/TorrentMan.h
  15423. (UsedPieces): Removed.
  15424. (Pieces): New type definition.
  15425. * src/Piece.h: Updated doc.
  15426. * src/Peer.h
  15427. (totalLength): Removed.
  15428. * src/Peer.cc
  15429. (updateLatency): Fixed the latency calculation.
  15430. * src/TorrentMan.cc
  15431. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15432. than or equal to MAX_PEER_LIST_SIZE.
  15433. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15434. then return false.
  15435. (deleteOldErrorPeers): Rewritten.
  15436. (deleteUsedPiece): Fixed the miss use of STL remove.
  15437. * src/PeerInteraction.h
  15438. (Pieces): Removed.
  15439. (deleteTimeoutRequestSlot): Removed.
  15440. (deleteCompletedRequestSlot): Removed.
  15441. (checkRequestSlot): New function.
  15442. * src/PeerInteraction.cc
  15443. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15444. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15445. (checkRequestSlot): New function.
  15446. * src/DownloadEngine.cc
  15447. (run): Clear activeSockets before calling waitData().
  15448. (waitData): Removed a call to activeSockets.clear().
  15449. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15450. To attempt to handle EINTR:
  15451. * src/SocketCore.cc
  15452. (isReadable): Added EINTR handling.
  15453. (isWritable): Added EINTR handling.
  15454. To improve the performance:
  15455. * src/AbstractCommand.cc
  15456. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15457. * src/PeerInteractionCommand.h
  15458. (receiveMessage): Renamed as receiveMessages().
  15459. (receiveMessages): New function.
  15460. * src/PeerInteractionCommand.cc
  15461. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15462. () function. detectMessageFlooding() is moved here.
  15463. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15464. (). The flooding detection for have message is comment out.
  15465. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15466. Util::difftv().
  15467. (receiveMessage): Renamed as receiveMessages().
  15468. (receiveMessages): New function.
  15469. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15470. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15471. * src/SleepCommand.cc
  15472. (execute): Use Util::difftvsec() instead of Util::difftv().
  15473. * src/BitfieldMan.h
  15474. (getNthBitIndex): New function.
  15475. (hasMissingPiece): New function.
  15476. (getAllMissingIndexes): New function.
  15477. * src/BitfieldMan.cc
  15478. (countSetBit): Rewritten.
  15479. (getNthBitIndex): New function.
  15480. (getMissingIndexRandomly): Rewritten.
  15481. (hasMissingPiece): New function.
  15482. (getAllMissingIndexes): New function.
  15483. * src/TorrentMan.cc
  15484. (hasMissingPiece): New function.
  15485. (deleteUsedPiece): Rewritten using STL.
  15486. * src/PeerInteraction.cc
  15487. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15488. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15489. (addRequests): Updated the number of pending requests.
  15490. * src/PeerAbstractCommand.cc
  15491. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15492. (execute): Returns true if TorrentMan::isHalt() is true.
  15493. Corrected the condition of upload limit checking.
  15494. * src/Util.h
  15495. (countBit): New function.
  15496. * src/Util.cc
  15497. (nbits): New variable.
  15498. (countBit): New function.
  15499. * src/DownloadEngine.h
  15500. (SockCmdMap): New type definition.
  15501. (waitData): Added an argument.
  15502. (addSocket): Added an argument.
  15503. (addSocketForReadCheck): Added an argument.
  15504. (addSocketForWriteCheck): Added an argument.
  15505. * src/DownloadEngine.cc
  15506. (run): Executes only commands whose sockets are ready to read or write.
  15507. All commands are executed in every 1 second.
  15508. (waitData): Calls select() again if it returned
  15509. EINTR.
  15510. (addSocket): Saves socket and command object pair to the map.
  15511. (deleteSocket): Deletes socket and command object pair from the map.
  15512. (addSocketForReadCheck): Added an argument.
  15513. (addSocketForWriteCheck): Added an argument.
  15514. * src/DownloadCommand.cc
  15515. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15516. To send "event=stopped" to the tracker when the application finishes:
  15517. * src/PeerChokeCommand.h
  15518. (checkPoint): New variable.
  15519. * src/PeerChokeCommand.cc
  15520. (PeerChokeCommand): Added the initialization of checkPoint.
  15521. (execute): The interval check is now done by checkPoint, not
  15522. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15523. * src/TorrentMan.h
  15524. (halt): New function.
  15525. (hasMissingPiece): New function.
  15526. (isHalt): New function.
  15527. (setHalt): New function.
  15528. * src/TorrentMan.cc
  15529. (TorrentMan): Added the initialization of halt.
  15530. * src/TorrentAutoSaveCommand.h
  15531. (checkPoint): New variable.
  15532. * src/PeerListenCommand.cc
  15533. (execute): Returns true if TorrentMan::isHalt() is true.
  15534. * src/main.cc
  15535. (setSignalHander): Added flags argument.
  15536. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15537. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15538. Removed printDownloadAbortMessage() after torrent downloading loop.
  15539. * src/TorrentAutoSaveCommand.cc
  15540. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15541. (execute): Returns true if TorrentMan::isHalt() is true.
  15542. The interval check is now done by checkPoint, not SleepCommand.
  15543. * src/TrackerWatcherCommand.cc
  15544. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15545. event=stopped.
  15546. * src/TrackerUpdateCommand.cc
  15547. (prepareForRetry): Do not use SleepCommand here.
  15548. (execute): Returns true if TorrentMan::isHalt() is true.
  15549. Others:
  15550. * src/TorrentMan.cc
  15551. (getMissingPieceIndex): Updated log message.
  15552. * src/PeerInteraction.cc
  15553. (createPeerMessag): Updated log message.
  15554. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15555. To add the ability to download several pieces in mix in a command and
  15556. increase the number of request slots according to request-cancel
  15557. latency:
  15558. * src/PeerInteractionCommand.cc
  15559. (executeInternal): The number of messages to be received at a time
  15560. is increased from 10 to 50.
  15561. * src/LogFactory
  15562. (getInstance): Added NullLogger.
  15563. * src/NullLogger.h: New class.
  15564. * src/BitfieldMan.h
  15565. (getMissingIndex): New function.
  15566. * src/BitfieldMan.cc
  15567. (getMissingIndex): New function.
  15568. * src/TorrentMan.h
  15569. (checkOutPiece): New function.
  15570. (getMissingPieceIndex): New function.
  15571. (getMissingFastPieceIndex): New function.
  15572. (getMissingFastPiece): New function.
  15573. * src/TorrentMan.cc
  15574. (updatePiece): Rewritten using STL.
  15575. (syncPiece): Rewritten using STL.
  15576. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15577. checkOutPiece().
  15578. (getMissingPieceIndex): New function.
  15579. (getMissingFastPieceIndex): New function.
  15580. (getMissingFastPiece): New function.
  15581. (checkOutPiece): New function.
  15582. * src/PeerInteraction.h
  15583. (Pieces): New type definition.
  15584. (piece): Removed.
  15585. (pieces): New variable.
  15586. (getNewPieceAndSendInterest): Added the "piece" argument.
  15587. (abortPiece): Added the "piece" argument.
  15588. (abortAllPieces): New function.
  15589. (isInRequestSlot): New function.
  15590. (hasDownloadPiece): Added the "index" argument.
  15591. (setDownloadPiece): Removed.
  15592. (getDownloadPiece): Added the "index" argument.
  15593. (updatePiece): New function.
  15594. (createRequestMessage): Added the "index" argument.
  15595. * src/PeerInteraction.cc
  15596. (onChoked): Rewritten.
  15597. (abortPiece): Rewirtten.
  15598. (abortAllPieces): New function.
  15599. (deleteTimeoutRequestSlot): Rewritten.
  15600. Clarified code a little bit.
  15601. (deleteCompletedRequestSlot): Rewritten.
  15602. (isInRequestSlot): New function.
  15603. (syncPiece): Rewritten.
  15604. (updatePiece): New function.
  15605. (getNewPieceAndSendInterest): Rewritten.
  15606. (addRequests): Rewritten.
  15607. (getDownloadPiece): Rewritten.
  15608. (hasDownloadPiece): Rewritten.
  15609. (createRequestMessage): Added the "index" argument.
  15610. * src/common.h
  15611. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15612. (DIV_FLOOR): New definition.
  15613. * src/PieceMessage.cc
  15614. (receivedAction): Update request-piece latency here.
  15615. * src/RequestSlot.h
  15616. (getLatencyInMillis): New function.
  15617. * src/RequestSlot.cc
  15618. (isTimeout): Rewritten using getLatencyInMillis.
  15619. (getLatencyInMillis): New function.
  15620. * src/Piece.h
  15621. (operator==): New function.
  15622. (getMissingBlockIndex): New function.
  15623. * src/Piece.cc
  15624. (operator==): New function.
  15625. (getMissingBlockIndex): New function.
  15626. * src/Peer.h
  15627. (DEFAULT_LATENCY): New definition.
  15628. (latency): New variable.
  15629. (updateLatency): New function.
  15630. (getLatency): New function.
  15631. * src/Peer.cc
  15632. (resetStatus): Reset latecy.
  15633. (updateLatency): New function.
  15634. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15635. * src/SocketCore.cc
  15636. (isReadable): Added secure to the condition.
  15637. * src/HttpConnection.cc
  15638. (receiveResponse): Fixed a bug that causes no response header
  15639. exception.
  15640. * src/Peer.h
  15641. (getFastSet): Fixed the return value type.
  15642. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15643. To remove a wait from download loop:
  15644. * src/DownloadEngine.cc
  15645. (run): Comment out shortSleep.
  15646. To rewrite the message handling:
  15647. * src/SimplePeerMessage.h: New class.
  15648. * src/SimplePeerMessage.cc: New class.
  15649. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15650. (msg): New variable.
  15651. (create): New function.
  15652. (send): Removed.
  15653. (getMessage): New function.
  15654. (getMessageLength): New function.
  15655. * src/CancelMessage.cc
  15656. (create): New function.
  15657. (receivedAction): Replaced deleteRequestMessageInQueue with
  15658. rejectPieceMessageInQueue.
  15659. (send): Removed.
  15660. (getMessage): New function.
  15661. (getMessageLength): New function.
  15662. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15663. (msg): New variable.
  15664. (msgLength): New variable.
  15665. (~BitfieldMessage): Deleted msg.
  15666. (send): Removed.
  15667. (getMessage): New function.
  15668. (getMessageLength): New function.
  15669. * src/BitfieldMessage.cc
  15670. (create): New function.
  15671. (send): Removed.
  15672. (getMessage): New function.
  15673. (getMessageLength): New function.
  15674. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15675. (msg): New variable.
  15676. (sendPredicate): New function.
  15677. (onSendComplete): New function.
  15678. (send): Removed.
  15679. (getMessage): New function.
  15680. (getMessageLength): New function.
  15681. (create): New function.
  15682. * src/ChokeMessage.cc
  15683. (create): New function.
  15684. (send): Removed.
  15685. (sendPredicate): New function.
  15686. (getMessage): New function.
  15687. (getMessageLength): New function.
  15688. (onSendComplete): New function.
  15689. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15690. (msg): New variable.
  15691. (send): Removed.
  15692. (getMessage): New function.
  15693. (getMessageLength): New function.
  15694. * src/KeepAliveMessage.cc
  15695. (send): Removed.
  15696. (getMessage): New function.
  15697. (getMessageLength): New function.
  15698. * src/PortMessage.h
  15699. (create): New function.
  15700. (receivedAction): Updated log message.
  15701. * src/PortMessage.cc: New file.
  15702. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15703. (msg): New variable.
  15704. (sendPredicate): New function.
  15705. (onSendComplete): New function.
  15706. (create): New function.
  15707. (send): Removed.
  15708. (getMessage): New function.
  15709. (getMessageLength): New function.
  15710. * src/UnchokeMessage.cc
  15711. (create): New function.
  15712. (send): Removed.
  15713. (sendPredicate): New function.
  15714. (getMessage): New function.
  15715. (getMessageLength): New function.
  15716. (onSendComplete): New function.
  15717. * src/PieceMessage.h
  15718. (leftPieceDataLength): Removed.
  15719. (leftDataLength): New variable.
  15720. (headerSend): New variable.
  15721. (pendingCount): New variable.
  15722. (msgHeader): New variable.
  15723. (sendPieceData): New function.
  15724. (incrementPendingCount): New function.
  15725. (isPendingCountMax): New function.
  15726. (create): New function.
  15727. (getMessageHeader): New function.
  15728. (getMessageHeaderLength): New function.
  15729. * src/PieceMessage.cc
  15730. (create): New function.
  15731. (getMessageHeader): New function.
  15732. (getMessageHeaderLength): New function.
  15733. (send): Rewritten.
  15734. (sendPieceData): New function.
  15735. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15736. (msg): New variable.
  15737. (create): New function.
  15738. (getMessage): New function.
  15739. (getMessageLength): New function.
  15740. * src/HaveMessage.cc
  15741. (create): New function.
  15742. (send): Removed.
  15743. (sendPieceData): New function.
  15744. (getMessage): New function.
  15745. (getMessageLength): New function.
  15746. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15747. (msg): New variable.
  15748. (create): New function.
  15749. (send): Removed.
  15750. (getMessage): New function.
  15751. (getMessageLength): New function.
  15752. * src/RequestMessage.cc
  15753. (create): New function.
  15754. (receivedAction): Added the handling of fast extension.
  15755. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15756. (send): Removed.
  15757. (getMessage): New function.
  15758. (getMessageLength): New function.
  15759. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15760. (msg): New variable.
  15761. (sendPredicate): New function.
  15762. (onSendComplete): New function.
  15763. (create): New function.
  15764. (getMessage): New function.
  15765. (getMessageLength): New function.
  15766. * src/InterestedMessage.cc
  15767. (create): New function.
  15768. (send): Removed.
  15769. (sendPieceData): New function.
  15770. (getMessage): New function.
  15771. (getMessageLength): New function.
  15772. (onSendComplete): New function.
  15773. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15774. (msg): New variable.
  15775. (sendPieceData): New function.
  15776. (onSendComplete): New function.
  15777. (create): New function.
  15778. (send): Removed.
  15779. (getMessage): New function.
  15780. (getMessageLength): New function.
  15781. * src/NotInterestedMessage.cc
  15782. (create): New function.
  15783. (send): Removed.
  15784. (sendPredicate): New function.
  15785. (getMessage): New function.
  15786. (getMessageLength): New function.
  15787. (onSendComplete): New function.
  15788. * src/AllowedFastMessage.h: New class.
  15789. * src/AllowedFastMessage.cc: New class.
  15790. * src/RejectMessage.h: New class.
  15791. * src/RejectMessage.cc: New class.
  15792. * src/SuggestPieceMessage.h: New class.
  15793. * src/SuggestPieceMessage.cc: New class.
  15794. * src/HaveAllMessage.h: New class.
  15795. * src/HaveAllMessage.cc: New class.
  15796. * src/HaveNoneMessage.h: New class.
  15797. * src/HaveNoneMessage.cc: New class.
  15798. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15799. (msg): New variable.
  15800. (reserved): New variable.
  15801. (create): New function.
  15802. (getId): New function.
  15803. (receivedAction): New function.
  15804. (getMessage): New function.
  15805. (getMessageLength): New function.
  15806. (isFastExtensionSupported): New function.
  15807. * src/HandshakeMessage.cc
  15808. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15809. (create): New function.
  15810. (getMessage): New function.
  15811. (getMessageLength): New function.
  15812. (toString): Added the output of reserved field.
  15813. (check): Added const qualifier.
  15814. (isFastExtensionSupported): New function.
  15815. * src/PeerMessageUtil.h
  15816. (createChokeMessage): Removed.
  15817. (createUnchokeMessage): Removed.
  15818. (createInterestedMessage): Removed.
  15819. (createNotInterestedMessage): Removed.
  15820. (createHaveMessage): Removed.
  15821. (createBitfieldMessage): Removed.
  15822. (createRequestMessage): Removed.
  15823. (createCancelMessage): Removed.
  15824. (createPieceMessage): Removed.
  15825. (createPortMessage): Removed.
  15826. (createChokeMessage): Removed.
  15827. (createUnchokeMessage): Removed.
  15828. (createInterestedMessage): Removed.
  15829. (createNotInterestedMessage): Removed.
  15830. (createHaveMessage): Removed.
  15831. (createBitfieldMessage): Removed.
  15832. (createRequestMessage): Removed.
  15833. (createCancelMessage): Removed.
  15834. (createPieceMessage): Removed.
  15835. (createKeepAliveMessage): Removed.
  15836. (createHandshakeMessage): Removed.
  15837. (setIntParam): New function.
  15838. (createPeerMessageString): New function.
  15839. * src/PeerMessageUtil.cc
  15840. (createChokeMessage): Removed.
  15841. (createUnchokeMessage): Removed.
  15842. (createInterestedMessage): Removed.
  15843. (createNotInterestedMessage): Removed.
  15844. (createHaveMessage): Removed.
  15845. (createBitfieldMessage): Removed.
  15846. (createRequestMessage): Removed.
  15847. (createCancelMessage): Removed.
  15848. (createPieceMessage): Removed.
  15849. (createPortMessage): Removed.
  15850. (createRequestMessage): Removed.
  15851. (createCancelMessage): Removed.
  15852. (createPieceMessage): Removed.
  15853. (createHaveMessage): Removed.
  15854. (createChokeMessage): Removed.
  15855. (createUnchokeMessage): Removed.
  15856. (createInterestedMessage): Removed.
  15857. (createNotInterestedMessage): Removed.
  15858. (createBitfieldMessage): Removed.
  15859. (createKeepAliveMessage): Removed.
  15860. (createHandshakeMessage): Removed.
  15861. (setIntParam): New function.
  15862. (createPeerMessageString): New function.
  15863. * src/PeerConnection.h
  15864. (peer): Removed.
  15865. (torrentMan): Removed.
  15866. (createNLengthMessage): Removed.
  15867. (setIntParam): Removed.
  15868. (writeOutgoingMessageLog): Removed all overloaded functions.
  15869. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15870. (sendMessage): New function.
  15871. (sendHandshake): Removed.
  15872. (sendKeepAlive): Removed.
  15873. (sendChoke): Removed.
  15874. (sendUnchoke): Removed.
  15875. (sendInterested): Removed.
  15876. (sendNotInterested): Removed.
  15877. (sendHave): Removed.
  15878. (sendBitfield): Removed.
  15879. (sendRequest): Removed.
  15880. (sendPiece): Removed.
  15881. (sendPieceHeader): Removed.
  15882. (sendPieceData): Removed.
  15883. (sendCancel): Removed.
  15884. (getPeer): Removed.
  15885. * src/PeerConnection.cc
  15886. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15887. (sendHandshake): Removed.
  15888. (sendKeepAlive): Removed.
  15889. (createNLengthMessage): Removed.
  15890. (setIntParam): Removed.
  15891. (writeOutgoingMessageLog): Removed all overloaded functions.
  15892. (sendChoke): Removed.
  15893. (sendUnchoke): Removed.
  15894. (sendInterested): Removed.
  15895. (sendNotInterested): Removed.
  15896. (sendHave): Removed.
  15897. (sendBitfield): Removed.
  15898. (sendRequest): Removed.
  15899. (sendPiece): Removed.
  15900. (sendPieceHeader): Removed.
  15901. (sendPieceData): Removed.
  15902. (sendMessage): New function.
  15903. (sendCancel): Removed.
  15904. * src/PeerInteractionCommand.cc
  15905. (PeerInteractionCommand): Call setUploadLimit.
  15906. (executeInternal): Call setUploadLimit.
  15907. Added the handling of "inProgress" state of handshake message.
  15908. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15909. sendNow().
  15910. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15911. sendNow().
  15912. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15913. * src/TorrentMan.h
  15914. (PEER_ID_LENGTH): New definition.
  15915. (hasAllPieces): New function.
  15916. * src/TorrentMan.cc
  15917. (getMissingPiece): Added the handling of fast extension.
  15918. (cancelPiece): Call updatePiece().
  15919. (hasAllPieces): New function.
  15920. * src/PeerInteraction.h
  15921. (fastSet): New variable.
  15922. (getNewPieceAndSendInterest): Changed the return type to void.
  15923. (send): Renamed as sendMessages.
  15924. (deleteAllRequestSlot): Removed.
  15925. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15926. (cancelAllRequest): Removed all overloaded functions.
  15927. (deleteAllRequestSlot): Removed.
  15928. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15929. (rejectPieceMessageInQueue): New function.
  15930. (rejectAllPieceMessageInQueue): New function.
  15931. (onChoked): New function.
  15932. (isSendingMessageInProgress): New function.
  15933. (getCorrespondingRequestSlot): Changed its arguments.
  15934. (isInFastSet): New function.
  15935. (addFastSetIndex): New function.
  15936. (addRequests): New function.
  15937. (sendNow): Removed.
  15938. (trySendNow): Removed.
  15939. (sendBitfield): New function.
  15940. (sendAllowdFast): New function.
  15941. (createHaveAllMessage): New function.
  15942. (createHaveNoneMessage): New function.
  15943. (createRejectMessage): New function.
  15944. (createAllowedFastMessage): New function.
  15945. * src/PeerInteraction.cc
  15946. (send): Renamed as sendMessages.
  15947. (sendMessages): New function.
  15948. (MsgPushBack): New class.
  15949. (isSendingMessageInProgress): New function.
  15950. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15951. (rejectAllPieceMessageInQueue): New function.
  15952. Added the handling of fast extension.
  15953. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15954. (rejectPieceMessageInQueue): New function.
  15955. Added the handling of fast extension.
  15956. (deleteRequestSlot): Replaced for loop with std::find.
  15957. (onChoked): New function.
  15958. (deleteAllRequestSlot): Removed.
  15959. (abortPiece): Rewirtten.
  15960. (deleteTimeoutRequestSlot): Updated log messages.
  15961. (getCorrespondingRequestSlot): Changed its arguments.
  15962. (cancelAllRequest): Removed all overloaded functions.
  15963. (receiveHandshake): Added the check to see whether an incoming peer
  15964. supports fast extension.
  15965. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15966. PeerMessageUtil.
  15967. (createPeerMessage): Use create() of each message class instead of
  15968. PeerMessageUtil.
  15969. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15970. AllowedFastMessage were added.
  15971. (getNewPieceAndSendInterest): Changed its return value type to void.
  15972. Added the handling of fast extension.
  15973. (addRequests): New function.
  15974. (sendNow): Removed.
  15975. (sendHandshake): Rewritten.
  15976. (trySendNow): Removed.
  15977. (sendBitfield): New function.
  15978. (sendAllowdFast): New function.
  15979. (isInFastSet): New function.
  15980. (addFastSetIndex): New function.
  15981. (createRequestMessage): Use RequestMessage::create instead of
  15982. PeerMessageUtil.
  15983. (createCancelMessage): Use CancelMessage::create instead of
  15984. PeerMessageUtil.
  15985. (createPieceMessage): Use PieceMessage::create instead of
  15986. PeerMessageUtil.
  15987. (createHaveMessage): Use HaveMessage::create instead of
  15988. PeerMessageUtil.
  15989. (createChokeMessage): Use ChokeMessage::create instead of
  15990. PeerMessageUtil.
  15991. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15992. PeerMessageUtil.
  15993. (createInterestedMessage): Use InterestedMessage::create instead of
  15994. PeerMessageUtil.
  15995. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15996. of PeerMessageUtil.
  15997. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15998. PeerMessageUtil.
  15999. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16000. PeerMessageUtil.
  16001. (createHaveAllMessage): New function.
  16002. (createHaveNoneMessage): New function.
  16003. (createRejectMessage): New function.
  16004. (createAllowedFastMessage: New function.
  16005. * src/Util.h
  16006. (sha1Sum): New function.
  16007. (computeFastSet): New function.
  16008. * src/Util.cc
  16009. (sha1Sum): New function.
  16010. (computeFastSet): New function.
  16011. * src/Peer.h
  16012. (fastExtensionEnabled): New variable.
  16013. (fastSet): New variable.
  16014. (setAllBitfield): New function.
  16015. (setFastExtensionEnabled): New function.
  16016. (isFastExtensionEnabled): New function.
  16017. (addFastSetIndex): New function.
  16018. (getFastSet): New function.
  16019. (isInFastSet): New function.
  16020. (countFastSet): New function.
  16021. * src/Peer.cc
  16022. (isInFastSet): New function.
  16023. (addFastSetIndex): New function.
  16024. (setAllBitfield): New function.
  16025. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16026. sockets.
  16027. * src/PeerAbstractCommand.cc
  16028. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16029. and uploadLimit.
  16030. (execute): Changed the procedure of checking sockets. The upload speed
  16031. checking were added.
  16032. (setUploadLimit): New function.
  16033. (setUploadLimitCheck): New function.
  16034. * src/PeerAbstractCommand.h
  16035. (setUploadLimit): New function.
  16036. (setUploadLimitCheck): New function.
  16037. (uploadLimit): New variable.
  16038. (uploadLimitCheck): New variable.
  16039. To contact a tracker regularly:
  16040. * src/TrackerWatcherCommand.h (interval): New variable.
  16041. (checkPoint): New variable.
  16042. (TrackerWatcherCommand): Added interval argument.
  16043. * src/TrackerWatcherCommand.cc
  16044. (TrackerWatcherCommand): Initialized checkPoint.
  16045. (execute): Now a tracker is contacted in every specified period.
  16046. If peer list is not needed, send request with numwant=0.
  16047. * src/TrackerUpdateCommand.cc
  16048. (execute): Updated log messages.
  16049. * src/DownloadEngine.cc
  16050. (~DownloadEngine): Removed two asserts.
  16051. (waitData): Uncommented wfds. May be a bug fix.
  16052. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16053. * src/PeerInteractionCommand.h
  16054. (checkInactiveConnection): Removed.
  16055. * src/PeerInteractionCommand.cc
  16056. (executeInternal): Removed following function calls:
  16057. detectMessageFlooding(), checkLongTimePeerChoking and
  16058. checkInactiveConnection().
  16059. (checkInactiveConnection): Removed.
  16060. (detectMessageFlooding): Removed function call to
  16061. checkInactiveConnection().
  16062. * src/PeerMessageUtil.h
  16063. (createChokeMessage): New function. Overload.
  16064. (createUnchokeMessage): New function. Overload.
  16065. (createInterestedMessage): New function. Overload.
  16066. (createNotInterestedMessage): New function. Overload.
  16067. (createHaveMessage): New function. Overload.
  16068. (createBitfieldMessage): New function. Overload.
  16069. (createRequestMessage): New function. Overload.
  16070. (createCancelMessage): New function. Overload.
  16071. (createPieceMessage): New function. Overload.
  16072. (createKeepAliveMessage): New function. Overload.
  16073. * src/PeerMessageUtil.cc
  16074. (createChokeMessage): New function. Overload.
  16075. (createUnchokeMessage): New function. Overload.
  16076. (createInterestedMessage): New function. Overload.
  16077. (createNotInterestedMessage): New function. Overload.
  16078. (createHaveMessage): New function. Overload.
  16079. (createBitfieldMessage): New function. Overload.
  16080. (createRequestMessage): New function. Overload.
  16081. (createCancelMessage): New function. Overload.
  16082. (createPieceMessage): New function. Overload.
  16083. (createKeepAliveMessage): New function. Overload.
  16084. * src/SendMessageQueue.cc
  16085. (createRequestMessage): Use PeerMessageUtil.
  16086. (createCancelMessage): Use PeerMessageUtil.
  16087. (createPieceMessage): Use PeerMessageUtil.
  16088. (createHaveMessage): Use PeerMessageUtil.
  16089. (createChokeMessage): Use PeerMessageUtil.
  16090. (createUnchokeMessage): Use PeerMessageUtil.
  16091. (createInterestedMessage): Use PeerMessageUtil.
  16092. (createNotInterestedMessage): Use PeerMessageUtil.
  16093. (createBitfieldMessage): Use PeerMessageUtil.
  16094. (createKeepAliveMessage): Use PeerMessageUtil.
  16095. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16096. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16097. * src/PeerInteraction.h: New class.
  16098. * src/PeerInteraction.cc: New class.
  16099. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16100. Each peer message has its own class.
  16101. * src/PendingMessages.h: Removed.
  16102. * src/PendingMessages.cc: Removed. The sending process was moved to
  16103. each message class.
  16104. * src/RequestSlotMan.h: Removed.
  16105. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16106. SendMessageQueue.
  16107. * src/RequestMessage.h: New class.
  16108. * src/RequestMessage.cc: New class.
  16109. * src/CancelMessage.h: New class.
  16110. * src/CancelMessage.cc: New class.
  16111. * src/BitfieldMessage.h: New class.
  16112. * src/BitfieldMessage.cc: New class.
  16113. * src/ChokeMessage.h: New class.
  16114. * src/ChokeMessage.cc: New class.
  16115. * src/KeepAliveMessage.h: New class.
  16116. * src/KeepAliveMessage.cc: New class.
  16117. * src/PortMessage.h: New class.
  16118. * src/UnchokeMessage.h: New class.
  16119. * src/UnchokeMessage.cc: New class.
  16120. * src/PieceMessage.h: New class.
  16121. * src/PieceMessage.cc: New class.
  16122. * src/HaveMessage.h: New class.
  16123. * src/HaveMessage.cc: New class.
  16124. * src/BitfieldMessage.h: New class.
  16125. * src/BitfieldMessage.cc: New class.
  16126. * src/NotInterestedMessage.h: New class.
  16127. * src/NotInterestedMessage.cc: New class.
  16128. * src/InterestedMessage.h: New class.
  16129. * src/InterestedMessage.cc: New class.
  16130. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16131. (getSendMessageQueue): New function.
  16132. (setSendMessageQueue): New function.
  16133. * src/HandshakeMessage.cc: New class.
  16134. * src/PeerConnection.h (receiveMessage): Changed return value and
  16135. arguments.
  16136. (receiveHandshake): Changed return value and arguments.
  16137. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16138. here.
  16139. (receiveHandshake): Do not create handshake class here.
  16140. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16141. (piece): Removed.
  16142. (syncPiece): Removed.
  16143. (sendInterest): Removed.
  16144. (sendMessages): Removed.
  16145. (createRequestPendingMessage): Removed.
  16146. (checkPieceHash): Removed.
  16147. (erasePieceOnDisk): Removed.
  16148. (getNewPieceAndSendInterest): Removed.
  16149. (onGotNewPice): Removed.
  16150. (onGotWrongPiece): Removed.
  16151. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16152. Removed peerConnection, piece.
  16153. (~PeerInteractionCommand): Removed peerConnection.
  16154. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16155. (syncPiece): Moved to SendMessageQueue.
  16156. (decideChoking): Removed PendingMessage.
  16157. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16158. The action after receiving peer message was moved to each message
  16159. class.
  16160. (onGotNewPice): Moved to SendMessageQueue.
  16161. (onGotWrongPiece): Moved to SendMessageQueue.
  16162. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16163. (sendInterest): Moved to SendMessageQueue.
  16164. (createRequestPendingMessage): Removed.
  16165. (sendMessages): Moved to SendMessageQueue.
  16166. (onAbort): Use SendMessageQueue::abortPiece()
  16167. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16168. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16169. (checkPieceHash): Moved to SendMessageQueue.
  16170. (erasePieceOnDisk): Moved to SendMessageQueue.
  16171. * src/PeerMessageUtil.h
  16172. (createBitfieldMessage): Removed.
  16173. (createHaveMessage): Changed return value and arguments.
  16174. (createBitfieldMessage): Changed return value and arguments.
  16175. (createRequestCancelMessage): Removed.
  16176. (createPieceMessage): Changed return value and arguments.
  16177. (getShortIntParam): New function.
  16178. (checkIndex): Changed arguments.
  16179. (checkBegin): Changed arguments.
  16180. (checkLength): Changed arguments.
  16181. (checkPieceOffset): Removed.
  16182. (checkRange): New function.
  16183. (checkBitfield): Changed arguments.
  16184. (createPeerMessage): Removed.
  16185. (checkIntegrity): Removed.
  16186. (createHandshakeMessage): Changed arguments.
  16187. (createChokeMessage): New function.
  16188. (createUnchokeMessage): New function.
  16189. (createInterestedMessage): New function.
  16190. (createNotInterestedMessage): New function.
  16191. (createRequestMessage): New function.
  16192. (createCancelMessage): New function.
  16193. (createPortMessage): New function.
  16194. * src/PeerMessageUtil.cc
  16195. (createBitfieldMessage): Removed.
  16196. (createHaveMessage): Changed return value and arguments.
  16197. (createBitfieldMessage): Changed return value and arguments.
  16198. (createRequestCancelMessage): Removed.
  16199. (createPieceMessage): Changed return value and arguments.
  16200. (getShortIntParam): New function.
  16201. (checkIndex): Changed arguments.
  16202. (checkBegin): Changed arguments.
  16203. (checkLength): Changed arguments.
  16204. (checkPieceOffset): Removed.
  16205. (checkRange): New function.
  16206. (checkBitfield): Changed arguments.
  16207. (createPeerMessage): Removed.
  16208. (checkIntegrity): Removed.
  16209. (createHandshakeMessage): Changed arguments.
  16210. (createChokeMessage): New function.
  16211. (createUnchokeMessage): New function.
  16212. (createInterestedMessage): New function.
  16213. (createNotInterestedMessage): New function.
  16214. (createRequestMessage): New function.
  16215. (createCancelMessage): New function.
  16216. (createPortMessage): New function.
  16217. * src/PeerMessage.h
  16218. (id): Removed.
  16219. (index): Removed.
  16220. (begin): Removed.
  16221. (length): Removed.
  16222. (bitfield): Removed.
  16223. (bitfieldLength): Removed.
  16224. (block): Removed.
  16225. (blockLength): Removed.
  16226. (inProgress): New variable.
  16227. (cuid): New variable.
  16228. (peer): New variable.
  16229. (sendMessageQueue): New variable.
  16230. (logger): New variable.
  16231. (setBitfield): Removed.
  16232. (getBitfield): Removed.
  16233. (setBlock): Removed.
  16234. (getBlock): Removed.
  16235. (getBitfieldLength): Removed.
  16236. (getBlockLength): Removed.
  16237. (isInProgress): New function.
  16238. (toString): Made pure virtual.
  16239. (check): New function.
  16240. (send): New function.
  16241. (receivedAction): New function.
  16242. (getId): Made pure virtual.
  16243. (setId): Removed.
  16244. (getIndex): Removed.
  16245. (setIndex): Removed.
  16246. (getBegin): Removed.
  16247. (setBegin): Removed.
  16248. (getLength): Removed.
  16249. (setLength): Removed.
  16250. (getCuid): New function.
  16251. (setCuid): New function.
  16252. (getPeer): New function.
  16253. (setPeer): New function.
  16254. (getSendMessageQueue): New function.
  16255. (setSendMessageQueue): New function.
  16256. (ID): Removed.
  16257. * src/PeerMessage.cc
  16258. (setBitfield): Removed.
  16259. (setBlock): Removed.
  16260. (toString): Removed.
  16261. * src/TorrentMan.h
  16262. (getPieceLength): New function.
  16263. (getPieceLength): New function.
  16264. * src/SendMessageQueue.h
  16265. (REQUEST_TIME_OUT): New definition.
  16266. (RequestSlots): New definition.
  16267. (MessageQueue): New definition.
  16268. (requestSlotMan): Removed.
  16269. (pendingMessages): Removed.
  16270. (requestSlots): New variable.
  16271. (messageQueue): New variable.
  16272. (torrentMan): New variable.
  16273. (peerConnection): New variable.
  16274. (peer): New variable.
  16275. (piece): New variable.
  16276. (getNewPieceAndSendInterest): New function.
  16277. (createPeerMessage): New function.
  16278. (createHandshakeMessage): New function.
  16279. (send): Made private.
  16280. (setPeerMessageCommonProperty): New function.
  16281. (deleteAllRequestSlot): New function.
  16282. (deleteRequestMessageInQueue): New function.
  16283. (cancelAllRequest): Made private.
  16284. (cancelAllRequest): Made private.
  16285. (countRequestSlot): Made private.
  16286. (addPendingMessage): Removed.
  16287. (deletePendingPieceMessage): Removed.
  16288. (deletePendingRequestMessage): Removed.
  16289. (addMessage): New function.
  16290. (deletePieceMessageInQueue): New function.
  16291. (deleteTimeoutRequestSlot): Changed argument.
  16292. (deleteCompletedRequestSlot): Changed argument.
  16293. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16294. (getCorrespondingRequestSlot): New function.
  16295. (countPendingMessage): Removed.
  16296. (countMessageInQueue): New function.
  16297. (getTorrentMan): New function.
  16298. (getPeerConnection): New function.
  16299. (hasDownloadPiece): New function.
  16300. (getDownloadPiece): New function.
  16301. (setDownloadPiece): New function.
  16302. (syncPiece): New function.
  16303. (sendMessages): New function.
  16304. (sendNow): New function.
  16305. (trySendNow): New function.
  16306. (abortPiece): New function.
  16307. (sendHandshake): New function.
  16308. (receiveMessage): New function.
  16309. (receiveHandshake): New function.
  16310. (createRequestMessage): New function.
  16311. (createCancelMessage): New function.
  16312. (createPieceMessage): New function.
  16313. (createHaveMessage): New function.
  16314. (createChokeMessage): New function.
  16315. (createUnchokeMessage): New function.
  16316. (createInterestedMessage): New function.
  16317. (createNotInterestedMessage): New function.
  16318. (createBitfieldMessage): New function.
  16319. (createKeepAliveMessage): New function.
  16320. * src/SendMessageQueue.cc
  16321. (SendMessageQueue): Removed requestSlotMan.
  16322. Instantiated peerConnection here.
  16323. (~SendMessageQueue): Removed requestSlotMan.
  16324. Added deletion of peerConnection and the contents of messageQueue.
  16325. (send): Updated according to the change of messageQueue.
  16326. (addPendingMessage): Renamed to addMessage.
  16327. (addMessage): New function.
  16328. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16329. (deletePieceMessageInQueue): New function.
  16330. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16331. (deleteRequestMessageInQueue): New function.
  16332. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16333. here.
  16334. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16335. (...) was moved here.
  16336. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16337. moved here.
  16338. (deleteCompletedRequestSlot):
  16339. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16340. (getCorrespondingRequestSlot):
  16341. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16342. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16343. (countPendingMessage): Renamed to countMessageInQueue.
  16344. (countMessageInQueue): New function.
  16345. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16346. (receiveHandshake): New function.
  16347. (createHandshakeMessage): New function.
  16348. (receiveMessage): New function.
  16349. (createPeerMessage): New function.
  16350. (syncPiece): New function.
  16351. (getNewPieceAndSendInterest): New function.
  16352. (sendMessages): New function.
  16353. (sendNow): New function.
  16354. (trySendNow): New function.
  16355. (sendHandshake): New function.
  16356. (abortPiece): New function.
  16357. (getDownloadPiece): New function.
  16358. (getPeerMessageCommonProperty): New function.
  16359. (createRequestMessage): New function.
  16360. (createCancelMessage): New function.
  16361. (createPieceMessage): New function.
  16362. (createHaveMessage): New function.
  16363. (createChokeMessage): New function.
  16364. (createUnchokeMessage): New function.
  16365. (createInterestedMessage): New function.
  16366. (createNotInterestedMessage): New function.
  16367. (createBitfieldMessage): New function.
  16368. (createKeepAliveMessage): New function.
  16369. To add simple Content-Disposition support:
  16370. * src/HttpResponseCommand.h (determinFilename): New function.
  16371. * src/HttpResponseCommand.cc (executeInternal):
  16372. Use determinFilename(headers) instead of req->getFile() when comparing
  16373. filename.
  16374. (determinFilename): New function.
  16375. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16376. req->getFile().
  16377. (handleOtherEncoding): Use determinFilename(headers) instead of
  16378. req->getFile().
  16379. * src/Util.h (getContentDispositionFilename): New function.
  16380. * src/Util.cc (getContentDispositionFilename): New function.
  16381. * src/LogFactory.h (release): New function.
  16382. * src/LogFactory.cc (release): New function.
  16383. To fix a bug that causes out-of-bound exception when HTTP status
  16384. line is wrong:
  16385. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16386. size.
  16387. * src/common.h (Deleter): New class.
  16388. * src/SegmentMan.cc
  16389. (~SegmentMan): Added deletion of splitter and diskWriter.
  16390. * src/DownloadEngine.h
  16391. (Commands): Use deque.
  16392. (clearQueue): New function.
  16393. * src/DownloadEngine.cc
  16394. (~DownloadEngine): Added deletion of segmentMan.
  16395. (cleanQueue): New function.
  16396. * src/TorrentDownloadEngine.h
  16397. (TorrentDownloadEngine): The implementation was moved to
  16398. TorrentDownloadEngine.cc.
  16399. (~TorrentDownloadEngine): The implementation was moved to
  16400. TorrentDownloadEngine.cc.
  16401. * src/TorrentDownloadEngine.cc
  16402. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16403. * src/main.cc
  16404. (clearRequest): Removed.
  16405. (handler): Added deletion of e.
  16406. (torrentHandler): Added deletion of te.
  16407. (main): Do not share splitter.
  16408. Use Deleter instead of clearRequest.
  16409. Deletion of classes were updated.
  16410. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16411. * src/main.cc (main): Fixed typo.
  16412. * src/message.h: Fixed typo.
  16413. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16414. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16415. To add --select-file command-line option:
  16416. * src/Util.cc
  16417. (unfoldRange): New function.
  16418. (getNum): New function.
  16419. (unfoldSubRange): New function
  16420. * src/main.cc
  16421. (showUsage): Added help message.
  16422. (main): Added --select-file command-line option. Updated the layout of
  16423. file listing.
  16424. * src/common.h
  16425. (Integers): New definition.
  16426. * src/SocketCore.cc
  16427. (writeData): Removed timeout argument.
  16428. (readData): Removed timeout argument.
  16429. (peekData): Removed timeout argument.
  16430. * src/Socket.cc
  16431. (writeData): Removed timeout argument.
  16432. (readData): Removed timeout argument.
  16433. (peekData): Removed timeout argument.
  16434. * Release 0.4.1
  16435. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16436. To deploy upload rate based choking algorithm:
  16437. * src/PeerInteractionCommand.cc
  16438. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16439. peer currently used.
  16440. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16441. download completes. Simplified.
  16442. (receiveMessage): Updated.
  16443. * src/TorrentMan.h
  16444. (activePeers): New variable.
  16445. (addActivePeer): New function.
  16446. (getActivePeers): New function.
  16447. (deleteActivePeer): New function.
  16448. * src/TorrentMan.cc
  16449. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16450. * src/PeerAbstractCommand.cc
  16451. (onAbort): Use peer->resetStatus().
  16452. * src/main.cc
  16453. (PeerChokeCommand.h): Included.
  16454. (main): Added the instance of ChokingCommand to the command queue.
  16455. * src/Peer.h
  16456. (amChoking): Renamed from amChocking
  16457. (chokingRequired): New variable.
  16458. (optUnchoking): New variable.
  16459. (deltaUpload): New variable.
  16460. (deltaDownload): New variable.
  16461. (addDeltaUpload): New function.
  16462. (resetDeltaUpload): New function.
  16463. (addDeltaDownload): New function.
  16464. (resetDeltaDownload): New function.
  16465. (addPeerUpload): Added a call to addDeltaUpload.
  16466. (addPeerDownload): Added a call to addDeltaDownload.
  16467. * src/Peer.cc
  16468. (shouldBeChoking): Renamed from shouldChoke.
  16469. (resetStatus): New function.
  16470. * src/PeerChokeCommand.h: New class.
  16471. * src/PeerChokeCommand.cc: New class.
  16472. To add lazy upload speed limiter:
  16473. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16474. statistics calculation to TorrentDownloadEngine.
  16475. * src/TorrentConsoleDownloadEngine.cc
  16476. (sendStatistics): Renamed from printStatistics.
  16477. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16478. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16479. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16480. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16481. calculation.
  16482. (sendStatistics): New function as pure virtual function.
  16483. (getUploadSpeed): New function.
  16484. * src/TorrentDownloadEngine.cc
  16485. (initStatistics): New function.
  16486. (calculateSpeed): New function.
  16487. (calculateStatistics): New function.
  16488. * src/SendMessageQueue.h
  16489. (uploadLength): New variable.
  16490. (send): Added an argument.
  16491. (setUploadLimit): New function.
  16492. (getUploadLimit): New function.
  16493. * src/SendMessageQueue.cc
  16494. (send): Added upload speed limiter.
  16495. * src/prefs.h
  16496. (PREF_UPLOAD_LIMIT): New definition.
  16497. * src/PeerInteractionCommand.cc
  16498. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16499. * src/main.cc
  16500. (main): Added --upload-limit option
  16501. For bug fixes:
  16502. * src/main.cc
  16503. (showUsage): Corrected --listen-port help
  16504. Other changes:
  16505. * src/TorrentMan.cc
  16506. (getPeer): Return nullPeer if connection is grather than
  16507. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16508. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16509. To add some useful information to the exception message:
  16510. * src/SocketCore.cc : Updated messages.
  16511. * src/SegmentMan.cc :
  16512. * src/TorrentMan.cc : Updated messages.
  16513. * src/MultiDiskWriter.cc : Updated messages.
  16514. * src/Util.cc : Updated messages.
  16515. * src/AbstractDiskWriter.cc : Updated messages.
  16516. * src/PreAllocationDiskWriter.cc : Updated messages.
  16517. * src/message.cc : Added new messages. Updated some messages.
  16518. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16519. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16520. Updated threshold from 30 to 15.
  16521. * src/AbstractDiskWriter.h (filename): New variable.
  16522. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16523. (createFile): Assigned filename.
  16524. * src/main.cc: Updated the help message for http-auth-scheme.
  16525. * Release 0.4.0
  16526. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16527. To add TrackerUpdateCommand with which replaces
  16528. CompactTrackerResponseProcessor:
  16529. * src/TrackerWatcherCommand.h (req): Removed.
  16530. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16531. if the number of peer connections are less than 30.
  16532. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16533. * src/SegmentMan.h (diskWriter): New function.
  16534. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16535. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16536. (main): Use TrackerUpdateCommand.
  16537. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16538. (req): New variable.
  16539. (setTrackerResponseProcessor): Removed.
  16540. (getTrackerResponseProcessor): Removed.
  16541. (processTrackerResponse): Removed.
  16542. * src/DownloadEngine.h (diskWriter): Removed.
  16543. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16544. to torrentMan->processTrackerResponse().
  16545. To add Util::expandBuffer:
  16546. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16547. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16548. * src/Util.h (expandBuffer): New function.
  16549. To fix the bug that causes segmentation fault when "-l ." is specified
  16550. in command-line option:
  16551. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16552. (openFile): New function.
  16553. (closeFile): New function.
  16554. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16555. (~SimpleLogger): Call closeFile();
  16556. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16557. * src/main.cc (main): Added a check to see logger is configured
  16558. properly.
  16559. To enable HTTP authentication without specifying "--http-auth-scheme"
  16560. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16561. * src/HttpConnection.cc (createRequest): Send Authorization header
  16562. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16563. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16564. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16565. * src/Peer.cc (shouldChoke): Updated algorithm.
  16566. * src/message.h (EX_AUTH_FAILED): New definition.
  16567. (EX_FILE_OPEN): New definition.
  16568. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16569. if status == 401.
  16570. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16571. if req->isTorrent == true.
  16572. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16573. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16574. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16575. (createFile): Updated message.
  16576. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16577. To add a readout of estimated remaining time to normal HTTP/FTP
  16578. downloads:
  16579. * src/ConsoleDownloadEngine.h (startup): New variable.
  16580. (startupLength): New variable.
  16581. (isStartupLengthSet): New variable.
  16582. (avgSpeed): New variable.
  16583. (eta): New variable.
  16584. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16585. estimated remaining time.
  16586. (initStatistics): Initialized newly added variables.
  16587. (calculateStatistics): Calculate average speed and estimated remaining
  16588. time.
  16589. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16590. * src/TrackerDownloadCommand.h: Removed.
  16591. * src/TrackerDownloadCommand.cc: Removed.
  16592. * src/TrackerInitCommand.h: Removed.
  16593. * src/TrackerInitCommand.cc: Removed.
  16594. * src/TrackerUpdateCommand.h: Removed.
  16595. * src/TrackerUpdateCommand.cc: Removed.
  16596. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16597. url written in TrackerInitCommand was moved here. Do not create
  16598. tracker request command if torrentMan->trackers != 0.
  16599. * src/CompactTrackerResponseProcessor.h: New class.
  16600. * src/CompactTrackerResponseProcessor.cc: New class.
  16601. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16602. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16603. Decoupled TorrentDownloadEngine from this.
  16604. * src/SegmentMan.h (init): New function.
  16605. * src/SegmentMan.cc (init): New function.
  16606. * src/TorrentMan.h (responseProcessor): New variable.
  16607. (trackers): New variable.
  16608. (setTrackerResponseProcessor): New function.
  16609. (getTrackerResponseProcessor): New function.
  16610. (processTrackerResponse): New function.
  16611. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16612. (processTrackerResponse): New function.
  16613. * src/main.cc (main): Use ByteArrayDiskWriter and
  16614. CompactTrackerResponseProcessor.
  16615. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16616. processTrackerResponse().
  16617. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16618. readout.
  16619. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16620. which indicates download has completed.
  16621. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16622. (closeFile): fd >= 0, not fd > 0
  16623. * src/main.cc (main): Added short cut for show-files.
  16624. Added short cut for torrent-file.
  16625. Added new command-line option listen-port.
  16626. Updated i18n messages.
  16627. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16628. To add LogFactory which creates singleton logger:
  16629. * src/LogFactory.h: New class.
  16630. * src/LogFactory.cc: New class.
  16631. * src/Command.h (logger): New variable.
  16632. (Constructor): Use LogFactory.
  16633. * src/AbstractCommand.cc: Use Command::logger
  16634. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16635. Use LogFactory.
  16636. * src/SegmentSplitter.h : Made logger protected.
  16637. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16638. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16639. * src/DownloadEngine.h : Made logger protected.
  16640. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16641. * src/PeerInteractionCommand.cc : Use Command::logger.
  16642. * src/HttpResponseCommand.cc : Use Command::logger.
  16643. * src/SegmentMan.h : Made logger private.
  16644. * src/TorrentMan.h : Made logger private.
  16645. * src/TorrentMan.cc : Use LogFactory.
  16646. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16647. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16648. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16649. Use LogFactory.
  16650. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16651. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16652. Use LogFactory.
  16653. * src/DownloadCommand.cc : Use Command::logger.
  16654. * src/PeerAbstractCommand.cc : Use Command::logger.
  16655. * src/PeerListenCommand.cc : Use Command::logger.
  16656. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16657. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16658. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16659. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16660. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16661. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16662. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16663. Use LogFactory.
  16664. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16665. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16666. Use LogFactory.
  16667. * src/main.cc (main): Use LogFactory.
  16668. * src/DiskAdaptor.h (logger): New variable.
  16669. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16670. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16671. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16672. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16673. parameter to a tracker request.
  16674. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16675. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16676. * src/main.cc (setSignalHander): New function.
  16677. (main): Added a handler for SIGTERM.
  16678. (handler): Updated message.
  16679. (torrentHandler): Updated message.
  16680. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16681. * src/TorrentConsoleDownloadEngine.cc
  16682. (onPartialDownloadingCompletes): Renamed as
  16683. onSelectiveDownloadingCompletes.
  16684. (onSelectiveDownloadingCompletes): Updated message.
  16685. To add DiskAdaptor which abstract DiskWriter family:
  16686. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16687. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16688. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16689. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16690. MultiDiskAdaptor.h.
  16691. (readFileEntry): Changed its arguments.
  16692. (setup): setupDiskWriter is merged into this function.
  16693. (setupDiskWriter): Removed.
  16694. (setFileFilter): New function.
  16695. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16696. made in readFileEntry.
  16697. (getFilePath): Removed.
  16698. (getTempFilePath): Removed.
  16699. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16700. (fixFilename): Removed.
  16701. (copySingleFile): Removed.
  16702. (splitMultiFile): Removed.
  16703. (deleteTempFile): Removed.
  16704. (setFileEntriesToDownload): Removed.
  16705. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16706. (isSelectiveDownloadingMode): New function.
  16707. (setAllMultiFileRequestedState): Removed.
  16708. (finishPartialDownloadingMode): Renamed as
  16709. finishSelectiveDownloadingMode.
  16710. (finishSelectiveDownloadingMode): New function.
  16711. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16712. (getSelectedTotalLength): New function.
  16713. (onDownloadComplete): Use diskAdaptor.
  16714. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16715. (Range): Removed.
  16716. (setMultiFileEntries): Renamed as setFileEntries.
  16717. (setFileEntries): New function.
  16718. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16719. (pieceLength): New variable.
  16720. * src/main.cc (printDownloadCompeleteMessage): New function.
  16721. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16722. (main): Renamed torrent-show-files to show-files.
  16723. Rewritten file contents listing.
  16724. * src/TorrentMan.h (FileEntry): Removed.
  16725. (multiFileTopDir): Removed.
  16726. (multiFileEntries): Removed.
  16727. (diskWriter): Removed.
  16728. (diskAdaptor): New variable.
  16729. * src/DefaultDiskWriter.h (totalLength): New variable.
  16730. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16731. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16732. diskWriter.
  16733. * src/TorrentConsoleDownloadEngine.h
  16734. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16735. (partialTotalLength): Renamed as selectedTotalLength.
  16736. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16737. openExistingFile, otherwise call initAndOpenFile.
  16738. (closeFile): fd > 0, not fd != 0.
  16739. * src/DirectDiskAdaptor.h: New class.
  16740. * src/DirectDiskAdaptor.cc: New class.
  16741. * src/MultiDiskAdaptor.h: New class.
  16742. * src/MultiDiskAdaptor.cc: New class.
  16743. * src/CopyDiskAdaptor.h: New class.
  16744. * src/CopyDiskAdaptor.cc: New class.
  16745. * src/DiskAdaptor.h: New class.
  16746. * src/DiskAdaptor.cc: New class.
  16747. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16748. (PREF_SHOW_FILES): New definition.
  16749. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16750. To add the ability to download multi torrent into respective files
  16751. directly:
  16752. * src/DiskWriter.h (openFile): New function.
  16753. (seek): Removed.
  16754. * src/MultiDiskWriter.h: New class.
  16755. * src/MultiDiskWriter.cc: New class.
  16756. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16757. protected.
  16758. (openFile): New function.
  16759. * src/AbstractDiskWriter.cc (openFile): New function.
  16760. * src/prefs.h (V_FALSE): New definition.
  16761. (PREF_DIRECT_FILE_MAPPING): New definition.
  16762. * src/TorrentMan.h (setupDiskWriter): New function.
  16763. (setAllMultiFileRequestedState): New function.
  16764. (onDownloadComplete): New function.
  16765. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16766. (setupDiskWriter): New function.
  16767. (getFilePath): Updated.
  16768. (getTempFilePath): Updated.
  16769. (getSegmentFilePath): Updated.
  16770. (fixFilename): Updated.
  16771. (deleteTempFile): Updated.
  16772. (setAllMultiFileRequestedState): New function.
  16773. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16774. (finishPartialDownloadingMode): Reset requested flags.
  16775. (onDownloadComplete): New function.
  16776. * src/main.cc: Added --direct-file-mapping option.
  16777. Use TorrentMan::setupDiskWriter().
  16778. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16779. onDownloadComplete().
  16780. To fix ETA bug:
  16781. * src/Util.h (difftvsec): New function.
  16782. * src/Util.cc (difftvsec): New function.
  16783. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16784. type of "elapsed" instead of long long int.
  16785. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16786. The updates of statistics takes place every 1 seconds.
  16787. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16788. (calculateSpeed): Changed its argument signature.
  16789. * src/PeerMessage.cc (toString): Fixed message.
  16790. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16791. To print ETA:
  16792. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16793. completion handling when dealing with
  16794. TorrentMan::isPartialDownloadingMode() == true.
  16795. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16796. New function.
  16797. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16798. (sessionDownloadLength): New variable.
  16799. (avgSpeed): New variable.
  16800. (eta): New variable.
  16801. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16802. new variables: eta, avgSpeed, startup.
  16803. (calculateSpeed): Calculate average speed and ETA.
  16804. (printStatistics): Added ETA.
  16805. * src/Util.h (secfmt): New function.
  16806. * src/Util.cc (secfmt): New function.
  16807. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16808. To detect "keep alive" flooding:
  16809. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16810. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16811. variable: keepAliveCount.
  16812. (detectMessageFlooding): Added "keep alive" flooding detection.
  16813. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16814. received.
  16815. To add the ability to download only specified files in multi-file
  16816. torrent:
  16817. * src/BitfieldMan.h (filterBitfield): New variable.
  16818. (filterEnabled): New variable.
  16819. (setFilterBit): New function.
  16820. (enableFilter): New function.
  16821. (disableFilter): New function.
  16822. (isFilterEnabled): New function.
  16823. (getFilteredTotalLength): New function.
  16824. (getCompletedLength): New function.
  16825. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16826. filterBitfield, filterEnabled.
  16827. (CopyConstructor): Added filterBitfield and filterEnabled.
  16828. (operator==): Added filterBitfield and filterEnabled.
  16829. (Destructor): Added filterBitfield.
  16830. (getMissingIndex): Use filterBitfield.
  16831. (getMissingUnusedIndex): Use filterBitfield.
  16832. (getFirstMissingUnusedIndex): Use filterBitfield.
  16833. (getFirstMissingUnusedIndex): Use filterBitfield.
  16834. (getAllMissingIndexes): Use filterBitfield.
  16835. (countMissingBlock): Use filterBitfield.
  16836. (countBlock): Use filterBitfield.
  16837. (setBitInternal): Added new argument on.
  16838. (setUseBit): Use setBitInternal.
  16839. (unsetUseBit): Use setBitInternal.
  16840. (setBit): Use setBitInternal.
  16841. (unsetBit): Use setBitInternal.
  16842. (isAllBitSet): Use filterBitfield.
  16843. (setFilterBit): New function.
  16844. (addFilter): New function.
  16845. (enableFilter): New function.
  16846. (disableFilter): New function.
  16847. (clearFilter): New function.
  16848. (isFilterEnabled): New function.
  16849. (getFilteredTotalLength): New function.
  16850. (getCompletedLength): New function.
  16851. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16852. Initalized newly added variables.
  16853. [FileEntry](offset): New variable.
  16854. [FileEntry](extracted): New variable.
  16855. [FileEntry](requested): New variable.
  16856. (readFileEntry): New function.
  16857. (option): New variable.
  16858. (splitMultiFile): Removed const qualifier.
  16859. (fixFilename): Removed const qualifier.
  16860. (readFileEntryFromMetaInfoFile): New function.
  16861. (finishPartialDownloadingMode): New function.
  16862. (isPartialDownloadingMode): New function.
  16863. (setFileEntriesToDownload): New function.
  16864. (getCompletedLength): New function.
  16865. (getPartialTotalLength): New function.
  16866. * src/TorrentMan.cc (readFileEntry): New function.
  16867. (setup): Use readFileEntry. If no-preallocation option is specified,
  16868. use DefaultDiskWriter.
  16869. (readFileEntryFromMetaInfoFile): New function.
  16870. (fixFilename): Removed const qualifier.
  16871. (splitMultiFile): Removed const qualifier.
  16872. (setFileEntriesToDownload): New function.
  16873. (isPartialDownloadingMode): New function.
  16874. (finishPartialDownloadingMode): New function.
  16875. (getCompletedLength): New function.
  16876. (getPartialTotalLength): New function.
  16877. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16878. New variable.
  16879. (partialTotalLength): New variable.
  16880. (downloadLength): New variable.
  16881. (totalLength): New variable.
  16882. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16883. Added log.
  16884. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16885. partialTotalLength, downloadLength, totalLength.
  16886. (calculate): Calculate downloadLength and totalLength.
  16887. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16888. * src/main.cc (addCommand): Changed argument signature.
  16889. (main): Added new variable: args. Added new option "torrent-show-files"
  16890. "no-preallocation". Usage is not updated yet.
  16891. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16892. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16893. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16894. Attempt to add the ability to listing file entries in a .torrent file.
  16895. This feature is not yet complete.
  16896. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16897. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16898. (getName): New function.
  16899. * src/TorrentMan.h (getMultiFileEntries): New function.
  16900. (getName): New function.
  16901. * src/main.cc (main): Use above 2 funtion.
  16902. * Release 0.3.2
  16903. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16904. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16905. (detectMessageFlooding): Updated threshold value.
  16906. (checkLongTimePeerChoking): Updated timeout value.
  16907. (getNewPieceAndSendInterest): Added debug log.
  16908. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16909. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16910. (getPeer): Updated.
  16911. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16912. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16913. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16914. is localhost.
  16915. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16916. * src/PendingMessage.cc (processMessage): Not to send piece message
  16917. if peer is not interested in the pieces localhost has.
  16918. * src/Peer.cc (shouldChoke): Updated.
  16919. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16920. * src/Util.cc (isPowerOf): New function.
  16921. * src/Util.h (isPowerOf): New function.
  16922. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16923. whether or not it is power of 2.
  16924. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16925. Added new class SendMessageQueue that includes PendingMessages and
  16926. RequestSlotMan.
  16927. * src/SendMessageQueue.h: New class.
  16928. * src/SendMessageQueue.cc: New class.
  16929. * src/PendingMessage.h: Added new member variable blockIndex and its
  16930. accessors.
  16931. (createRequestMessage): Updated.
  16932. * src/PendingMessage.cc (createRequestMessage): Updated.
  16933. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16934. SendMessageQueue.
  16935. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16936. (receiveMessage): Updated with SendMessageQueue.
  16937. (deletePendingPieceMessage): Removed.
  16938. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16939. (sendInterest): Updated with SendMessageQueue.
  16940. (createRequestPendingMessage): Updated with SendMessageQueue.
  16941. (sendMessages): Updated with SendMessageQueue.
  16942. (onAbort): Updated with SendMessageQueue.
  16943. (keepAlive): Updated with SendMessageQueue.
  16944. (beforeSocketCheck): Updated SendMessageQueue.
  16945. * src/PeerInteractionCommand (sendMessages): Shuffle
  16946. missingBLockIndexes before using it.
  16947. Added its own timeout for peer connection.
  16948. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16949. setter.
  16950. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16951. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16952. Added setTimeout() call.
  16953. (executeInternal): Added setTimeout() call.
  16954. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16955. Added timeout.
  16956. (isTimeoutDetected): Updated.
  16957. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16958. option.
  16959. Added *simple* message flooding checker.
  16960. * src/PeerInteractionCommand.cc (executeInternal):
  16961. Added detectMessageFlooding() call.
  16962. (detectMessageFlooding): New function.
  16963. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16964. (beforeSocketCheck): Added detectMessageFlooding() call.
  16965. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16966. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16967. Removed deletePendingPieceMessage(), getRequestSlot(),
  16968. deleteRequestSlot(), deleteAllRequestSlot().
  16969. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16970. Added checkLongTimePeerChoking() call.
  16971. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16972. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16973. if duplicate == false.
  16974. The parameter "uploaded" and "downloaded" in the tracker request are
  16975. the size since the client sent the "started" event to the tracker.
  16976. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16977. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16978. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16979. getSessionDownloadedSize(), getSessionUploadedSize().
  16980. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16981. getSessionUploadedSize() instead of getDownloadedSize(),
  16982. getUploadedSize().
  16983. * src/PendingMessage.cc (processMessage): Do not send request message
  16984. if the peer is choking the client.
  16985. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16986. less than interval.
  16987. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16988. * configure.in: Added gnutls support. Added several CPP macros.
  16989. * m4/openssl.m4: Added.
  16990. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16991. readData(), peekData(). Added gnutls support.
  16992. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16993. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16994. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16995. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16996. Instead, added a check for whether setup method has executed
  16997. successfully.
  16998. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16999. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17000. * src/Makefile.am: Updated.
  17001. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17002. using whether OpenSSL or gcrypt, depending on the result of configure
  17003. script.
  17004. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17005. messageDigest.h.
  17006. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17007. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17008. Fixed memory leak.
  17009. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17010. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17011. Removed instantiation of TrackerInitCommand. Instead,
  17012. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17013. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17014. ENABLE_SSL.
  17015. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17016. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17017. If a piece is already acquired by another command, delete the request
  17018. slots for the piece.
  17019. * src/TrackerUpdateCommand.cc (execute):
  17020. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17021. Added a check whether peer list is null.
  17022. Fixed the bug that causes sending completed event to the tracker
  17023. several times.
  17024. * src/TrackerInitCommand.cc (execute):
  17025. Fixed the bug that causes sending completed event to the tracker
  17026. several times.
  17027. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17028. by using messageDigest.h.
  17029. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17030. * PeerConnection.cc: Replaced log message "keep-alive" with
  17031. "keep alive".
  17032. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17033. localhost long time.
  17034. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17035. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17036. at most 100 failure entry from the list. If with duplicate = false,
  17037. MAX_PEER_LIST is not checked.
  17038. * PeerListenCommand.cc: Fixed the argument order of log message.
  17039. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17040. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17041. Added warn().
  17042. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17043. Implemented warn().
  17044. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17045. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17046. * Request.h: Added AFTER_COMPLETED event.
  17047. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17048. instead of downloaded size and progress(%) after download completes.
  17049. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17050. message to the peer if it is interested in what localhost has
  17051. downloaded.
  17052. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17053. destination instead of just renaming it.
  17054. * TorrentMan.cc: Added deleteTempFile().
  17055. * PeerAbstractCommand.cc: do not stop execution after download
  17056. completes. This makes localhost a seeder.
  17057. * Util.{h,cc}: Added fileCopy().
  17058. * PeerListenCommand.cc: do not stop execution after download completes.
  17059. This makes localhost a seeder.
  17060. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17061. Added TorrentMan::deleteTempFile() to torrentHandler.
  17062. Initialized the variable dir as ".".
  17063. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17064. Deleted renameSingleFile().
  17065. Added copySingleFile(), deleteTempFile().
  17066. * DownloadEngine.h: Added virtual function afterEachIteration().
  17067. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17068. in onEndOfRun() to afterEachIteration().
  17069. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17070. true.
  17071. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17072. In rangedFileCopy(), added try-catch block to properly close file
  17073. descriptors.
  17074. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17075. Added afterEachIteration(), isFilenameFixed().
  17076. * Peer.cc: Changed choking strategy.
  17077. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17078. * TrackerInitCommand.cc: Send completed event only once.
  17079. * DownloadEngine.cc: Added a call to afterEachIteration().
  17080. * TrackerUpdateCommand.cc: Do not stop execution after download
  17081. completes.
  17082. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17083. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17084. received from a tracker.
  17085. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17086. Decreased the number of failure peers to delete to 0(just comment out
  17087. the line).
  17088. * Release 0.3.1
  17089. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17090. * PeerInteractionCommand.cc: added a call to
  17091. TorrentMan::unadvertisePiece in Destructor.
  17092. * PeerInteractionCommand.cc: make have message sent immediately
  17093. if the size of pending message queue is zero.
  17094. * TorrentMan.cc: set the maximum size of peer list to 250.
  17095. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17096. to deque.
  17097. * Util.cc: fixed rangedFileCopy.
  17098. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17099. to Constructor. Also, moved digest cleanup to Destructor.
  17100. * MetaFileUtil.cc: fixed memory leak
  17101. * replaced std::vector with std::deque.
  17102. * AbstractCommand.cc: casted timeout value to long long int.
  17103. * ChunkedEncoding.cc: fixed memory leak.
  17104. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17105. * SleepCommand.cc: casted timeout value to long long int.
  17106. * Data.cc: fixed memory leak.
  17107. * Data.cc: fixed toLLInt().
  17108. * BitfieldMan.cc: fixed memory leak.
  17109. * TorrentMan.cc: initialized storeDir to ".".
  17110. * TorrentMan.cc: fixed memory leak.
  17111. * TorrentMan.cc: corrected file paths of splitted files.
  17112. * PeerAbstractCommand.cc: casted timeout to long long int.
  17113. * main.cc: added delete(req) and delete(te->diskWriter).
  17114. * RequestSlot.cc: casted timeout value to long long int.
  17115. * Request.cc: fixed memory leak.
  17116. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17117. have the piece.
  17118. * Peer.{h,cc}: added hasPiece(int index).
  17119. * main.cc: corrected addCommand.
  17120. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17121. * BitTorrent protocol support added.
  17122. * Release 0.3.0
  17123. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17124. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17125. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17126. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17127. decoding did not work properly.
  17128. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17129. * DownloadEngine.h: included sys/time.h
  17130. * DownloadEngine.cc: remove sys/time.h
  17131. * Makefile.am (SUBDIRS): Add intl.
  17132. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17133. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17134. * main.cc: correct help message for --http-auth-scheme.
  17135. * main.cc: changed e-mail address for bug reports.
  17136. * ja.po: added japanese translation.
  17137. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17138. * SimpleLogger.cc: flush log file instead of stdout.
  17139. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17140. * main.cc: Fixed command-line option: max-tries
  17141. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17142. does not equal to seg.sp.
  17143. * DownloadCommand.cc: If EOF is got from the server and the total size
  17144. of file is not zero, then throw DlRetryEx.
  17145. * main.cc: Set the minium value of min-segment-size to 1024.
  17146. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17147. fails because of a regression since 0.2.0 release.
  17148. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17149. * HttpConnection.cc:
  17150. * common.h: defined the user agent name as macro
  17151. * DownloadEngine.{h, cc}:
  17152. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17153. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17154. * main.cc: Download complete/abort message is now generated by main.
  17155. * Makefile.am (SUBDIRS): Add m4.
  17156. (ACLOCAL_AMFLAGS): New variable.
  17157. (EXTRA_DIST): New variable.
  17158. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17159. * gettext: added gettext functionality
  17160. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17161. * AbstractCommand.cc:
  17162. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17163. unregister its cuid from SegmentMan.
  17164. * DownloadEngine.cc: .aria2 file was written when a downloading
  17165. failed with errors.
  17166. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17167. Added "User-Agent" header to CONNECT proxy request.
  17168. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17169. properly.
  17170. * Logger.h:
  17171. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17172. * ChunkedEncoding.cc: Added #include directive for strings.h
  17173. * Release 0.2.1
  17174. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17175. * Util.{h,cc}: added startsWith().
  17176. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17177. Util::endsWith().
  17178. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17179. * common.h: added #include directive of limit.h.
  17180. * DownloadEngine.cc: added #include directive of sys/time.h and
  17181. algorithm.
  17182. * Exception.h: added #include directive of stdio.h.
  17183. * AbstractCommand.h: added #include directive of sys/time.h.
  17184. * DownloadCommand.h: added #include directive of sys/time.h.
  17185. * *.h: added #include directive of common.h to all base classes.
  17186. subclasses' one was removed.
  17187. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17188. does not define these macros.
  17189. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17190. * Release 0.2.0
  17191. * main.cc:
  17192. * HttpInitiateConnectionCommand.{h,cc}:
  17193. * prefs.h:
  17194. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17195. We can now use GET command in http proxy.
  17196. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17197. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17198. that splits slowest segment of SegmentMan::commands vector.
  17199. This is the default split algorithm of aria2.
  17200. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17201. that splits first segment of SegmentMan::commands vector.
  17202. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17203. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17204. * Segment.h:
  17205. * SegmentMan.cc: Added speed field to Segment.h
  17206. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17207. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17208. * message.h: Change file size related %d to %lld.
  17209. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17210. * FtpInitiateConnectionCommand.{h,cc}:
  17211. * FtpNegotiationCommand.{h,cc}:
  17212. * FtpDownloadCommand.{h,cc}:
  17213. * FtpConnection.{h,cc}: Added FTP support
  17214. * SimpleLogger.cc: Log message now includes time information.
  17215. * main.cc: The value of --http-auth-scheme option is chagned from
  17216. 'BASIC' to 'basic'
  17217. * main.cc: Added --timeout command-line option.
  17218. * main.cc: Added --min-segment-size command-line option.
  17219. * main.cc: Added --max-retries command-line option.
  17220. * prefs.h: option string constants are now defined in prefs.h
  17221. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17222. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17223. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17224. with version 0.1.0's one.
  17225. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17226. * configure.in: Added --enable-ssl option to configure script.
  17227. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17228. cannot permit absoluteURI as Request-URI.
  17229. * HttpConnection.cc: Added Referer support.
  17230. * main.cc: Added referer command-line option.
  17231. * main.cc: Added rety-wait command-line option.
  17232. * Exception.h: Fixed formating bug in Exception::setMsg()
  17233. * SocketCore.{h,cc}:
  17234. * Socket.{h, cc}:
  17235. * Request.cc:
  17236. * InitiateConnectionCommandFactory.cc:
  17237. * HttpRequestCommand.cc: Added HTTPS support.
  17238. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17239. for SocketCore.
  17240. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17241. size is wrong
  17242. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17243. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17244. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17245. * Release 0.1.0