ChangeLog 641 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587
  1. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added BitTorrent magnet link support to ProtocolDetector.
  3. * src/ProtocolDetector.cc
  4. * src/ProtocolDetector.h
  5. * test/ProtocolDetectorTest.cc
  6. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Don't inject validator into BtMessage in metadataGetMode because
  8. most of the checks depends on the total length of download but it
  9. is unknown. Delegate metadataGetMode to BtMessage.
  10. * src/DefaultBtMessageFactory.cc
  11. * src/DefaultBtMessageFactory.h
  12. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  14. * src/DefaultPieceStorage.h
  15. * src/PieceStorage.h
  16. * src/UnknownLengthPieceStorage.h
  17. * test/MockPieceStorage.h
  18. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Added markTotalLengthIsKnown().
  20. * src/DownloadContext.h
  21. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  23. missing. If metadata is missing, always use DHT when it is ready.
  24. * src/BtSetup.cc
  25. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Added parseMagnetLink(). Hex encoded info hash is supported.
  27. Base32 encoded info hash is not supported yet.
  28. * src/bittorrent_helper.cc
  29. * src/bittorrent_helper.h
  30. * test/BittorrentHelperTest.cc
  31. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Added FromHex()
  33. * src/util.cc
  34. * src/util.h
  35. * test/UtilTest.cc
  36. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Added _metadataGetMode member variable. It toggles the action when
  38. messages are received: usually they almost do nothing if
  39. _metadataGetMode is true.
  40. * src/AbstractBtMessage.cc
  41. * src/AbstractBtMessage.h
  42. * src/BtAllowedFastMessage.cc
  43. * src/BtBitfieldMessage.cc
  44. * src/BtCancelMessage.cc
  45. * src/BtChokeMessage.cc
  46. * src/BtHaveAllMessage.cc
  47. * src/BtHaveMessage.cc
  48. * src/BtInterestedMessage.cc
  49. * src/BtNotInterestedMessage.cc
  50. * src/BtPieceMessage.cc
  51. * src/BtRejectMessage.cc
  52. * src/BtRequestMessage.cc
  53. * src/BtUnchokeMessage.cc
  54. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Added bencode::decode overload functions. They have extra argument
  56. 'end', passed by reference. 'end' points to the beyond the last
  57. position of data used in decoding process.
  58. * src/bencode.cc
  59. * src/bencode.h
  60. * test/BencodeTest.cc
  61. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Initial support of Extension for Peers to Send Metadata
  63. Files(BEP9). Currently aria2 only serves metadata and cannot get
  64. metadata from swarm.
  65. * src/BtConstants.h
  66. * src/DefaultBtInteractive.cc
  67. * src/DefaultExtensionMessageFactory.cc
  68. * src/DefaultExtensionMessageFactory.h
  69. * src/ExtensionMessage.h
  70. * src/ExtensionMessageRegistry.h
  71. * src/HandshakeExtensionMessage.cc
  72. * src/HandshakeExtensionMessage.h
  73. * src/Makefile.am
  74. * src/PeerConnection.h
  75. * src/PeerInteractionCommand.cc
  76. * src/UTMetadataDataExtensionMessage.cc
  77. * src/UTMetadataDataExtensionMessage.h
  78. * src/UTMetadataExtensionMessage.cc
  79. * src/UTMetadataExtensionMessage.h
  80. * src/UTMetadataRejectExtensionMessage.cc
  81. * src/UTMetadataRejectExtensionMessage.h
  82. * src/UTMetadataRequestExtensionMessage.cc
  83. * src/UTMetadataRequestExtensionMessage.h
  84. * src/bittorrent_helper.cc
  85. * src/bittorrent_helper.h
  86. * test/BittorrentHelperTest.cc
  87. * test/DefaultExtensionMessageFactoryTest.cc
  88. * test/HandshakeExtensionMessageTest.cc
  89. * test/Makefile.am
  90. * test/UTMetadataDataExtensionMessageTest.cc
  91. * test/UTMetadataRejectExtensionMessageTest.cc
  92. * test/UTMetadataRequestExtensionMessageTest.cc
  93. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Cancel segment in prepareForRetry() because there is a chance that
  95. the command has segments.
  96. * src/CreateRequestCommand.cc
  97. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Fixed the bug that slow server is not knocked down in favor of
  99. faster one.
  100. * src/AbstractCommand.cc
  101. * src/DefaultPieceStorage.cc
  102. * src/DefaultPieceStorage.h
  103. * src/PieceStorage.h
  104. * src/UnknownLengthPieceStorage.cc
  105. * src/UnknownLengthPieceStorage.h
  106. * test/MockPieceStorage.h
  107. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Fixed the bug that Request object is not added to
  109. _inFlightRequests in findFasterRequest().
  110. * src/FileEntry.cc
  111. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Changed the strategry of how to increase the number of outstanding
  113. requests. Now the number is doubled if there are no outstanding
  114. requests after receiving messages.
  115. * src/BtConstants.h
  116. * src/DefaultBtInteractive.cc
  117. * src/DefaultBtInteractive.h
  118. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Check socket for reading if there are outstanding requests.
  120. * src/PeerInteractionCommand.cc
  121. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Moved frequently called methods to header file so they get
  123. inlined.
  124. * src/RequestSlot.cc
  125. * src/RequestSlot.h
  126. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Copied in_addr instead of just casting from char* which might
  128. violate strict aliasing rules.
  129. * src/AsyncNameResolver.cc
  130. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Use dynamic_pointer_cast
  132. * test/BtPieceMessageTest.cc
  133. * test/BtRequestMessageTest.cc
  134. * test/DefaultBtRequestFactoryTest.cc
  135. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Added testSetUrl20()
  137. * test/RequestTest.cc
  138. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Code cleanup
  140. * src/bittorrent_helper.cc
  141. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Use C++ style cast
  143. * src/AsyncNameResolver.cc
  144. * src/Base64.h
  145. * src/BtBitfieldMessage.cc
  146. * src/BtHandshakeMessage.cc
  147. * src/DefaultBtMessageFactory.cc
  148. * src/DefaultBtProgressInfoFile.cc
  149. * src/EpollEventPoll.cc
  150. * src/ExpatMetalinkProcessor.cc
  151. * src/IteratableChecksumValidator.cc
  152. * src/IteratableChunkChecksumValidator.cc
  153. * src/MessageDigestHelper.cc
  154. * src/Platform.cc
  155. * src/RequestGroupMan.cc
  156. * src/SingleFileAllocationIterator.cc
  157. * src/Sqlite3MozCookieParser.cc
  158. * src/XML2SAXMetalinkProcessor.cc
  159. * src/Xml2XmlRpcRequestProcessor.cc
  160. * src/util.cc
  161. * src/util.h
  162. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Fixed integer potential alignment problem.
  164. * src/bitfield.h
  165. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Applied a patch from tizianomueller to fix sigbus errors on Linux
  167. sparc. I modified the patch to eliminate a cast to uint32_t* and
  168. include file ordering.
  169. * src/PeerListProcessor.h
  170. * src/bittorrent_helper.cc
  171. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  173. * src/Request.cc
  174. * src/util.cc
  175. * src/util.h
  176. * test/RequestTest.cc
  177. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Rewritten util::uitos()
  179. * src/util.h
  180. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Code cleanup
  182. * src/Request.cc
  183. * src/Request.h
  184. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Rewritten Request::parseUrl()
  186. * src/Request.cc
  187. * test/RequestTest.cc
  188. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Removed unused macro SAFE_CHARS
  190. * src/Request.cc
  191. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Updated doc
  193. * src/DHTRoutingTableDeserializer.cc
  194. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Release 1.6.3
  196. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Removed unused function.
  198. * test/DHTPeerAnnounceStorageTest.cc
  199. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Only decrement cols if cols > 0
  201. * src/ConsoleStatCalc.cc
  202. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Updated Polish, Catalan, French, Italian, Russian and Japanese
  204. translations. Thanks to all translators.
  205. * po/ca.po
  206. * po/fr.po
  207. * po/it.po
  208. * po/ja.po
  209. * po/pl.po
  210. * po/ru.po
  211. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Updated translation template
  213. * po
  214. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Fixed compile error without ssl library.
  216. * src/util.cc
  217. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Logged received nodes in get_peers reply message.
  219. * src/DHTAbstractNodeLookupTask.cc
  220. * src/DHTAbstractNodeLookupTask.h
  221. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  223. error occurred in DHTMessageDispatcherImpl::sendMessage().
  224. * src/DHTMessageDispatcherImpl.cc
  225. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Don't reuse URI if Request pool is not empty.
  227. * src/CreateRequestCommand.cc
  228. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  230. receive get_peers request for torrent which the client is now
  231. downloading.
  232. * src/BtSetup.cc
  233. * src/DHTPeerAnnounceEntry.cc
  234. * src/DHTPeerAnnounceEntry.h
  235. * src/DHTPeerAnnounceStorage.cc
  236. * src/DHTPeerAnnounceStorage.h
  237. * src/RequestGroup.cc
  238. * test/DHTPeerAnnounceEntryTest.cc
  239. * test/DHTPeerAnnounceStorageTest.cc
  240. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Fixed the bug that in Windows environment new blank line is
  242. inserted when console readout is updated.
  243. * src/ConsoleStatCalc.cc
  244. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Throw exception if binding listening port is failed. Removed
  246. RequestGroupMan::getInitialCommand(). Use
  247. fillRequestGroupFromReserver() instead. Delete commands for
  248. RequestGroup which has errors when it is being added.
  249. * src/BtSetup.cc
  250. * src/DownloadEngine.cc
  251. * src/DownloadEngine.h
  252. * src/DownloadEngineFactory.cc
  253. * src/MultiUrlRequestInfo.cc
  254. * src/RequestGroupMan.cc
  255. * src/RequestGroupMan.h
  256. * test/RequestGroupManTest.cc
  257. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Fixed the bug that when downloading more than one torrent,
  259. listening port is not reported properly to tracker for 2nd or
  260. later torrents.
  261. * src/BtSetup.cc
  262. * src/PeerListenCommand.cc
  263. * src/PeerListenCommand.h
  264. * src/RequestGroup.cc
  265. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Bump up version number to 1.6.3
  267. * configure.ac
  268. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Removed Util.cc from POTFILES.in
  270. * po/POTFILES.in
  271. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Updated man page for previous change.
  273. * doc/aria2c.1.txt
  274. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. If user name is embedded but password is missing in URI, first
  276. resolve password using .netrc. If password is found in .netrc,
  277. then use it as password. If not, use the password specified in
  278. --ftp-passwd.
  279. * src/AuthConfigFactory.cc
  280. * src/Request.cc
  281. * src/Request.h
  282. * test/AuthConfigFactoryTest.cc
  283. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Fixed typo
  285. * doc/aria2c.1.txt
  286. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Fixed typo
  288. * src/usage_text.h
  289. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Added missing bitfield.cc
  291. * src/bitfield.cc
  292. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Renamed Util.{cc,h} as util.{cc,h}
  294. * src/Util.cc
  295. * src/Util.h
  296. * src/util.cc
  297. * src/util.h
  298. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Moved static functions in Util class to namespace util.
  300. * src
  301. * test
  302. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  304. Moved generateRandomKey to bittorrent_helper.cc.
  305. * src/DHTBucket.cc
  306. * src/DHTGetPeersMessage.cc
  307. * src/DHTGetPeersReplyMessage.cc
  308. * src/DHTMessage.cc
  309. * src/DHTNode.cc
  310. * src/DHTTokenTracker.cc
  311. * src/DHTUtil.cc: Removed.
  312. * src/DHTUtil.h: Removed.
  313. * src/Makefile.am
  314. * src/Util.cc
  315. * src/Util.h
  316. * src/bitfield.h
  317. * src/bittorrent_helper.cc
  318. * src/bittorrent_helper.h
  319. * test/ARC4Test.cc
  320. * test/BNodeTest.cc
  321. * test/DHTAnnouncePeerMessageTest.cc
  322. * test/DHTAnnouncePeerReplyMessageTest.cc
  323. * test/DHTFindNodeMessageTest.cc
  324. * test/DHTFindNodeReplyMessageTest.cc
  325. * test/DHTGetPeersMessageTest.cc
  326. * test/DHTGetPeersReplyMessageTest.cc
  327. * test/DHTPingMessageTest.cc
  328. * test/DHTPingReplyMessageTest.cc
  329. * test/DHTTokenTrackerTest.cc
  330. * test/DHTUtilTest.cc: Removed.
  331. * test/Makefile.am
  332. * test/UtilTest.cc
  333. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Removed the call to trim() because trim() is called for each
  335. element in split().
  336. * src/CookieParser.cc
  337. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Replaced Util::slice() with split()
  339. * src/AbstractCommand.cc
  340. * src/CookieParser.cc
  341. * src/File.cc
  342. * src/HttpHeaderProcessor.cc
  343. * src/HttpRequest.cc
  344. * src/Metalink2RequestGroup.cc
  345. * src/MetalinkParserController.cc
  346. * src/Netrc.cc
  347. * src/NsCookieParser.cc
  348. * src/ParameterizedStringParser.cc
  349. * src/ServerStatMan.cc
  350. * src/UriListParser.cc
  351. * src/Util.cc
  352. * src/Util.h
  353. * src/bittorrent_helper.cc
  354. * test/UtilTest.cc
  355. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Use request->getDir() instead of "/" for embedded user/pass in
  357. URI.
  358. * src/AuthConfigFactory.cc
  359. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Fixed wrong insertion point for BasicCred.
  361. * src/AuthConfigFactory.cc
  362. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Allowed non-regular file in LocalFilePathOptionHandler
  364. * src/OptionHandlerImpl.h
  365. * src/message.h
  366. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Fixed the bug that Netrc::parse() cannot recognize comment line.
  368. * src/Netrc.cc
  369. * src/Util.h
  370. * test/NetrcTest.cc
  371. * test/sample.netrc
  372. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Fixed typo
  374. * src/BtDependency.cc
  375. * src/BtRejectMessage.cc
  376. * src/FtpConnection.cc
  377. * src/HttpHeaderProcessor.h
  378. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Fixed lintian report in man page
  380. * doc/aria2c.1.txt
  381. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Release 1.6.2
  383. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Updated Ukrainian translation. Thanks to all translators.
  385. * po/uk.po
  386. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Updated translation template
  388. * po
  389. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Bump up version number to 1.6.2
  391. * configure.ac
  392. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Updated licence message in -v output.
  394. * src/version_usage.cc
  395. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Replaced aria2 with aria2c in help message.
  397. * src/version_usage.cc
  398. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  400. * src/version_usage.cc
  401. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Quoted localedir
  403. * src/Makefile.am
  404. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  406. utime. Check header for utime.h.
  407. * configure.ac
  408. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  410. * configure.ac
  411. * src/daemon.cc
  412. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Don't set localedir manually. Leave it to autoconf.
  414. * configure.ac
  415. * src/Makefile.am
  416. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Added --install to ACLOCAL_AMFLAGS.
  418. Removed m4 from SUBDIRS.
  419. Updated automake 1.11 and autoconf 2.64.
  420. Replaced some obsolute macros with new one.
  421. * Makefile.am
  422. * configure.ac
  423. * m4/aria2_arg.m4
  424. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Removed Makefile.am in m4 directory.
  426. * configure.ac
  427. * m4/ChangeLog
  428. * m4/Makefile.am
  429. * m4/Makefile.in
  430. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Removed unused m4 macros.
  432. * m4/intldir.m4
  433. * m4/inttypes.m4
  434. * m4/isc-posix.m4
  435. * m4/libgnutls-extra.m4
  436. * m4/ulonglong.m4
  437. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Fixed the bug that causes segmentation fault if
  439. req->getCurrentUrl() contains printf formatting characters such as
  440. %d. The statement that causes this bug is useless and removed.
  441. * src/AbstractCommand.cc
  442. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. * Release 1.6.1
  444. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Updated Simplified Chinese translation. Thanks to translators.
  446. * po/zh_CN.po
  447. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Updated translation template
  449. * po
  450. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Bump up version number to 1.6.1
  452. * configure.ac
  453. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Changed interval from 120 to 60 for dropping inactive peer.
  455. * src/DefaultBtInteractive.cc
  456. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Updated man page for --user-agent and --peer-id-prefix option.
  458. * doc/aria2c.1.txt
  459. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Code clean up
  461. * src/BtPostDownloadHandler.cc
  462. * src/ContentTypeRequestGroupCriteria.cc
  463. * src/ContentTypeRequestGroupCriteria.h
  464. * src/DownloadHandlerConstants.cc
  465. * src/DownloadHandlerConstants.h
  466. * src/DownloadHandlerFactory.cc
  467. * src/MetalinkPostDownloadHandler.cc
  468. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Don't save control file when aria2 exists while checking piece
  470. hash(behavior of -V option). If control file doesn't exist when
  471. aria2 launched, the completed length in saved control file will be
  472. 0 byte and this confuses user. disableSaveControlFile() is called
  473. in RequestGroup::processCheckIntegrityEntry().
  474. enableSaveControlFile() will be called after hash checking is
  475. done. See CheckIntegrityCommand.
  476. * src/CheckIntegrityCommand.cc
  477. * src/RequestGroup.cc
  478. * src/RequestGroup.h
  479. * src/RequestGroupMan.cc
  480. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Included version number in Peer ID and client version. Peer ID
  482. now starts with "aria2/VERSION-", where VERSION is
  483. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  484. * src/DefaultBtInteractive.cc
  485. * src/OptionHandlerFactory.cc
  486. * src/bittorrent_helper.cc
  487. * src/bittorrent_helper.h
  488. * src/main.cc
  489. * src/usage_text.h
  490. * test/BittorrentHelperTest.cc
  491. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Fixed memory leak.
  493. * src/DownloadCommand.cc
  494. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Removed server, port, user and passwd key from options before
  496. XMLRPC::Client.call since they are not options of aria2.
  497. * doc/xmlrpc/aria2mon
  498. * doc/xmlrpc/aria2rpc
  499. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Included version number in user-agent string.
  501. * src/OptionHandlerFactory.cc
  502. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Fixed the bug that the option values changed by XML-RPC
  504. method(changeOption and changeGlobalOption) are overwritten to the
  505. previous value by the next these request which doesn't contain
  506. that option value. Supporse max-download-limit is initially 0. You
  507. changed this value to 100K by changeOption. Then you issue
  508. changeOption request to change max-upload-limit to 50K. This
  509. second request doesn't contain xml-download-limit, so it is back
  510. to initial value, 0. Another improvement is that exception is
  511. thrown when changeOption and changeGlobalOption request contains
  512. option name which doesn't allowed in each request.
  513. * src/DownloadEngine.h
  514. * src/XmlRpcMethod.cc
  515. * src/XmlRpcMethod.h
  516. * src/XmlRpcMethodImpl.cc
  517. * src/download_helper.cc
  518. * src/download_helper.h
  519. * test/XmlRpcMethodTest.cc
  520. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Added missing MetalinkParserStateImpl.{cc,h}
  522. * src/MetalinkParserStateImpl.cc
  523. * src/MetalinkParserStateImpl.h
  524. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Put all MetalinkParserState subclasses into
  526. MetalinkParserStateImpl.cc. Use stack to track element structure.
  527. * src/FileMetalinkParserState.cc: Removed
  528. * src/FileMetalinkParserState.h: Removed
  529. * src/FilesMetalinkParserState.cc: Removed
  530. * src/FilesMetalinkParserState.h: Removed
  531. * src/FinMetalinkParserState.cc: Removed
  532. * src/FinMetalinkParserState.h: Removed
  533. * src/HashMetalinkParserState.cc: Removed
  534. * src/HashMetalinkParserState.h: Removed
  535. * src/InitialMetalinkParserState.cc: Removed
  536. * src/InitialMetalinkParserState.h: Removed
  537. * src/LanguageMetalinkParserState.cc: Removed
  538. * src/LanguageMetalinkParserState.h: Removed
  539. * src/Makefile.am
  540. * src/MetalinkMetalinkParserState.cc: Removed
  541. * src/MetalinkMetalinkParserState.h: Removed
  542. * src/MetalinkParserState.h
  543. * src/MetalinkParserStateMachine.cc
  544. * src/MetalinkParserStateMachine.h
  545. * src/OSMetalinkParserState.cc: Removed
  546. * src/OSMetalinkParserState.h: Removed
  547. * src/PieceHashMetalinkParserState.cc: Removed
  548. * src/PieceHashMetalinkParserState.h: Removed
  549. * src/PiecesMetalinkParserState.cc: Removed
  550. * src/PiecesMetalinkParserState.h: Removed
  551. * src/ResourcesMetalinkParserState.cc: Removed
  552. * src/ResourcesMetalinkParserState.h: Removed
  553. * src/SignatureMetalinkParserState.cc: Removed
  554. * src/SignatureMetalinkParserState.h: Removed
  555. * src/SizeMetalinkParserState.cc: Removed
  556. * src/SizeMetalinkParserState.h: Removed
  557. * src/SkipTagMetalinkParserState.cc: Removed
  558. * src/SkipTagMetalinkParserState.h: Removed
  559. * src/URLMetalinkParserState.cc: Removed
  560. * src/URLMetalinkParserState.h: Removed
  561. * src/VerificationMetalinkParserState.cc: Removed
  562. * src/VerificationMetalinkParserState.h: Removed
  563. * src/VersionMetalinkParserState.cc: Removed
  564. * src/VersionMetalinkParserState.h: Removed
  565. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Move all functions in PeerMessageUtil to bittorrent_helper.
  567. * src/BtBitfieldMessage.cc
  568. * src/BtBitfieldMessageValidator.h
  569. * src/BtExtendedMessage.cc
  570. * src/BtHandshakeMessage.cc
  571. * src/BtHandshakeMessageValidator.h
  572. * src/BtPieceMessage.cc
  573. * src/BtPieceMessageValidator.h
  574. * src/BtPortMessage.cc
  575. * src/DHTFindNodeReplyMessage.cc
  576. * src/DHTGetPeersReplyMessage.cc
  577. * src/DHTMessageFactoryImpl.cc
  578. * src/DHTRoutingTableDeserializer.cc
  579. * src/DHTRoutingTableSerializer.cc
  580. * src/DHTTokenTracker.cc
  581. * src/DefaultBtMessageFactory.cc
  582. * src/IndexBtMessage.cc
  583. * src/IndexBtMessage.h
  584. * src/IndexBtMessageValidator.h
  585. * src/Makefile.am
  586. * src/PeerMessageUtil.cc: Removed.
  587. * src/PeerMessageUtil.h: Removed.
  588. * src/RangeBtMessage.cc
  589. * src/RangeBtMessage.h
  590. * src/RangeBtMessageValidator.h
  591. * src/UTPexExtensionMessage.cc
  592. * src/ZeroBtMessage.cc
  593. * src/ZeroBtMessage.h
  594. * src/bittorrent_helper.cc
  595. * src/bittorrent_helper.h
  596. * test/BittorrentHelperTest.cc
  597. * test/BtAllowedFastMessageTest.cc
  598. * test/BtBitfieldMessageTest.cc
  599. * test/BtCancelMessageTest.cc
  600. * test/BtChokeMessageTest.cc
  601. * test/BtExtendedMessageTest.cc
  602. * test/BtHandshakeMessageTest.cc
  603. * test/BtHaveAllMessageTest.cc
  604. * test/BtHaveMessageTest.cc
  605. * test/BtHaveNoneMessageTest.cc
  606. * test/BtInterestedMessageTest.cc
  607. * test/BtNotInterestedMessageTest.cc
  608. * test/BtPieceMessageTest.cc
  609. * test/BtPortMessageTest.cc
  610. * test/BtRejectMessageTest.cc
  611. * test/BtRequestMessageTest.cc
  612. * test/BtSuggestPieceMessageTest.cc
  613. * test/BtUnchokeMessageTest.cc
  614. * test/DHTFindNodeReplyMessageTest.cc
  615. * test/DHTGetPeersReplyMessageTest.cc
  616. * test/DHTMessageFactoryImplTest.cc
  617. * test/DHTRoutingTableDeserializerTest.cc
  618. * test/DHTRoutingTableSerializerTest.cc
  619. * test/DefaultBtMessageFactoryTest.cc
  620. * test/DefaultExtensionMessageFactoryTest.cc
  621. * test/Makefile.am
  622. * test/PeerListProcessorTest.cc
  623. * test/PeerMessageUtilTest.cc: Removed.
  624. * test/UTPexExtensionMessageTest.cc
  625. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Limit the size of values list when sending get_peers reply.
  627. * src/DHTGetPeersReplyMessage.cc
  628. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Updated banner
  630. * doc/xmlrpc/aria2rpc
  631. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Added missing help message for remove command.
  633. * doc/xmlrpc/aria2rpc
  634. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Generated configure and config.h.in
  636. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  637. Add check for fork(), which is missing on MinGW
  638. * src/daemon.cc
  639. * configure.ac
  640. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  642. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  643. Util::httpGMT().
  644. * src/Util.cc
  645. * src/Util.h
  646. * test/UtilTest.cc
  647. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. * Release 1.6.0
  649. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Fixed a path to xmlrpc/README.txt
  651. * doc/Makefile.am
  652. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Added XML-RPC in -v Configuration output.
  654. * src/FeatureConfig.cc
  655. * src/FeatureConfig.h
  656. * test/FeatureConfigTest.cc
  657. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Updated Bulgarian, Russian, Slovak and Japanese
  659. translations. Thanks to all translators.
  660. * po/bg.po
  661. * po/ja.po
  662. * po/ru.po
  663. * po/sk.po
  664. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Removed --retry-wait option from aria2rpc
  666. * doc/xmlrpc/aria2rpc
  667. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Removed --retry-wait option from man page.
  669. * doc/aria2c.1.txt
  670. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Removed --retry-wait option since the current architecture doesn't
  672. allow sleep for particular URI.
  673. * src/AbstractCommand.cc
  674. * src/OptionHandlerFactory.cc
  675. * src/download_helper.cc
  676. * src/prefs.cc
  677. * src/prefs.h
  678. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Removed Retry-After header support. Since the current architecture
  680. doesn't allow sleep for particular URI.
  681. * src/HttpSkipResponseCommand.cc
  682. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Updated the help message for --daemon option.
  684. * doc/aria2c.1.txt
  685. * src/usage_text.h
  686. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Added our own daemon() function for systems which desn't have
  688. daemon(3).
  689. * configure.ac
  690. * src/Makefile.am
  691. * src/daemon.cc
  692. * src/daemon.h
  693. * src/option_processing.cc
  694. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Simplified File::getCurrentDir()
  696. * src/File.cc
  697. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Use exit() instead of _exit
  699. * src/RequestGroupMan.cc
  700. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Replaced "CATEGORY" with "TAGS".
  702. * src/usage_text.h
  703. * doc/aria2c.1.txt
  704. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Updated the help message for --help option.
  706. * src/usage_text.h
  707. * doc/aria2c.1.txt
  708. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Updated man page for added help tags.
  710. * doc/aria2c.1.txt
  711. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Added help category #file. Added #file tag to the options related
  713. to downloaded file.
  714. * src/OptionHandlerFactory.cc
  715. * src/help_tags.h
  716. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Added help categories: #cookie and #hook. Added #https tag to
  718. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  719. * src/OptionHandlerFactory.cc
  720. * src/help_tags.h
  721. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Made MSG_NOT_FILE translatable.
  723. * src/message.h
  724. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Updated man page for --help option.
  726. * doc/aria2c.1.txt
  727. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Updated doc.
  729. * src/XmlRpcMethod.h
  730. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Help category now starts with "#" to distinguish a category from
  732. keyword search. For example, "http" categroy is now "#http". You
  733. can type "--help=#http" to get explanation of options related to
  734. http. If '#' is omitted, then the argument is treated as a keyword
  735. and aria2 searches options whose name includes the keyword and
  736. print matched ones. For example, "--help=http" will show options
  737. whose name includes "http".
  738. * src/OptionHandlerFactory.cc
  739. * src/help_tags.h
  740. * src/usage_text.h
  741. * src/version_usage.cc
  742. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Documented missing experimental tag and newly added xml-rpc tag in
  744. man page.
  745. * doc/aria2c.1.txt
  746. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Added xml-rpc help tag. Tagged xml-rpc related options with
  748. xml-rpc tag.
  749. * src/OptionHandlerFactory.cc
  750. * src/help_tags.h
  751. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Updated message when a path is not a file. Updated common message
  753. for wrong option.
  754. * src/OptionHandlerException.cc
  755. * src/message.h
  756. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Use File::isFile() instead of File::exists(). Updated message when
  758. a path is not a file.
  759. * src/OptionHandlerImpl.cc
  760. * src/message.h
  761. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Fixed the bug that server performence profile is not updated when
  763. aria2c was terminated by emergency shutdown.
  764. * src/TrackerWatcherCommand.cc
  765. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Use LocalFilePathOptionHandler for -T and -M option.
  767. Updated message of MSG_FILE_NOT_EXIST.
  768. * src/OptionHandlerFactory.cc
  769. * src/message.h
  770. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Added LocalFilePathOptionHandler which check whether the specified
  772. file path does exist or not.
  773. * src/OptionHandlerImpl.cc
  774. * src/message.h
  775. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Updated wiki page URI.
  777. * README
  778. * doc/aria2c.1.txt
  779. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Added README.txt for xmlrpc directory.
  781. * doc/Makefile.am
  782. * doc/xmlrpc/README.txt
  783. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Bump up version number to 1.6.0.
  785. * configure.ac
  786. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added XML-RPC client scripts written in ruby.
  788. * doc/Makefile.am
  789. * doc/xmlrpc/aria2mon
  790. * doc/xmlrpc/aria2rpc
  791. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Added support for IPv6 literal address in URI. Now aria2 can
  793. handle URI such as http://[::1]/
  794. * src/HttpRequest.cc
  795. * src/HttpRequest.h
  796. * src/Request.cc
  797. * src/Request.h
  798. * test/HttpRequestTest.cc
  799. * test/OptionHandlerTest.cc
  800. * test/RequestTest.cc
  801. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Fixed the bug that HTTP request header for XML-RPC request is not
  803. parsed properly.
  804. * src/HttpHeader.cc
  805. * src/HttpHeaderProcessor.cc
  806. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Fixed the bug that XML-RPC authorization might be done before HTTP
  808. request header is fully received.
  809. * src/HttpServerCommand.cc
  810. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Documented --xml-rpc-listen-all option in man page.
  812. * doc/aria2c.1.txt
  813. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Added --xml-rpc-listen-all option. If true is given to this
  815. option, aria2 listens incoming XML-RPC requests on all network
  816. interfaces. If false is given, listens only on local loopback
  817. interface. The default value is false.
  818. * src/HttpListenCommand.cc
  819. * src/OptionHandlerFactory.cc
  820. * src/SocketCore.cc
  821. * src/SocketCore.h
  822. * src/prefs.cc
  823. * src/prefs.h
  824. * src/usage_text.h
  825. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. * Release 1.5.2
  827. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Updated Ukrainian and Russian translations. Thanks to all
  829. translators.
  830. * po/ru.po
  831. * po/uk.po
  832. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Bump up version number to 1.5.2
  834. * configure.ac
  835. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Get comment, comment.utf-8, created by and creation date from
  837. .torrent file and print them in -S output.
  838. * src/bittorrent_helper.cc
  839. * src/bittorrent_helper.h
  840. * test/BittorrentHelperTest.cc
  841. * test/test.torrent
  842. * test/utf8.torrent
  843. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Show exact file size along in -S option output.
  845. * src/Util.h
  846. * src/bittorrent_helper.cc
  847. * test/UtilTest.cc
  848. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Avoided unnecessary memory allocation in
  850. BitfieldMan::getCompletedLength().
  851. * src/BitfieldMan.cc
  852. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Fixed the bug that download fails if
  854. SocketCore::establishConnection() throws exception and aria2
  855. doesn't try another address.
  856. * src/AbstractCommand.cc
  857. * src/InitiateConnectionCommand.cc
  858. * src/message.h
  859. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  861. detected properly.
  862. * m4/sqlite3.m4
  863. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  865. because it causes compile error if PARAMS macro is defined.
  866. * src/XmlRpcElements.cc
  867. * src/XmlRpcElements.h
  868. * src/XmlRpcRequestParserStateImpl.cc
  869. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. * Release 1.5.1
  871. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Bump up version number to 1.5.1
  873. * configure.ac
  874. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Fixed compile error without BitTorrent support
  876. * src/DefaultBtProgressInfoFile.cc
  877. * src/DownloadEngine.cc
  878. * src/DownloadEngine.h
  879. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added missing '=' in Download Results
  881. * src/RequestGroupMan.cc
  882. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Fixed compiler warning
  884. * src/DefaultBtProgressInfoFile.cc
  885. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Fixed compiler warning on 32bit systems.
  887. * src/DownloadCommand.cc
  888. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Call flush from ServerStatMan::save()
  890. * src/ServerStatMan.cc
  891. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Check stream status after file is opened.
  893. * src/CookieStorage.cc
  894. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Rewritten Signature::save()
  896. * src/Signature.cc
  897. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Rewritten RequestGroupMan::saveServerStat()
  899. * src/RequestGroupMan.cc
  900. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Rewritten stream error handling
  902. * src/DHTAutoSaveCommand.cc
  903. * src/DHTRoutingTableDeserializer.cc
  904. * src/DHTRoutingTableSerializer.cc
  905. * src/DHTSetup.cc
  906. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Check stream status after file is opened.
  908. * src/DefaultBtProgressInfoFile.cc
  909. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Rewritten stream error handling
  911. * src/DefaultBtProgressInfoFile.cc
  912. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Make sure that stream is closed before renaming file. Unit test
  914. fails on mingw32 in the previous implementation.
  915. * src/CookieStorage.cc
  916. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Fixed the unit test error without sqlite3
  918. * test/CookieStorageTest.cc
  919. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Fixed the undefined reference error
  921. * test/HttpResponseTest.cc
  922. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. * Release 1.5.0
  924. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  926. Ukrainian translations. Thanks to all translators.
  927. * po/ru.po
  928. * po/it.po
  929. * po/da.po
  930. * po/bg.po
  931. * po/ja.po
  932. * po/uk.po
  933. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added missing src/Logger.cc
  935. * src/Logger.cc
  936. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Rewritten Logger to avoiding constly virtual call.
  938. * src/LogFactory.cc
  939. * src/LogFactory.h
  940. * src/Logger.h
  941. * src/Makefile.am
  942. * src/Makefile.in
  943. * src/NullLogger.h: Removed.
  944. * src/SimpleLogger.cc
  945. * src/SimpleLogger.h
  946. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Updated doc
  948. * src/main.cc
  949. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Updated debug log message
  951. * src/AbstractCommand.cc
  952. * src/message.h
  953. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Avoid to create zombie process when commands specified in
  955. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  956. X and NetBSD.
  957. * src/main.cc
  958. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Fixed typo
  960. * src/usage_text.h
  961. * doc/aria2c.1.txt
  962. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Documented 'errorCode' of tellStatus in man page.
  964. * doc/aria2c.1.txt
  965. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  967. This key is only available for stopped/completed downloads and its
  968. value is the error code defined in EXIT STATUS in man page.
  969. * src/XmlRpcMethodImpl.cc
  970. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Fixed the bug that session download length is not updated when
  972. PeerStat is not fastest one.
  973. * src/SegmentMan.cc
  974. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Updated doc.
  976. * doc/aria2c.1.txt
  977. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Updated doc.
  979. * src/AbstractCommand.cc
  980. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Handle the case when DownloadContext has no FileEntry.
  982. * src/XmlRpcMethodImpl.cc
  983. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Handle the situation where struct option.name is char *.
  985. * configure.ac
  986. * src/OptionParser.cc
  987. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Code cleanup
  989. * src/AbstractCommand.cc
  990. * src/DownloadCommand.cc
  991. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Use option of each download to create AuthConfig instead of global
  993. option.
  994. * src/AuthConfigFactory.cc
  995. * src/AuthConfigFactory.h
  996. * src/FtpNegotiationCommand.cc
  997. * src/HttpRequest.cc
  998. * src/HttpRequest.h
  999. * src/HttpRequestCommand.cc
  1000. * src/HttpSkipResponseCommand.cc
  1001. * src/MultiUrlRequestInfo.cc
  1002. * test/AuthConfigFactoryTest.cc
  1003. * test/FtpConnectionTest.cc
  1004. * test/HttpRequestTest.cc
  1005. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Don't call prepareForRetry(1) if all segments are ignored in
  1007. SegmentMan.
  1008. * src/AbstractCommand.cc
  1009. * src/BitfieldMan.cc
  1010. * src/BitfieldMan.h
  1011. * src/SegmentMan.cc
  1012. * src/SegmentMan.h
  1013. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Removed FileEntry::getAssociatedUris()
  1015. * src/FileEntry.h
  1016. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Updated doc: TODO1.5 -> TODO
  1018. * src/FileEntry.cc
  1019. * src/HttpResponseCommand.cc
  1020. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1022. involved.
  1023. * src/RequestGroup.cc
  1024. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Eliminated duplicated filterBitfield initialization code.
  1026. * src/BitfieldMan.cc
  1027. * src/BitfieldMan.h
  1028. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1030. relatively naive approach, though). For DownloadFailureException,
  1031. we handle the case when req is null properly.
  1032. * src/AbstractCommand.cc
  1033. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added function returning suffix of control file to
  1035. DefaultBtProgressInfoFile.
  1036. * src/DefaultBtProgressInfoFile.cc
  1037. * src/DefaultBtProgressInfoFile.h
  1038. * src/RequestGroup.cc
  1039. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Documented getVersion in man page.
  1041. * doc/aria2c.1.txt
  1042. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Documented type of offset and num for tellWaiting xml-rpc method.
  1044. * doc/aria2c.1.txt
  1045. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Implemented getVersion xml-rpc method. This method returns struct
  1047. which has 2 key-value pairs: "version" key is associated to the
  1048. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1049. associated to the list of enabled features, such as "Async DNS",
  1050. "BitTorrent".
  1051. * src/FeatureConfig.h
  1052. * src/XmlRpcMethodFactory.cc
  1053. * src/XmlRpcMethodImpl.cc
  1054. * src/XmlRpcMethodImpl.h
  1055. * test/XmlRpcMethodTest.cc
  1056. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1058. for compatibility issue.
  1059. * src/SocketCore.cc
  1060. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Fixed compile error with openSSL
  1062. * src/bittorrent_helper.cc
  1063. * src/messageDigest.h
  1064. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Removed bad code: setting certificate type priority to key
  1066. exchange priority.
  1067. * src/SocketCore.cc
  1068. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Disconnect seeder if client is also in seed state.
  1070. * src/BtBitfieldMessage.cc
  1071. * src/BtHaveAllMessage.cc
  1072. * src/BtHaveMessage.cc
  1073. * src/message.h
  1074. * test/BtBitfieldMessageTest.cc
  1075. * test/BtHaveAllMessageTest.cc
  1076. * test/BtHaveMessageTest.cc
  1077. * test/MockPieceStorage.h
  1078. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Keep CreateRequestCommand in queue when no segment is available so
  1080. that they can pick up pieces which slow BitTorrent peers are
  1081. downloading.
  1082. * src/AbstractCommand.cc
  1083. * src/CreateRequestCommand.cc
  1084. * src/CreateRequestCommand.h
  1085. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. --bt-stop-timeout now only checks download speed.
  1087. * src/BtStopDownloadCommand.cc
  1088. * src/BtStopDownloadCommand.h
  1089. * src/BtSetup.cc
  1090. * src/usage_text.h
  1091. * doc/aria2c.1.txt
  1092. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Fixed compile error regarding BUFSIZE.
  1094. * src/DownloadCommand.cc
  1095. * src/DownloadCommand.h
  1096. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Documented tellWaiting xml-rpc method in man page.
  1098. * doc/aria2c.1.txt
  1099. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Bump up version number to 1.5.0
  1101. * configure.ac
  1102. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Removed resolved TODO1.5
  1104. * src/AbstractCommand.cc
  1105. * src/DownloadCommand.cc
  1106. * src/RequestGroup.cc
  1107. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Release pooled and in-flight Request objectsand URIResult objects
  1109. in FileEntry after download completed.
  1110. * src/DownloadContext.cc
  1111. * src/DownloadContext.h
  1112. * src/FileEntry.cc
  1113. * src/FileEntry.h
  1114. * src/RequestGroup.cc
  1115. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Set manual and source attribute in aria2c.1.txt
  1117. * doc/aria2c.1.txt
  1118. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Documented that the default value of --use-head is 'false' in man
  1120. page.
  1121. * doc/aria2c.1.txt
  1122. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Added bt-stop-timeout option to -i list.
  1124. * doc/aria2c.1.txt
  1125. * src/download_helper.cc
  1126. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Fixed typo
  1128. * doc/aria2c.1.txt
  1129. * src/usage_text.h
  1130. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Removed peer-id-prefix option from -i list.
  1132. * doc/aria2c.1.txt
  1133. * src/download_helper.cc
  1134. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Fixed typo
  1136. * doc/aria2c.1.txt
  1137. * src/usage_text.h
  1138. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Documented --bt-stop-timeout option in man page.
  1140. * doc/aria2c.1.txt
  1141. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Updated README regarding multi-file torrent web-seeding.
  1143. * doc/README.txt
  1144. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Updated man page regarding multi-file torrent web-seeding.
  1146. * doc/aria2c.1.txt
  1147. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Updated doc
  1149. * src/version_usage.cc
  1150. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Winsock select() doesn't work if no socket is in FD_SET. To
  1152. overcome this problem, a dummy socket is added to FD_SET and it is
  1153. given to select().
  1154. * src/SelectEventPoll.cc
  1155. * src/SelectEventPoll.h
  1156. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Disabled --use-head option by default because --use-head=true
  1158. causes problems on some web sites.
  1159. * src/OptionHandlerFactory.cc
  1160. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Print URL List in -S option for torrent.
  1162. * src/bittorrent_helper.cc
  1163. * src/bittorrent_helper.h
  1164. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Allocate buffer in ctor of DownloadCommand.
  1166. * src/DownloadCommand.cc
  1167. * src/DownloadCommand.h
  1168. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Removed DiskAdaptor::onDownloadComplete()
  1170. * src/DirectDiskAdaptor.cc
  1171. * src/DirectDiskAdaptor.h
  1172. * src/DiskAdaptor.h
  1173. * src/MultiDiskAdaptor.cc
  1174. * src/MultiDiskAdaptor.h
  1175. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Committed missing BtStopDownloadCommand.{cc,h}
  1177. * src/BtStopDownloadCommand.cc
  1178. * src/BtStopDownloadCommand.h
  1179. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1181. download if the download speed is 0 and the number of seeder is 0
  1182. in consecutive SEC seconds. By default, this function is disabled.
  1183. * src/BtSetup.cc
  1184. * src/Makefile.am
  1185. * src/OptionHandlerFactory.cc
  1186. * src/prefs.cc
  1187. * src/prefs.h
  1188. * src/usage_text.h
  1189. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Removed the call to DiskAdaptor::onDownloadComplete() from
  1191. BtCheckIntegrityEntry and DefaultPieceStorage.
  1192. * src/BtCheckIntegrityEntry.cc
  1193. * src/DefaultPieceStorage.cc
  1194. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Commented out throw statements when number of piece is 0 to
  1196. download 0 length torrent.
  1197. * src/bittorrent_helper.cc
  1198. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Call RequestGroup::createNextCommandWithAdj() from
  1200. BtFileAllocationEntry if at least one FileEntry has URI. The
  1201. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1202. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1203. * src/BtFileAllocationEntry.cc
  1204. * src/FileEntry.h
  1205. * src/RequestGroup.cc
  1206. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Generate peer ID after SimpleRandomizer is initialized.
  1208. * src/main.cc
  1209. * src/option_processing.cc
  1210. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Removed unused method argument.
  1212. * src/CreateRequestCommand.cc
  1213. * src/RequestGroup.cc
  1214. * src/RequestGroup.h
  1215. * src/RequestGroupMan.cc
  1216. * src/TrackerWatcherCommand.cc
  1217. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Made URI reusing function work.
  1219. * src/CreateRequestCommand.cc
  1220. * src/FileEntry.cc
  1221. * src/FileEntry.h
  1222. * test/FileEntryTest.cc
  1223. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Add formerly fastest PeerStat's sessionDownloadLength to new
  1225. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1226. bytes in a session.
  1227. * src/PeerStat.cc
  1228. * src/SegmentMan.cc
  1229. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. If pipelining is enabled, we can always pool socket.
  1231. * src/HttpDownloadCommand.cc
  1232. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. In a single file download, file size becomes known just after
  1234. downloading, set total length to FileEntry object when download
  1235. completed.
  1236. * src/DownloadCommand.cc
  1237. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Use std::vector::reserve() for fileEntries and pieceHashes in
  1239. bittorrent_helper
  1240. * src/bittorrent_helper.cc
  1241. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1243. Removed hidden option PREF_RESET_URI.
  1244. * src/AbstractCommand.cc
  1245. * src/OptionHandlerFactory.cc
  1246. * src/prefs.cc
  1247. * src/prefs.h
  1248. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Removed unused variable/function.
  1250. * src/PeerStat.h
  1251. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Show first URL in Download Results if file path is not available.
  1253. * src/FileEntry.h
  1254. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Throw exception if file path doesn't exist in FTP URL.
  1256. * src/InitiateConnectionCommandFactory.cc
  1257. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1259. * src/BitfieldMan.cc
  1260. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1262. of PeerStat in SegmentMan. peerStats is used for calculating
  1263. download speed. Therefore all active PeerStats should be in
  1264. there. Another one is _fastestPeerStats and it only contains
  1265. fastest PeerStat for each hostname/protocol pair. They are used
  1266. for updating ServerStat.
  1267. * src/DownloadCommand.cc
  1268. * src/Request.h
  1269. * src/RequestGroupMan.cc
  1270. * src/SegmentMan.cc
  1271. * src/SegmentMan.h
  1272. * test/SegmentManTest.cc
  1273. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Try all available addresses returned by DNS until it gets
  1275. connected in HTTP(S)/FTP download
  1276. * src/AbstractCommand.cc
  1277. * src/AbstractCommand.h
  1278. * src/AbstractProxyRequestCommand.cc
  1279. * src/AbstractProxyRequestCommand.h
  1280. * src/DNSCache.h
  1281. * src/DownloadEngine.cc
  1282. * src/DownloadEngine.h
  1283. * src/FtpInitiateConnectionCommand.cc
  1284. * src/FtpInitiateConnectionCommand.h
  1285. * src/FtpNegotiationCommand.cc
  1286. * src/FtpNegotiationCommand.h
  1287. * src/HttpInitiateConnectionCommand.cc
  1288. * src/HttpInitiateConnectionCommand.h
  1289. * src/HttpRequestCommand.cc
  1290. * src/HttpRequestCommand.h
  1291. * src/InitiateConnectionCommand.cc
  1292. * src/InitiateConnectionCommand.h
  1293. * test/DNSCacheTest.cc
  1294. * test/Makefile.am
  1295. * test/SimpleDNSCacheTest.cc
  1296. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Updated doc
  1298. * src/download_helper.cc
  1299. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Refactored fieldMan ctor.
  1301. * src/BitfieldMan.cc
  1302. * src/BitfieldMan.h
  1303. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Don't print "No files to download." message if -S is given.
  1305. * src/main.cc
  1306. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Set referer and method to newly created Request object.
  1308. * src/CreateRequestCommand.cc
  1309. * src/FileEntry.cc
  1310. * src/FileEntry.h
  1311. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1313. * src/AbstractCommand.cc
  1314. * src/AbstractCommand.h
  1315. * src/CreateRequestCommand.cc
  1316. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Get proxy download working
  1318. * src/AbstractProxyRequestCommand.cc
  1319. * src/AbstractProxyRequestCommand.h
  1320. * src/AbstractProxyResponseCommand.cc
  1321. * src/AbstractProxyResponseCommand.h
  1322. * src/FtpInitiateConnectionCommand.cc
  1323. * src/FtpTunnelRequestCommand.cc
  1324. * src/FtpTunnelRequestCommand.h
  1325. * src/FtpTunnelResponseCommand.cc
  1326. * src/FtpTunnelResponseCommand.h
  1327. * src/HttpInitiateConnectionCommand.cc
  1328. * src/HttpProxyRequestCommand.cc
  1329. * src/HttpProxyRequestCommand.h
  1330. * src/HttpProxyResponseCommand.cc
  1331. * src/HttpProxyResponseCommand.h
  1332. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Use SegmentMan::getSegment(cuid) for single file download.
  1334. * src/AbstractCommand.cc
  1335. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Fixed bufSize calculation
  1337. * src/DownloadCommand.cc
  1338. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Don't append "/" if base URI ends with "/".
  1340. * src/bittorrent_helper.cc
  1341. * test/url-list-multiFile.torrent
  1342. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. HTTP pipelining is now working. Fixed Segmention fault in
  1344. BitfieldMan's copy ctor.
  1345. * src/AbstractCommand.cc
  1346. * src/BitfieldMan.cc
  1347. * src/BitfieldMan.h
  1348. * src/DownloadCommand.cc
  1349. * src/HttpDownloadCommand.cc
  1350. * src/HttpRequest.cc
  1351. * src/SegmentMan.cc
  1352. * src/SegmentMan.h
  1353. * test/BitfieldManTest.cc
  1354. * test/SegmentManTest.cc
  1355. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Removed ServerHost. Same functionality is implemented using
  1357. FileEntry's in-flight Request objects.
  1358. * src/AbstractCommand.cc
  1359. * src/BtDependency.cc
  1360. * src/CreateRequestCommand.cc
  1361. * src/FileEntry.cc
  1362. * src/FileEntry.h
  1363. * src/FtpNegotiationCommand.cc
  1364. * src/HttpResponseCommand.cc
  1365. * src/Makefile.am
  1366. * src/Metalink2RequestGroup.cc
  1367. * src/RequestGroup.cc
  1368. * src/RequestGroup.h
  1369. * src/ServerHost.cc: Removed
  1370. * src/ServerHost.h: Removed
  1371. * test/BtDependencyTest.cc
  1372. * test/FileEntryTest.cc
  1373. * test/RequestGroupTest.cc
  1374. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Rewritten PeerStat handling. In the previous implementation,
  1376. faster command tries to find slower command. In this new
  1377. implementation, slower command tries to find faster command.
  1378. PeerStat is now created in each HTTP/FTP request to get download
  1379. rate correctly. If the download range is small, the download rate
  1380. tends to small and this will occur at the later stage of download.
  1381. * src/AbstractCommand.cc
  1382. * src/DownloadCommand.cc
  1383. * src/FileEntry.cc
  1384. * src/FileEntry.h
  1385. * src/Request.cc
  1386. * src/Request.h
  1387. * src/RequestGroup.h
  1388. * src/RequestGroupMan.cc
  1389. * src/SegmentMan.cc
  1390. * src/SegmentMan.h
  1391. * test/SegmentManTest.cc
  1392. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Removed _uris from RequestGroup. All functions that refer to _uris
  1394. were moved to FileEntry. Exit status code are now defined in
  1395. DownloadResultCode.h.
  1396. * src/AbstractCommand.cc
  1397. * src/AdaptiveURISelector.cc
  1398. * src/AdaptiveURISelector.h
  1399. * src/AutoSaveCommand.cc
  1400. * src/BtPostDownloadHandler.cc
  1401. * src/CheckIntegrityDispatcherCommand.cc
  1402. * src/CookieStorage.cc
  1403. * src/DHTAutoSaveCommand.cc
  1404. * src/DHTBucketRefreshCommand.cc
  1405. * src/DHTEntryPointNameResolveCommand.cc
  1406. * src/DHTInteractionCommand.cc
  1407. * src/DHTPeerAnnounceCommand.cc
  1408. * src/DHTTokenUpdateCommand.cc
  1409. * src/DlAbortEx.h
  1410. * src/DlRetryEx.h
  1411. * src/DownloadCommand.cc
  1412. * src/DownloadContext.h
  1413. * src/DownloadFailureException.h
  1414. * src/DownloadResult.h
  1415. * src/DownloadResultCode.h
  1416. * src/FeedbackURISelector.cc
  1417. * src/FeedbackURISelector.h
  1418. * src/FileEntry.cc
  1419. * src/FileEntry.h
  1420. * src/FtpNegotiationCommand.cc
  1421. * src/HttpListenCommand.cc
  1422. * src/HttpResponseCommand.cc
  1423. * src/HttpServerResponseCommand.cc
  1424. * src/HttpSkipResponseCommand.cc
  1425. * src/InOrderURISelector.cc
  1426. * src/InOrderURISelector.h
  1427. * src/Makefile.am
  1428. * src/Makefile.in
  1429. * src/Metalink2RequestGroup.cc
  1430. * src/MultiUrlRequestInfo.cc
  1431. * src/MultiUrlRequestInfo.h
  1432. * src/OptionHandlerFactory.cc
  1433. * src/PeerListenCommand.cc
  1434. * src/RecoverableException.h
  1435. * src/RequestGroup.cc
  1436. * src/RequestGroup.h
  1437. * src/RequestGroupMan.cc
  1438. * src/RequestGroupMan.h
  1439. * src/TimedHaltCommand.cc
  1440. * src/TrackerWatcherCommand.cc
  1441. * src/URIResult.cc
  1442. * src/URIResult.h
  1443. * src/URISelector.h
  1444. * src/XmlRpcMethodImpl.cc
  1445. * src/bittorrent_helper.cc
  1446. * src/bittorrent_helper.h
  1447. * src/download_helper.cc
  1448. * src/main.cc
  1449. * src/option_processing.cc
  1450. * test/BtDependencyTest.cc
  1451. * test/BtPostDownloadHandlerTest.cc
  1452. * test/CookieStorageTest.cc
  1453. * test/DefaultBtMessageDispatcherTest.cc
  1454. * test/DownloadHandlerFactoryTest.cc
  1455. * test/DownloadHelperTest.cc
  1456. * test/FeedbackURISelectorTest.cc
  1457. * test/FileEntryTest.cc
  1458. * test/InOrderURISelectorTest.cc
  1459. * test/Metalink2RequestGroupTest.cc
  1460. * test/MetalinkPostDownloadHandlerTest.cc
  1461. * test/RequestGroupManTest.cc
  1462. * test/RequestGroupTest.cc
  1463. * test/XmlRpcMethodTest.cc
  1464. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Removed MockBtContext.h
  1466. * test/Makefile.am
  1467. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Removed _currentRequest from StreamCheckIntegrityEntry and
  1469. StreamFileAllocationEntry.
  1470. * src/AbstractCommand.cc
  1471. * src/HttpResponseCommand.cc
  1472. * src/RequestGroup.cc
  1473. * src/StreamCheckIntegrityEntry.cc
  1474. * src/StreamCheckIntegrityEntry.h
  1475. * src/StreamFileAllocationEntry.cc
  1476. * src/StreamFileAllocationEntry.h
  1477. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Rewritten DownloadContext and removed SingleFileDownloadContext
  1479. and BtContext and its derived classes. BitTorrent specific
  1480. attributes are now set by DownloadContext::setAttribute() with key
  1481. bittorrent::BITTORRENT.
  1482. * src/AbstractBtMessage.cc
  1483. * src/AbstractBtMessage.h
  1484. * src/AbstractCommand.cc
  1485. * src/AbstractCommand.h
  1486. * src/AbstractProxyRequestCommand.cc
  1487. * src/AbstractProxyResponseCommand.cc
  1488. * src/ActivePeerConnectionCommand.cc
  1489. * src/ActivePeerConnectionCommand.h
  1490. * src/AnnounceList.cc
  1491. * src/BtCheckIntegrityEntry.cc
  1492. * src/BtConstants.h
  1493. * src/BtContext.h: Removed
  1494. * src/BtDependency.cc
  1495. * src/BtExtendedMessage.cc
  1496. * src/BtPieceMessage.cc
  1497. * src/BtPieceMessage.h
  1498. * src/BtPostDownloadHandler.cc
  1499. * src/BtRegistry.cc
  1500. * src/BtRegistry.h
  1501. * src/BtSetup.cc
  1502. * src/CheckIntegrityCommand.cc
  1503. * src/CheckIntegrityEntry.cc
  1504. * src/ChecksumCheckIntegrityEntry.cc
  1505. * src/ConsoleStatCalc.cc
  1506. * src/ContentTypeRequestGroupCriteria.cc
  1507. * src/DHTGetPeersCommand.cc
  1508. * src/DHTGetPeersCommand.h
  1509. * src/DHTPeerLookupTask.cc
  1510. * src/DHTPeerLookupTask.h
  1511. * src/DHTTaskFactory.h
  1512. * src/DHTTaskFactoryImpl.cc
  1513. * src/DHTTaskFactoryImpl.h
  1514. * src/DefaultBtAnnounce.cc
  1515. * src/DefaultBtAnnounce.h
  1516. * src/DefaultBtContext.cc: Removed
  1517. * src/DefaultBtContext.h: Removed
  1518. * src/DefaultBtInteractive.cc
  1519. * src/DefaultBtInteractive.h
  1520. * src/DefaultBtMessageDispatcher.cc
  1521. * src/DefaultBtMessageDispatcher.h
  1522. * src/DefaultBtMessageFactory.cc
  1523. * src/DefaultBtMessageFactory.h
  1524. * src/DefaultBtMessageReceiver.cc
  1525. * src/DefaultBtMessageReceiver.h
  1526. * src/DefaultBtProgressInfoFile.cc
  1527. * src/DefaultBtRequestFactory.cc
  1528. * src/DefaultBtRequestFactory.h
  1529. * src/DefaultExtensionMessageFactory.cc
  1530. * src/DefaultExtensionMessageFactory.h
  1531. * src/DefaultPeerStorage.cc
  1532. * src/DefaultPeerStorage.h
  1533. * src/DefaultPieceStorage.cc
  1534. * src/DefaultSegmentManFactory.cc
  1535. * src/DiskAdaptor.cc
  1536. * src/DiskAdaptor.h
  1537. * src/DownloadContext.cc
  1538. * src/DownloadContext.h
  1539. * src/DownloadEngine.cc
  1540. * src/DownloadEngineFactory.cc
  1541. * src/DownloadHandler.cc
  1542. * src/DownloadResult.h
  1543. * src/FileAllocationCommand.cc
  1544. * src/FileAllocationDispatcherCommand.cc
  1545. * src/FileAllocationEntry.cc
  1546. * src/FileEntry.h
  1547. * src/FillRequestGroupCommand.cc
  1548. * src/FtpDownloadCommand.cc
  1549. * src/FtpFinishDownloadCommand.cc
  1550. * src/FtpInitiateConnectionCommand.cc
  1551. * src/FtpNegotiationCommand.cc
  1552. * src/FtpTunnelRequestCommand.cc
  1553. * src/FtpTunnelResponseCommand.cc
  1554. * src/HandshakeExtensionMessage.cc
  1555. * src/HandshakeExtensionMessage.h
  1556. * src/HaveEraseCommand.cc
  1557. * src/HttpDownloadCommand.cc
  1558. * src/HttpInitiateConnectionCommand.cc
  1559. * src/HttpProxyRequestCommand.cc
  1560. * src/HttpProxyResponseCommand.cc
  1561. * src/HttpRequest.cc
  1562. * src/HttpRequest.h
  1563. * src/HttpRequestCommand.cc
  1564. * src/HttpResponseCommand.cc
  1565. * src/HttpServerBodyCommand.cc
  1566. * src/HttpServerCommand.cc
  1567. * src/HttpSkipResponseCommand.cc
  1568. * src/InitiateConnectionCommandFactory.cc
  1569. * src/InitiatorMSEHandshakeCommand.cc
  1570. * src/InitiatorMSEHandshakeCommand.h
  1571. * src/IteratableChecksumValidator.cc
  1572. * src/IteratableChecksumValidator.h
  1573. * src/IteratableChunkChecksumValidator.cc
  1574. * src/MSEHandshake.cc
  1575. * src/MSEHandshake.h
  1576. * src/Makefile.am
  1577. * src/Makefile.in
  1578. * src/Metalink2RequestGroup.cc
  1579. * src/MetalinkPostDownloadHandler.cc
  1580. * src/MultiDiskAdaptor.cc
  1581. * src/MultiDiskAdaptor.h
  1582. * src/MultiFileAllocationIterator.cc
  1583. * src/MultiUrlRequestInfo.cc
  1584. * src/PeerChokeCommand.cc
  1585. * src/PeerChokeCommand.h
  1586. * src/PeerInitiateConnectionCommand.cc
  1587. * src/PeerInitiateConnectionCommand.h
  1588. * src/PeerInteractionCommand.cc
  1589. * src/PeerInteractionCommand.h
  1590. * src/PeerReceiveHandshakeCommand.cc
  1591. * src/PieceHashCheckIntegrityEntry.cc
  1592. * src/RealtimeCommand.cc
  1593. * src/ReceiverMSEHandshakeCommand.cc
  1594. * src/RequestGroup.cc
  1595. * src/RequestGroup.h
  1596. * src/RequestGroupEntry.cc
  1597. * src/RequestGroupMan.cc
  1598. * src/SeedCheckCommand.cc
  1599. * src/SeedCheckCommand.h
  1600. * src/SegmentMan.cc
  1601. * src/ShareRatioSeedCriteria.h
  1602. * src/SingleFileDownloadContext.cc: Removed
  1603. * src/SingleFileDownloadContext.h: Removed
  1604. * src/SleepCommand.cc
  1605. * src/StreamCheckIntegrityEntry.cc
  1606. * src/TrackerWatcherCommand.cc
  1607. * src/TrackerWatcherCommand.h
  1608. * src/UnknownLengthPieceStorage.cc
  1609. * src/Util.cc
  1610. * src/Util.h
  1611. * src/XmlRpcMethodImpl.cc
  1612. * src/bittorrent_helper.cc
  1613. * src/bittorrent_helper.h
  1614. * src/download_helper.cc
  1615. * src/main.cc
  1616. * src/option_processing.cc
  1617. * test/BitfieldManTest.cc
  1618. * test/BittorrentHelperTest.cc
  1619. * test/BtCancelMessageTest.cc
  1620. * test/BtChokeMessageTest.cc
  1621. * test/BtDependencyTest.cc
  1622. * test/BtPieceMessageTest.cc
  1623. * test/BtPostDownloadHandlerTest.cc
  1624. * test/BtRegistryTest.cc
  1625. * test/BtRejectMessageTest.cc
  1626. * test/BtRequestMessageTest.cc
  1627. * test/DHTPeerAnnounceStorageTest.cc
  1628. * test/DefaultBtAnnounceTest.cc
  1629. * test/DefaultBtContextTest.cc: Removed
  1630. * test/DefaultBtMessageDispatcherTest.cc
  1631. * test/DefaultBtMessageFactoryTest.cc
  1632. * test/DefaultBtProgressInfoFileTest.cc
  1633. * test/DefaultBtRequestFactoryTest.cc
  1634. * test/DefaultExtensionMessageFactoryTest.cc
  1635. * test/DefaultPeerStorageTest.cc
  1636. * test/DefaultPieceStorageTest.cc
  1637. * test/DirectDiskAdaptorTest.cc
  1638. * test/DownloadContextTest.cc
  1639. * test/DownloadHandlerFactoryTest.cc
  1640. * test/DownloadHelperTest.cc
  1641. * test/HandshakeExtensionMessageTest.cc
  1642. * test/HttpRequestTest.cc
  1643. * test/HttpResponseTest.cc
  1644. * test/IteratableChecksumValidatorTest.cc
  1645. * test/IteratableChunkChecksumValidatorTest.cc
  1646. * test/MSEHandshakeTest.cc
  1647. * test/Makefile.am
  1648. * test/Makefile.in
  1649. * test/Metalink2RequestGroupTest.cc
  1650. * test/MetalinkPostDownloadHandlerTest.cc
  1651. * test/MockBtContext.h: Removed
  1652. * test/MockDHTTaskFactory.h
  1653. * test/MockDownloadContext.h: Removed
  1654. * test/MockPieceStorage.h
  1655. * test/MultiDiskAdaptorTest.cc
  1656. * test/MultiFileAllocationIteratorTest.cc
  1657. * test/RequestGroupManTest.cc
  1658. * test/RequestGroupTest.cc
  1659. * test/SegmentManTest.cc
  1660. * test/ShareRatioSeedCriteriaTest.cc
  1661. * test/SingleFileDownloadContextTest.cc: Removed
  1662. * test/UtilTest.cc
  1663. * test/XmlRpcMethodTest.cc
  1664. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Added experimental support of WEB-Seeding for multi-file torrent.
  1666. Due to fundamental changes in file handling in HTTP/FTP code, many
  1667. functions are not working: PeerStat, ServerHost, proxy..etc
  1668. * src/AbstractCommand.cc
  1669. * src/AbstractCommand.h
  1670. * src/BitfieldMan.cc
  1671. * src/BitfieldMan.h
  1672. * src/CreateRequestCommand.cc
  1673. * src/CreateRequestCommand.h
  1674. * src/DefaultPieceStorage.cc
  1675. * src/DefaultPieceStorage.h
  1676. * src/DownloadCommand.cc
  1677. * src/DownloadCommand.h
  1678. * src/DownloadContext.cc
  1679. * src/DownloadContext.h
  1680. * src/FileEntry.cc
  1681. * src/FileEntry.h
  1682. * src/FtpDownloadCommand.cc
  1683. * src/FtpDownloadCommand.h
  1684. * src/FtpFinishDownloadCommand.cc
  1685. * src/FtpFinishDownloadCommand.h
  1686. * src/FtpInitiateConnectionCommand.cc
  1687. * src/FtpInitiateConnectionCommand.h
  1688. * src/FtpNegotiationCommand.cc
  1689. * src/FtpNegotiationCommand.h
  1690. * src/FtpTunnelResponseCommand.cc
  1691. * src/HttpDownloadCommand.cc
  1692. * src/HttpDownloadCommand.h
  1693. * src/HttpInitiateConnectionCommand.cc
  1694. * src/HttpInitiateConnectionCommand.h
  1695. * src/HttpProxyResponseCommand.cc
  1696. * src/HttpRequest.cc
  1697. * src/HttpRequest.h
  1698. * src/HttpRequestCommand.cc
  1699. * src/HttpRequestCommand.h
  1700. * src/HttpResponseCommand.cc
  1701. * src/HttpResponseCommand.h
  1702. * src/HttpSkipResponseCommand.cc
  1703. * src/HttpSkipResponseCommand.h
  1704. * src/InitiateConnectionCommand.cc
  1705. * src/InitiateConnectionCommand.h
  1706. * src/InitiateConnectionCommandFactory.cc
  1707. * src/InitiateConnectionCommandFactory.h
  1708. * src/Makefile.am
  1709. * src/PieceStorage.h
  1710. * src/RequestGroup.cc
  1711. * src/RequestGroup.h
  1712. * src/RequestGroupMan.cc
  1713. * src/SegmentMan.cc
  1714. * src/SegmentMan.h
  1715. * src/SingleFileDownloadContext.h
  1716. * src/StreamFileAllocationEntry.cc
  1717. * src/TrackerWatcherCommand.cc
  1718. * src/UnknownLengthPieceStorage.cc
  1719. * src/UnknownLengthPieceStorage.h
  1720. * src/array_fun.h
  1721. * src/bitfield.h
  1722. * src/download_helper.cc
  1723. * test/DownloadContextTest.cc
  1724. * test/Makefile.am
  1725. * test/MockDownloadContext.h
  1726. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Added tellWaiting XML-RPC method.
  1728. * src/SingleFileDownloadContext.cc
  1729. * src/XmlRpcMethodFactory.cc
  1730. * src/XmlRpcMethodImpl.cc
  1731. * src/XmlRpcMethodImpl.h
  1732. * test/XmlRpcMethodTest.cc
  1733. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Updated CookieStorageTest
  1735. * test/CookieStorageTest.cc
  1736. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1738. handle excepion inside these functions.
  1739. * src/LibgnutlsTLSContext.cc
  1740. * src/LibgnutlsTLSContext.h
  1741. * src/LibsslTLSContext.cc
  1742. * src/LibsslTLSContext.h
  1743. * src/MultiUrlRequestInfo.cc
  1744. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Added comment
  1746. * src/RequestGroup.cc
  1747. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. In CookieStorage::load() and saveNsFormat(), handle exception
  1749. inside the functions. When saving Cookies, first write temporary
  1750. file and after successful writes, then renames it to final
  1751. destination.
  1752. * src/CookieStorage.cc
  1753. * src/CookieStorage.h
  1754. * src/MultiUrlRequestInfo.cc
  1755. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. The default value of --dir option is the absolute path to the
  1757. current directory. If getcwd() is failed, then it is ".", which is
  1758. the same value with old implementation. This change is necessary
  1759. because after daemon() call, the current working directory is
  1760. changed to /.
  1761. * src/File.cc
  1762. * src/File.h
  1763. * src/OptionHandlerFactory.cc
  1764. * src/option_processing.cc
  1765. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Call daemon() with arguments(0,0), which means daemon() changes
  1767. current working directory to / and redirects stdin, stdout and
  1768. stderr to /dev/null.
  1769. * src/option_processing.cc
  1770. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Small performance optimizations.
  1772. * src/RequestGroupMan.cc
  1773. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1775. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1776. * src/RequestGroupMan.cc
  1777. * src/RequestGroupMan.h
  1778. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1780. setNoWiat(true) if newly created command calls
  1781. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1782. * src/HttpListenCommand.cc
  1783. * src/HttpServerBodyCommand.cc
  1784. * src/HttpServerCommand.cc
  1785. * src/HttpServerResponseCommand.cc
  1786. * src/InitiateConnectionCommand.cc
  1787. * src/RequestGroup.cc
  1788. * src/StreamFileAllocationEntry.cc
  1789. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Removed include vector
  1791. * src/BtRegistry.h
  1792. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Rewritten BtRegistry
  1794. * src/BtRegistry.cc
  1795. * src/BtRegistry.h
  1796. * src/BtSetup.cc
  1797. * src/ConsoleStatCalc.cc
  1798. * src/PeerInteractionCommand.cc
  1799. * src/PeerReceiveHandshakeCommand.cc
  1800. * src/ReceiverMSEHandshakeCommand.cc
  1801. * src/RequestGroup.cc
  1802. * src/XmlRpcMethodImpl.cc
  1803. * test/BtRegistryTest.cc
  1804. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1806. * src/DefaultBtProgressInfoFile.cc
  1807. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Throw an exception if position is less than 0.
  1809. * src/XmlRpcMethodImpl.cc
  1810. * test/XmlRpcMethodTest.cc
  1811. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Use writeFilePath() in ConsoleStatCalc.cc
  1813. * src/ConsoleStatCalc.cc
  1814. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Receive the return value as const reference from
  1816. DownloadContext::getFileEntries().
  1817. * src/DefaultPieceStorage.cc
  1818. * src/RequestGroupMan.cc
  1819. * src/XmlRpcMethodImpl.cc
  1820. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. DownloadContext now has _fileEntries so that
  1822. DownloadContext::getFileEntries() can returns its const reference.
  1823. * src/DefaultBtContext.cc
  1824. * src/DefaultBtContext.h
  1825. * src/DownloadContext.cc
  1826. * src/DownloadContext.h
  1827. * src/SingleFileDownloadContext.cc
  1828. * src/SingleFileDownloadContext.h
  1829. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1831. writeFilePath() function template from RequestGroupMan.cc to
  1832. FileEntry.h
  1833. * src/FileEntry.h
  1834. * src/RequestGroupMan.cc
  1835. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Documented 'position' parameter is starting from 0 in man page.
  1837. * doc/aria2c.1.txt
  1838. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Updated doc.
  1840. * src/MSEHandshake.cc
  1841. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Removed _acceptFeatures and its accessor functions from
  1843. RequestGroup since they are not used practically.
  1844. * src/HttpRequestCommand.cc
  1845. * src/RequestGroup.cc
  1846. * src/RequestGroup.h
  1847. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Removed member _maxTries from RequestGroup class to avoid
  1849. duplicate option value. Those classes who refer this variable
  1850. should use option value of PREF_MAX_TRIES directly.
  1851. * src/AbstractCommand.cc
  1852. * src/RequestGroup.cc
  1853. * src/RequestGroup.h
  1854. * src/TrackerWatcherCommand.cc
  1855. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. * Release 1.4.1
  1857. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Fixed compiler warnings on netbsd
  1859. * src/DHTConnectionImpl.cc
  1860. * src/PeerListenCommand.cc
  1861. * src/PeerSessionResource.cc
  1862. * src/SegmentMan.cc
  1863. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Updated Ukrainian translation. Thanks to all translators.
  1865. * po/uk.po
  1866. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Bump up version number to 1.4.1.
  1868. * configure.ac
  1869. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Added unit tests for strjoin, strconcat and strappend.
  1871. * test/a2functionalTest.cc
  1872. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Rewritten strconcat and strappend using operator+ instead of
  1874. append().
  1875. * src/a2functional.h
  1876. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1878. is enabled.
  1879. * src/Makefile.am
  1880. * test/Makefile.am
  1881. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Added countSeeder() function which counts seeder in the given
  1883. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1884. * src/ConsoleStatCalc.cc
  1885. * src/Peer.h
  1886. * src/XmlRpcMethodImpl.cc
  1887. * test/PeerTest.cc
  1888. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Documented missing seeder in getPeers xml-rpc method.
  1890. Documented uploadLength and numSeeders.
  1891. * doc/aria2c.1.txt
  1892. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Added uploadLength and numSeeders to the response of tellStatus
  1894. xml-rpc method. Assert that PeerStorage instance is not null
  1895. instead of checking if statement. It should be non-null in this
  1896. context.
  1897. * src/XmlRpcMethodImpl.cc
  1898. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1900. * src/XmlRpcResponse.cc
  1901. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Avoid intermediate object during string concatenation.
  1903. * src/HttpRequest.cc
  1904. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Added strjoin function template. Use it in pathJoin()
  1906. * src/Util.h
  1907. * src/a2functional.h
  1908. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Avoid intermediate object during string concatenation. Replaced
  1910. post-increment unary operator with pre-increment one in for loop.
  1911. * src/AdaptiveURISelector.cc
  1912. * src/AnnounceList.cc
  1913. * src/AuthConfig.h
  1914. * src/BtBitfieldMessage.cc
  1915. * src/BtExtendedMessage.cc
  1916. * src/BtHandshakeMessage.cc
  1917. * src/BtPieceMessage.cc
  1918. * src/BtPortMessage.cc
  1919. * src/Cookie.cc
  1920. * src/DHTAnnouncePeerMessage.cc
  1921. * src/DHTAutoSaveCommand.cc
  1922. * src/DHTGetPeersReplyMessage.cc
  1923. * src/DHTNode.cc
  1924. * src/DHTQueryMessage.cc
  1925. * src/DHTResponseMessage.cc
  1926. * src/DHTUnknownMessage.cc
  1927. * src/DefaultBtAnnounce.cc
  1928. * src/DefaultBtContext.cc
  1929. * src/DefaultBtInteractive.cc
  1930. * src/DefaultBtProgressInfoFile.cc
  1931. * src/DefaultPeerStorage.cc
  1932. * src/DownloadEngine.cc
  1933. * src/FeatureConfig.cc
  1934. * src/File.cc
  1935. * src/FtpConnection.cc
  1936. * src/FtpNegotiationCommand.cc
  1937. * src/HandshakeExtensionMessage.cc
  1938. * src/HttpConnection.cc
  1939. * src/HttpRequest.cc
  1940. * src/HttpResponseCommand.cc
  1941. * src/HttpServer.cc
  1942. * src/IndexBtMessage.cc
  1943. * src/Metalink2RequestGroup.cc
  1944. * src/OptionHandlerImpl.h
  1945. * src/PStringBuildVisitor.cc
  1946. * src/Peer.cc
  1947. * src/PeerListenCommand.cc
  1948. * src/Piece.cc
  1949. * src/RangeBtMessage.cc
  1950. * src/Request.cc
  1951. * src/Request.h
  1952. * src/RequestGroup.cc
  1953. * src/RequestGroupMan.cc
  1954. * src/ServerStat.cc
  1955. * src/ServerStatMan.cc
  1956. * src/UTPexExtensionMessage.cc
  1957. * src/Util.cc
  1958. * src/a2functional.h
  1959. * src/download_helper.cc
  1960. * src/messageDigest.cc
  1961. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Unchoke a peer randomly at first and second choke round in seed
  1963. state.
  1964. * src/BtSeederStateChoke.cc
  1965. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1966. Added (sock_t) to quiet compiler warnings in MinGW
  1967. * src/SocketCore.cc
  1968. * src/SocketCore.h
  1969. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1971. * src/EpollEventPoll.h
  1972. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1973. Added fork() emulation using CreateProcess() in MinGW
  1974. * src/RequestGroupMan.cc
  1975. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. * Release 1.4.0
  1977. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1978. Added utf8.torrent to EXTRA_DIST
  1979. * test/Makefile.am
  1980. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Fixed docs of aria2.addMetalink xml-rpc method.
  1982. * doc/aria2c.1.txt
  1983. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Added Slovak translation. Updated Ukrainian and Brazilian
  1985. Portuguese translation. Thanks to all translators.
  1986. * po/sk.po
  1987. * po/uk.po
  1988. * po/pt_BR.po
  1989. * po/LINGUAS
  1990. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added test case for XmlRpcProcessor to fail to parse malformed
  1992. document.
  1993. * test/XmlRpcRequestProcessorTest.cc
  1994. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Removed *.gmo files in po because they are generated on 'make
  1996. dist'
  1997. * po/*.gmo
  1998. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Documented max-concurrent-downloads of changeGlobalOption method
  2000. in man page.
  2001. * doc/aria2c.1.txt
  2002. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Added max-concurrent-downloads option to changeGlobalOption
  2004. xml-rpc method. Rewritten loop conditional in
  2005. RequestGroupMan::fillRequestGroupFromReserver().
  2006. * src/RequestGroupMan.cc
  2007. * src/RequestGroupMan.h
  2008. * src/XmlRpcMethod.cc
  2009. * src/XmlRpcMethodImpl.cc
  2010. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Documented position parameter in man page.
  2012. * doc/aria2c.1.txt
  2013. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added 'position' parameter to addUri, addTorrent and addMetalink
  2015. xml-rpc method.
  2016. * src/RequestGroupMan.cc
  2017. * src/RequestGroupMan.h
  2018. * src/XmlRpcMethodImpl.cc
  2019. * test/XmlRpcMethodTest.cc
  2020. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Removed Peer.cc from compile source list when --disable-bittorrent
  2022. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2023. takes Peer.
  2024. * src/DefaultPieceStorage.cc
  2025. * src/DefaultPieceStorage.h
  2026. * src/Makefile.am
  2027. * src/PieceStorage.h
  2028. * src/UnknownLengthPieceStorage.cc
  2029. * src/UnknownLengthPieceStorage.h
  2030. * test/MockPieceStorage.h
  2031. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Implemented getter methods in header files to give them more
  2033. chance of optimization.
  2034. Return const reference for SharadHandle if possible.
  2035. * src/AbstractAuthResolver.cc
  2036. * src/AbstractAuthResolver.h
  2037. * src/AbstractBtMessage.cc
  2038. * src/AbstractBtMessage.h
  2039. * src/AbstractSingleDiskAdaptor.cc
  2040. * src/AbstractSingleDiskAdaptor.h
  2041. * src/AsyncNameResolver.cc
  2042. * src/AsyncNameResolver.h
  2043. * src/BNode.cc
  2044. * src/BNode.h
  2045. * src/BitfieldMan.cc
  2046. * src/BitfieldMan.h
  2047. * src/BtAbortOutstandingRequestEvent.h
  2048. * src/BtExtendedMessage.cc
  2049. * src/BtExtendedMessage.h
  2050. * src/BtSeederStateChoke.cc
  2051. * src/BtSeederStateChoke.h
  2052. * src/Cookie.cc
  2053. * src/Cookie.h
  2054. * src/DHTBucket.cc
  2055. * src/DHTBucket.h
  2056. * src/DHTConnectionImpl.cc
  2057. * src/DHTConnectionImpl.h
  2058. * src/DHTFindNodeReplyMessage.cc
  2059. * src/DHTFindNodeReplyMessage.h
  2060. * src/DHTGetPeersReplyMessage.cc
  2061. * src/DHTGetPeersReplyMessage.h
  2062. * src/DHTInteractionCommand.cc
  2063. * src/DHTMessage.cc
  2064. * src/DHTMessage.h
  2065. * src/DHTMessageDispatcherImpl.cc
  2066. * src/DHTMessageEntry.cc
  2067. * src/DHTMessageReceiver.cc
  2068. * src/DHTMessageReceiver.h
  2069. * src/DHTMessageTrackerEntry.cc
  2070. * src/DHTMessageTrackerEntry.h
  2071. * src/DHTPeerAnnounceEntry.cc
  2072. * src/DHTPeerAnnounceEntry.h
  2073. * src/DHTPeerLookupTask.cc
  2074. * src/DHTPeerLookupTask.h
  2075. * src/DHTRoutingTableDeserializer.cc
  2076. * src/DHTRoutingTableDeserializer.h
  2077. * src/DefaultBtAnnounce.cc
  2078. * src/DefaultBtAnnounce.h
  2079. * src/DefaultBtMessageDispatcher.cc
  2080. * src/DefaultBtMessageDispatcher.h
  2081. * src/DefaultBtRequestFactory.cc
  2082. * src/DefaultBtRequestFactory.h
  2083. * src/DiskAdaptor.cc
  2084. * src/DiskAdaptor.h
  2085. * src/DownloadContext.cc
  2086. * src/DownloadContext.h
  2087. * src/DownloadEngine.cc
  2088. * src/DownloadEngine.h
  2089. * src/EpollEventPoll.cc
  2090. * src/EpollEventPoll.h
  2091. * src/FtpConnection.cc
  2092. * src/FtpConnection.h
  2093. * src/HttpConnection.cc
  2094. * src/HttpConnection.h
  2095. * src/HttpHeader.cc
  2096. * src/HttpHeader.h
  2097. * src/HttpRequest.cc
  2098. * src/HttpRequest.h
  2099. * src/HttpResponse.cc
  2100. * src/HttpResponse.h
  2101. * src/LibsslTLSContext.cc
  2102. * src/LibsslTLSContext.h
  2103. * src/MSEHandshake.cc
  2104. * src/MSEHandshake.h
  2105. * src/MetalinkEntry.cc
  2106. * src/MetalinkEntry.h
  2107. * src/MetalinkParserController.cc
  2108. * src/MetalinkParserController.h
  2109. * src/MetalinkParserStateMachine.cc
  2110. * src/MetalinkParserStateMachine.h
  2111. * src/MultiDiskAdaptor.cc
  2112. * src/MultiDiskAdaptor.h
  2113. * src/NetrcAuthResolver.cc
  2114. * src/NetrcAuthResolver.h
  2115. * src/Peer.cc
  2116. * src/Peer.h
  2117. * src/PeerSessionResource.cc
  2118. * src/PeerSessionResource.h
  2119. * src/Piece.cc
  2120. * src/Piece.h
  2121. * src/PieceStatMan.cc
  2122. * src/PieceStatMan.h
  2123. * src/Request.cc
  2124. * src/Request.h
  2125. * src/RequestGroup.cc
  2126. * src/RequestGroup.h
  2127. * src/RequestGroupMan.cc
  2128. * src/RequestGroupMan.h
  2129. * src/RequestSlot.cc
  2130. * src/RequestSlot.h
  2131. * src/SegmentMan.cc
  2132. * src/SegmentMan.h
  2133. * src/SelectEventPoll.cc
  2134. * src/SelectEventPoll.h
  2135. * src/ServerStat.cc
  2136. * src/ServerStat.h
  2137. * src/Signature.cc
  2138. * src/Signature.h
  2139. * src/URIResult.cc
  2140. * src/URIResult.h
  2141. * src/UTPexExtensionMessage.cc
  2142. * src/UTPexExtensionMessage.h
  2143. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Fixed compile error without BitTorrent and Metalink support.
  2145. * src/XmlRpcMethod.cc
  2146. * src/XmlRpcMethodFactory.cc
  2147. * src/XmlRpcMethodImpl.cc
  2148. * src/XmlRpcMethodImpl.h
  2149. * test/XmlRpcMethodTest.cc
  2150. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Rewritten the help message for --allow-overwrite option.
  2152. * doc/aria2c.1.txt
  2153. * src/usage_text.h
  2154. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Fixed typo
  2156. * doc/aria2c.1.txt
  2157. * src/usage_text.h
  2158. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Updated README for 1.4.0 release. Use new table syntax of
  2160. asciidoc.
  2161. * README
  2162. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Documented --xml-rpc-max-request-size option in man page.
  2164. * doc/aria2c.1.txt
  2165. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Moved C_* constants from BtContext to DefaultBtContext.
  2167. * src/BtContext.cc: Removed.
  2168. * src/BtContext.h
  2169. * src/DefaultBtContext.cc
  2170. * src/DefaultBtContext.h
  2171. * src/Makefile.am
  2172. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2174. path key respectively when persing .torrent file.
  2175. * src/BtContext.cc
  2176. * src/BtContext.h
  2177. * src/DefaultBtContext.cc
  2178. * test/DefaultBtContextTest.cc
  2179. * test/utf8.torrent
  2180. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added --xml-rpc-max-request-size option to limit the size of
  2182. XML-RPC request.
  2183. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Documented XML-RPC API in man page.
  2185. * doc/aria2c.1.txt
  2186. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2188. will break strict-aliasing rules
  2189. * src/PeerConnection.cc
  2190. * test/DHTRoutingTableSerializerTest.cc
  2191. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2193. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2194. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2195. PKG_CHECK_MODULES macro uses latter name.
  2196. * m4/sqlite3.m4
  2197. * src/Makefile.am
  2198. * test/Makefile.am
  2199. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Fixed typo
  2201. * configure.ac
  2202. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2204. presence of libgnutls using pkg-config first. If it fails, fall
  2205. back to old macro libgnutls.m4.
  2206. * configure.ac
  2207. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Use s itself instead of !s.bad()
  2209. * src/CookieStorage.cc
  2210. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Documented --on-download-* option and --save-cookies option in man
  2212. page.
  2213. * doc/aria2c.1.txt
  2214. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Set possible values for --load-cookie option to "/path/to/file".
  2216. * src/OptionHandlerFactory.cc
  2217. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Added --save-cookies option.
  2219. * src/Cookie.cc
  2220. * src/Cookie.h
  2221. * src/CookieStorage.cc
  2222. * src/CookieStorage.h
  2223. * src/MultiUrlRequestInfo.cc
  2224. * src/OptionHandlerFactory.cc
  2225. * src/prefs.cc
  2226. * src/prefs.h
  2227. * src/usage_text.h
  2228. * test/CookieStorageTest.cc
  2229. * test/CookieTest.cc
  2230. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Removed tellAll XML-RPC command because its reponse tends to be
  2232. big if stopped/waiting downloads pile up.
  2233. * src/XmlRpcMethodFactory.cc
  2234. * src/XmlRpcMethodImpl.cc
  2235. * src/XmlRpcMethodImpl.h
  2236. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Added the ability to execute command when download starts and
  2238. stops. You can also specify command for particular cases such as
  2239. complete/error download. Added --on-download-start,
  2240. --on-download-stop, --on-download-complete and --on-download-error
  2241. option.
  2242. * src/OptionHandlerFactory.cc
  2243. * src/RequestGroupMan.cc
  2244. * src/prefs.cc
  2245. * src/prefs.h
  2246. * src/usage_text.h
  2247. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Fixed test error
  2249. * test/BencodeTest.cc
  2250. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Added unit tests.
  2252. * test/XmlRpcMethodTest.cc
  2253. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Made exception message more verbose.
  2255. * src/bencode.cc
  2256. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2258. space in console readout. Also they are now shown in MiB/s if
  2259. speed > 1024KiB/s.
  2260. * src/ConsoleStatCalc.cc
  2261. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Added SEED to console output, which represents the number of
  2263. seeders currently the client is connecting to.
  2264. * src/ConsoleStatCalc.cc
  2265. * src/ConsoleStatCalc.h
  2266. * src/DownloadEngine.cc
  2267. * src/NullStatCalc.h
  2268. * src/StatCalc.h
  2269. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Added source filename(__FILE__) and line number(__LINE__) to
  2271. exception message.
  2272. * src/AbstractCommand.cc
  2273. * src/AbstractDiskWriter.cc
  2274. * src/AbstractProxyResponseCommand.cc
  2275. * src/BDE.h
  2276. * src/BtAllowedFastMessage.cc
  2277. * src/BtHandshakeMessageValidator.h
  2278. * src/BtHaveAllMessage.cc
  2279. * src/BtHaveNoneMessage.cc
  2280. * src/BtPieceMessage.cc
  2281. * src/BtRejectMessage.cc
  2282. * src/ChunkedDecoder.cc
  2283. * src/CookieStorage.cc
  2284. * src/DHTAnnouncePeerMessage.cc
  2285. * src/DHTEntryPointNameResolveCommand.cc
  2286. * src/DHTMessageFactoryImpl.cc
  2287. * src/DHTMessageTracker.cc
  2288. * src/DHTRoutingTableDeserializer.cc
  2289. * src/DHTRoutingTableSerializer.cc
  2290. * src/DHTSetup.cc
  2291. * src/DHTTokenTracker.cc
  2292. * src/DefaultBtAnnounce.cc
  2293. * src/DefaultBtContext.cc
  2294. * src/DefaultBtInteractive.cc
  2295. * src/DefaultBtMessageFactory.cc
  2296. * src/DefaultBtProgressInfoFile.cc
  2297. * src/DefaultExtensionMessageFactory.cc
  2298. * src/DlAbortEx.h
  2299. * src/DlRetryEx.h
  2300. * src/DownloadCommand.cc
  2301. * src/DownloadEngineFactory.cc
  2302. * src/DownloadFailureException.h
  2303. * src/Exception.cc
  2304. * src/Exception.h
  2305. * src/ExpatMetalinkProcessor.cc
  2306. * src/ExpatXmlRpcRequestProcessor.cc
  2307. * src/FallocFileAllocationIterator.cc
  2308. * src/FatalException.h
  2309. * src/FtpConnection.cc
  2310. * src/FtpFinishDownloadCommand.cc
  2311. * src/FtpInitiateConnectionCommand.cc
  2312. * src/FtpNegotiationCommand.cc
  2313. * src/GZipDecoder.cc
  2314. * src/HandshakeExtensionMessage.cc
  2315. * src/HttpConnection.cc
  2316. * src/HttpHeaderProcessor.cc
  2317. * src/HttpInitiateConnectionCommand.cc
  2318. * src/HttpResponse.cc
  2319. * src/HttpResponseCommand.cc
  2320. * src/HttpServer.cc
  2321. * src/HttpSkipResponseCommand.cc
  2322. * src/InitiateConnectionCommandFactory.cc
  2323. * src/IteratableChunkChecksumValidator.cc
  2324. * src/LibgcryptARC4Context.h
  2325. * src/LibgcryptARC4Decryptor.h
  2326. * src/LibgcryptARC4Encryptor.h
  2327. * src/LibgcryptDHKeyExchange.h
  2328. * src/LibgnutlsTLSContext.cc
  2329. * src/LibsslARC4Context.h
  2330. * src/LibsslARC4Decryptor.h
  2331. * src/LibsslARC4Encryptor.h
  2332. * src/LibsslDHKeyExchange.h
  2333. * src/LibsslTLSContext.cc
  2334. * src/MSEHandshake.cc
  2335. * src/MessageDigestHelper.cc
  2336. * src/MetalinkHelper.cc
  2337. * src/MultiDiskAdaptor.cc
  2338. * src/NameMatchOptionHandler.h
  2339. * src/NameResolver.cc
  2340. * src/Netrc.cc
  2341. * src/NsCookieParser.cc
  2342. * src/OptionHandlerException.cc
  2343. * src/OptionHandlerException.h
  2344. * src/OptionHandlerImpl.h
  2345. * src/OptionParser.cc
  2346. * src/ParameterizedStringParser.cc
  2347. * src/PeerAbstractCommand.cc
  2348. * src/PeerConnection.cc
  2349. * src/PeerMessageUtil.cc
  2350. * src/PeerReceiveHandshakeCommand.cc
  2351. * src/Platform.cc
  2352. * src/ReceiverMSEHandshakeCommand.cc
  2353. * src/RecoverableException.h
  2354. * src/RequestGroup.cc
  2355. * src/SimpleLogger.cc
  2356. * src/SocketCore.cc
  2357. * src/Sqlite3MozCookieParser.cc
  2358. * src/UTPexExtensionMessage.cc
  2359. * src/Util.cc
  2360. * src/XML2SAXMetalinkProcessor.cc
  2361. * src/Xml2XmlRpcRequestProcessor.cc
  2362. * src/XmlRpcMethodImpl.cc
  2363. * src/bencode.cc
  2364. * src/download_helper.cc
  2365. * src/messageDigest.h
  2366. * test/ExceptionTest.cc
  2367. * test/TestUtil.cc
  2368. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Bump up version number to 1.4.0
  2370. * configure.ac
  2371. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added 2files.metalink to EXTRA_DIST
  2373. * test/Makefile.am
  2374. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Added missing 2files.metalink
  2376. * test/2files.metalink
  2377. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Show "[MEMORY]" prefix before filename in download summary if it
  2379. is downloaded into memory.
  2380. * src/DownloadResult.h
  2381. * src/RequestGroup.cc
  2382. * src/RequestGroupMan.cc
  2383. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2385. * src/ExpatXmlRpcRequestProcessor.cc
  2386. * src/Xml2XmlRpcRequestProcessor.cc
  2387. * src/message.h
  2388. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Defined const BDEs to avoid duplicate instantiation.
  2390. Defined MSG_GID_NOT_PROVIDED.
  2391. * src/XmlRpcMethodImpl.cc
  2392. * src/message.h
  2393. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Code cleanup
  2395. * src/Xml2XmlRpcRequestProcessor.cc
  2396. * src/Xml2XmlRpcRequestProcessor.h
  2397. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Defined ENABLE_XML_RPC
  2399. * configure.ac
  2400. * configure
  2401. * config.h.in
  2402. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Added ExpatXmlRpcRequestProcessor
  2404. * src/ExpatXmlRpcRequestProcessor.cc
  2405. * src/ExpatXmlRpcRequestProcessor.h
  2406. * src/Makefile.am
  2407. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Added tests for addTorrent and addMetalink command.
  2409. * test/TestUtil.cc
  2410. * test/TestUtil.h
  2411. * test/XmlRpcMethodTest.cc
  2412. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Corrected the description of --file-allocation option.
  2414. * doc/aria2c.1.txt
  2415. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Added tellAll command.
  2417. * src/XmlRpcMethodFactory.cc
  2418. * src/XmlRpcMethodImpl.cc
  2419. * src/XmlRpcMethodImpl.h
  2420. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2422. * src/XmlRpcMethodImpl.cc
  2423. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Added changeGlobalOption command. Currently,
  2425. max-overall-download-limit and max-overall-upload-limit option are
  2426. available.
  2427. * src/RequestGroupMan.h
  2428. * src/XmlRpcMethod.cc
  2429. * src/XmlRpcMethod.h
  2430. * src/XmlRpcMethodFactory.cc
  2431. * src/XmlRpcMethodImpl.cc
  2432. * src/XmlRpcMethodImpl.h
  2433. * test/XmlRpcMethodTest.cc
  2434. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Added changeOption command. Currently, max-download-limit,
  2436. max-upload-limit option are available in this command.
  2437. * src/RequestGroup.h
  2438. * src/XmlRpcMethod.cc
  2439. * src/XmlRpcMethod.h
  2440. * src/XmlRpcMethodFactory.cc
  2441. * src/XmlRpcMethodImpl.cc
  2442. * src/XmlRpcMethodImpl.h
  2443. * test/XmlRpcMethodTest.cc
  2444. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Added purgeDownloadResult command.
  2446. * src/RequestGroupMan.cc
  2447. * src/RequestGroupMan.h
  2448. * src/XmlRpcMethodFactory.cc
  2449. * src/XmlRpcMethodImpl.cc
  2450. * src/XmlRpcMethodImpl.h
  2451. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Refactored.
  2453. * src/XmlRpcMethod.cc
  2454. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2456. XmlRpcResponse.
  2457. * src/HttpServerBodyCommand.cc
  2458. * src/Makefile.am
  2459. * src/XmlRpcMethod.cc
  2460. * src/XmlRpcMethod.h
  2461. * src/XmlRpcMethodImpl.cc
  2462. * src/XmlRpcResponse.cc
  2463. * src/XmlRpcResponse.h
  2464. * test/XmlRpcMethodTest.cc
  2465. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. In XML-RPC option struct, header and index-out option can take
  2467. array as value.
  2468. * src/XmlRpcMethod.cc
  2469. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Removed unused option member from PeerConnection.
  2471. * src/InitiatorMSEHandshakeCommand.cc
  2472. * src/PeerConnection.cc
  2473. * src/PeerConnection.h
  2474. * src/PeerInteractionCommand.cc
  2475. * src/PeerReceiveHandshakeCommand.cc
  2476. * src/ReceiverMSEHandshakeCommand.cc
  2477. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Added "seeder" key to getPeers response.
  2479. * src/XmlRpcMethodImpl.cc
  2480. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Added addMetalink XML-RPC command.
  2482. * src/XmlRpcMethodFactory.cc
  2483. * src/XmlRpcMethodImpl.cc
  2484. * src/XmlRpcMethodImpl.h
  2485. * src/download_helper.cc
  2486. * src/download_helper.h
  2487. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Fixed the bug that POU peers are never choked in seeding.
  2489. * src/BtSeederStateChoke.cc
  2490. * src/BtSeederStateChoke.h
  2491. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Added web-seeding URI handling in addTorrent command.
  2493. * src/XmlRpcMethodImpl.cc
  2494. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Added "length" key to getFiles response.
  2496. * src/XmlRpcMethodImpl.cc
  2497. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Moved --no-netrc option from ftp option section to http/ftp option
  2499. section.
  2500. * doc/aria2c.1.txt
  2501. * src/OptionHandlerFactory.cc
  2502. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Removed garbage "\" character before '
  2504. * doc/aria2c.1.txt
  2505. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Removed garbage "\" character before http.
  2507. * doc/aria2c.1.txt
  2508. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Documented additional options that can be specified in -i list.
  2510. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2511. and --xml-rpc-passwd. Removed --enable-http-server and
  2512. --http-server-listen-port.
  2513. * doc/aria2c.1.txt
  2514. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2516. * src/DefaultPeerStorage.cc
  2517. * src/DefaultPeerStorage.h
  2518. * src/PeerStorage.h
  2519. * src/XmlRpcMethodImpl.cc
  2520. * test/MockPeerStorage.h
  2521. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Put a call to Socket::isReadable() in try block.
  2523. * src/HttpServerBodyCommand.cc
  2524. * src/HttpServerCommand.cc
  2525. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2527. exception , so it is now in try block.
  2528. * src/HttpServerResponseCommand.cc
  2529. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Added "amChoking" and "peerChoking" key in getPeers response.
  2531. * src/XmlRpcMethodImpl.cc
  2532. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Added test case for zero-length filter.
  2534. * test/BitfieldManTest.cc
  2535. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. getFiles command now returns file data for finished/stopped
  2537. downloads.
  2538. * src/XmlRpcMethodImpl.cc
  2539. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. DownloadResult now has the list of FileEntry. The download
  2541. summary displays the path of first selected file and the number of
  2542. remaining files for multi-file torrent.
  2543. * src/DownloadResult.h
  2544. * src/RequestGroup.cc
  2545. * src/RequestGroupMan.cc
  2546. * test/RequestGroupTest.cc
  2547. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Fixed segmentation fault error when no file is selected in
  2549. multi-file torrent.
  2550. * src/BitfieldMan.cc
  2551. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Escaped <,>,& character in XML-RPC response.
  2553. * src/XmlRpcMethod.cc
  2554. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Throw DlAbortEx instead of FatalException during parsing options
  2556. because we don't want for aria2 to quit when bad option is passed
  2557. via XML-RPC.
  2558. * src/OptionHandlerException.cc
  2559. * src/OptionHandlerException.h
  2560. * src/OptionHandlerImpl.h
  2561. * src/OptionParser.cc
  2562. * src/OptionParser.h
  2563. * src/PStringSegment.cc
  2564. * src/ParameterizedStringParser.cc
  2565. * src/download_helper.cc
  2566. * test/ParameterizedStringParserTest.cc
  2567. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Selecting files are now done in
  2569. DefaultBtContext::setFileFileter().
  2570. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2571. functions are removed because they are no longer used. Creating
  2572. filter in BitfieldMan is done in new funtion
  2573. PieceStorage::setupFileFilter()
  2574. * src/BtContext.cc
  2575. * src/BtContext.h
  2576. * src/DefaultBtContext.cc
  2577. * src/DefaultBtContext.h
  2578. * src/DefaultPieceStorage.cc
  2579. * src/DefaultPieceStorage.h
  2580. * src/DiskAdaptor.cc
  2581. * src/DiskAdaptor.h
  2582. * src/PieceStorage.h
  2583. * src/RequestGroup.cc
  2584. * src/UnknownLengthPieceStorage.h
  2585. * src/XmlRpcMethodImpl.cc
  2586. * test/DefaultBtContextTest.cc
  2587. * test/MockBtContext.h
  2588. * test/MockPieceStorage.h
  2589. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Fixed compile error on Mac OS X
  2591. * src/HttpServer.cc
  2592. * src/XmlRpcMethod.h
  2593. * src/XmlRpcMethodImpl.cc
  2594. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Use std::binary_search instead of std::find
  2596. * src/DefaultPieceStorage.cc
  2597. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Removed unnecessary BDE() call; leave them to implicit conversion.
  2599. * src/XmlRpcMethodImpl.cc
  2600. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Return connections and gid in string
  2602. * src/XmlRpcMethodImpl.cc
  2603. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Renamed addURI as addUri
  2605. * src/XmlRpcMethodFactory.cc
  2606. * src/XmlRpcMethodImpl.cc
  2607. * src/XmlRpcMethodImpl.h
  2608. * test/XmlRpcMethodTest.cc
  2609. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Renamed addTorrentFile as addTorrent
  2611. * src/XmlRpcMethodFactory.cc
  2612. * src/XmlRpcMethodImpl.cc
  2613. * src/XmlRpcMethodImpl.h
  2614. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. The information for files, URIs, peers are removed from the
  2616. reponse of TellaActive, TellStatus command because they tend to be
  2617. large. Instead they can be retrieved by the dedicated commands:
  2618. getFiles, getUris and getPeers respectively.
  2619. * src/XmlRpcMethodFactory.cc
  2620. * src/XmlRpcMethodImpl.cc
  2621. * src/XmlRpcMethodImpl.h
  2622. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Removed --max-overall-upload-limit and
  2624. --max-overall-download-limit option from listRequestOptions.
  2625. * src/download_helper.cc
  2626. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Log incoming host in HttpListenCommand.
  2628. * src/HttpListenCommand.cc
  2629. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2631. --xml-rpc-passwd option.
  2632. * src/HttpServer.cc
  2633. * src/HttpServer.h
  2634. * src/HttpServerCommand.cc
  2635. * src/OptionHandlerFactory.cc
  2636. * src/prefs.cc
  2637. * src/prefs.h
  2638. * src/usage_text.h
  2639. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2641. processing 0 length request.
  2642. * src/HttpServerBodyCommand.cc
  2643. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Removed --enable-http-server and --http-server-listen-port
  2645. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2646. instead. The original feature for --enable-http-server that
  2647. reports download progress in HTML was officially removed. Persist
  2648. XML-RPC connection if client supports keep-alive.
  2649. * src/DownloadEngineFactory.cc
  2650. * src/HttpServerCommand.cc
  2651. * src/HttpServerResponseCommand.cc
  2652. * src/Makefile.am
  2653. * src/Makefile.in
  2654. * src/OptionHandlerFactory.cc
  2655. * src/RequestGroupMan.cc
  2656. * src/main.cc
  2657. * src/option_processing.cc
  2658. * src/prefs.cc
  2659. * src/prefs.h
  2660. * src/usage_text.h
  2661. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Added "uris" key to the response of tellStatus command. Added
  2663. "connections" key to the response of tellStatus and tellActive
  2664. command.
  2665. * src/XmlRpcMethodImpl.cc
  2666. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2668. Added TellStatusXmlRpcMethod. Remove command can now remove
  2669. waiting RequestGroup.
  2670. * src/RequestGroupMan.cc
  2671. * src/RequestGroupMan.h
  2672. * src/XmlRpcMethodFactory.cc
  2673. * src/XmlRpcMethodImpl.cc
  2674. * src/XmlRpcMethodImpl.h
  2675. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Initialized _peerId
  2677. * src/Peer.cc
  2678. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Return fault structure for error. FailXmlRpcMethod is renamed as
  2680. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2681. in non-torrent download. Return single param value.
  2682. * src/XmlRpcMethod.cc
  2683. * src/XmlRpcMethodFactory.cc
  2684. * src/XmlRpcMethodImpl.cc
  2685. * src/XmlRpcMethodImpl.h
  2686. * test/XmlRpcMethodTest.cc
  2687. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2689. command.
  2690. * src/RequestGroup.cc
  2691. * src/RequestGroup.h
  2692. * src/RequestGroupMan.cc
  2693. * src/XmlRpcMethodImpl.cc
  2694. * test/RequestGroupTest.cc
  2695. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Added more options that can be specified in -i list and xml-rpc
  2697. add* command.
  2698. * src/download_helper.h
  2699. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. The available options in -i list should be listed in
  2701. listRequestOptions().
  2702. * src/download_helper.cc
  2703. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2705. command.
  2706. * src/XmlRpcMethodImpl.cc
  2707. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Now RequestGroup has its own copy of Option object. This will help
  2709. to give custom option for each RequestGroup.
  2710. addTorrentFile command now takes options.
  2711. * src/AbstractCommand.cc
  2712. * src/AbstractCommand.h
  2713. * src/AbstractProxyRequestCommand.cc
  2714. * src/ActivePeerConnectionCommand.cc
  2715. * src/ActivePeerConnectionCommand.h
  2716. * src/AdaptiveURISelector.cc
  2717. * src/BtCheckIntegrityEntry.cc
  2718. * src/BtDependency.cc
  2719. * src/BtDependency.h
  2720. * src/BtFileAllocationEntry.cc
  2721. * src/BtPostDownloadHandler.cc
  2722. * src/CheckIntegrityEntry.cc
  2723. * src/DownloadCommand.cc
  2724. * src/FtpDownloadCommand.cc
  2725. * src/FtpFinishDownloadCommand.cc
  2726. * src/FtpInitiateConnectionCommand.cc
  2727. * src/FtpNegotiationCommand.cc
  2728. * src/HttpInitiateConnectionCommand.cc
  2729. * src/HttpRequestCommand.cc
  2730. * src/HttpResponseCommand.cc
  2731. * src/HttpSkipResponseCommand.cc
  2732. * src/InitiateConnectionCommand.cc
  2733. * src/InitiateConnectionCommandFactory.cc
  2734. * src/InitiatorMSEHandshakeCommand.cc
  2735. * src/InitiatorMSEHandshakeCommand.h
  2736. * src/Metalink2RequestGroup.cc
  2737. * src/Metalink2RequestGroup.h
  2738. * src/MetalinkPostDownloadHandler.cc
  2739. * src/MultiUrlRequestInfo.cc
  2740. * src/MultiUrlRequestInfo.h
  2741. * src/PeerAbstractCommand.cc
  2742. * src/PeerInteractionCommand.cc
  2743. * src/PeerInteractionCommand.h
  2744. * src/PeerReceiveHandshakeCommand.cc
  2745. * src/PeerReceiveHandshakeCommand.h
  2746. * src/RequestGroup.cc
  2747. * src/RequestGroup.h
  2748. * src/TrackerWatcherCommand.cc
  2749. * src/TrackerWatcherCommand.h
  2750. * src/XmlRpcMethod.cc
  2751. * src/XmlRpcMethod.h
  2752. * src/XmlRpcMethodImpl.cc
  2753. * src/download_helper.cc
  2754. * src/download_helper.h
  2755. * src/main.cc
  2756. * test/BtDependencyTest.cc
  2757. * test/BtPostDownloadHandlerTest.cc
  2758. * test/DefaultBtMessageDispatcherTest.cc
  2759. * test/DownloadHandlerFactoryTest.cc
  2760. * test/DownloadHelperTest.cc
  2761. * test/Metalink2RequestGroupTest.cc
  2762. * test/MetalinkPostDownloadHandlerTest.cc
  2763. * test/RequestGroupManTest.cc
  2764. * test/RequestGroupTest.cc
  2765. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Added tellActiveStatus xml-rpc command which reports download
  2767. status of active downloads.
  2768. * src/XmlRpcMethodFactory.cc
  2769. * src/XmlRpcMethodImpl.cc
  2770. * src/XmlRpcMethodImpl.h
  2771. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Added addTorrentFile xml-rpc command which receives uploaded
  2773. torrent file and add download for it.
  2774. * src/RequestGroupMan.cc
  2775. * src/XmlRpcMethodFactory.cc
  2776. * src/XmlRpcMethodImpl.cc
  2777. * src/XmlRpcMethodImpl.h
  2778. * src/download_helper.cc
  2779. * src/download_helper.h
  2780. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Added remove xml-rpc command which removes specified download.
  2782. There is a known issue: the removed unfinished downloads are
  2783. reported ERR when aria2 exits. They should be reported as INPR.
  2784. * src/RequestGroupMan.cc
  2785. * src/RequestGroupMan.h
  2786. * src/XmlRpcMethodFactory.cc
  2787. * src/XmlRpcMethodImpl.cc
  2788. * src/XmlRpcMethodImpl.h
  2789. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. If --enable-http-server is enabled, don't stop aria2 when all
  2791. download finished and don't quit when no files to download at
  2792. start up.
  2793. * src/RequestGroupMan.cc
  2794. * src/main.cc
  2795. * src/option_processing.cc
  2796. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Added missing AM_CONDITIONAL
  2798. * configure.ac
  2799. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Added xml-rpc functionality. Currently only addURI commad is
  2801. supported. To enable xml-rpc, run aria2 with
  2802. --enable-http-server. This option name is temporal and will be
  2803. changed. The feature that reports download progress in html format
  2804. is temporarily disabled.
  2805. * src/HttpServer.cc
  2806. * src/HttpServer.h
  2807. * src/HttpServerBodyCommand.cc
  2808. * src/HttpServerBodyCommand.h
  2809. * src/HttpServerCommand.cc
  2810. * src/HttpServerResponseCommand.cc
  2811. * src/Makefile.am
  2812. * src/OptionParser.cc
  2813. * src/OptionParser.h
  2814. * src/RequestGroupMan.cc
  2815. * src/RequestGroupMan.h
  2816. * src/XmlRpcMethod.cc
  2817. * src/XmlRpcMethod.h
  2818. * src/XmlRpcMethodFactory.cc
  2819. * src/XmlRpcMethodFactory.h
  2820. * src/XmlRpcMethodImpl.cc
  2821. * src/XmlRpcMethodImpl.h
  2822. * src/download_helper.cc
  2823. * src/download_helper.h
  2824. * test/Makefile.am
  2825. * test/XmlRpcMethodTest.cc
  2826. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Added xml-rpc request parser. The supported value types are:
  2828. i4/int, string, double, struct, array, base64. Currently only
  2829. libxml2 version is provided.
  2830. * src/Xml2XmlRpcRequestProcessor.cc
  2831. * src/Xml2XmlRpcRequestProcessor.h
  2832. * src/XmlRpcElements.cc
  2833. * src/XmlRpcElements.h
  2834. * src/XmlRpcRequest.h
  2835. * src/XmlRpcRequestParserController.cc
  2836. * src/XmlRpcRequestParserController.h
  2837. * src/XmlRpcRequestParserState.h
  2838. * src/XmlRpcRequestParserStateImpl.cc
  2839. * src/XmlRpcRequestParserStateImpl.h
  2840. * src/XmlRpcRequestParserStateMachine.cc
  2841. * src/XmlRpcRequestParserStateMachine.h
  2842. * src/XmlRpcRequestProcessor.h
  2843. * test/XmlRpcRequestParserControllerTest.cc
  2844. * test/XmlRpcRequestProcessorTest.cc
  2845. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. * Release 1.3.3
  2847. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Fixed compile error since r1202.
  2849. * src/ExpatMetalinkProcessor.cc
  2850. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Updated Ukrainian, Russian and Simplified Chinese
  2852. translations. Thanks to all translators.
  2853. * po/ru.po
  2854. * po/uk.po
  2855. * po/zh_CN.po
  2856. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Pass reference of Option object instead of pointer.
  2858. * src/download_helper.cc
  2859. * src/download_helper.h
  2860. * src/main.cc
  2861. * test/DownloadHelperTest.cc
  2862. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2864. from option directly. Instead, get them from RequestGroup.
  2865. * src/ActivePeerConnectionCommand.cc
  2866. * src/ActivePeerConnectionCommand.h
  2867. * src/PeerReceiveHandshakeCommand.cc
  2868. * src/RequestGroup.h
  2869. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Removed unused uploadLimitCheck and uploadLimit from
  2871. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2872. PeerInteractionCommand.
  2873. * src/PeerAbstractCommand.cc
  2874. * src/PeerAbstractCommand.h
  2875. * src/PeerInteractionCommand.cc
  2876. * src/PeerInteractionCommand.h
  2877. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Fixed broken file renaming feature since r1202.
  2879. * src/FtpNegotiationCommand.cc
  2880. * src/FtpNegotiationCommand.h
  2881. * src/HttpResponseCommand.cc
  2882. * src/RequestGroup.cc
  2883. * src/RequestGroup.h
  2884. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Removed unused debug log
  2886. * src/SocketCore.cc
  2887. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Generated configure and Makefile.in using autoconf 2.63 and
  2889. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2890. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2891. * configure.ac
  2892. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Moved piece statistics stuff to new PieceStatMan class.
  2894. Refactored PieceSelector interface.
  2895. * src/DefaultPieceStorage.cc
  2896. * src/DefaultPieceStorage.h
  2897. * src/LongestSequencePieceSelector.cc
  2898. * src/LongestSequencePieceSelector.h
  2899. * src/Makefile.am
  2900. * src/PieceSelector.h
  2901. * src/PieceStatMan.cc
  2902. * src/PieceStatMan.h
  2903. * src/RarestPieceSelector.cc
  2904. * src/RarestPieceSelector.h
  2905. * src/RequestGroup.cc
  2906. * test/DefaultPieceStorageTest.cc
  2907. * test/InOrderPieceSelector.h
  2908. * test/Makefile.am
  2909. * test/PieceStatManTest.cc
  2910. * test/RarestPieceSelectorTest.cc
  2911. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Added static member _protocolFamily to SocketCore. By default,
  2913. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2914. address. Sometime SocketCore::bind() and
  2915. SocketCore::establishConnection() use difference protocl family
  2916. and latter cannot connect to former. To avoid this situation, we
  2917. limit protocol family to AF_INET for unit tests.
  2918. * src/SocketCore.cc
  2919. * src/SocketCore.h
  2920. * test/AllTest.cc
  2921. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Avoid std::bad_alloc for negative bencode string length.
  2923. * src/bencode.cc
  2924. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Supported segmented downloading with chunked transfer encoding and
  2926. content-length.
  2927. * src/DownloadCommand.cc
  2928. * src/HttpResponseCommand.cc
  2929. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Bump up version number to 1.3.3
  2931. * configure.ac
  2932. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2934. from 4096 to 65536 (for insanely large ftp login banners)
  2935. * src/FtpConnection.h
  2936. * test/FtpConnectionTest.cc
  2937. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. In DefaultBtContext::getActualBasePath(), return first
  2939. FileEntry::getPath() for single file torrent.
  2940. * src/DefaultBtContext.cc
  2941. * test/DefaultBtContextTest.cc
  2942. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2944. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2945. Removed _directIOAllowed member from DiskWriter.
  2946. * src/AbstractDiskWriter.cc
  2947. * src/AbstractDiskWriter.h
  2948. * src/AbstractSingleDiskAdaptor.cc
  2949. * src/AbstractSingleDiskAdaptor.h
  2950. * src/BinaryStream.h
  2951. * src/ByteArrayDiskWriter.h
  2952. * src/DefaultPieceStorage.cc
  2953. * src/DiskWriter.h
  2954. * src/MultiDiskAdaptor.cc
  2955. * src/MultiDiskAdaptor.h
  2956. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Now the constructor of AbstractDiskWriter takes filename as an
  2958. argument and filename argument is removed from openFile(),
  2959. initAndOpenFile(), openExistingFile() interface. storeDir member
  2960. and its accessor functions are removed from DiskAdaptor because it
  2961. is not used anymore. size() member function of DefaultDiskWriter,
  2962. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2963. opening file.
  2964. * src/AbstractDiskWriter.cc
  2965. * src/AbstractDiskWriter.h
  2966. * src/AbstractSingleDiskAdaptor.cc
  2967. * src/AbstractSingleDiskAdaptor.h
  2968. * src/ByteArrayDiskWriter.cc
  2969. * src/ByteArrayDiskWriter.h
  2970. * src/ByteArrayDiskWriterFactory.cc
  2971. * src/ByteArrayDiskWriterFactory.h
  2972. * src/DefaultDiskWriter.cc
  2973. * src/DefaultDiskWriter.h
  2974. * src/DefaultDiskWriterFactory.cc
  2975. * src/DefaultDiskWriterFactory.h
  2976. * src/DefaultPieceStorage.cc
  2977. * src/DirectDiskAdaptor.cc
  2978. * src/DirectDiskAdaptor.h
  2979. * src/DiskAdaptor.h
  2980. * src/DiskWriter.h
  2981. * src/DiskWriterFactory.h
  2982. * src/MessageDigestHelper.cc
  2983. * src/MultiDiskAdaptor.cc
  2984. * src/RequestGroup.cc
  2985. * src/UnknownLengthPieceStorage.cc
  2986. * src/Util.cc
  2987. * test/DefaultDiskWriterTest.cc
  2988. * test/DirectDiskAdaptorTest.cc
  2989. * test/FallocFileAllocationIteratorTest.cc
  2990. * test/MessageDigestHelperTest.cc
  2991. * test/MetalinkProcessorTest.cc
  2992. * test/MultiDiskAdaptorTest.cc
  2993. * test/MultiFileAllocationIteratorTest.cc
  2994. * test/SingleFileAllocationIteratorTest.cc
  2995. * test/UtilTest.cc
  2996. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Fixed the bug that aria2 aborts when --select-file is used. This
  2998. bug was introduced in r1199.
  2999. * src/MultiDiskAdaptor.cc
  3000. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Code cleanup
  3002. * test/MockPieceStorage.cc
  3003. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Fixed the bug that read-only file with wrong file size will cause
  3005. error because it cannot be truncated to the correct size. Now if
  3006. file size is different than the expected one, re-open file in
  3007. writable mode.
  3008. * src/AbstractSingleDiskAdaptor.cc
  3009. * src/AbstractSingleDiskAdaptor.h
  3010. * src/BtCheckIntegrityEntry.cc
  3011. * src/DiskAdaptor.h
  3012. * src/MultiDiskAdaptor.h
  3013. * src/RequestGroup.cc
  3014. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Fixed the bug that with --check-integrity option aria2 reports
  3016. downloaded file size is 0 even if some parts of file is correctly
  3017. downloaded. This bug is reproducible for the download that a file
  3018. includes last piece is missing. This bug doesn't reveal for
  3019. single-torrent with file allocation on.
  3020. * src/IteratableChecksumValidator.cc
  3021. * test/IteratableChecksumValidatorTest.cc
  3022. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3024. * src/RequestGroupMan.cc
  3025. * src/AdaptiveURISelector.cc
  3026. * src/AdaptiveURISelector.h
  3027. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. * Release 1.3.2
  3029. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Updated README
  3031. * README
  3032. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Updated Ukrainian translations. Thanks to Alexander10.
  3034. * po/uk.po
  3035. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. Code cleanup
  3037. * src/MetalinkParserStateMachine.cc
  3038. * src/MetalinkParserStateMachine.h
  3039. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3041. and expat simultaneously, MetalinkProcessor is now not base class
  3042. and it is directly implemented in XML2SAXMetalinkProcessor and
  3043. ExpatMetalinkProcessor.
  3044. * src/ExpatMetalinkProcessor.cc
  3045. * src/ExpatMetalinkProcessor.h
  3046. * src/Makefile.am
  3047. * src/MetalinkHelper.cc
  3048. * src/MetalinkProcessor.h
  3049. * src/MetalinkProcessorFactory.cc: Removed.
  3050. * src/MetalinkProcessorFactory.h: Removed
  3051. * src/XML2SAXMetalinkProcessor.cc
  3052. * src/XML2SAXMetalinkProcessor.h
  3053. * test/MetalinkProcessorTest.cc
  3054. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Bump up version number to 1.3.2
  3056. * configure.ac
  3057. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Added missing file.
  3059. * test/Makefile.am
  3060. * test/url-list-singleFileEndsWithSlash.torrent
  3061. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3062. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3063. request.
  3064. * src/AnnounceList.cc
  3065. * src/AnnounceList.h
  3066. * src/BDE.cc: Added
  3067. * src/BDE.h: Added
  3068. * src/DHTAbstractMessage.cc
  3069. * src/DHTAbstractMessage.h
  3070. * src/DHTAnnouncePeerMessage.cc
  3071. * src/DHTAnnouncePeerMessage.h
  3072. * src/DHTAnnouncePeerReplyMessage.cc
  3073. * src/DHTAnnouncePeerReplyMessage.h
  3074. * src/DHTFindNodeMessage.cc
  3075. * src/DHTFindNodeMessage.h
  3076. * src/DHTFindNodeReplyMessage.cc
  3077. * src/DHTFindNodeReplyMessage.h
  3078. * src/DHTGetPeersMessage.cc
  3079. * src/DHTGetPeersMessage.h
  3080. * src/DHTGetPeersReplyMessage.cc
  3081. * src/DHTGetPeersReplyMessage.h
  3082. * src/DHTMessageFactory.h
  3083. * src/DHTMessageFactoryImpl.cc
  3084. * src/DHTMessageFactoryImpl.h
  3085. * src/DHTMessageReceiver.cc
  3086. * src/DHTMessageTracker.cc
  3087. * src/DHTMessageTracker.h
  3088. * src/DHTPingMessage.cc
  3089. * src/DHTPingMessage.h
  3090. * src/DHTPingReplyMessage.cc
  3091. * src/DHTPingReplyMessage.h
  3092. * src/DHTQueryMessage.cc
  3093. * src/DHTQueryMessage.h
  3094. * src/DHTResponseMessage.cc
  3095. * src/DHTResponseMessage.h
  3096. * src/DefaultBtAnnounce.cc
  3097. * src/DefaultBtContext.cc
  3098. * src/DefaultBtContext.h
  3099. * src/HandshakeExtensionMessage.cc
  3100. * src/Makefile.am
  3101. * src/PeerListProcessor.h
  3102. * src/UTPexExtensionMessage.cc
  3103. * src/bencode.cc
  3104. * src/bencode.h
  3105. * test/AnnounceListTest.cc
  3106. * test/BDETest.cc: Added
  3107. * test/BencodeTest.cc
  3108. * test/DHTAnnouncePeerMessageTest.cc
  3109. * test/DHTAnnouncePeerReplyMessageTest.cc
  3110. * test/DHTFindNodeMessageTest.cc
  3111. * test/DHTFindNodeReplyMessageTest.cc
  3112. * test/DHTGetPeersMessageTest.cc
  3113. * test/DHTGetPeersReplyMessageTest.cc
  3114. * test/DHTMessageFactoryImplTest.cc
  3115. * test/DHTMessageTrackerTest.cc
  3116. * test/DHTPingMessageTest.cc
  3117. * test/DHTPingReplyMessageTest.cc
  3118. * test/Makefile.am
  3119. * test/MockDHTMessageFactory.h
  3120. * test/PeerListProcessorTest.cc
  3121. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Use url-list (web-seeding) only for single-file torrent. This is
  3123. basically the same behavior with Metalink file with torrent and
  3124. URIs.
  3125. * src/RequestGroup.cc
  3126. * src/DefaultBtContext.cc
  3127. * test/DefaultBtContextTest.cc
  3128. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Rewritten expr
  3130. * src/array_fun.h
  3131. * test/array_funTest.cc
  3132. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3133. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3134. * src/DefaultBtMessageDispatcher.cc
  3135. * src/a2algo.h
  3136. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Removed ExtendedMessagingAware. Instead of using inheritance,
  3138. added ExtensionMessageRegistry and it is passed to
  3139. DefaultExtensionMessageFactory.
  3140. * src/DefaultBtInteractive.cc
  3141. * src/DefaultBtInteractive.h
  3142. * src/DefaultExtensionMessageFactory.cc
  3143. * src/DefaultExtensionMessageFactory.h
  3144. * src/ExtendedMessagingAware.h: Removed.
  3145. * src/ExtensionMessageFactory.h
  3146. * src/ExtensionMessageRegistry.h: Added.
  3147. * src/Makefile.am
  3148. * src/PeerInteractionCommand.cc
  3149. * test/DefaultExtensionMessageFactoryTest.cc
  3150. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Fixed typo in log messages
  3152. * src/MSEHandshake.cc
  3153. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Fixed the bug that prevents torrent download from finishing. The
  3155. bug doesn't reveal for all torrents. The torrents affected this
  3156. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3157. of pieces.
  3158. * src/bitfield.h
  3159. * test/bitfieldTest.cc
  3160. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Code cleanup
  3162. * src/PeerListProcessor.h
  3163. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Removed RequestGroupAware
  3165. * src/AbstractCommand.cc
  3166. * src/AbstractCommand.h
  3167. * src/ActivePeerConnectionCommand.cc
  3168. * src/ActivePeerConnectionCommand.h
  3169. * src/DHTGetPeersCommand.cc
  3170. * src/DHTGetPeersCommand.h
  3171. * src/InitiatorMSEHandshakeCommand.cc
  3172. * src/InitiatorMSEHandshakeCommand.h
  3173. * src/Makefile.am
  3174. * src/PeerInitiateConnectionCommand.cc
  3175. * src/PeerInitiateConnectionCommand.h
  3176. * src/PeerInteractionCommand.cc
  3177. * src/PeerInteractionCommand.h
  3178. * src/RealtimeCommand.cc
  3179. * src/RealtimeCommand.h
  3180. * src/RequestGroupAware.cc: Removed
  3181. * src/RequestGroupAware.h: Removed
  3182. * src/SeedCheckCommand.cc
  3183. * src/SeedCheckCommand.h
  3184. * src/SleepCommand.cc
  3185. * src/TrackerWatcherCommand.cc
  3186. * src/TrackerWatcherCommand.h
  3187. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Rewritten PeerListProcessor
  3189. * src/PeerListProcessor.h
  3190. * src/CompactPeerListProcessor.h: Removed
  3191. * src/CompactPeerListProcessor.cc: Removed
  3192. * src/DelegatingPeerListProcessor.cc: Removed.
  3193. * src/DefaultBtAnnounce.cc
  3194. * src/Makefile.am
  3195. * src/UTPexExtensionMessage.cc
  3196. * src/DefaultPeerListProcessor.h: Removed.
  3197. * src/DefaultPeerListProcessor.cc: Removed.
  3198. * src/DelegatingPeerListProcessor.h: Removed.
  3199. * test/Makefile.am
  3200. * test/PeerListProcessorTest.cc
  3201. * test/DefaultPeerListProcessorTest.cc: Removed.
  3202. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Rewritten RequestGroupMan::calculateStat()
  3204. * src/RequestGroupMan.cc
  3205. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Removed unnecessary virtual destructor for Request class.
  3207. * src/Request.cc
  3208. * src/Request.h
  3209. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Avoid dynamic_pointer_cast.
  3211. * src/DHTGetPeersCommand.cc
  3212. * src/DHTGetPeersCommand.h
  3213. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3215. BtEvent.
  3216. * src/AbstractBtEventListener.h: Removed.
  3217. * src/AbstractBtMessage.cc
  3218. * src/AbstractBtMessage.h
  3219. * src/BtAbortOutstandingRequestEvent.h
  3220. * src/BtCancelSendingPieceEvent.h
  3221. * src/BtChokedEvent.h: Removed.
  3222. * src/BtChokingEvent.h
  3223. * src/BtEvent.h: Removed
  3224. * src/BtEventListener.h: Removed.
  3225. * src/BtMessage.h
  3226. * src/BtPieceMessage.cc
  3227. * src/BtPieceMessage.h
  3228. * src/BtRequestMessage.cc
  3229. * src/BtRequestMessage.h
  3230. * src/DefaultBtMessageDispatcher.cc
  3231. * src/Makefile.am
  3232. * src/a2functional.h
  3233. * test/BtPieceMessageTest.cc
  3234. * test/BtRequestMessageTest.cc
  3235. * test/DefaultBtMessageDispatcherTest.cc
  3236. * test/MockBtMessage.h
  3237. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Code cleanup
  3239. * src/RequestGroupMan.cc
  3240. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Code cleanup
  3242. * src/DownloadCommand.cc
  3243. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3245. byte.
  3246. * src/DownloadCommand.cc
  3247. * src/bitfield.h
  3248. * test/bitfieldTest.cc
  3249. Fixed the bug that causes infinite loop if broken web server
  3250. returns chunked response without last "0" chunk-size marker and
  3251. closes connection.
  3252. * src/DownloadCommand.cc
  3253. Instantiate properly configured HttpDownloadCommand for
  3254. non-resumable downlaods.
  3255. * src/HttpResponseCommand.cc
  3256. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Rewritten array operation functions.
  3258. * src/BitfieldMan.cc
  3259. * src/array_fun.h
  3260. * test/array_funTest.cc
  3261. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Removed unused variable 'query'
  3263. * src/Request.cc
  3264. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3266. accidentally set to false in r1162.
  3267. * configure.ac
  3268. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Code cleanup
  3270. * src/BNode.cc
  3271. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Increase prefixLength for the bucket which doesn't own local node
  3273. ID when splitting bucket.
  3274. * src/DHTBucket.cc
  3275. * test/DHTBucketTest.cc
  3276. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. * Release 1.3.1
  3278. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Bump up version number to 1.3.1
  3280. * configure.ac
  3281. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Removed unused variable checkPoint. Also removed include directive
  3283. for TimeA2.h.
  3284. * src/SeedCheckCommand.h
  3285. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Fixed the bug that upload limit exceeds the value specified in
  3287. --seed-ratio option depending on the timing of the execution of
  3288. SeedCheckCommand.
  3289. * src/SeedCheckCommand.cc
  3290. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Fixed the bug that removed peer's session upload/download length
  3292. are counted twice in _cachedTransferStat before it is
  3293. re-calculated. This affected the calculation of shara ratio,
  3294. resulting aria2 wrongly determines that specified share ratio is
  3295. reached. Also fixed the typo in calculateStatFor function name.
  3296. * src/BtSetup.cc
  3297. * src/DefaultPeerStorage.cc
  3298. * src/ShareRatioSeedCriteria.h
  3299. * test/ShareRatioSeedCriteriaTest.cc
  3300. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. * Release 1.3.0
  3302. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3304. Nynorsk translations. Thanks to all translators.
  3305. * po/es.po
  3306. * po/ja.po
  3307. * po/nn.po
  3308. * po/ru.po
  3309. * po/uk.po
  3310. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Rewritten isInRange()
  3312. * src/DHTBucket.cc
  3313. * test/DHTBucketTest.cc
  3314. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Fixed typo
  3316. * doc/aria2c.1.txt
  3317. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3319. malloc/realloc is not used.
  3320. * src/configure.ac
  3321. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3323. char* bitfield instead of stl container for efficiency.
  3324. PieceSelector::select now takes this
  3325. bitfield. RarestPieceSelector::select now also performs
  3326. efficiently for this change. bitfield namespace is introduced and
  3327. it has several helper functions to handle basic bitfield
  3328. operations such as test, count set bits, etc.
  3329. * src/BitfieldMan.cc
  3330. * src/BitfieldMan.h
  3331. * src/DefaultBtRequestFactory.cc
  3332. * src/DefaultPieceStorage.cc
  3333. * src/DefaultPieceStorage.h
  3334. * src/LongestSequencePieceSelector.cc
  3335. * src/LongestSequencePieceSelector.h
  3336. * src/Makefile.am
  3337. * src/Piece.cc
  3338. * src/Piece.h
  3339. * src/PieceSelector.h
  3340. * src/RarestPieceSelector.cc
  3341. * src/RarestPieceSelector.h
  3342. * src/Util.cc
  3343. * src/Util.h
  3344. * src/bitfield.h
  3345. * test/BitfieldManTest.cc
  3346. * test/LongestSequencePieceSelectorTest.cc
  3347. * test/Makefile.am
  3348. * test/RarestPieceSelectorTest.cc
  3349. * test/UtilTest.cc
  3350. * test/bitfieldTest.cc
  3351. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3352. Made accepted socket non-block.
  3353. * src/FtpNegotiationCommand.cc
  3354. * src/HttpListenCommand.cc
  3355. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3357. * src/AbstractSingleDiskAdaptor.cc
  3358. * src/DefaultPieceStorage.cc
  3359. * src/DiskAdaptor.h
  3360. * src/DiskAdaptor.h
  3361. * src/MultiFileAllocationIterator.cc
  3362. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Run
  3364. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3365. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3366. it doesn't need to be called every time when
  3367. DefaultBtInteractive::doInteractionProcessing() is called.
  3368. * src/DefaultBtInteractive.cc
  3369. * src/DefaultBtInteractive.h
  3370. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Documented 'falloc' in man page.
  3372. * doc/aria2c.1.txt
  3373. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Updated doc
  3375. * src/usage_text.h
  3376. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3378. allocation mode uses posix_fallocate() system call to allocate
  3379. file on disk. If you are using newer file systems such as ext4
  3380. (with extents support), btrfs or xfs, 'falloc' is your best
  3381. choice. It allocates large(few GiB) files almost instantly. Don't
  3382. use 'falloc' with legacy file systems such as ext3 because it
  3383. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3384. until allocation finishes. 'falloc' may not be available if your
  3385. system doesn't have posix_fallocate() system call.
  3386. * configure.ac
  3387. * src/AbstractDiskWriter.cc
  3388. * src/AbstractDiskWriter.h
  3389. * src/AbstractSingleDiskAdaptor.cc
  3390. * src/BinaryStream.h
  3391. * src/BtCheckIntegrityEntry.cc
  3392. * src/ByteArrayDiskWriter.h
  3393. * src/CheckIntegrityEntry.cc
  3394. * src/CheckIntegrityEntry.h
  3395. * src/DefaultPieceStorage.cc
  3396. * src/DiskAdaptor.cc
  3397. * src/DiskAdaptor.h
  3398. * src/DiskWriter.h
  3399. * src/FallocFileAllocationIterator.cc
  3400. * src/FallocFileAllocationIterator.h
  3401. * src/FileAllocationEntry.cc
  3402. * src/FileAllocationEntry.h
  3403. * src/Makefile.am
  3404. * src/MultiFileAllocationIterator.cc
  3405. * src/MultiFileAllocationIterator.h
  3406. * src/OptionHandlerFactory.cc
  3407. * src/RequestGroup.cc
  3408. * src/StreamCheckIntegrityEntry.cc
  3409. * src/prefs.cc
  3410. * src/prefs.h
  3411. * src/usage_text.h
  3412. * test/FallocFileAllocationIteratorTest.cc
  3413. * test/Makefile.am
  3414. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Removed duplicate enableDirectIO() call.
  3416. * src/MultiFileAllocationIterator.cc
  3417. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3419. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3420. cost of std::rotate().
  3421. * src/RarestPieceSelector.cc
  3422. * src/RarestPieceSelector.h
  3423. * test/RarestPieceSelectorTest.cc
  3424. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Updated usage doc for --bt-tracker-interval option.
  3426. * src/usage_text.h
  3427. * doc/aria2c.1.txt
  3428. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Documented --bt-tracker-interval option in man page.
  3430. * doc/aria2c.1.txt
  3431. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Added an option to specify the interval between tracker requests.
  3433. If non-zero value is specified, aria2 uses it and ignores the
  3434. interval value in the response of tracker. If zero is specified,
  3435. aria2 determines the inteval value based on the tarcker response
  3436. and download progress.
  3437. * src/DefaultBtAnnounce.cc
  3438. * src/DefaultBtAnnounce.h
  3439. * src/OptionHandlerFactory.cc
  3440. * src/RequestGroup.cc
  3441. * src/prefs.cc
  3442. * src/prefs.h
  3443. * src/usage_text.h
  3444. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. Added operator+=, operator-=, operator-
  3446. * src/TransferStat.cc
  3447. * src/TransferStat.h
  3448. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Refactored RarestPieceSelector to reduce CPU load, especially for
  3450. addPieceStats.
  3451. * src/RarestPieceSelector.cc
  3452. * src/RarestPieceSelector.h
  3453. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3455. getAllMissingBlockIndexes to reduce a call to
  3456. array_function_base::operator[].
  3457. * src/BitfieldMan.cc
  3458. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Cached TransferStat/download speed to avoid to sum them up in each
  3460. call.
  3461. * src/DefaultPeerStorage.cc
  3462. * src/DefaultPeerStorage.h
  3463. * src/SegmentMan.cc
  3464. * src/SegmentMan.h
  3465. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Typedefed cuid_t as int32_t in Command.h
  3467. * src/CUIDCounter.h
  3468. * src/Command.cc
  3469. * src/Command.h
  3470. * src/DownloadEngine.cc
  3471. * src/DownloadEngine.h
  3472. * src/PeerStat.h
  3473. * src/SegmentMan.cc
  3474. * src/SegmentMan.h
  3475. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Reduced the number of calls to PeerStorage::calculateStat() and
  3477. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3478. transfer rate.
  3479. * src/DefaultBtInteractive.cc
  3480. * src/DefaultBtMessageDispatcher.cc
  3481. * src/DefaultPeerStorage.cc
  3482. * src/DefaultPeerStorage.h
  3483. * src/DownloadCommand.cc
  3484. * src/DownloadEngine.cc
  3485. * src/PeerStorage.h
  3486. * src/SegmentMan.cc
  3487. * src/SegmentMan.h
  3488. * test/MockPeerStorage.h
  3489. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Prepended _dir+"/" after joining path elements in torrent file.
  3491. * src/DefaultBtContext.cc
  3492. * test/DefaultBtContextTest.cc
  3493. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Added missing IndexBtMessageValidator.h
  3495. * src/Makefile.am
  3496. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3498. Chinese translations. Thank you for contributing our project.
  3499. * po/id.po
  3500. * po/it.po
  3501. * po/ru.po
  3502. * po/uk.po
  3503. * po/zh_CN.po
  3504. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Updated README
  3506. * README
  3507. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Bump up version number to 1.3.0
  3509. * configure.ac
  3510. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Updated doc
  3512. * src/DefaultBtContext.h
  3513. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Slice/joinPath for name of single torrent.
  3515. * src/DefaultBtContext.cc
  3516. * test/DefaultBtContextTest.cc
  3517. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Updated man page: Documented --dry-run and --index-out
  3519. options. Changed the default value of --uri-selector and
  3520. --http-auth-challenge options. Removed --direct-file-mapping
  3521. option. Added example for --index-out
  3522. * doc/aria2c.1.txt
  3523. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Updated TEXT_DRY_RUN
  3525. * src/usage_text.h
  3526. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Changed the default value of --uri-selector option from 'inorder'
  3528. to 'feedback'
  3529. * src/OptionHandlerFactory.cc
  3530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Included current URI in exception message.
  3532. * src/AbstractCommand.cc
  3533. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Renamed ServerStatURISelector as FeedbackURISelector.
  3535. * src/FeedbackURISelector.cc
  3536. * src/FeedbackURISelector.h
  3537. * src/Makefile.am
  3538. * src/RequestGroupMan.cc
  3539. * src/ServerStatURISelector.cc
  3540. * src/ServerStatURISelector.h
  3541. * test/FeedbackURISelectorTest.cc
  3542. * test/Makefile.am
  3543. * test/ServerStatURISelectorTest.cc
  3544. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3546. all URIs are tested and their timeout is not reached.
  3547. * src/AdaptiveURISelector.cc
  3548. * src/AdaptiveURISelector.h
  3549. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Changed the default value of --http-auth-challenge option to false.
  3551. * src/OptionHandlerFactory.cc
  3552. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Reuse URIs when all unused URIs run out.
  3554. * src/OptionHandlerFactory.cc
  3555. * src/RequestGroup.cc
  3556. * src/prefs.cc
  3557. * src/prefs.h
  3558. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3560. and BtRejectMessage are derived from RangeBtMessage class.
  3561. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3562. derived from IndexBtMessage class. BtChokeMessage,
  3563. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3564. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3565. ZeroBtMessage class.
  3566. * src/AbstractBtMessage.cc
  3567. * src/AbstractBtMessage.h
  3568. * src/BtAllowedFastMessage.cc
  3569. * src/BtAllowedFastMessage.h
  3570. * src/BtAllowedFastMessageValidator.h: Removed
  3571. * src/BtBitfieldMessage.cc
  3572. * src/BtBitfieldMessage.h
  3573. * src/BtCancelMessage.cc
  3574. * src/BtCancelMessage.h
  3575. * src/BtCancelMessageValidator.h: Removed
  3576. * src/BtChokeMessage.cc
  3577. * src/BtChokeMessage.h
  3578. * src/BtExtendedMessage.cc
  3579. * src/BtExtendedMessage.h
  3580. * src/BtHandshakeMessage.cc
  3581. * src/BtHandshakeMessage.h
  3582. * src/BtHaveAllMessage.cc
  3583. * src/BtHaveAllMessage.h
  3584. * src/BtHaveMessage.cc
  3585. * src/BtHaveMessage.h
  3586. * src/BtHaveMessageValidator.h: Removed
  3587. * src/BtHaveNoneMessage.cc
  3588. * src/BtHaveNoneMessage.h
  3589. * src/BtInterestedMessage.cc
  3590. * src/BtInterestedMessage.h
  3591. * src/BtKeepAliveMessage.cc
  3592. * src/BtKeepAliveMessage.h
  3593. * src/BtNotInterestedMessage.cc
  3594. * src/BtNotInterestedMessage.h
  3595. * src/BtPieceMessage.cc
  3596. * src/BtPieceMessage.h
  3597. * src/BtPortMessage.cc
  3598. * src/BtPortMessage.h
  3599. * src/BtRejectMessage.cc
  3600. * src/BtRejectMessage.h
  3601. * src/BtRejectMessageValidator.h: Removed
  3602. * src/BtRequestMessage.cc
  3603. * src/BtRequestMessage.h
  3604. * src/BtRequestMessageValidator.h: Removed
  3605. * src/BtSuggestPieceMessage.cc
  3606. * src/BtSuggestPieceMessage.h
  3607. * src/BtSuggestPieceMessageValidator.h: Removed
  3608. * src/BtUnchokeMessage.cc
  3609. * src/BtUnchokeMessage.h
  3610. * src/DefaultBtMessageFactory.cc
  3611. * src/IndexBtMessage.cc
  3612. * src/IndexBtMessage.h
  3613. * src/IndexBtMessageValidator.h
  3614. * src/Makefile.am
  3615. * src/PeerMessageUtil.cc
  3616. * src/PeerMessageUtil.h
  3617. * src/RangeBtMessage.cc
  3618. * src/RangeBtMessage.h
  3619. * src/RangeBtMessageValidator.h
  3620. * src/SimpleBtMessage.cc
  3621. * src/SimpleBtMessage.h
  3622. * src/ZeroBtMessage.cc
  3623. * src/ZeroBtMessage.h
  3624. * test/BtRequestMessageTest.cc
  3625. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Reverted usage_text.h to r1093 to avoid to lose translated
  3627. messages.
  3628. * src/usage_text.h
  3629. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3631. declared as non-const previously is now const and defined in class
  3632. definition.
  3633. * src/AbstractBtMessage.cc
  3634. * src/AbstractBtMessage.h
  3635. * src/BtAllowedFastMessage.cc
  3636. * src/BtAllowedFastMessage.h
  3637. * src/BtBitfieldMessage.h
  3638. * src/BtCancelMessage.cc
  3639. * src/BtCancelMessage.h
  3640. * src/BtChokeMessage.cc
  3641. * src/BtChokeMessage.h
  3642. * src/BtExtendedMessage.cc
  3643. * src/BtExtendedMessage.h
  3644. * src/BtHandshakeMessage.cc
  3645. * src/BtHandshakeMessage.h
  3646. * src/BtHaveAllMessage.cc
  3647. * src/BtHaveAllMessage.h
  3648. * src/BtHaveMessage.cc
  3649. * src/BtHaveMessage.h
  3650. * src/BtHaveNoneMessage.cc
  3651. * src/BtHaveNoneMessage.h
  3652. * src/BtInterestedMessage.cc
  3653. * src/BtInterestedMessage.h
  3654. * src/BtKeepAliveMessage.cc
  3655. * src/BtKeepAliveMessage.h
  3656. * src/BtMessage.h
  3657. * src/BtNotInterestedMessage.cc
  3658. * src/BtNotInterestedMessage.h
  3659. * src/BtPieceMessage.h
  3660. * src/BtPortMessage.cc
  3661. * src/BtPortMessage.h
  3662. * src/BtRejectMessage.cc
  3663. * src/BtRejectMessage.h
  3664. * src/BtRequestMessage.cc
  3665. * src/BtRequestMessage.h
  3666. * src/BtSuggestPieceMessage.cc
  3667. * src/BtSuggestPieceMessage.h
  3668. * src/BtUnchokeMessage.cc
  3669. * src/BtUnchokeMessage.h
  3670. * src/SimpleBtMessage.cc
  3671. * src/SimpleBtMessage.h
  3672. * test/MockBtMessage.h
  3673. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Use FileEntry::exists()
  3675. * src/MultiDiskAdaptor.cc
  3676. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added exists()
  3678. * src/FileEntry.cc
  3679. * src/FileEntry.h
  3680. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Added missing prefix dir.
  3682. * src/download_helper.cc
  3683. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3685. * src/CopyDiskAdaptor.cc: Removed
  3686. * src/CopyDiskAdaptor.h: Removed
  3687. * src/DefaultPieceStorage.cc
  3688. * src/Makefile.am
  3689. * src/OptionHandlerFactory.cc
  3690. * src/prefs.cc
  3691. * src/prefs.h
  3692. * src/usage_text.h
  3693. * test/CopyDiskAdaptorTest.cc: Removed
  3694. * test/Makefile.am
  3695. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Rewritten isSameFileBeingDownloaded()
  3697. * src/RequestGroupMan.cc
  3698. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Removed getName() from DownloadContext. getName() is declared in
  3700. BtContext.
  3701. * src/BtContext.h
  3702. * src/DownloadContext.h
  3703. * src/SingleFileDownloadContext.cc
  3704. * src/SingleFileDownloadContext.h
  3705. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3706. in AbstractSingleDiskAdaptor.
  3707. * src/AbstractSingleDiskAdaptor.h
  3708. * src/DiskAdaptor.h
  3709. * src/MultiDiskAdaptor.h
  3710. * src/RequestGroup.cc
  3711. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3712. MultiDiskAdaptor.
  3713. * src/DefaultPieceStorage.cc
  3714. * src/MultiDiskAdaptor.cc
  3715. * src/MultiDiskAdaptor.h
  3716. * test/MultiDiskAdaptorTest.cc
  3717. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. FileEntry::getPath() contains store(top level) directory to
  3719. simplify path handling operation. In the previous implementation,
  3720. store directory is concatenated to FileEntry::getPath() in
  3721. DownloadContext.
  3722. * src/BtDependency.cc
  3723. * src/BtPostDownloadHandler.cc
  3724. * src/CopyDiskAdaptor.cc
  3725. * src/DefaultBtContext.cc
  3726. * src/DirectDiskAdaptor.cc
  3727. * src/FileEntry.cc
  3728. * src/FileEntry.h
  3729. * src/FtpNegotiationCommand.cc
  3730. * src/HttpResponse.cc
  3731. * src/HttpResponseCommand.cc
  3732. * src/Metalink2RequestGroup.cc
  3733. * src/MultiDiskAdaptor.cc
  3734. * src/MultiDiskAdaptor.h
  3735. * src/MultiFileAllocationIterator.cc
  3736. * src/RequestGroup.cc
  3737. * src/SingleFileDownloadContext.cc
  3738. * src/SingleFileDownloadContext.h
  3739. * src/download_helper.cc
  3740. * test/BtDependencyTest.cc
  3741. * test/CopyDiskAdaptorTest.cc
  3742. * test/DefaultBtContextTest.cc
  3743. * test/DefaultBtProgressInfoFileTest.cc
  3744. * test/DirectDiskAdaptorTest.cc
  3745. * test/DownloadHelperTest.cc
  3746. * test/FileEntryTest.cc
  3747. * test/MultiDiskAdaptorTest.cc
  3748. * test/MultiFileAllocationIteratorTest.cc
  3749. * test/RequestGroupTest.cc
  3750. * test/SingleFileDownloadContextTest.cc
  3751. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Fixed compiler warning
  3753. * src/download_helper.cc
  3754. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Throw exception if same infohash torrent is now downloading.
  3756. * src/RequestGroup.cc
  3757. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Added --dry-run option. In this mode, aria2 just checks whether
  3759. the remote file is available and doesn't download data. This
  3760. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3761. are canceled in this mode.
  3762. * src/FtpNegotiationCommand.cc
  3763. * src/HttpResponseCommand.cc
  3764. * src/HttpResponseCommand.h
  3765. * src/OptionHandlerFactory.cc
  3766. * src/RequestGroup.cc
  3767. * src/RequestGroupMan.cc
  3768. * src/prefs.cc
  3769. * src/prefs.h
  3770. * src/usage_text.h
  3771. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Fixed compiler waring
  3773. * test/UriListParserTest.cc
  3774. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Parse options in -i list using OptionParser.
  3776. * src/UriListParser.cc
  3777. * src/UriListParser.h
  3778. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Don't reset URI in retry to avoid additional round trips because
  3780. of redirects.
  3781. * src/AbstractCommand.cc
  3782. * src/OptionHandlerFactory.cc
  3783. * src/prefs.cc
  3784. * src/prefs.h
  3785. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Declared hide() in OptionHandler.
  3787. * src/NameMatchOptionHandler.h
  3788. * src/OptionHandler.h
  3789. * src/OptionHandlerImpl.h
  3790. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Updated doc
  3792. * src/Peer.h
  3793. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Added log message in setStatusInternal()
  3795. * src/ServerStat.cc
  3796. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3798. effectively exclude failed server.
  3799. * src/AbstractCommand.cc
  3800. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Added --index-out option to specify each file path for torrent.
  3802. Here index shown in --show-files option is used to specify which
  3803. file path should be altered. For example, to change the file path
  3804. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3805. option multiple times: --index-out=1=aria2.tar.bz2
  3806. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3807. available. This option can be specified in -i list.
  3808. * src/DefaultBtContext.cc
  3809. * src/DefaultBtContext.h
  3810. * src/MultiDiskAdaptor.cc
  3811. * src/MultiDiskAdaptor.h
  3812. * src/MultiFileAllocationIterator.cc
  3813. * src/OptionHandlerFactory.cc
  3814. * src/OptionHandlerImpl.h
  3815. * src/Util.cc
  3816. * src/Util.h
  3817. * src/download_helper.cc
  3818. * src/prefs.cc
  3819. * src/prefs.h
  3820. * src/usage_text.h
  3821. * test/DefaultBtContextTest.cc
  3822. * test/MultiDiskAdaptorTest.cc
  3823. * test/MultiFileAllocationIteratorTest.cc
  3824. * test/UtilTest.cc
  3825. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Use Util::pathJoin()
  3827. * src/MetalinkParserController.cc
  3828. * test/test.xml
  3829. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Use Util::pathJoin()
  3831. * src/DefaultBtContext.cc
  3832. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Added Util::pathJoin()
  3834. * src/Util.h
  3835. * test/UtilTest.cc
  3836. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Applied basename function to remove directory element in
  3838. content-disposition value.
  3839. Return empty string if content-disposition value is ".." or ".".
  3840. * src/Util.cc
  3841. * test/UtilTest.cc
  3842. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Added --max-overall-download-limit in man page.
  3844. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3845. * doc/aria2c.1.txt
  3846. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Added --max-overall-download-limit option. Now --max-upload-limit
  3848. option is not ignored when --max-overall-upload-limit option has
  3849. non-zero value. aria2 checks download(upload) speed in the order:
  3850. first checks overall speed limit and if it is not exceeded, then
  3851. checks speed limit per download. Thus you can specify both
  3852. value. For example, set --max-overall-download-limit=1M and
  3853. --max-download-limit=500K to prevent from one download from eating
  3854. all overall speed limit.
  3855. * src/DefaultBtInteractive.cc
  3856. * src/DefaultBtInteractive.h
  3857. * src/DefaultBtMessageDispatcher.cc
  3858. * src/DefaultBtMessageDispatcher.h
  3859. * src/DownloadCommand.cc
  3860. * src/DownloadCommand.h
  3861. * src/FtpNegotiationCommand.cc
  3862. * src/HttpResponseCommand.cc
  3863. * src/OptionHandlerFactory.cc
  3864. * src/PeerInteractionCommand.cc
  3865. * src/RequestGroup.cc
  3866. * src/RequestGroup.h
  3867. * src/RequestGroupMan.cc
  3868. * src/RequestGroupMan.h
  3869. * src/prefs.cc
  3870. * src/prefs.h
  3871. * src/usage_text.h
  3872. * test/DefaultBtMessageDispatcherTest.cc
  3873. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Documented select-file option in Input File section.
  3875. Documented --http-auth-challenge option.
  3876. * doc/aria2c.1.txt
  3877. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Now select-file can be specified in the uri list(-i list).
  3879. * src/BtContext.cc
  3880. * src/BtContext.h
  3881. * src/RequestGroup.cc
  3882. * src/Sequence.h
  3883. * src/download_helper.cc
  3884. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Made the upper value of --max-concurrent-downloads options unlimited.
  3886. * src/OptionHandlerFactory.cc
  3887. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Fixed the bug that disk writer is not created even if it shares
  3889. same piece with the preceding file if the length of previous file
  3890. is 0.
  3891. * src/MultiDiskAdaptor.cc
  3892. * test/MultiDiskAdaptorTest.cc
  3893. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. In BitTorrent, Open files in read-only mode for hash check. After
  3895. that, re-open file in read/write mode only when the download is
  3896. not finished.
  3897. * src/AbstractDiskWriter.cc
  3898. * src/AbstractDiskWriter.h
  3899. * src/AbstractSingleDiskAdaptor.cc
  3900. * src/AbstractSingleDiskAdaptor.h
  3901. * src/BtCheckIntegrityEntry.cc
  3902. * src/DiskAdaptor.h
  3903. * src/DiskWriter.h
  3904. * src/MultiDiskAdaptor.cc
  3905. * src/MultiDiskAdaptor.h
  3906. * src/RequestGroup.cc
  3907. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Added --http-auth-challenge option. If it is set to true(by
  3909. default), aria2 sends HTTP authorization header only when it is
  3910. requested by the server. If false is set, then authorization
  3911. header is always sent to the server. This is useful for servers
  3912. that don't respond 401 code when authentication is required.
  3913. There is an exception: if username and password are embedded in
  3914. URI, authorization header is always sent to the server regardless
  3915. of this option.
  3916. * src/AuthConfigFactory.cc
  3917. * src/HttpSkipResponseCommand.cc
  3918. * src/OptionHandlerFactory.cc
  3919. * src/prefs.cc
  3920. * src/prefs.h
  3921. * src/usage_text.h
  3922. * test/AuthConfigFactoryTest.cc
  3923. * test/HttpRequestTest.cc
  3924. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. * Release 1.2.0
  3926. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3928. Thanks to all translators.
  3929. * po/es.po
  3930. * po/ja.po
  3931. * po/ru.po
  3932. * po/uk.po
  3933. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Call deleteSocketForReadCheck() before socket is closed.
  3935. * src/HttpListenCommand.cc
  3936. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Defined virtual destructor for BObject.
  3938. * src/bencode.h
  3939. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Rewritten BDE to make it efficient.
  3941. * src/bencode.cc
  3942. * src/bencode.h
  3943. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Removed function throw list.
  3945. * src/bencode.cc
  3946. * src/bencode.h
  3947. * test/BencodeTest.cc
  3948. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Enclosed all URLs in double quotes in command-line examples.
  3950. * doc/aria2c.1.txt
  3951. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Updated reference/see also section.
  3953. * README
  3954. * doc/aria2c.1.txt
  3955. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Reorganized man page based on man man-pages.
  3957. * doc/aria2c.1.txt
  3958. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3960. because same documents are available in man page. Added
  3961. References section.
  3962. * README
  3963. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3965. PERFORMANCE PROFILE section.
  3966. * doc/aria2c.1.txt
  3967. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Rewritten the section for configuration file.
  3969. * README
  3970. * doc/aria2c.1.txt
  3971. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Fixed the segmentation fault during execution of choking algorithm
  3973. in leecher state because of broken compare operator
  3974. implementation.
  3975. * src/BtLeecherStateChoke.cc
  3976. * src/BtLeecherStateChoke.h
  3977. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Open file in binary mode.
  3979. * src/CookieStorage.cc
  3980. * src/DHTSetup.cc
  3981. * src/DHTUtil.cc
  3982. * src/Netrc.cc
  3983. * src/NsCookieParser.cc
  3984. * src/ProtocolDetector.cc
  3985. * src/RequestGroupMan.cc
  3986. * src/Signature.cc
  3987. * src/bencode.cc
  3988. * src/download_helper.cc
  3989. * src/option_processing.cc
  3990. * test/CookieParserTest.cc
  3991. * test/DefaultBtProgressInfoFileTest.cc
  3992. * test/FileTest.cc
  3993. * test/GZipDecoderTest.cc
  3994. * test/RequestGroupManTest.cc
  3995. * test/SignatureTest.cc
  3996. * test/SingleFileAllocationIteratorTest.cc
  3997. * test/UriListParserTest.cc
  3998. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Removed operator[] because it is ambiguous with built-in []
  4000. operator.
  4001. * src/array_fun.h
  4002. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4003. Fixed compile error
  4004. * src/OptionParser.cc
  4005. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4006. Added missing call to arrayWrapperConst
  4007. * test/array_funTest.cc
  4008. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Use array_wrapper instead of array_ptr.
  4010. * src/DHTRoutingTableDeserializer.cc
  4011. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4012. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4013. * src/array_fun.h
  4014. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Added array_wrapper template.
  4016. * src/array_fun.h
  4017. * test/array_funTest.cc
  4018. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Use operator T* of array_ptr.
  4020. * src/OptionParser.cc
  4021. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Use localhost instead of 127.0.0.1
  4023. * test/FtpConnectionTest.cc
  4024. * test/MSEHandshakeTest.cc
  4025. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4026. Added operator T*
  4027. * src/array_fun.h
  4028. * test/array_funTest.cc
  4029. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Use dynamically allocated char array to detect memory access
  4031. violation.
  4032. * src/DHTRoutingTableDeserializer.cc
  4033. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4035. defined.
  4036. * src/PeerMessageUtil.cc
  4037. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4039. * configure.ac
  4040. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Added a check to see struct sockaddr_in has sin_len member.
  4042. * configure.ac
  4043. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Fixed buffer overrun.
  4045. * src/DHTRoutingTableDeserializer.cc
  4046. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Added LL for long long int constant.
  4048. * test/FtpConnectionTest.cc
  4049. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Casted to unsigned int to suppress compiler warning on netbsd.
  4051. * src/BtRuntime.h
  4052. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4054. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4055. type time_t.
  4056. * src/SimpleLogger.cc
  4057. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Added test for FtpConnection::receiveSizeResponse().
  4059. * test/FtpConnectionTest.cc
  4060. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4061. Fix epoll error on the old kernel 2.6.8 or ealier.
  4062. * src/EpollEventPoll.cc
  4063. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Use Util::parseLLInt instead of sscanf for portability. The
  4065. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4066. * src/FtpConnection.cc
  4067. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4069. block. It should not filter anything.
  4070. * src/BitfieldMan.cc
  4071. * src/ConsoleStatCalc.cc
  4072. * test/BitfieldManTest.cc
  4073. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Fixed the bug that the boolean options that don't take arguments
  4075. don't work.
  4076. * src/OptionHandlerImpl.h
  4077. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Fixed broken selected file BitTorrent download.
  4079. * src/MultiDiskAdaptor.cc
  4080. * test/MultiDiskAdaptorTest.cc
  4081. * test/MultiFileAllocationIteratorTest.cc
  4082. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4083. Fixed #define guard for EpollEventPoll
  4084. * src/EpollEventPoll.h
  4085. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Wait 2 seconds. 1 second is sometimes not enough.
  4087. * test/TimeSeedCriteriaTest.cc
  4088. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Use localhost instead of 127.0.0.1.
  4090. * test/DHTConnectionImplTest.cc
  4091. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Suppressed compiler warning.
  4093. * src/AdaptiveURISelector.cc
  4094. * src/DefaultPieceStorage.cc
  4095. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Defined virtual destructor.
  4097. * src/MetalinkParserState.h
  4098. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Give NULL for second argument of getaddrinfo instead of "0".
  4100. * src/NameResolver.cc
  4101. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4103. included strptime doesn't parse data for this format.
  4104. * src/FtpConnection.cc
  4105. * test/FtpConnectionTest.cc
  4106. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Removed tests giving -1 for unsigned argument.
  4108. * test/SingleFileDownloadContextTest.cc
  4109. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Don't use sha256 in tests because it might not be supported by the
  4111. SSL library.
  4112. * test/MetalinkProcessorTest.cc
  4113. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Removed tests giving -1 for unsigned argument.
  4115. * test/AlphaNumberDecoratorTest
  4116. * test/BitfieldManTest.cc
  4117. * test/DefaultBtContextTest.cc
  4118. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Fixed compile error without libcares when epoll is available.
  4120. * src/EpollEventPoll.cc
  4121. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Included fstream instead of iostream.
  4123. * test/SignatureTest.cc
  4124. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Removed #include <algorithm>
  4126. * test/RequestGroupTest.cc
  4127. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4129. using RequestGroup::extractURIResult().
  4130. * src/AdaptiveURISelector.cc
  4131. * src/RequestGroup.cc
  4132. * src/RequestGroup.h
  4133. * test/RequestGroupTest.cc
  4134. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Added tests for array_ptr.
  4136. * test/array_funTest.cc
  4137. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Don't send ip parameter to a tracker if ip parameter is empty
  4139. string.
  4140. * src/DefaultBtAnnounce.cc
  4141. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Adjusted line feed.
  4143. * src/version_usage.cc
  4144. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Print tags, possible values when OptionHandlerException is caught.
  4146. * src/option_processing.cc
  4147. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Changed the message for FatalException.
  4149. * src/OptionParser.cc
  4150. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Documented --bt-external-ip option in man page. Updated man pages
  4152. for --proxy-method option.
  4153. * doc/aria2c.1.txt
  4154. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Use GET method for FTP via HTTP proxy.
  4156. * src/FtpInitiateConnectionCommand.cc
  4157. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Changed the default value of --proxy-method option from 'tunnel'
  4159. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4160. option.
  4161. * src/AbstractCommand.cc
  4162. * src/AbstractCommand.h
  4163. * src/FtpInitiateConnectionCommand.cc
  4164. * src/HttpDownloadCommand.cc
  4165. * src/HttpInitiateConnectionCommand.cc
  4166. * src/HttpInitiateConnectionCommand.h
  4167. * src/OptionHandlerFactory.cc
  4168. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Initialized _logger
  4170. * src/SelectEventPoll.cc
  4171. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4172. Defined a copy constructor for the same type.
  4173. * src/SharedHandle.h
  4174. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Added OptionParser::parseArg() which internally uses getopt_long
  4176. to parse command-line options. All command-line options are now
  4177. configured by OptionHandler. No manual editing of struct option*
  4178. is required any more.
  4179. * src/NameMatchOptionHandler.h
  4180. * src/OptionHandler.h
  4181. * src/OptionHandlerFactory.cc
  4182. * src/OptionHandlerImpl.h
  4183. * src/OptionParser.cc
  4184. * src/OptionParser.h
  4185. * src/array_fun.h
  4186. * src/main.cc
  4187. * src/option_processing.cc
  4188. * test/OptionHandlerTest.cc
  4189. * test/OptionParserTest.cc
  4190. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Fixed configure error with --disable-epoll
  4192. * configure.ac
  4193. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Fixed compile error when HAVE_EPOLL is not defined.
  4195. Fixed linker error on bigendian systems.
  4196. * src/SocketCore.cc
  4197. * src/SocketCore.h
  4198. * test/DefaultBtProgressInfoFileTest.cc
  4199. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Added --bt-external-ip option. You can specify the external IP
  4201. address to report to a BitTorrent tracker. Although this function
  4202. is named 'external', it can accept any kind of IP addresses.
  4203. * src/DefaultBtAnnounce.cc
  4204. * src/OptionHandlerFactory.cc
  4205. * src/option_processing.cc
  4206. * src/prefs.cc
  4207. * src/prefs.h
  4208. * src/usage_text.h
  4209. * test/DefaultBtAnnounceTest.cc
  4210. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Extracted the algorithm to find the longest incremental sequence
  4212. as max_sequence template.
  4213. * src/LongestSequencePieceSelector.cc
  4214. * src/a2algo.h
  4215. * test/Makefile.am
  4216. * test/a2algoTest.cc
  4217. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4219. * src/usage_text.h
  4220. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Updated doc for --uri-selector, --http-server-listen-port and
  4222. --enable-http-server option. Documented --event-poll option.
  4223. * doc/aria2c.1.txt
  4224. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Updated doc for --enable-http-server.
  4226. * src/usage_text.h
  4227. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Documented --http-server-listen-port and --enable-http-server in
  4229. man page.
  4230. * doc/aria2c.1.txt
  4231. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4233. translations. Thanks to all translators.
  4234. * po/es.po
  4235. * po/id.po
  4236. * po/it.po
  4237. * po/ru.po
  4238. * po/uk.po
  4239. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Bump up version number to 1.2.0
  4241. * configure.ac
  4242. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4243. BtContext::getAnnounceTiers() now returns const reference.
  4244. * src/BtContext.h
  4245. * src/DefaultBtContext.cc
  4246. * src/DefaultBtContext.h
  4247. * test/MockBtContext.h
  4248. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Change the number of retries for tracker request based on the
  4250. number of available tracker in a torrent file.
  4251. * src/TrackerWatcherCommand.cc
  4252. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4253. Added _maxTries property to RequestGroup and assign the option
  4254. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4255. RequestGroup::getMaxTries() instead of
  4256. Option::getAsInt(PREF_MAX_TRIES).
  4257. * src/AbstractCommand.cc
  4258. * src/RequestGroup.cc
  4259. * src/RequestGroup.h
  4260. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4261. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4262. Mandriva. I modified the patch: make RequestGroup have the
  4263. timeout value and AdaptiveURISelector directly modifies that
  4264. value.
  4265. * src/AbstractCommand.cc
  4266. * src/AdaptiveURISelector.cc
  4267. * src/AdaptiveURISelector.h
  4268. * src/FtpNegotiationCommand.cc
  4269. * src/RequestGroup.cc
  4270. * src/RequestGroup.h
  4271. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Fixed compiler warning
  4273. * test/IteratableChecksumValidatorTest.cc
  4274. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4276. integrated downloads. This PieceSelector subclass finds the
  4277. longest continuous sequence in the available missing pieces and
  4278. selects the last index of such sequence. This makes HTTP/FTP
  4279. connections less interrupted by the pieces obtained by BitTorrent
  4280. peers.
  4281. * src/DefaultPieceStorage.cc
  4282. * src/DefaultPieceStorage.h
  4283. * src/LongestSequencePieceSelector.cc
  4284. * src/LongestSequencePieceSelector.h
  4285. * src/Makefile.am
  4286. * src/PieceSelector.h
  4287. * src/RarestPieceSelector.h
  4288. * src/RequestGroup.cc
  4289. * test/BtDependencyTest.cc
  4290. * test/DefaultPieceStorageTest.cc
  4291. * test/IteratableChecksumValidatorTest.cc
  4292. * test/LongestSequencePieceSelectorTest.cc
  4293. * test/Makefile.am
  4294. * test/SegmentManTest.cc
  4295. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Fixed the bug that the average speed is wrong in
  4297. http/ftp/BitTorrent integrated download. Only the download bytes
  4298. in BitTorrent were considered.
  4299. * src/RequestGroup.cc
  4300. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4301. Choose port for BitTorrent/DHT randomly from the specified range.
  4302. * src/DHTConnectionImpl.cc
  4303. * src/PeerListenCommand.cc
  4304. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Send HTTP Authorization header only if it is requested by the
  4306. server(response 401). There are some exceptions. The authorization
  4307. header for proxy is always sent if it is available without request
  4308. by the server. If username/password is specified in the URI, it
  4309. is immediately sent to the server without request by the server.
  4310. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4311. SharedHandle<AuthConfig>().
  4312. NetrcAuthResolver::resolveAuthConfig() returns
  4313. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4314. * src/AbstractAuthResolver.cc
  4315. * src/AbstractProxyRequestCommand.cc
  4316. * src/AuthConfigFactory.cc
  4317. * src/AuthConfigFactory.h
  4318. * src/HttpConnection.cc
  4319. * src/HttpRequest.cc
  4320. * src/HttpRequest.h
  4321. * src/HttpResponse.cc
  4322. * src/HttpResponseCommand.cc
  4323. * src/HttpSkipResponseCommand.cc
  4324. * test/AuthConfigFactoryTest.cc
  4325. * test/HttpRequestTest.cc
  4326. * test/HttpResponseTest.cc
  4327. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Remove leading "--" from help keyword and a substring after "="
  4329. from help keyword, so that one can query options by '-h--max-' or
  4330. '-hmax-peers=10'.
  4331. * src/option_processing.cc
  4332. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Rewritten PStringVisitor and its implementation.
  4334. * src/PStringBuildVisitor.cc
  4335. * src/PStringBuildVisitor.h
  4336. * src/PStringDatum.h
  4337. * src/PStringNumLoop.h
  4338. * src/PStringSegment.cc
  4339. * src/PStringSegment.h
  4340. * src/PStringSelect.h
  4341. * src/PStringVisitor.h
  4342. * src/download_helper.cc
  4343. * test/PStringBuildVisitorTest.cc
  4344. * test/ParameterizedStringParserTest.cc
  4345. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Persist connection between the built-in HTTP server and a client
  4347. if a client supports keep-alive. Fixed the bug that aria2 exits
  4348. when the HTTP server receives EOF from a client.
  4349. * src/HttpServer.cc
  4350. * src/HttpServer.h
  4351. * src/HttpServerCommand.cc
  4352. * src/HttpServerCommand.h
  4353. * src/HttpServerResponseCommand.cc
  4354. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Added experimental built-in HTTP server. Currently, when a client
  4356. accesses to the server, it responds with the current download
  4357. progress. By default, it is disabled. To enable the server, give
  4358. --enable-http-server option. To change the default port number
  4359. for the server to listen to, use --http-server-listen-port option.
  4360. The response HTML is very simple and refreshes it self each 1
  4361. second. Because of this refresh, you see flicker in normal web
  4362. browser such as Firefox. I recommend to use console-based browser
  4363. such as elinks, w3m. To connect to the server, run 'elinks
  4364. http://localhost:6800/' while running aria2. Please replace port
  4365. number '6800'(which is default) with your preference.
  4366. * src/DownloadEngineFactory.cc
  4367. * src/HttpHeader.cc
  4368. * src/HttpHeader.h
  4369. * src/HttpHeaderProcessor.cc
  4370. * src/HttpHeaderProcessor.h
  4371. * src/HttpListenCommand.cc
  4372. * src/HttpListenCommand.h
  4373. * src/HttpServer.cc
  4374. * src/HttpServer.h
  4375. * src/HttpServerCommand.cc
  4376. * src/HttpServerCommand.h
  4377. * src/HttpServerResponseCommand.cc
  4378. * src/HttpServerResponseCommand.h
  4379. * src/Makefile.am
  4380. * src/OptionHandlerFactory.cc
  4381. * src/Util.cc
  4382. * src/Util.h
  4383. * src/help_tags.h
  4384. * src/option_processing.cc
  4385. * src/prefs.cc
  4386. * src/prefs.h
  4387. * src/usage_text.h
  4388. * test/HttpHeaderProcessorTest.cc
  4389. * test/UtilTest.cc
  4390. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Removed.
  4392. * src/CheckIntegrityMan.cc
  4393. * src/FileAllocationMan.cc
  4394. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Made (piece) hash check sequential for each RequestGroup because
  4396. simultaneous hash check is slower than sequential execution.
  4397. * src/CheckIntegrityCommand.cc
  4398. * src/CheckIntegrityDispatcherCommand.cc
  4399. * src/CheckIntegrityDispatcherCommand.h
  4400. * src/CheckIntegrityMan.h
  4401. * src/ConsoleStatCalc.cc
  4402. * src/DownloadCommand.cc
  4403. * src/DownloadEngine.cc
  4404. * src/DownloadEngine.h
  4405. * src/DownloadEngineFactory.cc
  4406. * src/Makefile.am
  4407. * src/Makefile.in
  4408. * src/RequestGroup.cc
  4409. * src/StatCalc.h
  4410. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4412. SequentialDispatcherCommand.
  4413. * src/FileAllocationDispatcherCommand.cc
  4414. * src/SequentialDispatcherCommand.h
  4415. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4416. Rewritten FileAllocationDispatcherCommand using brand new
  4417. SequentialDispatcherCommand.
  4418. * src/DownloadEngineFactory.cc
  4419. * src/FileAllocationCommand.cc
  4420. * src/FileAllocationDispatcherCommand.cc
  4421. * src/FileAllocationDispatcherCommand.h
  4422. * src/Makefile.am
  4423. * src/SequentialDispatcherCommand.h
  4424. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Replaced FileAllocationMan with
  4426. SequentialPicker<FileAllocationEntry>.
  4427. * src/BtCheckIntegrityEntry.cc
  4428. * src/ConsoleStatCalc.cc
  4429. * src/DownloadEngine.cc
  4430. * src/DownloadEngine.h
  4431. * src/DownloadEngineFactory.cc
  4432. * src/FileAllocationCommand.cc
  4433. * src/FileAllocationDispatcherCommand.cc
  4434. * src/FileAllocationMan.h
  4435. * src/Makefile.am
  4436. * src/SequentialPicker.h
  4437. * src/StatCalc.h
  4438. * src/StreamCheckIntegrityEntry.cc
  4439. * test/Makefile.am
  4440. * test/SequentialPickerTest.cc
  4441. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Added doc for adaptive URI selector.
  4443. * doc/aria2c.1.txt
  4444. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Added doc for adaptive URI selector.
  4446. * src/usage_text.h
  4447. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Added doc for --bt-max-peers option.
  4449. * doc/aria2c.1.txt
  4450. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Added doc for --bt-hash-check-seed option.
  4452. * doc/aria2c.1.txt
  4453. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4454. Documented exit codes.
  4455. * doc/aria2c.1.txt
  4456. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Added --bt-max-peers option to specify the maximum number of peers
  4458. per torrent. 0 means unlimited number of peers.
  4459. * src/ActivePeerConnectionCommand.cc
  4460. * src/BtRuntime.h
  4461. * src/DefaultPeerStorage.cc
  4462. * src/DefaultPeerStorage.h
  4463. * src/OptionHandlerFactory.cc
  4464. * src/RequestGroup.cc
  4465. * src/option_processing.cc
  4466. * src/prefs.cc
  4467. * src/prefs.h
  4468. * src/usage_text.h
  4469. * test/DefaultPeerStorageTest.cc
  4470. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Added --bt-hash-check-seed option. If true is given to this
  4472. option, after hash check using --check-integrity option and file
  4473. is complete, continue to seed file. If you want to check file and
  4474. download it only when it is damaged or incomplete, set this option
  4475. to false. This option has effect only on BitTorrent download.
  4476. The default value is true(This is the same behavior with the
  4477. previous release).
  4478. * src/BtCheckIntegrityEntry.cc
  4479. * src/OptionHandlerFactory.cc
  4480. * src/option_processing.cc
  4481. * src/prefs.cc
  4482. * src/prefs.h
  4483. * src/usage_text.h
  4484. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Updated copyright year.
  4486. * src/version_usage.cc
  4487. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4489. * doc/aria2c.1.txt
  4490. * src/usage_text.h
  4491. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Made the max value of split option unlimited.
  4493. * doc/aria2c.1.txt
  4494. * src/OptionHandlerFactory.cc
  4495. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. Fixed compile warning/error.
  4497. * src/DownloadResult.h
  4498. * src/HttpDownloadCommand.cc
  4499. * src/ServerStat.cc
  4500. * test/RequestGroupTest.cc
  4501. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Added --event-poll option to select the method for polling events.
  4503. The available methods are "select" and "epoll". "epoll" is
  4504. available on Linux only. The earlier release has the compile
  4505. option to choose from these methods.
  4506. * configure.ac
  4507. * src/RequestGroupMan.cc
  4508. * src/OptionHandlerFactory.cc
  4509. * src/EpollEventPoll.h
  4510. * src/StreamFileAllocationEntry.cc
  4511. * src/a2io.h
  4512. * src/SelectEventPoll.h
  4513. * src/option_processing.cc
  4514. * src/prefs.h
  4515. * src/EpollEventPoll.cc
  4516. * src/EventPoll.h
  4517. * src/SocketCore.h
  4518. * src/Makefile.am
  4519. * src/main.cc
  4520. * src/DownloadEngine.h
  4521. * src/SelectEventPoll.cc
  4522. * src/DownloadEngine.cc
  4523. * src/SocketCore.cc
  4524. * src/DownloadEngineFactory.cc
  4525. * src/Makefile.in
  4526. * src/prefs.cc
  4527. * src/usage_text.h
  4528. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. Included RecoverableException.h from main.cc
  4530. * src/main.cc
  4531. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4533. now returns last error encountered in the HTTP/FTP downloads as a
  4534. exit status value. If all downloads finished successfully, aria2
  4535. returns 0. The error code is defined in src/DownloadResult.h.
  4536. The error occurred in the download currently in progress is not
  4537. reported as a last error. If no error has encountered but there
  4538. are in progress or waiting downloads, aria2 returns 7.
  4539. * src/AbstractCommand.cc
  4540. * src/DlAbortEx.h
  4541. * src/DlRetryEx.h
  4542. * src/DownloadCommand.cc
  4543. * src/DownloadFailureException.h
  4544. * src/DownloadResult.h
  4545. * src/FtpNegotiationCommand.cc
  4546. * src/HttpSkipResponseCommand.cc
  4547. * src/Makefile.am
  4548. * src/MultiUrlRequestInfo.cc
  4549. * src/MultiUrlRequestInfo.h
  4550. * src/RecoverableException.h
  4551. * src/RequestGroup.cc
  4552. * src/RequestGroup.h
  4553. * src/RequestGroupMan.cc
  4554. * src/RequestGroupMan.h
  4555. * src/URIResult.cc
  4556. * src/URIResult.h
  4557. * src/main.cc
  4558. * src/option_processing.cc
  4559. * test/RequestGroupTest.cc
  4560. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4562. patch adds AdaptiveURISelector, which selects one of the bests
  4563. mirrors for first and reserved connections. For supplementary
  4564. ones, it returns mirrors which has not been tested yet, and if
  4565. each of them already tested, returns mirrors which has to be
  4566. tested again. Otherwise, it doesn't return anymore mirrors.
  4567. * src/AdaptiveURISelector.cc
  4568. * src/AdaptiveURISelector.h
  4569. * src/FtpNegotiationCommand.cc
  4570. * src/HttpResponseCommand.cc
  4571. * src/Makefile.am
  4572. * src/Makefile.in
  4573. * src/OptionHandlerFactory.cc
  4574. * src/RequestGroup.cc
  4575. * src/RequestGroup.h
  4576. * src/RequestGroupMan.cc
  4577. * src/ServerStat.cc
  4578. * src/ServerStat.h
  4579. * src/ServerStatMan.cc
  4580. * src/SpeedCalc.cc
  4581. * src/URISelector.h
  4582. * src/prefs.cc
  4583. * src/prefs.h
  4584. * test/RequestGroupManTest.cc
  4585. * test/ServerStatManTest.cc
  4586. * test/ServerStatTest.cc
  4587. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Fixed unit test error.
  4589. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4590. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. * Release 1.1.2
  4592. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Updated Russian translation. Thanks to the translators.
  4594. * po/ru.po
  4595. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Added the description of --use-head option to man page.
  4597. * doc/aria2c.1.txt
  4598. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Bump up version number to 1.1.2
  4600. * configure.ac
  4601. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Added --use-head option to toggle whether HEAD method should be
  4603. used in the first HTTP request. By default aria2 uses HEAD method
  4604. as the first request. When the server doesn't recognize HEAD, then
  4605. give aria2 --use-head=false to force aria2 to use GET method
  4606. instead.
  4607. * src/OptionHandlerFactory.cc
  4608. * src/RequestGroupMan.cc
  4609. * src/option_processing.cc
  4610. * src/prefs.cc
  4611. * src/prefs.h
  4612. * src/usage_text.h
  4613. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4615. message is received before CHOKE message. The old implementation
  4616. doen't clear the use-bit of the piece when recieved REJECT
  4617. message.
  4618. * src/DefaultBtMessageDispatcher.cc
  4619. * test/DefaultBtMessageDispatcherTest.cc
  4620. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. * Release 1.1.1
  4622. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Bump up version number to 1.1.1.
  4624. * configure.ac
  4625. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4627. is printed repeatedly.
  4628. * src/ConsoleStatCalc.cc
  4629. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. * Release 1.1.0
  4631. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Added ifdef clause for conditional compilation.
  4633. * src/main.cc
  4634. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4636. translations. Thanks to all translators.
  4637. * po/ja.po
  4638. * po/ru.po
  4639. * po/uk.po
  4640. * po/zh_CN.po
  4641. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Added the preceding ">>> " before the message "Printing the
  4643. contents of file..." to make the output more readable.
  4644. * src/main.cc
  4645. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Added try-catch block in the loop in showFiles() to continue the
  4647. operation even if the exception occurred in one file.
  4648. * src/main.cc (showFiles)
  4649. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Made messages in showFiles() translatable.
  4651. * po/aria2.pot
  4652. * src/main.cc
  4653. * src/message.h
  4654. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Print the contents of Torrent/Metalink files are printed without
  4656. -T/-M options.
  4657. * src/main.cc
  4658. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Escaped '--' with '\--'
  4660. * README
  4661. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Updated "How to build" section in README. Mentioned about
  4663. --with-ca-bundle compile option.
  4664. * README
  4665. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Bump up version number to 1.1.0.
  4667. * configure.ac
  4668. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Added a note for --dht-listen-port option.
  4670. * doc/aria2c.1.txt
  4671. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4672. Update doc for --realtime-chunk-checksum option.
  4673. * doc/aria2c.1.txt
  4674. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4675. Update doc for --realtime-chunk-checksum option.
  4676. * src/usage_text.h
  4677. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Updated French, Japanese, Russian and Ukrainian translations.
  4679. Thanks to all translators.
  4680. * po/fr.po
  4681. * po/ja.po
  4682. * po/ru.po
  4683. * po/uk.po
  4684. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4685. Renamed aria2c.pot to aria2.pot
  4686. * po/aria2.pot
  4687. * po/aria2c.pot: Removed.
  4688. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Removed MetaEntry.h
  4690. * src/Makefile.am
  4691. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Rename file by appending digits if a local file exists and its
  4693. file size is larger than that of remote file with --continue
  4694. option. The old implementation just throws exception in such case.
  4695. * src/RequestGroup.cc
  4696. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Fixed the bug that download progress summary is not printed in the
  4698. interval specified by the option.
  4699. * src/ConsoleStatCalc.cc
  4700. * src/ConsoleStatCalc.h
  4701. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Fixed compiler warning
  4703. * src/Cookie.cc
  4704. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Fixed the cookie implementation based on RFC2965.
  4706. Now if a value in domain field is not started with dot, then
  4707. prepend dot. That means a cookie with domain=sf.net is sent to
  4708. wiki.sf.net.
  4709. * src/Cookie.cc
  4710. * test/CookieParserTest.cc
  4711. * test/CookieStorageTest.cc
  4712. * test/CookieTest.cc
  4713. * test/NsCookieParserTest.cc
  4714. * test/Sqlite3MozCookieParserTest.cc
  4715. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4717. is enabled and the server doesn't support keep-alive.
  4718. * src/AbstractCommand.cc
  4719. * src/DownloadCommand.cc
  4720. * src/HttpDownloadCommand.cc
  4721. * src/HttpDownloadCommand.h
  4722. * src/HttpResponseCommand.cc
  4723. * src/Request.cc
  4724. * src/Request.h
  4725. * test/RequestTest.cc
  4726. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Removed Dictionary/List/Data and its related classes.
  4728. * src/BencodeVisitor.cc: Removed.
  4729. * src/BencodeVisitor.h: Removed.
  4730. * src/Data.cc: Removed.
  4731. * src/Data.h: Removed.
  4732. * src/Dictionary.cc: Removed.
  4733. * src/Dictionary.h: Removed.
  4734. * src/List.cc: Removed.
  4735. * src/List.h: Removed.
  4736. * src/Makefile.am
  4737. * src/MetaEntry.h: Removed.
  4738. * src/MetaEntryVisitor.h: Removed.
  4739. * src/MetaFileUtil.cc: Removed.
  4740. * src/MetaFileUtil.h: Removed.
  4741. * test/BencodeVisitorTest.cc: Removed.
  4742. * test/DataTest.cc: Removed.
  4743. * test/DictionaryTest.cc: Removed.
  4744. * test/ListTest.cc: Removed.
  4745. * test/Makefile.am
  4746. * test/MetaFileUtilTest.cc: Removed.
  4747. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4748. Removed include of MetaEntry.h
  4749. * test/DHTMessageTrackerEntryTest.cc
  4750. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Use BDE instead of Dictionary/List/Data.
  4752. * src/AnnounceList.cc
  4753. * src/AnnounceList.h
  4754. * test/AnnounceListTest.cc
  4755. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4756. Use BDE instead of Dictionary/List/Data.
  4757. * src/DHTAbstractMessage.cc
  4758. * src/DHTAbstractMessage.h
  4759. * src/DHTAnnouncePeerMessage.cc
  4760. * src/DHTAnnouncePeerMessage.h
  4761. * src/DHTAnnouncePeerReplyMessage.cc
  4762. * src/DHTAnnouncePeerReplyMessage.h
  4763. * src/DHTFindNodeMessage.cc
  4764. * src/DHTFindNodeMessage.h
  4765. * src/DHTFindNodeReplyMessage.cc
  4766. * src/DHTFindNodeReplyMessage.h
  4767. * src/DHTGetPeersMessage.cc
  4768. * src/DHTGetPeersMessage.h
  4769. * src/DHTGetPeersReplyMessage.cc
  4770. * src/DHTGetPeersReplyMessage.h
  4771. * src/DHTMessageFactory.h
  4772. * src/DHTMessageFactoryImpl.cc
  4773. * src/DHTMessageFactoryImpl.h
  4774. * src/DHTMessageReceiver.cc
  4775. * src/DHTMessageTracker.cc
  4776. * src/DHTMessageTracker.h
  4777. * src/DHTPingMessage.cc
  4778. * src/DHTPingMessage.h
  4779. * src/DHTPingReplyMessage.cc
  4780. * src/DHTPingReplyMessage.h
  4781. * src/DHTQueryMessage.cc
  4782. * src/DHTQueryMessage.h
  4783. * src/DHTResponseMessage.cc
  4784. * src/DHTResponseMessage.h
  4785. * test/DHTAnnouncePeerMessageTest.cc
  4786. * test/DHTAnnouncePeerReplyMessageTest.cc
  4787. * test/DHTFindNodeMessageTest.cc
  4788. * test/DHTFindNodeReplyMessageTest.cc
  4789. * test/DHTGetPeersMessageTest.cc
  4790. * test/DHTGetPeersReplyMessageTest.cc
  4791. * test/DHTMessageFactoryImplTest.cc
  4792. * test/DHTMessageTrackerTest.cc
  4793. * test/DHTPingMessageTest.cc
  4794. * test/DHTPingReplyMessageTest.cc
  4795. * test/MockDHTMessageFactory.h
  4796. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Added tests the case where length < 0 is specified.
  4798. * test/BencodeTest.cc
  4799. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Fixed memory leak in decoderawstring()
  4801. * src/bencode.cc
  4802. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Added missing #ifdef guard. Added uc() function for String and
  4804. removeKey() for Dict.
  4805. * src/bencode.cc
  4806. * src/bencode.h
  4807. * test/BencodeTest.cc
  4808. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Use BDE instead of Dictionary/List/Data.
  4810. * src/HandshakeExtensionMessage.cc
  4811. * src/HandshakeExtensionMessage.h
  4812. * test/HandshakeExtensionMessageTest.cc
  4813. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Added --max-overall-upload-limit option. This option limits the
  4815. overall upload speed. Stated in help message that the existing
  4816. --max-upload-limit option limits the upload speed per each
  4817. torrent. Man page is also updated.
  4818. * doc/aria2c.1.txt
  4819. * src/DefaultBtMessageDispatcher.cc
  4820. * src/DefaultBtMessageDispatcher.h
  4821. * src/OptionHandlerFactory.cc
  4822. * src/PeerInteractionCommand.cc
  4823. * src/option_processing.cc
  4824. * src/prefs.cc
  4825. * src/prefs.h
  4826. * src/usage_text.h
  4827. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Use BDE instead of Dictionary/List/Data classes.
  4829. * src/CompactPeerListProcessor.cc
  4830. * src/CompactPeerListProcessor.h
  4831. * src/DefaultBtAnnounce.cc
  4832. * src/DefaultBtContext.cc
  4833. * src/DefaultBtContext.h
  4834. * src/DefaultPeerListProcessor.cc
  4835. * src/DefaultPeerListProcessor.h
  4836. * src/DelegatingPeerListProcessor.cc
  4837. * src/DelegatingPeerListProcessor.h
  4838. * src/PeerListProcessor.h
  4839. * src/UTPexExtensionMessage.cc
  4840. * src/Util.h
  4841. * src/message.h
  4842. * test/DefaultBtContextTest.cc
  4843. * test/DefaultPeerListProcessorTest.cc
  4844. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. Added bencode helper functions and BDE class.
  4846. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4847. * src/Makefile.am
  4848. * src/bencode.cc
  4849. * src/bencode.h
  4850. * test/BencodeTest.cc
  4851. * test/Makefile.am
  4852. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Fixed the bug that bad URI is sent to the tracker when the announe
  4854. URI in torrent file includes query.
  4855. * src/DefaultBtAnnounce.cc
  4856. * test/DefaultBtAnnounceTest.cc
  4857. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4858. Added Option::blank().
  4859. Use !Option::blank(name) instead of Option::defined(name) for
  4860. the options that take filename.
  4861. * src/MultiUrlRequestInfo.cc
  4862. * src/Option.cc
  4863. * src/Option.h
  4864. * src/main.cc
  4865. * src/option_processing.cc
  4866. * test/OptionTest.cc
  4867. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Documented the default value of --check-certificate option in man
  4869. page.
  4870. * doc/aria2c.1.txt
  4871. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Enabled --check-certificate by default. Added compile
  4873. time(configure) option --with-ca-bundle to specify CA bundle.
  4874. Warn if --check-certificate=true and --ca-certificate is not
  4875. specified or loading CA certificate is failed.
  4876. * configure.ac
  4877. * src/MultiUrlRequestInfo.cc
  4878. * src/OptionHandlerFactory.cc
  4879. * src/message.h
  4880. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Mentioned https tag in help option.
  4882. * doc/aria2c.1.txt
  4883. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Added `https' tag to help option category. Added https tag to
  4885. --ca-certificate, --certificate, --check-certificate and
  4886. --private-key option.
  4887. * src/OptionHandlerFactory.cc
  4888. * src/help_tags.h
  4889. * src/option_processing.cc
  4890. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Changed the package name from `aria2c' to `aria2' in order to fix
  4892. the packaging issue in Debian and Fedora. The name of the
  4893. executable is not changed.
  4894. * configure.ac
  4895. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Fixed typos
  4897. * src/usage_text.h
  4898. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Fixed typos and updated doc.
  4900. * README
  4901. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Fixed typos
  4903. * doc/aria2c.1.txt
  4904. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4905. Fixed typos
  4906. * src/usage_text.h
  4907. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Print a message when no files to download.
  4909. * src/download_helper.cc
  4910. * src/main.cc
  4911. * src/message.h
  4912. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. RFC3986 complied Percent-Encoding(urlencode).
  4914. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4915. ones.
  4916. * src/Request.cc
  4917. * src/Util.cc
  4918. * src/Util.h
  4919. * test/BtHandshakeMessageTest.cc
  4920. * test/DefaultBtAnnounceTest.cc
  4921. * test/DefaultBtContextTest.cc
  4922. * test/RequestTest.cc
  4923. * test/UtilTest.cc
  4924. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Fixed the bug that prevents aria2 from downloading 0-length files
  4926. via HTTP/FTP.
  4927. * src/DefaultBtContext.cc
  4928. * src/DefaultBtContext.h
  4929. * src/DownloadContext.h
  4930. * src/FtpNegotiationCommand.cc
  4931. * src/HttpResponseCommand.cc
  4932. * src/HttpResponseCommand.h
  4933. * src/RequestGroup.cc
  4934. * src/SingleFileDownloadContext.cc
  4935. * src/SingleFileDownloadContext.h
  4936. * test/BtPostDownloadHandlerTest.cc
  4937. * test/MetalinkPostDownloadHandlerTest.cc
  4938. * test/MockBtContext.h
  4939. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4941. * src/option_processing.cc
  4942. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4943. Applied aria2-1.0.1-mingw.patch.
  4944. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4945. mingw.
  4946. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4947. * src/SocketCore.cc
  4948. * src/a2netcompat.h
  4949. * test/SocketCoreTest.cc
  4950. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. * Release 1.0.1
  4952. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Updated Ukrainian and Norwegian Nynorsk translations.
  4954. Thanks to all translators.
  4955. * po/nn.po
  4956. * po/uk.po
  4957. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Don't show download result when -S option is used.
  4959. * src/main.cc
  4960. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Bump up version number to 1.0.1
  4962. * configure.ac
  4963. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Closed files after the test cases in MultiDiskWriterTest::
  4965. testResetDiskWriterEntries(). This will fix the unit test error
  4966. in mingw32 build.
  4967. * test/MultiDiskWriterTest.cc
  4968. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. Use HEAD method to get file size from HTTP server for segmented
  4970. downloading.
  4971. The request to the BitTorrent Tracker always uses GET method because
  4972. the response of the tracker is small and it doesn't need segmented
  4973. download.
  4974. * src/FtpNegotiationCommand.cc
  4975. * src/HttpRequest.cc
  4976. * src/HttpResponseCommand.cc
  4977. * src/HttpSkipResponseCommand.cc
  4978. * src/RequestGroup.cc
  4979. * src/RequestGroup.h
  4980. * src/TrackerWatcherCommand.cc
  4981. * test/HttpRequestTest.cc
  4982. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Fixed the bug that causes floating exception when -T option is used and
  4984. no URIs are given.
  4985. * src/download_helper.cc
  4986. * test/DownloadHelperTest.cc
  4987. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4988. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4989. errors in MinGW:
  4990. Closed file after saving server stats (RequestGroupMan.cc)
  4991. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4992. Ignored case & handled 2-digit years (strptime.c)
  4993. Added missing suseconds_t definition (a2time.h)
  4994. Fixed socket CLOSE() define (SocketCore.cc)
  4995. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4996. Changed utime() test values from x000 to x00000 as MinGW failed on
  4997. values less than timezone offset from Unix epoch
  4998. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4999. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5000. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5001. handle negative dates (CookieParserTest.cc)
  5002. * src/a2time.h
  5003. * src/FtpConnection.cc
  5004. * src/RequestGroupMan.cc
  5005. * src/SocketCore.cc
  5006. * src/strptime.c
  5007. * test/CookieParserTest.cc
  5008. * test/CopyDiskAdaptorTest.cc
  5009. * test/FileTest.cc
  5010. * test/FtpConnectionTest.cc
  5011. * test/MultiDiskAdaptorTest.cc
  5012. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5014. * doc/aria2c.1.txt
  5015. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. * Release 1.0.0
  5017. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. Added '~' to reserved characters.
  5019. * src/Util.cc
  5020. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Do not urlencode Request::url in setUrl() because we want unmodified
  5022. URL using Request::getUrl()
  5023. * src/Request.cc
  5024. * src/Request.h
  5025. * test/RequestTest.cc
  5026. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5028. Thanks to all translators.
  5029. * po/bg.po
  5030. * po/fr.po
  5031. * po/ja.po
  5032. * po/ru.po
  5033. * po/uk.po
  5034. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Bump up version number to 1.0.0
  5036. * configure.ac
  5037. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Added nosqlite3 build to build_test.sh.
  5039. Renamed noxml as expat.
  5040. * build_test.sh
  5041. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Updated INPUT FILE section.
  5043. * doc/aria2c.1.txt
  5044. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5045. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5046. on big endian systems because test .aria2 files are made for little
  5047. endian systems.
  5048. * test/DefaultBtProgressInfoFileTest.cc
  5049. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Dropped ares support.
  5051. * README
  5052. * configure.ac
  5053. * m4/libares.m4: Removed.
  5054. * src/AsyncNameResolver.cc
  5055. * src/Makefile.am
  5056. * test/Makefile.am
  5057. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5058. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5059. Removed const qualifier from DiskWriter::size().
  5060. * src/AbstractDiskWriter.cc
  5061. * src/AbstractDiskWriter.h
  5062. * src/ByteArrayDiskWriter.cc
  5063. * src/ByteArrayDiskWriter.h
  5064. * src/DiskWriter.h
  5065. * test/ByteArrayDiskWriterTest.cc
  5066. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Fixed the bug that causes segmentation fault/bus error during executing
  5068. choking algorithm while seeding. This is caused by improper
  5069. implementation of compare function which returns inconsistent results
  5070. depending on the timing of last unchoke.
  5071. * src/BtSeederStateChoke.cc
  5072. * src/BtSeederStateChoke.h
  5073. * src/DefaultPeerStorage.cc
  5074. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Removed TODO
  5076. * TODO
  5077. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Added a section that explains how to pass argument to options that
  5079. takes optional arguments with its short form.
  5080. * doc/aria2c.1.txt
  5081. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Added -u for the short form of --max-upload-limit option.
  5083. * doc/aria2c.1.txt
  5084. * src/option_processing.cc
  5085. * src/usage_text.h
  5086. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Added -V for the short form of --check-integrity option.
  5088. Now the argument of --check-integrity option is optional:
  5089. if it is omitted, it is evaluated as true.
  5090. * doc/aria2c.1.txt
  5091. * src/option_processing.cc
  5092. * src/usage_text.h
  5093. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5094. Made the default value of --ftp-pasv option set to true and it can take
  5095. true/false values.
  5096. * src/OptionHandlerFactory.cc
  5097. * src/option_processing.cc
  5098. * src/usage_text.h
  5099. * doc/aria2c.1.txt
  5100. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5101. Given custom random number generator to std::random_shuffle.
  5102. * src/AnnounceList.cc
  5103. * src/BtLeecherStateChoke.cc
  5104. * src/BtSeederStateChoke.cc
  5105. * src/DefaultBtRequestFactory.cc
  5106. * src/MetalinkEntry.cc
  5107. * src/RarestPieceSelector.cc
  5108. * src/SimpleRandomizer.cc
  5109. * src/SimpleRandomizer.h
  5110. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Now the default value of --enable-direct-io is true.
  5112. * src/OptionHandlerFactory.cc
  5113. * doc/aria2c.1.txt
  5114. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5115. Erase peer before executing onReturningPeer and onErasingPeer
  5116. because choking algorithm called from onReturningPeer doesn't
  5117. like erasing peer in the active peer list.
  5118. * src/DefaultPeerStorage.cc
  5119. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Instead of creating special filename in createDownloadResult() if
  5121. inMemoryDownload() is true, now it is done in getFilePath().
  5122. * src/RequestGroup.cc
  5123. * test/RequestGroupTest.cc
  5124. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5125. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5126. processed in memory. This is the fix for previous comment out.
  5127. * src/MemoryBufferPreDownloadHandler.cc
  5128. * src/RequestGroup.cc
  5129. * src/RequestGroup.h
  5130. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Commented out the code which sets virtual directory path "[MEMORY]"
  5132. propagate directory to store to following RequestGroup.
  5133. * src/MemoryBufferPreDownloadHandler.cc
  5134. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5135. Bump up version number to 1.0.0b
  5136. * configure.ac
  5137. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Added input_uris.txt to EXTRA_DIST
  5139. * test/Makefile.am
  5140. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Removed PeerObject.h from Makefile.am
  5142. * src/Makefile.am
  5143. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Avoid slow seeding
  5145. * src/PeerInteractionCommand.cc
  5146. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5147. Updated usage for -i option.
  5148. * src/usage_text.h (TEXT_INPUT_FILE)
  5149. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Added INPUT FILE section to man page.
  5151. Escaped fake URLs.
  5152. * doc/aria2c.1.txt
  5153. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5154. Fixed wrong note position for -o option.
  5155. * doc/aria2c.1.txt
  5156. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5157. Fixed compile error without SSL/XML library.
  5158. * src/DefaultBtProgressInfoFile.cc
  5159. * src/DefaultBtProgressInfoFile.h
  5160. * src/FileMetalinkParserState.cc
  5161. * src/RequestGroup.h
  5162. * src/SocketCore.cc
  5163. * src/SocketCore.h
  5164. * src/VerificationMetalinkParserState.cc
  5165. * src/download_helper.h
  5166. * src/main.cc
  5167. * test/DefaultBtProgressInfoFileTest.cc
  5168. * test/DownloadHelperTest.cc
  5169. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5170. Rewritten URI handling functions. They are now provided as a testable
  5171. functions.
  5172. * src/Makefile.am
  5173. * src/RequestGroup.cc
  5174. * src/RequestGroup.h
  5175. * src/download_helper.cc
  5176. * src/download_helper.h
  5177. * src/main.cc
  5178. * test/DownloadHelperTest.cc
  5179. * test/Makefile.am
  5180. * test/input_uris.txt
  5181. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Quickly terminate commands when ctrl-c is pressed.
  5183. * src/DownloadEngine.cc
  5184. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Quickly terminate idle commands when download finished.
  5186. * src/AbstractCommand.cc
  5187. * src/DownloadCommand.cc
  5188. * src/DownloadEngine.cc
  5189. * src/DownloadEngine.h
  5190. * src/SleepCommand.cc
  5191. * src/SleepCommand.h
  5192. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. Added the ability to specify output filename and directory in input
  5194. file.
  5195. Additional parameters are added in the following line of URIs
  5196. with proceeding white space(s), 1 parameter in 1 line.
  5197. The parameter names are the same with the command-line option name
  5198. without proceeding "--". Not all the options are available here:
  5199. at the moment, 'dir' and 'out' options are avialable.
  5200. Please note that out option has no effect against Metalink or BitTorrent
  5201. downloads.
  5202. Example input file:
  5203. http://host/foo-1.1.tar.bz2
  5204. out=foo.tar.bz2
  5205. dir=/tmp/downloads
  5206. http://host/thundermonkey-2.0.tar.bz2
  5207. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5208. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5209. thundermonkey-2.0.tar.bz2 is saved as
  5210. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5211. * src/BtPostDownloadHandler.cc
  5212. * src/Metalink2RequestGroup.cc
  5213. * src/Metalink2RequestGroup.h
  5214. * src/MetalinkPostDownloadHandler.cc
  5215. * src/UriListParser.cc
  5216. * src/UriListParser.h
  5217. * src/main.cc
  5218. * test/Metalink2RequestGroupTest.cc
  5219. * test/UriListParserTest.cc
  5220. * test/filelist1.txt
  5221. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5222. Fixed error when SSL library is not found.
  5223. * configure.ac
  5224. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Cross referenced among -s, -C and -j options.
  5226. Updated usage of -C and -s options.
  5227. * src/usage_text.h
  5228. * doc/aria2c.1.txt
  5229. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Fixed bad cast in 32bit platforms.
  5231. * test/DefaultPieceStorageTest.cc
  5232. (DefaultPieceStorageTest::testGetCompletedLength)
  5233. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Fixed unit test fails on 32bit platforms.
  5235. * test/CookieParserTest.cc
  5236. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5237. Show an average download speed in Download results.
  5238. * src/BtFileAllocationEntry.cc
  5239. * src/DefaultPieceStorage.cc
  5240. * src/DownloadContext.cc
  5241. * src/DownloadContext.h
  5242. * src/DownloadResult.h
  5243. * src/RequestGroup.cc
  5244. * src/RequestGroupMan.cc
  5245. * src/StreamFileAllocationEntry.cc
  5246. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5247. Fixed the bug that metalink file is not processed if Content-Type
  5248. field has a paramter.
  5249. * src/HttpResponse.cc
  5250. * src/HttpResponse.h
  5251. * test/HttpResponseTest.cc
  5252. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Removed unused code.
  5254. * src/DefaultBtAnnounce.cc
  5255. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5257. the value larger than DefaultPieceStorage::getTotalLength() when
  5258. in flight pieces are involved.
  5259. * src/DefaultPieceStorage.cc
  5260. * test/DefaultPieceStorageTest.cc
  5261. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Bump up version number to 1.0.0a.
  5263. * configure.ac
  5264. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Updated configure.ac
  5266. * configure.ac
  5267. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. Added usege for proxy.
  5269. * doc/aria2c.1.txt
  5270. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5271. Added usage for --ca-certificate, --certificate, --private-key and
  5272. --check-certificate options.
  5273. * doc/aria2c.1.txt
  5274. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Updated man page
  5276. * doc/aria2c.1.txt
  5277. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Added --no-proxy option. It receives comman separated hostname or
  5279. domains to which proxy should not be used.
  5280. aria2 honors the environment variable no_proxy to override no-proxy
  5281. value in configuration file. The user can override the environment
  5282. variable no_proxy with --no-proxy command-line option.
  5283. * src/AbstractCommand.cc
  5284. * src/OptionHandlerFactory.cc
  5285. * src/option_processing.cc
  5286. * src/prefs.cc
  5287. * src/prefs.h
  5288. * src/usage_text.h
  5289. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5291. The CA certificates are specified in --ca-certificate option.
  5292. By default, the verification is disabled. Use --check-certificate
  5293. option to enable it.
  5294. * src/HttpRequestCommand.cc
  5295. * src/LibgnutlsTLSContext.cc
  5296. * src/LibgnutlsTLSContext.h
  5297. * src/LibsslTLSContext.cc
  5298. * src/LibsslTLSContext.h
  5299. * src/MultiUrlRequestInfo.cc
  5300. * src/OptionHandlerFactory.cc
  5301. * src/SocketCore.cc
  5302. * src/SocketCore.h
  5303. * src/a2functional.h
  5304. * src/message.h
  5305. * src/option_processing.cc
  5306. * src/prefs.cc
  5307. * src/prefs.h
  5308. * src/usage_text.h
  5309. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Added client certificate authentication for SSL/TLS.
  5311. Currently a private key must be decrypted for use with aria2.
  5312. If a user accidentally gives encrypted file to aria2 then following
  5313. thing happens:
  5314. If encrypted private key is given to aria2, it behaves differently
  5315. depending on the ssl library it uses. If aria2 built with openssl then
  5316. openssl prompts the user for password. If aria2 build with gnutls then
  5317. aria2 exists with error at start up.
  5318. * src/DownloadEngineFactory.cc
  5319. * src/MultiUrlRequestInfo.cc
  5320. * src/OptionHandlerFactory.cc
  5321. * src/option_processing.cc
  5322. * src/prefs.cc
  5323. * src/prefs.h
  5324. * src/usage_text.h
  5325. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Introduced TLSContext that holds TLS related data that can be shared
  5327. with multiple SSL connections.
  5328. * src/DownloadEngineFactory.cc
  5329. * src/LibgnutlsTLSContext.cc
  5330. * src/LibgnutlsTLSContext.h
  5331. * src/LibsslTLSContext.cc
  5332. * src/LibsslTLSContext.h
  5333. * src/Makefile.am
  5334. * src/SocketCore.cc
  5335. * src/SocketCore.h
  5336. * src/TLSContext.h
  5337. * src/message.h
  5338. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Fixed the bug that the DiskWriter of the first FileEntry whose
  5340. `needsFileAllocation' property is false is not created
  5341. even if it shares a piece with next FileEntry which `requested' property
  5342. is true.
  5343. Fixed the bug that zero-length file is not created if pre file
  5344. allocation is not done.
  5345. * src/MultiDiskAdaptor.cc
  5346. * src/MultiDiskAdaptor.h
  5347. * test/MultiDiskAdaptorTest.cc
  5348. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Added the ability to pool proxy connection.
  5350. The conneciton in FTP with proxy-method=GET is not pooled.
  5351. Proxy-Connection header will not be sent when sending CONNECT method.
  5352. * src/DownloadEngine.cc
  5353. * src/DownloadEngine.h
  5354. * src/FtpFinishDownloadCommand.cc
  5355. * src/FtpInitiateConnectionCommand.cc
  5356. * src/FtpNegotiationCommand.cc
  5357. * src/HttpDownloadCommand.cc
  5358. * src/HttpInitiateConnectionCommand.cc
  5359. * src/HttpRequest.cc
  5360. * src/HttpRequest.h
  5361. * src/HttpResponse.cc
  5362. * src/HttpSkipResponseCommand.cc
  5363. * test/HttpRequestTest.cc
  5364. * test/HttpResponseTest.cc
  5365. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Handle date before epoch.
  5367. To create *bad* Time object, call Time::null().
  5368. * src/CookieParser.cc
  5369. * src/FtpConnection.cc
  5370. * src/FtpConnection.h
  5371. * src/FtpNegotiationCommand.cc
  5372. * src/RequestGroup.cc
  5373. * src/TimeA2.cc
  5374. * src/TimeA2.h
  5375. * test/CookieParserTest.cc
  5376. * test/FtpConnectionTest.cc
  5377. * test/TimeTest.cc
  5378. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Added support for following envrionment variables: http_proxy,
  5380. https_proxy, ftp_proxy and all_proxy.
  5381. Each variable is equivalent to the aria2 option whose name is the
  5382. variable name with '_' replaced with '-'.
  5383. They overrides options specified in aria2.conf file.
  5384. The envrionment variables can be overrode using command-line option.
  5385. * src/option_processing.cc
  5386. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Renamed --http-proxy-method as --proxy-method.
  5388. * src/AbstractCommand.cc
  5389. * src/FtpInitiateConnectionCommand.cc
  5390. * src/HttpInitiateConnectionCommand.cc
  5391. * src/OptionHandlerFactory.cc
  5392. * src/option_processing.cc
  5393. * src/prefs.cc
  5394. * src/prefs.h
  5395. * src/usage_text.h
  5396. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5398. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5399. Above 3 options and --http-proxy option can handle proxy in URL format
  5400. like: http://user:passwd@host:port.
  5401. If a proxy requires user/password, they must be specified in a URL.
  5402. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5403. instead.
  5404. * src/AbstractCommand.cc
  5405. * src/AbstractCommand.h
  5406. * src/AbstractProxyRequestCommand.cc
  5407. * src/AbstractProxyRequestCommand.h
  5408. * src/AuthConfigFactory.cc
  5409. * src/AuthConfigFactory.h
  5410. * src/FtpFinishDownloadCommand.cc
  5411. * src/FtpInitiateConnectionCommand.cc
  5412. * src/FtpInitiateConnectionCommand.h
  5413. * src/FtpNegotiationCommand.cc
  5414. * src/FtpTunnelRequestCommand.cc
  5415. * src/FtpTunnelRequestCommand.h
  5416. * src/HttpDownloadCommand.cc
  5417. * src/HttpInitiateConnectionCommand.cc
  5418. * src/HttpInitiateConnectionCommand.h
  5419. * src/HttpProxyRequestCommand.cc
  5420. * src/HttpProxyRequestCommand.h
  5421. * src/HttpRequest.cc
  5422. * src/HttpRequest.h
  5423. * src/HttpRequestCommand.cc
  5424. * src/HttpRequestCommand.h
  5425. * src/HttpSkipResponseCommand.cc
  5426. * src/InitiateConnectionCommand.cc
  5427. * src/InitiateConnectionCommand.h
  5428. * src/OptionHandlerFactory.cc
  5429. * src/OptionHandlerImpl.h
  5430. * src/Request.cc
  5431. * src/option_processing.cc
  5432. * src/prefs.cc
  5433. * src/prefs.h
  5434. * src/usage_text.h
  5435. * test/AuthConfigFactoryTest.cc
  5436. * test/HttpRequestTest.cc
  5437. * test/OptionHandlerTest.cc
  5438. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Execute choking algorithm when unchoked and interested peer is
  5440. disconected.
  5441. * src/DefaultPeerStorage.cc
  5442. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Added testcase for BtNotInterestedMessage from unchoked peer.
  5444. * test/BtNotInterestedMessageTest.cc
  5445. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Execute choking algorithm when BtInterestedMessage arrives from
  5447. unchoked peer.
  5448. * src/BtInterestedMessage.cc
  5449. * src/BtInterestedMessage.h
  5450. * src/DefaultBtMessageFactory.cc
  5451. * test/BtInterestedMessageTest.cc
  5452. * test/MockPeerStorage.h
  5453. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. AuthConfigFactory is now part of DownloadEngine.
  5455. * src/AbstractProxyRequestCommand.cc
  5456. * src/AuthConfigFactory.h
  5457. * src/DownloadEngine.cc
  5458. * src/DownloadEngine.h
  5459. * src/FtpConnection.cc
  5460. * src/FtpConnection.h
  5461. * src/FtpNegotiationCommand.cc
  5462. * src/HttpConnection.cc
  5463. * src/HttpRequest.cc
  5464. * src/HttpRequest.h
  5465. * src/HttpRequestCommand.cc
  5466. * src/HttpResponse.cc
  5467. * src/HttpResponseCommand.cc
  5468. * src/HttpSkipResponseCommand.cc
  5469. * src/MultiUrlRequestInfo.cc
  5470. * src/main.cc
  5471. * test/FtpConnectionTest.cc
  5472. * test/HttpRequestTest.cc
  5473. * test/HttpResponseTest.cc
  5474. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Corrected catched exception type.
  5476. * src/ServerStatMan.cc
  5477. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. DNSCache is now part of DownloadEngine.
  5479. * src/DNSCache.h
  5480. * src/DownloadEngine.cc
  5481. * src/DownloadEngine.h
  5482. * src/InitiateConnectionCommand.cc
  5483. * src/MultiUrlRequestInfo.cc
  5484. * test/Makefile.am
  5485. * test/Makefile.in
  5486. * test/SimpleDNSCacheTest.cc
  5487. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5489. DownloadEngine.
  5490. * src/ActivePeerConnectionCommand.cc
  5491. * src/BtSetup.cc
  5492. * src/CUIDCounter.h
  5493. * src/DHTSetup.cc
  5494. * src/DownloadCommand.cc
  5495. * src/DownloadEngine.cc
  5496. * src/DownloadEngine.h
  5497. * src/DownloadEngineFactory.cc
  5498. * src/FileAllocationDispatcherCommand.cc
  5499. * src/InitiatorMSEHandshakeCommand.cc
  5500. * src/PeerInitiateConnectionCommand.cc
  5501. * src/PeerInteractionCommand.cc
  5502. * src/PeerListenCommand.cc
  5503. * src/RequestGroup.cc
  5504. * src/StreamFileAllocationEntry.cc
  5505. * src/TrackerWatcherCommand.cc
  5506. * src/main.cc
  5507. * test/RequestGroupManTest.cc
  5508. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Implemented commented code in BtSeederStateChoke
  5510. * src/BtSeederStateChoke.cc
  5511. * src/Peer.cc
  5512. * src/Peer.h
  5513. * src/PeerInteractionCommand.cc
  5514. * src/PeerSessionResource.cc
  5515. * src/PeerSessionResource.h
  5516. * test/MockBtMessageDispatcher.h
  5517. * test/PeerSessionResourceTest.cc
  5518. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5520. its object.
  5521. * src/AbstractBtMessage.cc
  5522. * src/ActivePeerConnectionCommand.cc
  5523. * src/ActivePeerConnectionCommand.h
  5524. * src/BtContextAwareCommand.cc
  5525. * src/BtContextAwareCommand.h
  5526. * src/BtExtendedMessage.cc
  5527. * src/BtExtendedMessage.h
  5528. * src/BtInterestedMessage.cc
  5529. * src/BtInterestedMessage.h
  5530. * src/BtNotInterestedMessage.cc
  5531. * src/BtNotInterestedMessage.h
  5532. * src/BtRegistry.cc
  5533. * src/BtRegistry.h
  5534. * src/BtSeederStateChoke.cc
  5535. * src/BtSetup.cc
  5536. * src/DHTGetPeersCommand.cc
  5537. * src/DHTGetPeersCommand.h
  5538. * src/DHTPeerAnnounceEntry.cc
  5539. * src/DHTPeerAnnounceEntry.h
  5540. * src/DHTPeerAnnounceStorage.cc
  5541. * src/DHTPeerAnnounceStorage.h
  5542. * src/DHTPeerLookupTask.cc
  5543. * src/DHTPeerLookupTask.h
  5544. * src/DHTSetup.cc
  5545. * src/DHTSetup.h
  5546. * src/DHTTaskFactory.h
  5547. * src/DHTTaskFactoryImpl.cc
  5548. * src/DHTTaskFactoryImpl.h
  5549. * src/DefaultBtAnnounce.cc
  5550. * src/DefaultBtInteractive.cc
  5551. * src/DefaultBtInteractive.h
  5552. * src/DefaultBtMessageDispatcher.cc
  5553. * src/DefaultBtMessageDispatcher.h
  5554. * src/DefaultBtMessageFactory.cc
  5555. * src/DefaultBtMessageFactory.h
  5556. * src/DefaultBtMessageReceiver.cc
  5557. * src/DefaultBtProgressInfoFile.cc
  5558. * src/DefaultBtProgressInfoFile.h
  5559. * src/DefaultBtRequestFactory.cc
  5560. * src/DefaultBtRequestFactory.h
  5561. * src/DefaultExtensionMessageFactory.cc
  5562. * src/DefaultExtensionMessageFactory.h
  5563. * src/DefaultPeerStorage.cc
  5564. * src/DefaultPeerStorage.h
  5565. * src/DownloadEngine.cc
  5566. * src/DownloadEngine.h
  5567. * src/InitiatorMSEHandshakeCommand.cc
  5568. * src/InitiatorMSEHandshakeCommand.h
  5569. * src/MSEHandshake.cc
  5570. * src/MSEHandshake.h
  5571. * src/Makefile.am
  5572. * src/Makefile.in
  5573. * src/PeerChokeCommand.cc
  5574. * src/PeerChokeCommand.h
  5575. * src/PeerInitiateConnectionCommand.cc
  5576. * src/PeerInitiateConnectionCommand.h
  5577. * src/PeerInteractionCommand.cc
  5578. * src/PeerInteractionCommand.h
  5579. * src/PeerObject.h
  5580. * src/PeerReceiveHandshakeCommand.cc
  5581. * src/PeerReceiveHandshakeCommand.h
  5582. * src/ReceiverMSEHandshakeCommand.cc
  5583. * src/RequestGroup.cc
  5584. * src/RequestGroup.h
  5585. * src/RequestGroupMan.cc
  5586. * src/RequestGroupMan.h
  5587. * src/SeedCheckCommand.cc
  5588. * src/SeedCheckCommand.h
  5589. * src/ShareRatioSeedCriteria.h
  5590. * src/SimpleBtMessage.cc
  5591. * src/TrackerWatcherCommand.cc
  5592. * src/TrackerWatcherCommand.h
  5593. * src/UTPexExtensionMessage.cc
  5594. * src/UTPexExtensionMessage.h
  5595. * test/BtCancelMessageTest.cc
  5596. * test/BtChokeMessageTest.cc
  5597. * test/BtExtendedMessageTest.cc
  5598. * test/BtInterestedMessageTest.cc
  5599. * test/BtNotInterestedMessageTest.cc
  5600. * test/BtPieceMessageTest.cc
  5601. * test/BtPortMessageTest.cc
  5602. * test/BtRegistryTest.cc
  5603. * test/BtRejectMessageTest.cc
  5604. * test/BtRequestMessageTest.cc
  5605. * test/DHTPeerAnnounceEntryTest.cc
  5606. * test/DHTPeerAnnounceStorageTest.cc
  5607. * test/DefaultBtMessageDispatcherTest.cc
  5608. * test/DefaultBtMessageFactoryTest.cc
  5609. * test/DefaultBtProgressInfoFileTest.cc
  5610. * test/DefaultBtRequestFactoryTest.cc
  5611. * test/DefaultExtensionMessageFactoryTest.cc
  5612. * test/MSEHandshakeTest.cc
  5613. * test/MockDHTTaskFactory.h
  5614. * test/ShareRatioSeedCriteriaTest.cc
  5615. * test/UTPexExtensionMessageTest.cc
  5616. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Fixed compiler warning.
  5618. * test/UtilTest.cc
  5619. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Treat Cookie object as session cookie if expiry = 0 is given.
  5621. With this change, you can specify session scoped cookies in an external
  5622. file setting expiry value to 0.
  5623. * src/Cookie.cc
  5624. * src/Cookie.h
  5625. * test/CookieParserTest.cc
  5626. * test/CookieStorageTest.cc
  5627. * test/CookieTest.cc
  5628. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Changed signature of DHTMessageFactory::createResponseMessage().
  5630. Removed unused validateIDMatch.
  5631. * src/DHTMessageFactory.h
  5632. * src/DHTMessageFactoryImpl.cc
  5633. * src/DHTMessageFactoryImpl.h
  5634. * src/DHTMessageTracker.cc
  5635. * test/DHTMessageFactoryImplTest.cc
  5636. * test/MockDHTMessageFactory.h
  5637. Dropped DHT message coming from same ID of localhost.
  5638. * src/DHTMessageReceiver.cc
  5639. Rejected adding node whose ID is the same as localhost's.
  5640. * src/DHTRoutingTable.cc
  5641. * test/BtPortMessageTest.cc
  5642. * test/DHTRoutingTableTest.cc
  5643. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Pool connection when redirection occurs with Content-Length = 0.
  5645. * src/HttpSkipResponseCommand.cc
  5646. * src/HttpSkipResponseCommand.h
  5647. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Fixed the bug that causes time out when redirection occurs with
  5649. content-length 0.
  5650. * src/HttpResponseCommand.cc
  5651. * src/HttpSkipResponseCommand.cc
  5652. * src/HttpSkipResponseCommand.h
  5653. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Now each status legends is shown only when it appears in Download
  5655. Result. If Download Result has no item, then status legend will not
  5656. be printed.
  5657. * src/RequestGroupMan.cc
  5658. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Removed duplicate creation of OptionHandlers.
  5660. * src/option_processing.cc
  5661. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Fixed the bug that causes segmentation fault when accessing files which
  5663. don't exist or are not included in --select-file option while
  5664. validating chunk checksum.
  5665. * src/MultiDiskAdaptor.cc
  5666. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Fixed compiler warning.
  5668. * test/UtilTest.cc
  5669. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5670. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5671. * src/IteratableChecksumValidator.cc
  5672. * src/IteratableChunkChecksumValidator.cc
  5673. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. * Release 0.16.2
  5675. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5676. Added Serbian translation. Updated Ukrainian translation.
  5677. Thanks to all translators.
  5678. * po/sr.po
  5679. * po/uk.po
  5680. * po/LINGUAS
  5681. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Bump up version number to 0.16.2
  5683. * configure.ac
  5684. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Added length equality test to operator== to drop a piece message
  5686. whose length does not match to the requested one.
  5687. * src/RequestSlot.cc
  5688. * test/DefaultBtMessageDispatcherTest.cc
  5689. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5691. recieved.
  5692. In this fix, if a request larger than 16KiB length is received, aria2
  5693. disconnects the peer.
  5694. * src/BtConstants.h
  5695. * src/PeerMessageUtil.cc
  5696. * src/PeerMessageUtil.h
  5697. * test/BtRequestMessageTest.cc
  5698. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. * Release 0.16.1
  5700. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5702. * doc/aria2c.1.txt
  5703. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5705. Updated French, Simplified Chinese and Japanese translations.
  5706. Thanks to all translators.
  5707. en@quot and en@boldquot are also added.
  5708. * po/LINGUAS
  5709. * po/fr.po
  5710. * po/ja.po
  5711. * po/uk.po
  5712. * po/vi.po
  5713. * po/zh_CN.po
  5714. * po/zh_TW.po
  5715. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Bump up version number to 0.16.1.
  5717. * configure.ac
  5718. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Updated README.
  5720. * README
  5721. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5723. not to replace '--' with em dash character.
  5724. * doc/aria2c.1.txt
  5725. * doc/makeman
  5726. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5728. every SEC seconds.
  5729. * src/DownloadEngineFactory.cc
  5730. * src/OptionHandlerFactory.cc
  5731. * src/option_processing.cc
  5732. * src/usage_text.h
  5733. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Fixed compile warning on linux-amd64
  5735. * src/FtpConnection.cc
  5736. * src/IteratableChunkChecksumValidator.cc
  5737. * src/MultiDiskAdaptor.cc
  5738. Fixed the bug that unit test fails on linux-amd64
  5739. * test/UtilTest.cc
  5740. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Added --dht-file-path option to change the path to dht.dat, which is a
  5742. serialized DHT routing table.
  5743. * src/OptionHandlerFactory.cc
  5744. * src/option_processing.cc
  5745. * src/usage_text.h
  5746. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Fixed possible underflow.
  5748. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5749. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Fixed the bug that last character in URI is not encoded.
  5751. * src/Request.cc
  5752. * test/RequestTest.cc
  5753. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Fixed the bug that referer header field contains fragment.
  5755. Now Request class removes fragment part of URI and encodes it
  5756. in Request::setUri() and setReferer().
  5757. * src/Request.h
  5758. * src/Request.cc
  5759. * test/RequestTest.cc
  5760. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Added missing m4 macros.
  5762. * m4/cppunit.m4
  5763. * m4/libgcrypt.m4
  5764. * m4/libgnutls-extra.m4
  5765. * m4/libgnutls.m4
  5766. * m4/libxml2.m4
  5767. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Fixed compile error with gcc-4.4(snapshot)
  5769. * src/File.cc
  5770. * src/FtpConnection.cc
  5771. * src/OptionHandlerImpl.h
  5772. * src/Util.cc
  5773. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Removed assert()
  5775. * src/SocketBuffer.cc (SocketBuffer::send)
  5776. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Changed the type of _numNewConnection to unsigned int.
  5778. * src/ActivePeerConnectionCommand.cc
  5779. * src/ActivePeerConnectionCommand.h
  5780. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. * Release 0.16.0
  5782. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Updated doc
  5784. * README
  5785. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5787. translations. Thanks to all translators.
  5788. * po/bg.po
  5789. * po/de.po
  5790. * po/fr.po
  5791. * po/ja.po
  5792. * po/zh_CN.po
  5793. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Bump up version number to 0.16.0.
  5795. * configure.ac
  5796. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5798. int32_t.
  5799. Changed the type of count to int32_t.
  5800. * src/Metalink2RequestGroup.cc
  5801. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Added test for Time::elapsed(time_t).
  5803. * test/TimeTest.cc
  5804. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5806. Util::difftv() should be used instead.
  5807. * src/TimeA2.cc
  5808. * src/TimeA2.h
  5809. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Made socket for dht connections non-blocking
  5811. * src/DHTAbstractMessage.cc
  5812. * src/DHTAbstractMessage.h
  5813. * src/DHTConnection.h
  5814. * src/DHTConnectionImpl.cc
  5815. * src/DHTConnectionImpl.h
  5816. * src/DHTMessage.h
  5817. * src/DHTMessageDispatcherImpl.cc
  5818. * src/DHTMessageDispatcherImpl.h
  5819. * src/DHTUnknownMessage.cc
  5820. * src/DHTUnknownMessage.h
  5821. * src/SocketCore.cc
  5822. * src/SocketCore.h
  5823. * test/MockDHTMessage.h
  5824. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Changed the type of offset to int.
  5826. * src/ParameterizedStringParser.cc
  5827. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Made getAsInt() return int32_t
  5829. * src/Option.h
  5830. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5832. build.
  5833. * configure.ac
  5834. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Use sqlite3_open if sqlite3_open_v2 is not available.
  5836. * src/Sqlite3MozCookieParser.cc
  5837. * src/Sqlite3MozCookieParser.h
  5838. * m4/sqlite3.m4
  5839. * test/Sqlite3MozCookieParserTest.cc
  5840. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5842. * src/BtPieceMessage.cc
  5843. * src/DHTPeerAnnounceStorage.cc
  5844. * src/DefaultPieceStorage.cc
  5845. * src/DownloadCommand.cc
  5846. * src/DownloadEngine.cc
  5847. * src/FtpConnection.cc
  5848. * src/PeerConnection.cc
  5849. * src/PeerMessageUtil.cc
  5850. * src/RequestGroup.cc
  5851. * src/RequestGroupMan.cc
  5852. * src/SimpleBtMessage.cc
  5853. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5855. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5856. * src/AbstractDiskWriter.cc
  5857. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Don't set Request::supportsPersistentConnection() in HttpConnection
  5859. since this code is also used in AbstractProxyResponseCommand.
  5860. Moved those code to HttpResponse.
  5861. * src/HttpResponse.cc
  5862. * src/HttpResponse.h
  5863. * src/HttpConnection.cc
  5864. * src/HttpConnection.h
  5865. * src/HttpResponseCommand.cc
  5866. * test/HttpResponseTest.cc
  5867. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5869. The configuration is minimum: no torrent, no metalink, so there may be
  5870. other compile error on their code.
  5871. * src/a2netcompat.h
  5872. * src/File.cc
  5873. * src/File.h
  5874. * src/SocketCore.cc
  5875. * src/SocketCore.h
  5876. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Made a socket of incoming peer non-blocking.
  5878. * src/PeerListenCommand.cc
  5879. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5881. whole message data is not sent in one send() call.
  5882. * src/BtPieceMessage.cc
  5883. * src/BtPieceMessage.h
  5884. * src/PeerConnection.cc
  5885. * src/PeerConnection.h
  5886. * src/SimpleBtMessage.cc
  5887. * src/SimpleBtMessage.h
  5888. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Fixed the bug that aria2 downloads faster than max-download-limit when
  5890. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5891. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5892. , instead of sum of them.
  5893. * src/ActivePeerConnectionCommand.cc
  5894. * src/DefaultBtInteractive.cc
  5895. * src/DownloadCommand.cc
  5896. * src/PeerInteractionCommand.cc
  5897. * src/PeerReceiveHandshakeCommand.cc
  5898. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Fixed the bug that HTTPS download fails.
  5900. * src/AbstractCommand.cc
  5901. * src/AbstractCommand.h
  5902. * src/DownloadCommand.cc
  5903. * src/FtpConnection.cc
  5904. * src/HttpConnection.cc
  5905. * src/HttpRequestCommand.cc
  5906. * src/HttpResponseCommand.cc
  5907. * src/HttpSkipResponseCommand.cc
  5908. * src/MSEHandshake.cc
  5909. * src/PeerConnection.cc
  5910. * src/SocketCore.cc
  5911. * src/SocketCore.h
  5912. Fixed the bug that aria2 doesn't download whole content body and cannot
  5913. reuse connection if chunked transfer encoding and gzip content encoding
  5914. are set.
  5915. * src/DownloadCommand.cc
  5916. * src/HttpSkipResponseCommand.cc
  5917. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Updated man page.
  5919. * doc/aria2c.1.txt
  5920. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. When error occurred while aria2 was parsing an .aria2.conf file, print
  5922. the usage of the option that caused error.
  5923. * src/option_processing.cc
  5924. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Fixed compile error on OptionHandlerException
  5926. * src/Makefile.am
  5927. * src/OptionHandlerException.cc
  5928. * src/OptionHandlerException.h
  5929. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Moved message of the error to OptionHandlerException.h
  5931. * src/NameMatchOptionHandler.h
  5932. * src/OptionHandlerException.h
  5933. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. When error occurs while aria2 is parsing an command-line option, print
  5935. the usage of the option.
  5936. * src/Makefile.am
  5937. * src/NameMatchOptionHandler.h
  5938. * src/OptionHandlerException.h
  5939. * src/option_processing.cc
  5940. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Reverted previous change.
  5942. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5943. username is not in URI.
  5944. * src/HttpRequest.cc
  5945. * src/Request.cc
  5946. * test/HttpRequestTest.cc
  5947. * test/RequestTest.cc
  5948. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Now colon is required for username and password in FTP URL, like:
  5950. ftp://username:password@host.
  5951. If colon is not there, aria2 don't parse it as a username. For example,
  5952. aria2 don't retrieve username from ftp://username@host.
  5953. This fix was made in order to login FTP server via non-transparent ftp
  5954. proxy.
  5955. * src/Request.cc
  5956. * test/RequestTest.cc
  5957. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Use netrc for HTTP.
  5959. Now FTP user/password is sent in Authorization header when
  5960. --ftp-via-http-proxy=get is given.
  5961. * src/AuthConfigFactory.cc
  5962. * src/HttpRequest.cc
  5963. * src/HttpRequest.h
  5964. * src/NetrcAuthResolver.cc
  5965. * src/NetrcAuthResolver.h
  5966. * src/OptionHandlerFactory.cc
  5967. * src/option_processing.cc
  5968. * src/prefs.cc
  5969. * src/prefs.h
  5970. * test/AuthConfigFactoryTest.cc
  5971. * test/HttpRequestTest.cc
  5972. * test/NetrcAuthResolverTest.cc
  5973. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Issue PWD command first and get working directory and use it as a prefix
  5975. for CWD command.
  5976. * src/DownloadEngine.cc
  5977. * src/DownloadEngine.h
  5978. * src/FtpConnection.cc
  5979. * src/FtpConnection.h
  5980. * src/FtpFinishDownloadCommand.cc
  5981. * src/FtpInitiateConnectionCommand.cc
  5982. * src/FtpNegotiationCommand.cc
  5983. * src/FtpNegotiationCommand.h
  5984. * test/FtpConnectionTest.cc
  5985. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Removed default user/pass for FTP user/pass, since it should not have
  5987. precedence over netrc configuration by default.
  5988. * src/OptionHandlerFactory.cc
  5989. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Added debug log for socket event.
  5991. * src/AbstractCommand.cc
  5992. * src/PeerAbstractCommand.cc
  5993. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Log microseconds.
  5995. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5996. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Replaced HelpItem.cc with OptionHandler.cc.
  5998. * po/POTFILES.in
  5999. Updated po files with 'make update-po'
  6000. * po/aria2c.pot
  6001. * po/*.po
  6002. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Removed possible values from the text.
  6004. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6005. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Removed unused preferences:
  6007. PREF_NO_PREALLOCATION
  6008. PREF_STDOUT_LOG
  6009. PREF_TRACKER_MAX_TRIES
  6010. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6011. PREF_MIN_SEGMENT_SIZE
  6012. * src/option_processing.cc
  6013. * src/prefs.cc
  6014. * src/prefs.h
  6015. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Integrated HelpItem into OptionParser to ease the workload for adding
  6017. new options. Removed default value from usage text.
  6018. * src/HelpItem.cc: Removed.
  6019. * src/HelpItem.h: Removed.
  6020. * src/HelpItemFactory.cc: Removed.
  6021. * src/HelpItemFactory.h: Removed.
  6022. * src/Makefile.am
  6023. * src/Makefile.in
  6024. * src/NameMatchOptionHandler.h
  6025. * src/OptionHandler.cc
  6026. * src/OptionHandler.h
  6027. * src/OptionHandlerFactory.cc
  6028. * src/OptionHandlerImpl.h
  6029. * src/OptionParser.cc
  6030. * src/OptionParser.h
  6031. * src/TagContainer.cc: Removed.
  6032. * src/TagContainer.h: Removed.
  6033. * src/TaggedItem.cc: Removed.
  6034. * src/TaggedItem.h: Removed.
  6035. * src/main.cc
  6036. * src/option_processing.cc
  6037. * src/usage_text.h
  6038. * src/version_usage.cc
  6039. * test/HelpItemTest.cc: Removed.
  6040. * test/Makefile.am
  6041. * test/Makefile.in
  6042. * test/OptionHandlerTest.cc
  6043. * test/OptionParserTest.cc
  6044. * test/TagContainerTest.cc: Removed.
  6045. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Moved `TransferStat stat = ...' to inside the `if' clause.
  6047. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6048. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Fixed the bug that a block in a piece is requested when same block is
  6050. already requested to the same peer in end game mode.
  6051. * src/BtRequestFactory.h
  6052. * src/DefaultBtInteractive.cc
  6053. * src/DefaultBtRequestFactory.cc
  6054. * src/DefaultBtRequestFactory.h
  6055. * src/DefaultPieceStorage.cc
  6056. * src/DefaultPieceStorage.h
  6057. * src/PieceStorage.h
  6058. * src/UnknownLengthPieceStorage.cc
  6059. * src/UnknownLengthPieceStorage.h
  6060. * test/DefaultBtRequestFactoryTest.cc
  6061. * test/DefaultPieceStorageTest.cc
  6062. * test/MockBtRequestFactory.h
  6063. * test/MockPieceStorage.h
  6064. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Removed _uploadLength and _downloadLength from PeerSessionResource
  6066. and use PeerStat::_sessionUploadLength and
  6067. PeerStat::_sessionDownloadLength.
  6068. * src/PeerSessionResource.cc
  6069. * src/PeerSessionResource.h
  6070. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Fixed the bug that prefixLength of split bucket which doesn't include
  6072. local node ID is incremented.
  6073. * src/DHTBucket.cc
  6074. * src/DHTBucket.h
  6075. * test/DHTBucketTest.cc
  6076. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Added cookies.sqlite to EXTRA_DIST
  6078. * test/Makefile.am
  6079. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Added Turkish translation. Updated French, German, Russian and
  6081. Simplified Chinese translations. Thanks to all translators.
  6082. * po/LINGUAS
  6083. * po/de.po
  6084. * po/fr.po
  6085. * po/ru.po
  6086. * po/tr.po
  6087. * po/zh_CN.po
  6088. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Added deliminating text to the beginning of the log so that one can find
  6090. where the log starts easily.
  6091. * src/main.cc
  6092. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6094. to fix compile error when async DNS is not enabled by configuration.
  6095. * src/AbstractCommand.cc
  6096. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. If establishing conneciton to a server is failed, then mark error on
  6098. its ServerStat.
  6099. Added the cause of error to log when error event occurred.
  6100. Moved message string to message.h for translation.
  6101. * src/AbstractCommand.cc
  6102. * src/AbstractCommand.h
  6103. * src/FtpNegotiationCommand.cc
  6104. * src/HttpRequestCommand.cc
  6105. * src/PeerAbstractCommand.cc
  6106. * src/message.h
  6107. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Added the function to get error message from socket.
  6109. * src/SocketCore.cc
  6110. * src/SocketCore.h
  6111. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6113. * src/RequestGroupMan.cc
  6114. * src/RequestGroupMan.h
  6115. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. If error event is received in epoll, then abort download immediately.
  6117. * src/AbstractCommand.cc
  6118. * src/Command.cc
  6119. * src/Command.h
  6120. * src/DownloadEngine.cc
  6121. * src/PeerAbstractCommand.cc
  6122. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Added usage message for --uri-selector, --server-stat-of,
  6124. --server-stat-in, --server-stat-timeout options.
  6125. * src/HelpItemFactory.cc
  6126. * src/usage_text.h
  6127. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Added upper limit of FTP response buffer. The current implementation
  6129. uses 4096bytes as a limit.
  6130. * src/FtpConnection.cc
  6131. * src/FtpConnection.h
  6132. * test/FtpConnectionTest.cc
  6133. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Use non-blocking socket for TCP communication to avoid possible
  6135. blocking due to buffer full.
  6136. * src/AbstractProxyRequestCommand.cc
  6137. * src/FtpConnection.cc
  6138. * src/FtpConnection.h
  6139. * src/FtpNegotiationCommand.cc
  6140. * src/FtpNegotiationCommand.h
  6141. * src/HttpConnection.cc
  6142. * src/HttpConnection.h
  6143. * src/HttpRequestCommand.cc
  6144. * src/InitiatorMSEHandshakeCommand.cc
  6145. * src/InitiatorMSEHandshakeCommand.h
  6146. * src/MSEHandshake.cc
  6147. * src/MSEHandshake.h
  6148. * src/Makefile.am
  6149. * src/PeerConnection.cc
  6150. * src/PeerConnection.h
  6151. * src/PeerInteractionCommand.cc
  6152. * src/PeerListenCommand.cc
  6153. * src/ReceiverMSEHandshakeCommand.cc
  6154. * src/ReceiverMSEHandshakeCommand.h
  6155. * src/SocketBuffer.cc
  6156. * src/SocketBuffer.h
  6157. * src/SocketCore.cc
  6158. * src/SocketCore.h
  6159. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Call setStatusRealtime() in constructor.
  6161. * src/RealtimeCommand.cc
  6162. * src/RealtimeCommand.h
  6163. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Call Download::setNoWait(true) to execute newly created command without
  6165. a pause.
  6166. * src/AbstractCommand.cc
  6167. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6169. found' error from HTTP/FTP server NUM times without getting single
  6170. bytes of data, then force the download to fail.
  6171. Basically aria2 tris all URIs available. So if long list of URIs are
  6172. specified in Metalink, then aria2 will take a long time to fail
  6173. eventually if all URIs are outdated. This option eases this situation
  6174. to limit the number of servers to try.
  6175. * src/FtpNegotiationCommand.cc
  6176. * src/HelpItemFactory.cc
  6177. * src/HttpResponseCommand.cc
  6178. * src/OptionHandlerFactory.cc
  6179. * src/PeerStat.h
  6180. * src/RequestGroup.cc
  6181. * src/RequestGroup.h
  6182. * src/SegmentMan.cc
  6183. * src/SegmentMan.h
  6184. * src/option_processing.cc
  6185. * src/prefs.cc
  6186. * src/prefs.h
  6187. * src/usage_text.h
  6188. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6190. response even if more than one response is in it.
  6191. * src/FtpConnection.cc
  6192. * src/FtpConnection.h
  6193. * test/FtpConnectionTest.cc
  6194. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Merged from stable-0.15
  6196. * m4/libcares.m4
  6197. Use pkg-config
  6198. * m4/sqlite3.m4
  6199. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Removed unnecessary if statement.
  6201. * src/DefaultPieceStorage.cc (initPieceStorage)
  6202. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Added --connect-timeout option to specify connect timeout in seconds.
  6204. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6205. connecting to BitTorrent peer is not controlled by this option.
  6206. * src/AbstractProxyRequestCommand.cc
  6207. * src/FtpNegotiationCommand.cc
  6208. * src/HelpItemFactory.cc
  6209. * src/HttpRequestCommand.cc
  6210. * src/OptionHandlerFactory.cc
  6211. * src/option_processing.cc
  6212. * src/prefs.cc
  6213. * src/prefs.h
  6214. * src/usage_text.h
  6215. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Added help message for -R option.
  6217. * src/HelpItemFactory.cc
  6218. * src/usage_text.h
  6219. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Added the message that the time is in local time zone.
  6221. * src/RequestGroup.cc
  6222. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Implemented the ability to get timestamp from remote FTP server using
  6224. MDTM command described in RFC3659.
  6225. * src/FtpConnection.cc
  6226. * src/FtpConnection.h
  6227. * src/FtpNegotiationCommand.cc
  6228. * src/FtpNegotiationCommand.h
  6229. * test/FtpConnectionTest.cc
  6230. * test/Makefile.am
  6231. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Implemented the ability to get timestamp from remote HTTP server and
  6233. apply it to local file. To enable this feature, --remote-time option
  6234. is added. No usage text has been written yet.
  6235. If several servers returns difference timestamp, then aria2 uses latest
  6236. one.
  6237. * src/CopyDiskAdaptor.cc
  6238. * src/CopyDiskAdaptor.h
  6239. * src/DirectDiskAdaptor.cc
  6240. * src/DirectDiskAdaptor.h
  6241. * src/DiskAdaptor.h
  6242. * src/File.cc
  6243. * src/File.h
  6244. * src/HttpHeader.cc
  6245. * src/HttpHeader.h
  6246. * src/HttpResponse.cc
  6247. * src/HttpResponse.h
  6248. * src/HttpResponseCommand.cc
  6249. * src/HttpResponseCommand.h
  6250. * src/MultiDiskAdaptor.cc
  6251. * src/MultiDiskAdaptor.h
  6252. * src/OptionHandlerFactory.cc
  6253. * src/RequestGroup.cc
  6254. * src/RequestGroup.h
  6255. * src/RequestGroupMan.cc
  6256. * src/option_processing.cc
  6257. * src/prefs.cc
  6258. * src/prefs.h
  6259. * test/CopyDiskAdaptorTest.cc
  6260. * test/FileTest.cc
  6261. * test/Makefile.am
  6262. * test/Makefile.in
  6263. * test/MultiDiskAdaptorTest.cc
  6264. * test/TestUtil.cc
  6265. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Fixed the bug that DiskWriterEntry is not created when its
  6267. FileEntry.isRequested() is false and it doesn't share a piece with
  6268. other FileEntries that are requested. This bug causes segmentation fault
  6269. in the end.
  6270. * src/MultiDiskAdaptor.cc
  6271. * src/MultiDiskAdaptor.h
  6272. * src/MultiFileAllocationIterator.cc
  6273. * test/MultiDiskAdaptorTest.cc
  6274. * test/MultiFileAllocationIteratorTest.cc
  6275. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6277. called if the number of file entries are greater than max open files.
  6278. * src/AbstractSingleDiskAdaptor.cc
  6279. * src/AbstractSingleDiskAdaptor.h
  6280. * src/DiskAdaptor.h
  6281. * src/MultiDiskAdaptor.cc
  6282. * src/MultiDiskAdaptor.h
  6283. * test/MultiDiskAdaptorTest.cc
  6284. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Added a constuctor that receives struct timeval.
  6286. Added operator<.
  6287. * src/TimeA2.cc
  6288. * src/TimeA2.h
  6289. * test/TimeTest.cc
  6290. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6292. * src/CookieParser.cc
  6293. * test/CookieParserTest.cc
  6294. * test/HttpResponseTest.cc
  6295. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Implmented the functions to parse date.
  6297. * src/TimeA2.cc
  6298. * src/TimeA2.h
  6299. * test/TimeTest.cc
  6300. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Added "Firefox3 Cookie" feature to FeatureConfig
  6302. * src/FeatureConfig.cc
  6303. * src/FeatureConfig.h
  6304. * test/FeatureConfigTest.cc
  6305. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Bump up version number to 0.16.0b
  6307. * configure.ac
  6308. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Use pkg-config if is is available.
  6310. * m4/openssl.m4
  6311. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6313. * src/BtAnnounce.h
  6314. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. If an error occurred with a URI, remove identical URI from remaining
  6316. URI list because it is likely that same error occurred in the end and it
  6317. is waste of time.
  6318. * src/AbstractCommand.cc
  6319. * src/RequestGroup.cc
  6320. * src/RequestGroup.h
  6321. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Removed wrong comment.
  6323. * src/DefaultPeerStorage.cc
  6324. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6326. Added return value of getpid() to argument of srand() to achieve more
  6327. randomized value.
  6328. * src/SimpleRandomizer.cc
  6329. * src/SimpleRandomizer.h
  6330. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Contact tracker frequently when the number of connections are 0 and
  6332. download is not finished yet.
  6333. * src/ActivePeerConnectionCommand.cc
  6334. * src/BtAnnounce.h
  6335. * src/DefaultBtAnnounce.cc
  6336. * src/DefaultBtAnnounce.h
  6337. * test/MockBtAnnounce.h
  6338. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Moved threshold values to UTPexExtensionMessage.
  6340. * src/DefaultBtInteractive.cc
  6341. * src/Peer.cc
  6342. * src/Peer.h
  6343. * src/UTPexExtensionMessage.cc
  6344. * src/UTPexExtensionMessage.h
  6345. * test/UTPexExtensionMessageTest.cc
  6346. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Added _incoming member to Peer class and made it true if the peer
  6348. initiated connection. Don't add those peer to UTPex message.
  6349. If extended handshake is received, assign _incoming to false.
  6350. * src/DefaultBtInteractive.cc
  6351. * src/HandshakeExtensionMessage.cc
  6352. * src/Peer.cc
  6353. * src/Peer.h
  6354. * src/PeerListenCommand.cc
  6355. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6357. Encoding Decoder. Removed size threshold for turning off on the fly
  6358. inflation because resulting file may or may not be inflated depending
  6359. on the file size and I think it is not expected by users.
  6360. This change fixes segmentation fault when Metalink file contains gzipped
  6361. file and its filesize is provided.
  6362. * src/HttpResponseCommand.cc
  6363. * src/HttpResponseCommand.h
  6364. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Made Cookie immutable.
  6366. * src/Cookie.cc
  6367. * src/Cookie.h
  6368. * src/CookieParser.cc
  6369. * src/CookieParser.h
  6370. * src/CookieStorage.cc
  6371. * test/CookieParserTest.cc
  6372. * test/CookieStorageTest.cc
  6373. * test/NsCookieParserTest.cc
  6374. * test/Sqlite3MozCookieParserTest.cc
  6375. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Removed CookieBox, CookieBoxFactory.
  6377. * src/CookieBox.cc
  6378. * src/CookieBox.h
  6379. * src/CookieBoxFactory.cc
  6380. * src/CookieBoxFactory.h
  6381. * src/Makefile.am
  6382. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Use CookieStorage class instead of CookieBox class.
  6384. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6385. * src/AbstractProxyRequestCommand.cc
  6386. * src/CookieStorage.cc
  6387. * src/DownloadEngine.cc
  6388. * src/DownloadEngine.h
  6389. * src/HttpConnection.cc
  6390. * src/HttpConnection.h
  6391. * src/HttpRequest.cc
  6392. * src/HttpRequest.h
  6393. * src/HttpRequestCommand.cc
  6394. * src/HttpResponse.cc
  6395. * src/HttpResponseCommand.cc
  6396. * src/HttpSkipResponseCommand.cc
  6397. * src/Makefile.am
  6398. * src/MultiUrlRequestInfo.cc
  6399. * src/Request.cc
  6400. * src/Request.h
  6401. * src/main.cc
  6402. * test/AllTest.cc
  6403. * test/CookieStorageTest.cc
  6404. * test/CookieTest.cc
  6405. * test/HttpRequestTest.cc
  6406. * test/HttpResponseTest.cc
  6407. * test/Makefile.am
  6408. * test/NsCookieParserTest.cc
  6409. * test/Sqlite3MozCookieParserTest.cc
  6410. * test/nscookietest.txt
  6411. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Updated
  6413. * test/Cookies.sqlite
  6414. * test/nscookietest.txt
  6415. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Added tests for CookieStorage::load()
  6417. * test/CookieStorageTest.cc
  6418. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Added CookieStorage class which is based on RFC2109 and manages cookies
  6420. more strictly than CookieBox and CookieBoxFactory class.
  6421. * src/CookieStorage.cc
  6422. * src/CookieStorage.h
  6423. * src/Cookie.cc
  6424. * src/Cookie.h
  6425. * test/CookieStorageTest.cc
  6426. * test/CookieTest.cc
  6427. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Fixed the bug that commands are created more than the number of pieces.
  6429. * src/RequestGroup.cc
  6430. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Fixed infinite loop bug in FTP when SIZE command failed.
  6432. * src/FtpNegotiationCommand.cc
  6433. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Removed DirectDiskAdaptorTest.h
  6435. * test/Makefile.am
  6436. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Fixed chunk checksum validation cannot detect trailing garbage data.
  6438. BUG#2074141
  6439. * src/AbstractSingleDiskAdaptor.cc
  6440. * src/AbstractSingleDiskAdaptor.h
  6441. * src/CheckIntegrityEntry.cc
  6442. * src/CheckIntegrityEntry.h
  6443. * src/DiskAdaptor.h
  6444. * src/MultiDiskAdaptor.cc
  6445. * src/MultiDiskAdaptor.h
  6446. * src/RequestGroup.cc
  6447. * test/DirectDiskAdaptorTest.cc
  6448. * test/MultiDiskAdaptorTest.cc
  6449. * test/TestUtil.cc
  6450. * test/TestUtil.h
  6451. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Bump up version number of dht.dat file to 3. In version 3 format, time
  6453. is stored in 64bit, network byte order.
  6454. New build can load old format(version 2) but it saves the file in new
  6455. format. It means once you used new build, your dht.dat becomes
  6456. incompatible with older build.
  6457. * src/DHTRoutingTableDeserializer.cc
  6458. * src/DHTRoutingTableSerializer.cc
  6459. * test/DHTRoutingTableSerializerTest.cc
  6460. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6462. * test/Makefile.am
  6463. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Bump up version number of .aria2 control file to 0001.
  6465. New aria2 can still load version 0000 file but it saves the file in
  6466. version 0001 format. It means that new aria2 can resume download
  6467. started by old aria2 but the opposite is not true.
  6468. * src/DefaultBtProgressInfoFile.cc
  6469. * src/DefaultBtProgressInfoFile.h
  6470. * test/DefaultBtProgressInfoFileTest.cc
  6471. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Added ntoh64 and hton64 as inline functions.
  6473. * src/Util.cc
  6474. * test/UtilTest.cc
  6475. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Added sqlite3 depenency and Firefox3 cookie support.
  6477. * README
  6478. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. State that firefox3 cookie is supported explicitly in the usage.
  6480. * src/usage_text.h
  6481. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Externalized message.
  6483. * src/RequestGroupMan.cc
  6484. * src/message.h
  6485. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Save temporary file first and rename to the destination on success.
  6487. Added test cases.
  6488. * src/RequestGroupMan.cc
  6489. * test/RequestGroupManTest.cc
  6490. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Fixed the bug that the number of connected peer is exceeding the limit
  6492. (55 by default) in seeding mode.
  6493. Multiplied 0.8 to _maxUploadSpeedLimit.
  6494. * src/ActivePeerConnectionCommand.cc
  6495. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Clear table item.
  6497. * src/Dictionary.cc
  6498. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Fixed error handling of lseek.
  6500. * src/AbstractDiskWriter.cc
  6501. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6503. style cookie file.
  6504. * src/usage_text.h
  6505. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6507. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6508. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6509. * src/Util.cc
  6510. * src/Util.h
  6511. * src/CookieParser.cc
  6512. * test/UtilTest.cc
  6513. * test/CookieParserTest.cc
  6514. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Separate the implementation to load old mozilla format of cookie to
  6516. NsCookieParser class.
  6517. * src/CookieBoxFactory.cc
  6518. * src/CookieBoxFactory.h
  6519. * src/NsCookieParser.cc
  6520. * src/NsCookieParser.h
  6521. * test/NsCookieParserTest.cc
  6522. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. Made parse() const
  6524. * src/Sqlite3MozCookieParser.cc
  6525. * src/Sqlite3MozCookieParser.h
  6526. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Added firefox3 cookie support based on the patch submitted by
  6528. tizianomueller.
  6529. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6530. this functionality.
  6531. * configure.ac
  6532. * m4/sqlite3.m4
  6533. * src/CookieBoxFactory.cc
  6534. * src/CookieBoxFactory.h
  6535. * src/Makefile.am
  6536. * src/Makefile.in
  6537. * src/Sqlite3MozCookieParser.cc
  6538. * src/Sqlite3MozCookieParser.h
  6539. * src/main.cc
  6540. * test/CookieBoxFactoryTest.cc
  6541. * test/Makefile.am
  6542. * test/Makefile.in
  6543. * test/Sqlite3MozCookieParserTest.cc
  6544. * test/badcookies.sqlite
  6545. * test/cookies.sqlite
  6546. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Added Danish and Greek translations.
  6548. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6549. Great thanks to all translators.
  6550. * po/LINGUAS
  6551. * po/el.po
  6552. * po/da.po
  6553. * po/es.po
  6554. * po/ca.po
  6555. * po/nn.po
  6556. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Fixed man page: --follow-bittorrent should be --follow-torrent
  6558. * doc/aria2c.1.txt
  6559. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Fixed: numCommand is less than the value specified in -C option.
  6561. * src/RequestGroup.cc
  6562. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Fixed occasional assertion failure in PieceSegment.
  6564. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6565. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6566. creation of duplicate segments and one of the segment was finished then
  6567. assertion failure was caused.
  6568. * src/SegmentMan.cc
  6569. * test/SegmentManTest.cc
  6570. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Added options to load/save the server's performance/status to a file
  6572. and the timeout to drop their data.
  6573. --server-stat-of=FILE specifies the file to which performance data
  6574. is saved.
  6575. --server-stat-if=FILE specifies the file to read previously saved
  6576. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6577. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6578. TIMEOUT is specified in seconds and the default value is 24hours.
  6579. * src/MultiUrlRequestInfo.cc
  6580. * src/OptionHandlerFactory.cc
  6581. * src/RequestGroupMan.cc
  6582. * src/RequestGroupMan.h
  6583. * src/ServerStatMan.cc
  6584. * src/ServerStatMan.h
  6585. * src/option_processing.cc
  6586. * src/prefs.cc
  6587. * src/prefs.h
  6588. * test/ServerStatManTest.cc
  6589. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6591. * src/ServerStatMan.cc
  6592. * src/ServerStatMan.h
  6593. * test/ServerStatManTest.cc
  6594. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Implemented ServerStatMan::load(...) function and its test case.
  6596. * src/ServerStat.cc
  6597. * src/ServerStat.h
  6598. * src/ServerStatMan.cc
  6599. * test/ServerStatManTest.cc
  6600. * test/ServerStatTest.cc
  6601. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Use time_t instead of int32_t. Use int64_t where milli second is
  6603. expected.
  6604. * src/TimeA2.cc
  6605. * src/TimeA2.h
  6606. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Implemented ServerStatMan::save(...) function and its test case.
  6608. * src/ServerStat.cc
  6609. * src/ServerStat.h
  6610. * src/ServerStatMan.cc
  6611. * src/ServerStatMan.h
  6612. * test/ServerStatManTest.cc
  6613. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Now aria2 uses name attribute in Metalink as local filename in
  6615. BitTorrent downloads. BUG#2033999
  6616. * src/BtContext.h
  6617. * src/BtDependency.cc
  6618. * src/DefaultBtContext.cc
  6619. * src/DefaultBtContext.h
  6620. * src/SingleFileDownloadContext.cc
  6621. * src/SingleFileDownloadContext.h
  6622. * test/BtDependencyTest.cc
  6623. * test/DefaultBtContextTest.cc
  6624. * test/MockBtContext.h
  6625. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Added AC_C_BIGENDIAN
  6627. * src/configure.ac
  6628. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Limited numCommand less than or equal to the number of piece.
  6630. * src/RequestGroup.cc
  6631. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6633. directive.
  6634. * test/DefaultPieceStorageTest.cc
  6635. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Fixed memory leak in test code
  6637. * test/AnnounceListTest.cc
  6638. * test/DefaultPeerListProcessorTest.cc
  6639. * test/DefaultPeerStorageTest.cc
  6640. * test/MetaFileUtilTest.cc
  6641. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6643. * src/DefaultPieceStorage.cc
  6644. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Initialized _directIOAllowed
  6646. * src/MultiDiskAdaptor.cc
  6647. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Fixed memory leak
  6649. * src/GZipDecoder.cc
  6650. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Fixed memory leak
  6652. * src/MetalinkParserStateMachine.cc
  6653. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Fixed memory leak
  6655. * src/Dictionary.cc
  6656. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Fixed memory leak
  6658. * src/IteratableChunkChecksumValidator.h
  6659. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Fixed unmatched malloc/free.
  6661. * src/IteratableChunkChecksumValidator.cc
  6662. * src/IteratableChecksumValidator.cc
  6663. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Removed max chunk size check. This change fixes BUG#2040169
  6665. * src/ChunkedDecoder.cc
  6666. * src/ChunkedDecoder.h
  6667. * test/ChunkedDecoderTest.cc
  6668. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Implemented download speed based URI selection algorithm.
  6670. Introduced new option --uri-selector.
  6671. If --uri-selector=feedback is given, aria2 uses download speed observed
  6672. in the previous downloads and chooses fastest server in the URI list.
  6673. Currently at most 10 URIs are considered to introduce randomeness for
  6674. finding better servers. The speed is average download speed in the
  6675. downloads.
  6676. On the other hand, if --uri-selector=inorder is given, which is default,
  6677. URI is tried in order in URI list.
  6678. The usage text for the new option has not been written yet.
  6679. * src/AbstractCommand.cc
  6680. * src/DownloadCommand.cc
  6681. * src/DownloadEngine.cc
  6682. * src/DownloadEngineFactory.cc
  6683. * src/InOrderURISelector.cc
  6684. * src/InOrderURISelector.h
  6685. * src/OptionHandlerFactory.cc
  6686. * src/PeerStat.h
  6687. * src/RequestGroup.cc
  6688. * src/RequestGroup.h
  6689. * src/RequestGroupMan.cc
  6690. * src/RequestGroupMan.h
  6691. * src/SegmentMan.cc
  6692. * src/SegmentMan.h
  6693. * src/ServerStat.cc
  6694. * src/ServerStat.h
  6695. * src/ServerStatMan.cc
  6696. * src/ServerStatMan.h
  6697. * src/ServerStatURISelector.cc
  6698. * src/ServerStatURISelector.h
  6699. * src/URISelector.h
  6700. * src/option_processing.cc
  6701. * src/prefs.cc
  6702. * src/prefs.h
  6703. * test/InOrderURISelectorTest.cc
  6704. * test/RequestGroupManTest.cc
  6705. * test/ServerStatManTest.cc
  6706. * test/ServerStatURISelectorTest.cc
  6707. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. * Release 0.15.1+2
  6709. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Bump up version number to 0.15.1+2
  6711. * configure.ac
  6712. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6714. * m4/aria2_arg.m4
  6715. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. * Release 0.15.1+1
  6717. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Bump up version number to 0.15.1+1
  6719. * configure.ac
  6720. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Fixed the bug that causes segmentaion fault when resuming download
  6722. using metalink without size tag. Reproducible only using HTTP URI.
  6723. * src/HttpResponseCommand.cc
  6724. * src/FtpNegotiationCommand.cc
  6725. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. * Release 0.15.1
  6727. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Updated Bulgarian and French translations, thanks to all translators.
  6729. * po/bg.po
  6730. * po/fr.po
  6731. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Bump up version number to 0.15.1
  6733. * configure.ac
  6734. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Avoid repeated call of gettimeofday() when calculating speed.
  6736. * src/SpeedCalc.cc
  6737. * src/SpeedCalc.h
  6738. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Removed writable check when socket's send buffer is full in BitTorrent
  6740. downloads to lower CPU usage.
  6741. * src/PeerInteractionCommand.cc
  6742. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Fixed broken gzip inflation.
  6744. Turn off segmented downloading if gzip content is smaller than or equal
  6745. to 1MiB and inflate the data on the fly, because HTTP response header
  6746. doesn't contain the length of inflated file we can't determin where
  6747. the chunk of data should be written.
  6748. On the other hand, if gzip content is larger than 1MB, then turn off
  6749. on the fly inflation, because some servers returns "content-type: gzip"
  6750. for *.tgz, *.gz files.
  6751. * src/DownloadCommand.cc
  6752. * src/HttpResponseCommand.cc
  6753. * src/HttpResponseCommand.h
  6754. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Applied tizianomueller's patch to fix compile error.
  6756. * test/BitfieldManTest.cc
  6757. * test/BtRequestMessageTest.cc
  6758. * test/DefaultBtContextTest.cc
  6759. * test/DefaultDiskWriterTest.cc
  6760. * test/DefaultPieceStorageTest.cc
  6761. * test/HttpHeaderProcessorTest.cc
  6762. * test/HttpResponseTest.cc
  6763. * test/Metalink2RequestGroupTest.cc
  6764. * test/MetalinkParserControllerTest.cc
  6765. * test/MetalinkProcessorTest.cc
  6766. * test/PeerSessionResourceTest.cc
  6767. * test/UtilTest.cc
  6768. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. * Release 0.15.0
  6770. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Reordered src files in POTFILES.in so that usage text appears first.
  6772. * po/POTFILES.in
  6773. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Bump up version number to 0.15.0
  6775. * configure.ac
  6776. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6777. Added Bulgarian translation.
  6778. Updated Catalan, Spanish, French and Japanese translations.
  6779. Thanks to all translators.
  6780. * po/LINGUAS
  6781. * po/bg.po
  6782. * po/ca.po
  6783. * po/es.po
  6784. * po/fr.po
  6785. * po/ja.po
  6786. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Updated feature list. Added libz for dependency section.
  6788. Added a description about unit testing using CppUnit.
  6789. * README
  6790. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Added a test for libz. Quoted where it is necessary.
  6792. * build_test.sh
  6793. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Added GZip to `Enabled Features' list.
  6795. * src/FeatureConfig.cc
  6796. * src/FeatureConfig.h
  6797. * test/FeatureConfigTest.cc
  6798. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6800. the transfer has not yet started.
  6801. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6802. * src/SegmentMan.cc
  6803. * src/SegmentMan.h
  6804. * test/SegmentManTest.cc
  6805. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Cache last calculated average download/upload speed.
  6807. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6808. cached value.
  6809. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6810. * src/PeerStat.h
  6811. * src/SpeedCalc.cc
  6812. * src/SpeedCalc.h
  6813. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Call parseUrl directly.
  6815. * src/Request.cc (resetUrl)
  6816. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Supported absolute/relative path in Location header field.
  6818. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6819. * src/HttpHeader.cc
  6820. * src/HttpHeader.h
  6821. * src/HttpResponse.cc
  6822. * src/HttpSkipResponseCommand.cc
  6823. * src/Request.cc
  6824. * test/HttpHeaderTest.cc
  6825. * test/HttpResponseTest.cc
  6826. * test/RequestTest.cc
  6827. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Changed help text for --load-cookie option.
  6829. * doc/aria2c.1.txt
  6830. * src/usage_text.h
  6831. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Regenerated test/Makefile.in to remove stale ChangeLog.
  6833. * test/Makefile.in
  6834. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Updated po files.
  6836. * po/aria2c.pot
  6837. * po/*.po
  6838. * po/*.gmo
  6839. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Bump up version number to 0.15.0b
  6841. * configure.ac
  6842. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Externalize messages.
  6844. * src/RequestGroupMan.cc
  6845. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6846. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Use File::exists() instead of File::isFile() to allow non-regular file
  6848. such as block special files.
  6849. * src/AbstractDiskWriter.cc
  6850. * src/MultiDiskWriter.cc
  6851. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6853. * src/gai_strerror.h
  6854. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Fixed compile error. Thanks gknauf for the patch.
  6856. * src/asctime_r.c
  6857. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Included asctime_r.h from a2time.h.
  6859. * src/a2time.h
  6860. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Added a message "aria2 doesn't verify signature" to log message when
  6862. signature file is saved.
  6863. * src/RequestGroupMan.cc
  6864. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Added the ability to save signature when download is completed if
  6866. signature is available. The filename of signature file is the path to
  6867. download file followed by ".sig". If it already exists, then signature
  6868. will not be saved.
  6869. * src/RequestGroupMan.cc
  6870. * src/Signature.cc
  6871. * test/SignatureTest.cc
  6872. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Updated the descriptions for --bt-seed-unverified.
  6874. * doc/aria2c.1
  6875. * doc/aria2c.1.html
  6876. * doc/aria2c.1.txt
  6877. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6879. that this is not going to verify files using piece hashes.
  6880. * src/HelpItemFactory.cc
  6881. * src/OptionHandlerFactory.cc
  6882. * src/RequestGroup.cc
  6883. * src/option_processing.cc
  6884. * src/prefs.cc
  6885. * src/prefs.h
  6886. * src/usage_text.h
  6887. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Added the ability to retrieve signature from Metalink file.
  6889. A retrieved signature is stored in Signature class and it is held by
  6890. DownloadContext class. Note that aria2 doesn't verify signature.
  6891. * src/DownloadContext.cc
  6892. * src/DownloadContext.h
  6893. * src/Makefile.am
  6894. * src/Makefile.in
  6895. * src/Metalink2RequestGroup.cc
  6896. * src/MetalinkEntry.cc
  6897. * src/MetalinkEntry.h
  6898. * src/MetalinkParserController.cc
  6899. * src/MetalinkParserController.h
  6900. * src/MetalinkParserStateMachine.cc
  6901. * src/MetalinkParserStateMachine.h
  6902. * src/Signature.cc
  6903. * src/Signature.h
  6904. * src/SignatureMetalinkParserState.cc
  6905. * src/SignatureMetalinkParserState.h
  6906. * src/VerificationMetalinkParserState.cc
  6907. * src/VerificationMetalinkParserState.h
  6908. * test/Metalink2RequestGroupTest.cc
  6909. * test/MetalinkParserControllerTest.cc
  6910. * test/MetalinkProcessorTest.cc
  6911. * test/test.xml
  6912. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Close DiskAdaptor after renaming file.
  6914. * src/RequestGroup.cc
  6915. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Corrected indentation
  6917. * src/DefaultBtProgressInfoFile.cc
  6918. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Moved the calls of std::ios::exceptions() inside of try-catch block
  6920. because if an error occurred in constructor of std::fstream, then
  6921. exception is thrown immediately when std::ios::exceptions() is called
  6922. which results unhandled exception and aria2c aborts.
  6923. * src/DefaultBtProgressInfoFile.cc
  6924. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Added the test for the previous change in DefaultBtContext.cc
  6926. * test/DefaultBtContextTest.cc
  6927. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Fixed the bug that causes infinite loop when the number of pieces are
  6929. fewer than allowed fast set size which is 10 by default.
  6930. * src/DefaultBtContext.cc
  6931. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Updated the descriptions for -j, -s. Added --bt-seed.
  6933. * doc/aria2c.1
  6934. * doc/aria2c.1.html
  6935. * doc/aria2c.1.txt
  6936. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6938. aria2 seeds previously downloaded files without validating piece hashs.
  6939. * src/HelpItemFactory.cc
  6940. * src/OptionHandlerFactory.cc
  6941. * src/RequestGroup.cc
  6942. * src/option_processing.cc
  6943. * src/prefs.cc
  6944. * src/prefs.h
  6945. * src/usage_text.h
  6946. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Updated DESCRIPTION of man page.
  6948. * doc/aria2c.1
  6949. * doc/aria2c.1.html
  6950. * doc/aria2c.1.txt
  6951. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6953. Don't define `struct addrinfo' when __sun is defined.
  6954. * src/getaddrinfo.h
  6955. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6957. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6958. second argument is of type `struct _stati64'. Otherwise it is defined as
  6959. `struct stat'.
  6960. * src/AbstractDiskWriter.cc
  6961. * src/File.cc
  6962. * src/File.h
  6963. * src/a2io.h
  6964. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Fixed the compile error in hurd-i386
  6966. See the original bug report:
  6967. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6968. * src/a2io.h
  6969. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Code cleanup.
  6971. * src/PeerAbstractCommand.cc
  6972. * src/PeerAbstractCommand.h
  6973. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. Removed TransferEncoding.
  6975. * src/DownloadCommand.cc
  6976. * src/DownloadCommand.h
  6977. * src/HttpResponseCommand.cc
  6978. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Updated po files.
  6980. * po/aria2c.pot
  6981. * po/*.po
  6982. * po/*.gmo
  6983. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6985. * src/A2STR.cc
  6986. * src/A2STR.h
  6987. * src/ChunkedDecoder.cc
  6988. * src/ChunkedDecoder.h
  6989. * src/ChunkedEncoding.cc: Removed
  6990. * src/ChunkedEncoding.h: Removed
  6991. * src/DownloadCommand.cc
  6992. * src/DownloadCommand.h
  6993. * src/HttpDownloadCommand.cc
  6994. * src/HttpResponse.cc
  6995. * src/HttpResponse.h
  6996. * src/HttpResponseCommand.cc
  6997. * src/HttpSkipResponseCommand.cc
  6998. * src/HttpSkipResponseCommand.h
  6999. * src/Makefile.am
  7000. * src/TransferEncoding.h: Removed
  7001. * test/ChunkedDecoderTest.cc
  7002. * test/ChunkedEncodingTest.cc: Removed
  7003. * test/HttpResponseTest.cc
  7004. * test/Makefile.am
  7005. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Use append instead of insert.
  7007. * src/GZipDecoder.cc
  7008. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Updated doc
  7010. * src/Decoder.h
  7011. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Updated usage text for -s option.
  7013. * src/usage_text.h
  7014. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7016. * src/Request.cc
  7017. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Cleaned up configure.ac.
  7019. * configure.ac
  7020. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7022. AC_ARG_ENABLE.
  7023. * configure.ac
  7024. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7026. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7027. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7028. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7029. fly and writes decoded data to a local disk.
  7030. * README
  7031. * README.html
  7032. * configure.ac
  7033. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7034. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7035. * m4/libz.m4
  7036. * src/Decoder.h
  7037. * src/DownloadCommand.cc
  7038. * src/DownloadCommand.h
  7039. * src/Exception.h
  7040. * src/GZipDecoder.cc
  7041. * src/GZipDecoder.h
  7042. * src/HttpHeader.cc
  7043. * src/HttpHeader.h
  7044. * src/HttpRequest.cc
  7045. * src/HttpRequest.h
  7046. * src/HttpResponse.cc
  7047. * src/HttpResponse.h
  7048. * src/HttpResponseCommand.cc
  7049. * src/Makefile.am
  7050. * test/GZipDecoderTest.cc
  7051. * test/HttpRequestTest.cc
  7052. * test/HttpResponseTest.cc
  7053. * test/Makefile.am
  7054. * test/Makefile.in
  7055. * test/gzip_decode_test.gz
  7056. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Clarified usage of -j option.
  7058. * src/usage_text.h
  7059. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Disabled getting size from the response of RETR.
  7061. If SIZE command failed, then disable resuming and segmented downloading.
  7062. * src/FtpConnection.cc
  7063. * src/FtpConnection.h
  7064. * src/FtpNegotiationCommand.cc
  7065. * src/FtpNegotiationCommand.h
  7066. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Use digits to find first byte of file size, which makes the intention
  7068. of the code clearer.
  7069. * src/FtpConnection.cc
  7070. Don't call validateTotalLength() when size is 0.
  7071. * src/FtpNegotiationCommand.cc
  7072. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Updated po files.
  7074. * po/aria2c.pot
  7075. * po/*.gmo
  7076. * po/*.po
  7077. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Clarified usage text for --split option.
  7079. * src/usage_text.h
  7080. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Bump up version number to 0.15.0dev. "dev" means "development"
  7082. version, which means I started the development of the next release!
  7083. * src/configure.ac
  7084. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. If FTP server returns negative response with REST raw command and
  7086. requested range is not 0, throw exception. If requested range is 0,
  7087. continue download a file from 0 byte.
  7088. * src/FtpNegotiationCommand.cc
  7089. * src/FtpNegotiationCommand.h
  7090. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Supported FTP server which don't recognize SIZE raw command.
  7092. If SIZE raw command is failed, aria2 will try to get file size
  7093. from the response of RETR raw command. If both attempts are failed,
  7094. then resuming and segmented downloading are disabled.
  7095. * src/FtpConnection.cc
  7096. * src/FtpConnection.h
  7097. * src/FtpNegotiationCommand.cc
  7098. * src/FtpNegotiationCommand.h
  7099. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. * Release 0.14.0+1
  7101. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Bump up version number to 0.14.0+1
  7103. * src/configure.ac
  7104. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Fixed the code that refers static member variable from non-static
  7106. context.
  7107. * src/DefaultPeerStorage.cc
  7108. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. * Release 0.14.0
  7110. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Added build test script
  7112. * build_test.sh
  7113. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Updated ja.po
  7115. * src/ja.po
  7116. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Bump up version number to 0.14.0
  7118. * src/configure.ac
  7119. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Updated ja.po and fr.po. Great thanks for french translators and
  7121. Sebastien WILLEMIJNS.
  7122. * po/fr.po
  7123. * po/ja.po
  7124. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Added configure option to enable/disable epoll support.
  7126. * configure.ac
  7127. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Updated man page.
  7129. * doc/aria2c.1.txt
  7130. * doc/aria2c.1
  7131. * doc/aria2c.1.html
  7132. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Added missing default value '5' to the usage of --split option.
  7134. * src/HelpItemFactory.cc
  7135. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Filled up pieces based on the number of missing blocks, rather than
  7137. simplay the number of piece * block length.
  7138. * src/BtRequestFactory.h
  7139. * src/DefaultBtInteractive.cc
  7140. * src/DefaultBtInteractive.h
  7141. * src/DefaultBtRequestFactory.cc
  7142. * src/DefaultBtRequestFactory.h
  7143. * src/Piece.cc
  7144. * src/Piece.h
  7145. * test/BitfieldManTest.cc
  7146. * test/DefaultBtRequestFactoryTest.cc
  7147. * test/MockBtRequestFactory.h
  7148. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Made _epEvents a member variable.
  7150. * src/DownloadEngine.cc
  7151. * src/DownloadEngine.h
  7152. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Cancel download if http redirect is bounded more than 20 times.
  7154. * src/AbstractCommand.cc
  7155. * src/HttpSkipResponseCommand.cc
  7156. * src/Request.cc
  7157. * src/Request.h
  7158. * test/RequestTest.cc
  7159. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Fixed unhandled exception(removed keyword `new').
  7161. * src/SocketCore.cc (initEPOLL)
  7162. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Removed visit(const MetaEntry*)
  7164. * src/MetaEntryVisitor.h:
  7165. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7166. and made them virtual.
  7167. * src/BencodeVisitor.h
  7168. * src/BencodeVisitor.cc
  7169. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Updated po files.
  7171. * po/aria2c.pot
  7172. * po/*.po
  7173. * po/*.gmo
  7174. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7176. the number of socket to watch out.
  7177. * src/PeerInteractionCommand.cc
  7178. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. When there is not enough space in disk when writing a chunk of data,
  7180. aria2 now prints the message to the console to warn user and aborts
  7181. its download. Not all downloads are canceled because some downloads
  7182. may use another disk or partition. BUG#1640332
  7183. * src/AbstractDiskWriter.cc
  7184. * src/PeerAbstractCommand.cc
  7185. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7186. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7187. setHaltRequested(true) to cancel download.
  7188. * src/PeerInteractionCommand.h
  7189. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7191. socket from int to sock_t as sockets are unsigned in Windows.
  7192. For AsyncNameResolver, DownloadEngine, I did additional modification
  7193. for the portion of the code changed according to epoll support.
  7194. I defined sock_t in a2netcompat.h to use sock_t without including
  7195. SocketCore.h.
  7196. * src/AsyncNameResolver.cc
  7197. * src/AsyncNameResolver.h
  7198. * src/DownloadEngine.cc
  7199. * src/DownloadEngine.h
  7200. * src/SocketCore.cc
  7201. * src/SocketCore.h
  7202. * src/a2netcompat.h
  7203. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7205. changes in the patch were applied.
  7206. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7207. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7208. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7209. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7211. a2io.h and common.h were modified.
  7212. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7213. MinGW.
  7214. * src/common.h: Changed off_t to 64 bit in MinGW.
  7215. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7217. only a2netcompat.h is modified.
  7218. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7219. directives.
  7220. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7222. only gai_strerror.h is modified.
  7223. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7224. winsock errors in MinGW.
  7225. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7227. follow sources are applied.
  7228. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7229. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7230. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7231. I included locale.h from Platform.cc.
  7232. * src/main.cc: Moved common setup/teardown code to Platform class.
  7233. * test/AllTest.cc: Use Platform class.
  7234. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7235. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7237. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7238. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7239. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7241. aria2-0.13.2+1-mingw-2.patch.
  7242. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7243. systems which don't have termious.h. I moved the directive inside of
  7244. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7245. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7246. anyway.
  7247. * src/asctime_r.h
  7248. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7249. I added 2nd argument to the prototype declaration.
  7250. * src/StringFormat.cc: Get rid of vasprintf.
  7251. * src/getaddrinfo.h: Fixed constants.
  7252. * configure.ac: Added the check for asctime_r function.
  7253. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7254. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Added writable test for Socket when the sending message is in progress.
  7256. Usually the sending message is piece message. Without wriable check,
  7257. upload latency is dropped to more than 1sec.
  7258. * src/PeerInteractionCommand.cc
  7259. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Create only requested files and files which shares a piece with
  7261. requested file in multi-torrent downloads. Directory structures are
  7262. also created in the same rule.
  7263. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7264. DiskWriterEntry as in the previous implementation.
  7265. * src/MultiDiskWriter.cc
  7266. * src/MultiFileAllocationIterator.cc
  7267. * src/MultiFileAllocationIterator.h
  7268. * test/MultiFileAllocationIteratorTest.cc
  7269. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Commented out -lprofiler
  7271. * src/Makefile.am
  7272. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Bump up version number to 0.14.0b.
  7274. * src/configure.ac
  7275. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Actively establish connection to peers in seeding, when peer cache
  7277. is not full and max upload speed limit is not reached.
  7278. * src/ActivePeerConnectionCommand.cc
  7279. * src/ActivePeerConnectionCommand.h
  7280. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7282. to make room more fleshy, recently found peers.
  7283. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7284. it.
  7285. * src/DefaultPeerStorage.cc
  7286. * test/DefaultPeerStorageTest.cc
  7287. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. Returns cached data only when the previous receiveHandshake() is called
  7289. with peek = true.
  7290. * src/PeerConnection.cc (receiveHandshake)
  7291. * src/PeerConnection.h (receiveHandshake)
  7292. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Changed default value of -s option from 1 to 5.
  7294. Also max value of -s option is changed from 5 to 16.
  7295. * src/HelpItemFactory.cc
  7296. * src/OptionHandlerFactory.cc
  7297. * src/option_processing.cc
  7298. * src/usage_text.h
  7299. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Changed -s options behavior. Now it means the number of connections
  7301. made simultaneously in each http/ftp download.
  7302. If 1 URL is specified, the behavior is the same with old implementation.
  7303. If -s N is given and more than N URLs are specified, first N URLs are
  7304. used and remaining URLs are used for backup. If less than N URLs are
  7305. specified, some of URLs are used more than once so that totally N
  7306. connections are made simultaneously.
  7307. * src/main.cc
  7308. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Included missing iosfwd or ostream header.
  7310. * src/RequestGroupMan.cc
  7311. * src/TaggedItem.cc
  7312. * src/TaggedItem.h
  7313. * src/Util.cc
  7314. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7316. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7317. * src/HttpConnection.cc: Included missing sstream.
  7318. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Added --bt-max-open-files option.
  7320. * src/DefaultPieceStorage.cc
  7321. * src/HelpItemFactory.cc
  7322. * src/MultiDiskAdaptor.cc
  7323. * src/MultiDiskAdaptor.h
  7324. * src/OptionHandlerFactory.cc
  7325. * src/option_processing.cc
  7326. * src/prefs.cc
  7327. * src/prefs.h
  7328. * src/usage_text.h
  7329. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Fixed the bug that aria2 aborts when a path to a directory is given
  7331. in command-line.
  7332. * src/ProtocolDetector.cc
  7333. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Limited the number files opened in each BitTorrent download. The default
  7335. value is 100. The option to change this value will be added.
  7336. * src/MultiDiskAdaptor.cc
  7337. * src/MultiDiskAdaptor.h
  7338. * src/MultiFileAllocationIterator.cc
  7339. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Fixed the bug that HTTP downloads don't start with old libraries.
  7341. * src/HttpHeaderProcessor.cc
  7342. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Use empty() instead of size() > 0.
  7344. * src/HttpConnection.cc
  7345. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Drop connection if the incoming peer ID is the same with localhost's
  7347. one. The previous implementation drops connection when incoming peer's
  7348. IP address is the same with localhost's one.
  7349. * src/PeerListenCommand.cc
  7350. * src/DefaultBtInteractive.cc
  7351. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Returns cached data without checking whether socket is readable
  7353. if the cache is available.
  7354. * src/PeerConnection.cc (receiveHandshake)
  7355. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Included stdint.h
  7357. * src/common.h
  7358. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Removed duplicate HAVE_GETTIMEOFDAY
  7360. * src/Makefile.am
  7361. * src/Makefile.in
  7362. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Use interval as a minInterval when minInterval is not supplied.
  7364. * src/DefaultBtAnnounce.cc
  7365. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7367. attempt is failed, then 2nd attempt get kicked out more quickly.
  7368. And it is now static const member of DefaultBtAnnounce.
  7369. * src/DefaultBtAnnounce.h
  7370. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7372. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7373. * src/ActivePeerConnectionCommand.cc
  7374. * src/BtConstants.h
  7375. * src/BtRuntime.h
  7376. * src/DHTGetPeersCommand.cc
  7377. * src/DefaultBtAnnounce.cc
  7378. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7379. BtRuntime::MAX_PEERS.
  7380. * src/DefaultPeerStorage.h
  7381. * src/InitiatorMSEHandshakeCommand.cc
  7382. * src/PeerInitiateConnectionCommand.cc
  7383. * src/PeerInteractionCommand.cc
  7384. * src/PeerReceiveHandshakeCommand.cc
  7385. * src/TrackerWatcherCommand.cc
  7386. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Always Connect to _numNewConnection
  7388. * src/ActivePeerConnectionCommand.cc
  7389. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Made `begin' unsigned int.
  7391. * src/GrowSegment.h
  7392. * src/Piece.cc
  7393. * src/Piece.h
  7394. * src/PiecedSegment.cc
  7395. * src/PiecedSegment.h
  7396. * src/Segment.h
  7397. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Calculate piece hash when data is arrived if the data is arrived in
  7399. order. This removes additional read operation for hash calculation.
  7400. If the data is arrived in out of order, the hash is calucated when the
  7401. piece is completed. This is the same behavior as the old implementation.
  7402. * src/BtPieceMessage.cc
  7403. * src/DefaultBtProgressInfoFile.cc
  7404. * src/DefaultPieceStorage.cc
  7405. * src/DownloadCommand.cc
  7406. * src/DownloadCommand.h
  7407. * src/DownloadEngine.cc
  7408. * src/GrowSegment.cc
  7409. * src/GrowSegment.h
  7410. * src/Piece.cc
  7411. * src/Piece.h
  7412. * src/PiecedSegment.cc
  7413. * src/PiecedSegment.h
  7414. * src/Segment.h
  7415. * test/PieceTest.cc
  7416. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Try to keep the ordering of outgoing piece message.
  7418. * src/DefaultBtMessageDispatcher.cc
  7419. (DefaultBtMessageDispatcher::sendMessages)
  7420. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Fixed busy loop when error/hup epoll events occur.
  7422. * src/AbstractCommand.cc
  7423. * src/PeerAbstractCommand.cc
  7424. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Added --bt-request-peer-speed-limit option, which was a constant
  7426. SLOW_SPEED_THRESHOLD.
  7427. * src/ActivePeerConnectionCommand.cc
  7428. * src/ActivePeerConnectionCommand.h
  7429. * src/BtConstants.h
  7430. * src/HelpItemFactory.cc
  7431. * src/OptionHandlerFactory.cc
  7432. * src/PeerReceiveHandshakeCommand.cc
  7433. * src/option_processing.cc
  7434. * src/prefs.cc
  7435. * src/prefs.h
  7436. * src/usage_text.h
  7437. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Removed repeated call of getTopDirPath(). Instead, call it once and
  7439. cache the result.
  7440. * src/MultiDiskAdaptor.cc
  7441. * src/MultiDiskAdaptor.h
  7442. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7443. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Fixed compile error on debian etch.
  7445. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7446. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7447. it is undefined.
  7448. * src/Util.cc (ULLONG_MAX)
  7449. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Added epoll support. Use epoll if it is available. If not, use select.
  7451. When async dns is enabled in compile time, epoll support is enabled
  7452. only when aria2 is built with c-ares. This condition statement is
  7453. defined in a2io.h.
  7454. Currently aria2 supports both c-ares and ares, but ares is maintained
  7455. for quite a while and debian already has c-ares package, ares support
  7456. will be dropped in the future version.
  7457. * configure.ac
  7458. * src/AbstractCommand.cc
  7459. * src/AsyncNameResolver.cc
  7460. * src/AsyncNameResolver.h
  7461. * src/Command.cc
  7462. * src/Command.h
  7463. * src/DownloadEngine.cc
  7464. * src/DownloadEngine.h
  7465. * src/PeerAbstractCommand.cc
  7466. * src/SocketCore.cc
  7467. * src/SocketCore.h
  7468. * src/a2io.h
  7469. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7471. directive.
  7472. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Do not do write operation to /dev/null file.
  7474. * src/LogFactory.cc
  7475. * src/SimpleLogger.cc
  7476. Replaced vasprintf with vsnprintf
  7477. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7478. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. * src/BtRequestMessage.cc
  7480. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7481. for segmentation fault caused by previous commit.
  7482. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Reduced the usage of gettimeofday().
  7484. * src/DefaultBtMessageDispatcher.cc
  7485. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7486. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7487. * src/RequestSlot.cc
  7488. * src/RequestSlot.h
  7489. (RequestSlot::isTimeout)
  7490. Made RequestSlot have a reference to Piece object to avoid find
  7491. Piece repeatedly.
  7492. * src/DefaultBtMessageDispatcher.cc
  7493. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7494. * src/RequestSlot.cc
  7495. * src/RequestSlot.h
  7496. (RequestSlot::getPiece)
  7497. * test/DefaultBtMessageDispatcherTest.cc
  7498. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. * src/TimeA2.cc
  7500. * src/TimeA2.h
  7501. (Time::difference): New function.
  7502. (Time::elapsed): Done optimization.
  7503. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7505. directive.
  7506. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. * src/option_processing.cc: Added missing `defined' keyword to #if
  7508. directive.
  7509. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Bump up version number to 0.13.2+1
  7511. * src/configure.ac
  7512. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Refactored broken outstanding piece handling.
  7514. * src/DefaultPieceStorage.cc
  7515. * src/DefaultPieceStorage.h
  7516. * src/Piece.cc
  7517. * src/Piece.h
  7518. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7520. name collision of static variable and predefined macro.
  7521. * src/BtContext.cc
  7522. * src/BtContext.h
  7523. * src/CookieBoxFactory.cc
  7524. * src/CookieBoxFactory.h
  7525. * src/CookieParser.cc
  7526. * src/CookieParser.h
  7527. * src/DefaultBtContext.cc
  7528. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. * src/RequestGroup.cc
  7530. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7531. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. * Release 0.13.2
  7533. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7535. * po/fr.po
  7536. * po/ja.po
  7537. * po/aria2c.pot
  7538. * po/*.po
  7539. * po/*.gmo
  7540. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Bump up version number to 0.13.2
  7542. * src/configure.ac
  7543. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Refactord.
  7545. * src/RequestGroupMan.cc
  7546. (removeStoppedGroup)
  7547. (fillRequestGroupFromReserver)
  7548. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Fixed compile error on Ubuntu.
  7550. * src/BtPieceMessage.cc
  7551. * src/MessageDigestHelper.cc
  7552. * src/Util.cc
  7553. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Fixed compile error when configured with --disable-bittorrent
  7555. * test/DownloadHandlerFactoryTest.cc
  7556. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Done make update-po
  7558. * po/aria2c.pot
  7559. * po/*.po
  7560. * po/*.gmo
  7561. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Bump up version number to 0.13.2rc.
  7563. * src/configure.ac
  7564. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Made option name bold. Updated SYNOPSIS to make it more readable.
  7566. * doc/aria2c.1.txt
  7567. * doc/aria2c.1
  7568. * doc/aria2c.1.html
  7569. * src/version_usage.cc
  7570. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Refactored. Use std::string instead of size and char*.
  7572. * Data.cc
  7573. * Data.h
  7574. * test/Data.cc
  7575. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Added trimSelf(). Rewritten trim() to use trimSelf().
  7577. * Util.cc
  7578. * Util.h
  7579. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7581. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Fixed compile error when configured with --disable-metalink.
  7583. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7584. * test/FeatureConfigTest.cc
  7585. * test/DownloadHandlerFactoryTest.cc
  7586. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Fixed compile error when configured with --without-gnutls
  7588. --without-openssl
  7589. * src/main.cc
  7590. * test/DefaultBtProgressInfoFileTest.cc
  7591. * test/SegmentManTest.cc
  7592. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Fixed compile error with OpenSSL.
  7594. * src/IteratableChunkChecksumValidator.cc
  7595. * src/LibsslDHKeyExchange.h
  7596. * src/MessageDigestHelper.cc
  7597. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Revert the default value of --max-concurrent-downloads to 5.
  7599. Revert the default value of --metalink-servers to 5.
  7600. Man pages was also updated.
  7601. * src/option_processing.cc
  7602. * doc/aria2c.1.txt
  7603. * doc/aria2c.1.html
  7604. * doc/aria2c.1
  7605. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Returns const reference:
  7607. DownloadContext::getPieceHash, DownloadContext::getName,
  7608. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7609. BtContext::getInfoHashAsString,
  7610. * src/BtContext.h
  7611. * src/DefaultBtContext.cc
  7612. * src/DefaultBtContext.h
  7613. * src/DownloadContext.h
  7614. * src/SingleFileDownloadContext.h
  7615. * test/MockBtContext.h
  7616. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. * src/RequestGroup.h (getDir): Removed.
  7618. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Returns const reference. The internal urlencode function was optimized
  7620. a little bit.
  7621. * src/Request.cc
  7622. * src/Request.h
  7623. * src/HttpRequest.cc
  7624. * src/HttpRequest.h
  7625. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Defined option name and possible values as std::string to reduce
  7627. temporary string object creation in runtime.
  7628. * src/HelpItemFactory.cc
  7629. * src/LogFactory.cc
  7630. * src/Option.cc
  7631. * src/OptionHandlerFactory.cc
  7632. * src/option_processing.cc
  7633. * src/prefs.cc
  7634. * src/prefs.h
  7635. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Return const reference.
  7637. * src/DownloadHandlerConstants.cc
  7638. * src/DownloadHandlerConstants.h
  7639. (getMetalinkExtensions)
  7640. (getMetalinkContentTypes)
  7641. (getBtExtensions)
  7642. (getBtContentTypes)
  7643. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. * src/HttpHeader.cc (get): Rewritten.
  7645. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Make HttpHeader::getFirst(...) return const reference.
  7647. * src/HttpHeader.cc
  7648. * src/HttpHeader.h
  7649. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7651. it with V_TRUE.
  7652. * src/DefaultPieceStorage.cc
  7653. * src/DownloadCommand.cc
  7654. * src/FtpNegotiationCommand.cc
  7655. * src/HttpRequest.cc
  7656. * src/InitiateConnectionCommand.cc
  7657. * src/RequestGroup.cc
  7658. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Made Option::get(...) return const reference of std::string.
  7660. * src/Option.cc
  7661. * src/Option.h
  7662. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Replaced std:copy with insert.
  7664. * src/DefaultBtMessageDispatcher.cc
  7665. * src/DefaultPieceStorage.cc
  7666. * src/DownloadEngineFactory.cc
  7667. * src/RequestGroup.cc
  7668. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Included SocketCore.h to fix compiler warning.
  7670. * src/InitiateConnectionCommand.cc
  7671. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Put piece selection strategy algorithm to RarestPieceSelector class,
  7673. Added a switch to choose whether randomized selection so that unit
  7674. tests emit same results in, possibly, win32.
  7675. * src/DefaultPieceStorage.cc
  7676. * src/DefaultPieceStorage.h
  7677. * src/RarestPieceSelector.cc
  7678. * src/RarestPieceSelector.h
  7679. * test/DefaultPieceStorageTest.cc
  7680. * test/RarestPieceSelectorTest.cc
  7681. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Don't pool connection if HTTP proxy is enabled.
  7683. * src/FtpFinishDownloadCommand.cc
  7684. * src/FtpNegotiationCommand.cc
  7685. * src/HttpSkipResponseCommand.cc
  7686. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7688. * src/AbstractCommand.cc
  7689. * src/AbstractCommand.h
  7690. * src/ActivePeerConnectionCommand.cc
  7691. * src/FtpInitiateConnectionCommand.cc
  7692. * src/HttpInitiateConnectionCommand.cc
  7693. * src/InitiateConnectionCommandFactory.cc
  7694. * src/PeerAbstractCommand.cc
  7695. * src/PeerAbstractCommand.h
  7696. * src/PeerInitiateConnectionCommand.cc
  7697. * src/TrackerWatcherCommand.cc
  7698. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Sort RequestSlot in ascending order and manipulate them using
  7700. lower_bound.
  7701. * src/DefaultBtMessageDispatcher.cc
  7702. * src/DefaultBtMessageDispatcher.h
  7703. (getMessageQueue): Added const qualifier.
  7704. (getRequestSlots): Added const qualifier.
  7705. (sendMessages): Use empty() instead of size().
  7706. (doCancelSendingPieceAction): Use HandleEvent object.
  7707. (doAbortOutstandingRequestAction): Rewritten.
  7708. (doChokedAction): Rewritten.
  7709. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7710. (isOutstandingRequest): Rewritten.
  7711. (getOutstandingRequest): Rewritten.
  7712. (removeOutstandingRequest): Rewritten.
  7713. (addOutstandingRequest): Rewritten.
  7714. * src/RequestSlot.cc
  7715. * src/RequestSlot.h
  7716. (operator=): Rewritten.
  7717. (operator!=): New function.
  7718. (operator<): New function.
  7719. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. * src/DefaultBtRequestFactory.cc
  7721. (doChokedAction): Rewritten.
  7722. (removeCompletedPiece): Rewritten.
  7723. (removeTargetPiece): Rewritten.
  7724. (createRequestMessages): Added the debug log.
  7725. (createRequestMessagesOnEndGame: Added the debug log.
  7726. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Added the debug log message.
  7728. * src/BtPieceMessage.cc (doReceivedAction)
  7729. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7731. used lower_bound to process them rather than linear search.
  7732. * src/DHTPeerAnnounceStorage.cc
  7733. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7735. peer has at least one completed piece.
  7736. * src/Peer.cc
  7737. * src/Peer.h
  7738. * src/PeerInteractionCommand.cc
  7739. * src/PeerSessionResource.cc
  7740. * src/PeerSessionResource.h
  7741. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Removed unnecessary sorting
  7743. * src/DefaultPieceStorage (DefaultPieceStorage)
  7744. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Rewritten the portion of the code that mangaes allowed fast indexes.
  7746. * src/PeerSessionResource.cc
  7747. * src/PeerSessionResource.h
  7748. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Removed the invalid string including '\r' from ru.po and
  7750. did make update-po.
  7751. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Added --log-level and --summary-interval to man page.
  7753. * doc/aria2c.1.txt
  7754. * doc/aria2c.1.html
  7755. * doc/aria2c.1
  7756. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Added --log-level option to specify log level. Log messages under
  7758. the specified level are not output. Default value is `debug'.
  7759. * src/HelpItemFactory.cc
  7760. * src/LogFactory.cc
  7761. * src/LogFactory.h
  7762. * src/Logger.h
  7763. * src/OptionHandlerFactory.cc
  7764. * src/SimpleLogger.cc
  7765. * src/SimpleLogger.h
  7766. * src/main.cc
  7767. * src/option_processing.cc
  7768. * src/prefs.h
  7769. * src/usage_text.h
  7770. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Print download progress summary of all parallel downloads in specified
  7772. interval, default 60 secs. While aria2 could download several files
  7773. in parallel (see -j option), it displayed just first download progress,
  7774. and the other downloads are hidden from the users. This new feature
  7775. prints all downloads currently in-progress to the console so that you
  7776. can check the status of all downloads. The interval can be adjusted
  7777. by --summary-interval option.
  7778. The progress readout is now cut so that all fits in the one line of
  7779. console.
  7780. * src/ConsoleStatCalc.cc
  7781. * src/ConsoleStatCalc.h
  7782. * src/HelpItemFactory.cc
  7783. * src/OptionHandlerFactory.cc
  7784. * src/RequestGroupMan.cc
  7785. * src/RequestGroupMan.h
  7786. * src/main.cc
  7787. * src/option_processing.cc
  7788. * src/prefs.h
  7789. * src/usage_text.h
  7790. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7792. * src/DownloadEngine.cc (DownloadEngine)
  7793. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7795. defined.
  7796. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7797. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Use erase+lower_bound+insert instead of sort.
  7799. * src/DefaultPieceStorage.cc (addPieceStats)
  7800. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7802. * src/A2STR.cc
  7803. * src/A2STR.h
  7804. * src/OptionParser.cc (parse)
  7805. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Defined fake filename `[tracker.announce]' as static const std::string.
  7807. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7808. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Defined default filename `index.html' as static const std::string
  7810. * src/SingleFileDownloadContext.cc
  7811. * src/SingleFileDownloadContext.h
  7812. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Defined "[MEMORY]" as static const std::string.
  7814. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7815. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Defined control file's version number as static const std::string.
  7817. * src/DefaultBtProgressInfoFile.cc
  7818. * src/DefaultBtProgressInfoFile.h
  7819. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Use Request::METHOD_GET
  7821. * src/RequestGroup.cc (createNextCommandWithAdj)
  7822. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Defined "OK", "ERR", "INPR" as static const std::string
  7824. * src/RequestGroupMan.cc (showDownloadResults)
  7825. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Defined default client used in extended handshake as static const
  7827. std::string
  7828. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7829. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7831. * src/HttpConnection.cc (eraseConfidentialInfo)
  7832. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Defined default ftp user and password as static const std::string
  7834. * src/AuthConfigFactory.cc
  7835. * src/AuthConfigFactory.h
  7836. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Defined strings used in netrc as static const std::string
  7838. * src/Netrc.cc
  7839. * src/Netrc.h
  7840. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Defined HTTP status as static const std::string
  7842. * src/AbstractProxyResponseCommand.cc
  7843. * src/HttpHeader.cc
  7844. * src/HttpHeader.h
  7845. * src/HttpResponse.cc
  7846. * src/HttpResponseCommand.cc
  7847. * src/HttpSkipResponseCommand.cc
  7848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. Defined "\r\n", "A", "I" as static const std::string
  7850. * src/A2STR.cc
  7851. * src/A2STR.h
  7852. * src/FtpConnection.cc
  7853. * src/FtpConnection.h
  7854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7855. Added COLON_C(".") and used it in Request::parseUrl()
  7856. * src/A2STR.cc
  7857. * src/A2STR.h
  7858. * src/Request.cc (parseUrl)
  7859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Changed the type of padName from `const std::string&' to `const char*'.
  7861. * src/MSEHandshake.cc (verifyPadLength)
  7862. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Defined "sha1" as static const std::string.
  7864. * src/MetalinkParserController.cc
  7865. * src/MetalinkParserController.h
  7866. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Defined message digest algorithm name as static const std::string
  7868. * src/DHTTokenTracker.cc
  7869. * src/DHTUtil.cc
  7870. * src/DefaultBtContext.cc
  7871. * src/MSEHandshake.cc
  7872. * src/MessageDigestHelper.cc
  7873. * src/Peer.cc
  7874. * src/messageDigest.cc
  7875. * src/messageDigest.h
  7876. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Made string literals used in SAX parser static const std::string.
  7878. * src/FileMetalinkParserState.cc
  7879. * src/FileMetalinkParserState.h
  7880. * src/FilesMetalinkParserState.cc
  7881. * src/FilesMetalinkParserState.h
  7882. * src/InitialMetalinkParserState.cc
  7883. * src/InitialMetalinkParserState.h
  7884. * src/MetalinkMetalinkParserState.cc
  7885. * src/MetalinkMetalinkParserState.h
  7886. * src/PiecesMetalinkParserState.cc
  7887. * src/PiecesMetalinkParserState.h
  7888. * src/ResourcesMetalinkParserState.cc
  7889. * src/ResourcesMetalinkParserState.h
  7890. * src/VerificationMetalinkParserState.cc
  7891. * src/VerificationMetalinkParserState.h
  7892. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7894. * src/A2STR.cc
  7895. * src/A2STR.h
  7896. * src/File.cc
  7897. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Defined static const std::string IP("ip"), PORT("port") and use them
  7899. instead of string literals.
  7900. * src/DefaultPeerListProcessor.cc
  7901. * src/DefaultPeerListProcessor.h
  7902. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Made string literals for torrent file processing static const
  7904. std::string.
  7905. * src/BtContext.cc
  7906. * src/BtContext.h
  7907. * src/DefaultBtContext.cc
  7908. * src/DefaultBtContext.h
  7909. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Made string literal for tracker response static const std::string
  7911. * src/BtAnnounce.cc
  7912. * src/BtAnnounce.h
  7913. * src/DefaultBtAnnounce.cc
  7914. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Use DHTMessage::T instead of "t".
  7916. * src/DHTMessageTracker.cc (messageArrived)
  7917. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Made keyName static const. Made trimmed charset static const
  7919. std::string.
  7920. * src/Util.cc (getContentDispositionFilename)
  7921. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Made USER_AGENT const. Made "/" static const std::string.
  7923. * src/A2STR.cc
  7924. * src/A2STR.h
  7925. * src/HttpRequest.cc
  7926. * src/HttpRequest.h
  7927. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Made string listeral to static const std::string:
  7929. "Content-Range", "Content-Length"
  7930. * src/HttpHeader.cc
  7931. * src/HttpHeader.h
  7932. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Made string listeral to static const std::string.
  7934. * src/HttpConnection.cc
  7935. * src/HttpHeader.cc
  7936. * src/HttpHeader.h
  7937. * src/HttpResponse.cc
  7938. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7939. Made string listeral to static const std::string.
  7940. * src/A2STR.cc
  7941. * src/A2STR.h
  7942. * src/SimpleLogger.cc
  7943. * src/SimpleLogger.h
  7944. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Made string literal to static const std::string.
  7946. Rewritten CookieParser::setField.
  7947. * src/A2STR.cc
  7948. * src/A2STR.h
  7949. * src/CookieBoxFactory.cc
  7950. * src/CookieBoxFactory.h
  7951. * src/CookieParser.cc
  7952. * src/CookieParser.h
  7953. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Made string literal to static const std::string
  7955. * src/DHTAbstractMessage.cc
  7956. * src/DHTAnnouncePeerMessage.cc
  7957. * src/DHTAnnouncePeerMessage.h
  7958. * src/DHTAnnouncePeerReplyMessage.cc
  7959. * src/DHTAnnouncePeerReplyMessage.h
  7960. * src/DHTFindNodeMessage.cc
  7961. * src/DHTFindNodeMessage.h
  7962. * src/DHTFindNodeReplyMessage.cc
  7963. * src/DHTFindNodeReplyMessage.h
  7964. * src/DHTGetPeersMessage.cc
  7965. * src/DHTGetPeersMessage.h
  7966. * src/DHTGetPeersReplyMessage.cc
  7967. * src/DHTGetPeersReplyMessage.h
  7968. * src/DHTMessage.cc
  7969. * src/DHTMessage.h
  7970. * src/DHTMessageFactoryImpl.cc
  7971. * src/DHTMessageReceiver.cc
  7972. * src/DHTPingMessage.cc
  7973. * src/DHTPingMessage.h
  7974. * src/DHTPingReplyMessage.cc
  7975. * src/DHTPingReplyMessage.h
  7976. * src/DHTQueryMessage.cc
  7977. * src/DHTQueryMessage.h
  7978. * src/DHTResponseMessage.cc
  7979. * src/DHTResponseMessage.h
  7980. * src/DHTUnknownMessage.cc
  7981. * src/DHTUnknownMessage.h
  7982. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Made string literal to static const std::string
  7984. * src/BtChokeMessage.cc (toString)
  7985. * src/BtHaveAllMessage.cc (toString)
  7986. * src/BtHaveNoneMessage.cc (toString)
  7987. * src/BtInterestedMessage.cc (toString)
  7988. * src/BtNotInterestedMessage.cc (toString)
  7989. * src/BtUnchokeMessage.cc (toString)
  7990. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Replaced "" with static const variable A2STR::NIL.
  7992. Replaced string comparison against "" with std::string::empty().
  7993. Added PROTO_* to Request class and use them as a protocol string
  7994. constant.
  7995. Made "started", "stopped", "completed" static const variable in
  7996. AnnounceList class.
  7997. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Updated translations. Great thanks to translators.
  7999. * po/ca.po
  8000. * po/de.po
  8001. * po/fr.po
  8002. * po/it.po
  8003. * po/ja.po
  8004. * po/ru.po
  8005. * po/zh_CN.po
  8006. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Updated man page; categorized options and fixed typo.
  8008. * doc/aria2c.1.txt
  8009. * doc/aria2c.1.html
  8010. * doc/aria2c.1
  8011. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Removed const ref
  8013. * src/MetalinkEntry.cc (AddProtocolPreference)
  8014. * src/RequestGroup.cc (FindServerHostByHostname)
  8015. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Rewritten Accept-Features handling.
  8017. * src/HttpRequestCommand.cc (createHttpRequest)
  8018. * src/a2functional.h
  8019. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Changed method signature:
  8021. DHTAbstractNodeLookupTask::toEntries
  8022. * src/DHTAbstractNodeLookupTask.cc
  8023. * src/DHTAbstractNodeLookupTask.h
  8024. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Changed method signature:
  8026. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8027. * src/BtContext.h
  8028. * src/DefaultBtContext.cc
  8029. * src/DefaultBtContext.h
  8030. * src/DefaultBtInteractive.cc
  8031. * test/DefaultBtContextTest.cc
  8032. * test/MockBtContext.h
  8033. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Changed method signature:
  8035. MultiFileAllocationIterator::makeDiskWriterEntries
  8036. * src/MultiFileAllocationIterator.cc
  8037. * src/MultiFileAllocationIterator.h
  8038. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Changed method sinature:
  8040. MetalinkEntry::toFileEntry,
  8041. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8042. Metalinker::queryEntry
  8043. * src/Metalink2RequestGroup.cc
  8044. * src/MetalinkEntry.cc
  8045. * src/MetalinkEntry.h
  8046. * src/MetalinkHelper.cc
  8047. * src/MetalinkHelper.h
  8048. * src/Metalinker.cc
  8049. * src/Metalinker.h
  8050. * src/main.cc
  8051. * test/MetalinkHelperTest.cc
  8052. * test/MetalinkerTest.cc
  8053. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Changed method sinature:
  8055. RequestGroup::getURIs
  8056. * src/RequestGroup.cc
  8057. * src/RequestGroup.h
  8058. * test/Metalink2RequestGroupTest.cc
  8059. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Changed method signature:
  8061. PeerListProcessor::extractPeer
  8062. * src/CompactPeerListProcessor.cc
  8063. * src/CompactPeerListProcessor.h
  8064. * src/DefaultBtAnnounce.cc
  8065. * src/DefaultPeerListProcessor.cc
  8066. * src/DefaultPeerListProcessor.h
  8067. * src/DelegatingPeerListProcessor.cc
  8068. * src/DelegatingPeerListProcessor.h
  8069. * src/PeerListProcessor.h
  8070. * src/UTPexExtensionMessage.cc
  8071. * test/DefaultPeerListProcessorTest.cc
  8072. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Changed method signature:
  8074. BtRequestFactory::createRequestMessages,
  8075. BtRequestFactory::createRequestMessagesOnEndGame
  8076. * src/BtRequestFactory.h
  8077. * src/DefaultBtInteractive.cc
  8078. * src/DefaultBtRequestFactory.cc
  8079. * src/DefaultBtRequestFactory.h
  8080. * test/DefaultBtRequestFactoryTest.cc
  8081. * test/MockBtRequestFactory.h
  8082. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Changed method signature:
  8084. PieceStorage::getInFlightPieces
  8085. * src/DefaultBtProgressInfoFile.cc
  8086. * src/DefaultPieceStorage.cc
  8087. * src/DefaultPieceStorage.h
  8088. * src/PieceStorage.h
  8089. * src/UnknownLengthPieceStorage.cc
  8090. * src/UnknownLengthPieceStorage.h
  8091. * test/DefaultBtProgressInfoFileTest.cc
  8092. * test/MockPieceStorage.h
  8093. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Changed method signature:
  8095. PostDownloadHandler::getNextRequestGroups
  8096. Metalink2RequestGroup::generate
  8097. RequestGroup::postDownloadProcessing
  8098. * src/BtPostDownloadHandler.cc
  8099. * src/BtPostDownloadHandler.h
  8100. * src/Metalink2RequestGroup.cc
  8101. * src/Metalink2RequestGroup.h
  8102. * src/MetalinkPostDownloadHandler.cc
  8103. * src/MetalinkPostDownloadHandler.h
  8104. * src/PostDownloadHandler.h
  8105. * src/RequestGroup.cc
  8106. * src/RequestGroup.h
  8107. * src/RequestGroupMan.cc
  8108. * src/main.cc
  8109. * test/BtPostDownloadHandlerTest.cc
  8110. * test/Metalink2RequestGroupTest.cc
  8111. * test/MetalinkPostDownloadHandlerTest.cc
  8112. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Rewritten AccRequestGroup
  8114. * src/main.cc
  8115. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Rewritten.
  8117. * src/TaggedItem.cc (toTagString)
  8118. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Rewritten Accept-Features handling.
  8120. * src/HttpRequestCommand.cc (createHttpRequest)
  8121. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Rewritten accept types handling.
  8123. * HttpRequest.cc (createRequest)
  8124. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Rewritten
  8126. * src/FeatureConfig.cc (featureSummary)
  8127. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Changed method signature:
  8129. PeerStorage::getActivePeers
  8130. * src/DHTPeerAnnounceEntry.cc
  8131. * src/DefaultPeerStorage.cc
  8132. * src/DefaultPeerStorage.h
  8133. * src/PeerStorage.h
  8134. * test/DefaultPeerStorageTest.cc
  8135. * test/MockPeerStorage.h
  8136. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Changed method signature:
  8138. DHTPeerAnnounceStorage::getPeers,
  8139. DHTPeerAnnounceEntry::getPeers
  8140. * src/DHTGetPeersMessage.cc
  8141. * src/DHTPeerAnnounceEntry.cc
  8142. * src/DHTPeerAnnounceEntry.h
  8143. * src/DHTPeerAnnounceStorage.cc
  8144. * src/DHTPeerAnnounceStorage.h
  8145. * test/DHTAnnouncePeerMessageTest.cc
  8146. * test/DHTPeerAnnounceEntryTest.cc
  8147. * test/DHTPeerAnnounceStorageTest.cc
  8148. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Changed method signature:
  8150. NameResolver::resolve
  8151. * src/DHTEntryPointNameResolveCommand.cc
  8152. * src/InitiateConnectionCommand.cc
  8153. * src/NameResolver.cc
  8154. * src/NameResolver.h
  8155. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Changed method signature:
  8157. PieceStorage::getAdvertisedPieceIndexes
  8158. * src/DefaultBtInteractive.cc
  8159. * src/DefaultPieceStorage.cc
  8160. * src/DefaultPieceStorage.h
  8161. * src/PieceStorage.h
  8162. * src/UnknownLengthPieceStorage.h
  8163. * test/MockPieceStorage.h
  8164. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Changed method signature:
  8166. SegmentMan::getInFlightSegment
  8167. * src/AbstractCommand.cc
  8168. * src/SegmentMan.cc
  8169. * src/SegmentMan.h
  8170. * test/SegmentManTest.cc
  8171. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Changed method signature:
  8173. DHTAbstractNodeLookupTask::getNodesFromMessage
  8174. * src/DHTAbstractNodeLookupTask.cc
  8175. * src/DHTAbstractNodeLookupTask.h
  8176. * src/DHTNodeLookupTask.cc
  8177. * src/DHTNodeLookupTask.h
  8178. * src/DHTPeerLookupTask.cc
  8179. * src/DHTPeerLookupTask.h
  8180. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8182. * src/AbstractCommand.cc
  8183. * src/BtCheckIntegrityEntry.cc
  8184. * src/BtCheckIntegrityEntry.h
  8185. * src/BtFileAllocationEntry.cc
  8186. * src/BtFileAllocationEntry.h
  8187. * src/BtSetup.cc
  8188. * src/BtSetup.h
  8189. * src/CheckIntegrityCommand.cc
  8190. * src/CheckIntegrityEntry.h
  8191. * src/ChecksumCheckIntegrityEntry.cc
  8192. * src/ChecksumCheckIntegrityEntry.h
  8193. * src/DHTSetup.cc
  8194. * src/DHTSetup.h
  8195. * src/DownloadEngine.cc
  8196. * src/FileAllocationCommand.cc
  8197. * src/FileAllocationEntry.h
  8198. * src/RequestGroup.cc
  8199. * src/RequestGroup.h
  8200. * src/RequestGroupMan.cc
  8201. * src/RequestGroupMan.h
  8202. * src/StreamCheckIntegrityEntry.cc
  8203. * src/StreamCheckIntegrityEntry.h
  8204. * src/StreamFileAllocationEntry.cc
  8205. * src/StreamFileAllocationEntry.h
  8206. * src/TrackerWatcherCommand.cc
  8207. * src/a2functional.h
  8208. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Changed method signature:
  8210. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8211. DHTBucket::getGoodNodes,
  8212. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8213. * src/BNode.cc
  8214. * src/BNode.h
  8215. * src/DHTAbstractNodeLookupTask.cc
  8216. * src/DHTAutoSaveCommand.cc
  8217. * src/DHTBucket.cc
  8218. * src/DHTBucket.h
  8219. * src/DHTBucketRefreshTask.cc
  8220. * src/DHTFindNodeMessage.cc
  8221. * src/DHTGetPeersMessage.cc
  8222. * src/DHTRoutingTable.cc
  8223. * src/DHTRoutingTable.h
  8224. * test/BNodeTest.cc
  8225. * test/DHTBucketTest.cc
  8226. * test/DHTRoutingTableTest.cc
  8227. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. In piece selection functions, Pass std::deque<...> by reference rather
  8229. than returning it.
  8230. * src/BitfieldMan.cc
  8231. * src/BitfieldMan.h
  8232. * src/DefaultBtRequestFactory.cc
  8233. * src/DefaultPieceStorage.cc
  8234. * src/Piece.cc
  8235. * src/Piece.h
  8236. * test/BitfieldManTest.cc
  8237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Implemented rarest piece first piece selection strategy.
  8239. * src/AbstractBtMessage.cc
  8240. * src/AbstractBtMessage.h
  8241. * src/BitfieldMan.cc
  8242. * src/BitfieldMan.h
  8243. * src/BtBitfieldMessage.cc
  8244. * src/BtHaveAllMessage.cc
  8245. * src/BtHaveMessage.cc
  8246. * src/DefaultPieceStorage.cc
  8247. * src/DefaultPieceStorage.h
  8248. * src/PeerInteractionCommand.cc
  8249. * src/PieceStorage.h
  8250. * src/UnknownLengthPieceStorage.h
  8251. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Rewritten readData and writeData.
  8253. * src/MultiDiskAdaptor.cc
  8254. * src/MultiDiskAdaptor.h
  8255. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Move \n out of the message "Usage: ...".
  8257. * src/version_usage.cc
  8258. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Bump up version number to 0.13.2b.
  8260. * configure.ac
  8261. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Added const qualifier to argument Exception& e.
  8263. * src/Logger.h
  8264. * src/SimpleLogger.cc
  8265. * src/SimpleLogger.h
  8266. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Pool connection when CWD, SIZE command fails.
  8268. * src/FtpNegotiationCommand.cc
  8269. * src/FtpNegotiationCommand.h
  8270. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8272. * src/HttpResponseCommand.cc
  8273. * src/HttpSkipResponseCommand.cc
  8274. * src/HttpSkipResponseCommand.h
  8275. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. Pool connection when a server returns 4xx, 5xx responses.
  8277. * src/HttpNullDownloadCommand.cc
  8278. * src/HttpNullDownloadCommand.h
  8279. * src/HttpResponse.cc
  8280. * src/HttpResponse.h
  8281. * src/HttpResponseCommand.cc
  8282. * src/HttpResponseCommand.h
  8283. * test/HttpResponseTest.cc
  8284. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Print usage when no URL is specifed or bad command-line option is
  8286. specified.
  8287. * src/HelpItemFactory.cc
  8288. * src/help_tags.h
  8289. * src/option_processing.cc
  8290. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Removed duplicate log message.
  8292. * src/AbstractCommand.cc (asyncResolveHostname)
  8293. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8295. Changed -j option's default value from 5 to 1.
  8296. Added new examples using protocol auto detection feature.
  8297. Removed -T, -M usage where it can be omitted.
  8298. * doc/aria2c.1.txt
  8299. * doc/aria2c.1.html
  8300. * doc/aria2c.1.txt
  8301. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Updated command-line usage text, so that it tells users that they
  8303. can specify any number of torrent files and metalink files in
  8304. command-line.
  8305. * src/version_usage.cc
  8306. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Changed the default value of -j option to 1.
  8308. * src/HelpItemFactory.cc
  8309. * src/option_processing.cc
  8310. * src/usage_text.h
  8311. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Added the ability to reuse connection in FTP and it is enabled by
  8313. default. It can be disabled by --ftp-reuse-connection=false option.
  8314. * src/Command.cc
  8315. * src/DownloadCommand.cc
  8316. * src/FtpDownloadCommand.cc
  8317. * src/FtpDownloadCommand.h
  8318. * src/FtpFinishDownloadCommand.cc
  8319. * src/FtpFinishDownloadCommand.h
  8320. * src/FtpInitiateConnectionCommand.cc
  8321. * src/FtpNegotiationCommand.cc
  8322. * src/FtpNegotiationCommand.h
  8323. * src/HelpItemFactory.cc
  8324. * src/Makefile.am
  8325. * src/Makefile.in
  8326. * src/OptionHandlerFactory.cc
  8327. * src/option_processing.cc
  8328. * src/prefs.h
  8329. * src/usage_text.h
  8330. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Call Command::transitStatus() before calling Command::execute(),
  8332. so that the status change made in execute() is not cleared.
  8333. * src/DownloadEngine.cc
  8334. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Removed forward declaration of SocketCore class.
  8336. * src/HttpDownloadCommand.h
  8337. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8339. in InitiateConnectionCommandFactory. They should be set only when
  8340. the protocol is HTTP or HTTPS.
  8341. * src/InitiateConnectionCommandFactory.cc
  8342. * src/RequestGroup.cc
  8343. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Fixed infinite loop in checksum checking.
  8345. * src/IteratableChecksumValidator.cc
  8346. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Set _supportsPersistentConnection to true by default.
  8348. * src/Request.cc
  8349. * src/RequestGroup.cc
  8350. * test/HttpRequestTest.cc
  8351. * test/RequestTest.cc
  8352. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Added timeout to socket pool. The default timeout is 15 seconds,
  8354. which is the same value Apache uses.
  8355. * src/DownloadEngine.cc
  8356. * src/DownloadEngine.h
  8357. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Fixed misuse of multimap::find()
  8359. * src/HttpHeader.cc
  8360. * test/HttpHeaderTest.cc
  8361. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8363. option.
  8364. The asynchronous DNS is not capable of IPv6 yet.
  8365. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8366. least for HTTP download.
  8367. * src/AbstractCommand.cc
  8368. * src/AbstractCommand.h
  8369. * src/AsyncNameResolver.cc
  8370. * src/AsyncNameResolver.h
  8371. * src/DHTEntryPointNameResolveCommand.cc
  8372. * src/DHTEntryPointNameResolveCommand.h
  8373. * src/DownloadEngine.cc
  8374. * src/DownloadEngine.h
  8375. * src/FtpInitiateConnectionCommand.cc
  8376. * src/FtpInitiateConnectionCommand.h
  8377. * src/HelpItemFactory.cc
  8378. * src/HttpInitiateConnectionCommand.cc
  8379. * src/HttpInitiateConnectionCommand.h
  8380. * src/InitiateConnectionCommand.cc
  8381. * src/InitiateConnectionCommand.h
  8382. * src/Makefile.am
  8383. * src/Makefile.in
  8384. * src/NameResolver.cc
  8385. * src/NameResolver.h
  8386. * src/OptionHandlerFactory.cc
  8387. * src/SocketCore.cc
  8388. * src/SocketCore.h
  8389. * src/Util.cc
  8390. * src/Util.h
  8391. * src/option_processing.cc
  8392. * src/prefs.h
  8393. * src/usage_text.h
  8394. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Updated man page: --quiet, --header were added.
  8396. --metalink-servers and --enable-http-keep-alive option were updated.
  8397. * doc/aria2c.1
  8398. * doc/aria2c.1.html
  8399. * doc/aria2c.1.txt
  8400. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Enable HTTP keep-alive by default.
  8402. * src/HelpItemFactory.cc
  8403. * src/option_processing.cc
  8404. * src/usage_text.h
  8405. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Disable http keep-alive if the remote server is not HTTP/1.1.
  8407. * src/HttpConnection.cc
  8408. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Receive content body of 302 response so that the connection can be
  8410. reused later when http keep-alive is enabled.
  8411. * src/HttpNullDownloadCommand.cc
  8412. * src/HttpNullDownloadCommand.h
  8413. * src/HttpResponseCommand.cc
  8414. * src/HttpResponseCommand.h
  8415. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. const SharedHandle<Request> -> const SharedHandle<Request>&
  8417. * src/FtpDowndloadCommand.cc
  8418. * src/FtpDowndloadCommand.h
  8419. * src/HttpDownloadCommand.cc
  8420. * src/HttpDownloadCommand.h
  8421. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Fixed the bug that the control file(.aria2 file) is not renamed
  8423. according to tryAutoFileRenaming().
  8424. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8425. its control file exist, use them and continue download.
  8426. The old implementation didn't take into account of control file's
  8427. existence, so basically you couldn't continue download of renamed file.
  8428. * src/BtProgressInfoFile.h
  8429. * src/DefaultBtProgressInfoFile.cc
  8430. * src/DefaultBtProgressInfoFile.h
  8431. * src/NullProgressInfoFile.h
  8432. * src/RequestGroup.cc
  8433. * test/DefaultBtProgressInfoFileTest.cc
  8434. * test/MockBtProgressInfoFile.h
  8435. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Change the default value of --metalink-servers option from `5' to `1'.
  8437. * src/HelpItemFactory.cc
  8438. * src/option_processing.cc
  8439. * src/usage_text.h
  8440. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Reimplemented transparent metalink using Accept request header.
  8442. * src/HttpRequest.cc
  8443. * src/HttpRequest.h
  8444. * src/HttpRequestCommand.cc
  8445. * src/Metalink2RequestGroup.cc
  8446. * src/RequestGroup.cc
  8447. * src/RequestGroup.h
  8448. * test/HttpRequestTest.cc
  8449. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Bump up version number to 0.13.2a
  8451. * configure.ac
  8452. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Updated configure.ac using the result of autoscan.
  8454. * configure.ac
  8455. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Fixed compilation error without gcrypt/openssl.
  8457. * src/DownloadCommand.cc
  8458. * src/DownloadCommand.h
  8459. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Reorganized version information so that it can be displayed in a
  8461. standard terminal screen without scrolling.
  8462. Removed http, ftp from Configuration section, because they are always
  8463. enabled.
  8464. * src/FeatureConfig.cc
  8465. * src/FeatureConfig.h
  8466. * src/main.cc
  8467. * src/messageDigest.cc
  8468. * src/messageDigest.h
  8469. * src/version_usage.cc
  8470. * test/FeatureConfigTest.cc
  8471. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Masked user ID in log.
  8473. * src/FtpConnection.cc (sendUser)
  8474. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Removed query part from filename in HTTP download. The query part means
  8476. the substring after "?" in URL. Firefox seems do the same thing.
  8477. A query part is sometimes very long and not suitable to filename,
  8478. so I think it is better to remove it from filename.
  8479. * src/HttpRequest.cc
  8480. * src/HttpRequest.h
  8481. * src/Request.cc
  8482. * src/Request.h
  8483. * test/HttpRequestTest.cc
  8484. * test/RequestTest.cc
  8485. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Rewritten Exception class. Throw exception object, not its pointer and
  8487. catch by reference, so that remove problematic delete operator for
  8488. catched exception.
  8489. * src/Exception.cc
  8490. * src/Exception.h
  8491. * test/ExceptionTest.cc
  8492. * src/*: All files throwing/catching exception.
  8493. * test/*: All files throwing/catching exception.
  8494. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Now auto protocol detection is enabled without -Z option.
  8496. But there is a important difference between with/without -Z optoin.
  8497. For example, if you type:
  8498. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8499. then, aria2 interprets there are 3 request groups:
  8500. (1) http://host/file, http://mirror/file <-- multi-source download
  8501. (2) file1.torrent
  8502. (3) file2.metalink
  8503. On the other hand, if you invoke above command with -Z option, it is
  8504. interpreted as 4 request groups:
  8505. (1) http://host/file
  8506. (2) file1.torrent
  8507. (3) file2.metalink
  8508. (4) http://mirror/file
  8509. I think usually user don't mix multi-source URLs and torrent files, so
  8510. there is no big problem here.
  8511. * src/main.cc
  8512. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Fixed the bug that causes segmentaion fault when reading XML containing
  8514. unescapsed character like '&'.
  8515. Also a modification was made which avoids adding unnecessary
  8516. characters stack and appending unused string.
  8517. * src/ExpatMetalinkProcessor.cc
  8518. * src/FileMetalinkParserState.h
  8519. * src/FilesMetalinkParserState.h
  8520. * src/FinMetalinkParserState.h
  8521. * src/HashMetalinkParserState.h
  8522. * src/InitialMetalinkParserState.h
  8523. * src/LanguageMetalinkParserState.h
  8524. * src/MetalinkMetalinkParserState.h
  8525. * src/MetalinkParserState.h
  8526. * src/MetalinkParserStateMachine.cc
  8527. * src/MetalinkParserStateMachine.h
  8528. * src/OSMetalinkParserState.h
  8529. * src/PieceHashMetalinkParserState.h
  8530. * src/PiecesMetalinkParserState.h
  8531. * src/ResourcesMetalinkParserState.h
  8532. * src/SizeMetalinkParserState.h
  8533. * src/SkipTagMetalinkParserState.h
  8534. * src/URLMetalinkParserState.h
  8535. * src/VerificationMetalinkParserState.h
  8536. * src/VersionMetalinkParserState.h
  8537. * src/XML2SAXMetalinkProcessor.cc
  8538. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Added StringFormat class, which internally calls vasprintf.
  8540. operator<< is defined for this class, so it can be used with iostream
  8541. classes nicely. SimpleLogger and following functions are rewritten
  8542. using StringFormat class.
  8543. Besides, now Logger class's methods are non-const, many classes
  8544. that has a const Logger* as a member variable are modified to remove
  8545. const qualifier from the variable declaration.
  8546. * src/HelpItemFactory.cc
  8547. * src/Request.cc
  8548. * src/SimpleLogger.cc
  8549. * src/StringFormat.cc
  8550. * src/StringFormat.h
  8551. * src/Util.cc
  8552. * src/option_processing.cc
  8553. * src/version_usage.cc
  8554. * test/StringFormatTest.cc
  8555. * src/*.h: The classes that has const Logger* as a member variable.
  8556. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8558. failed. Also fixed memory link when exception is thrown there.
  8559. * src/main.cc (AccRequestGroup)
  8560. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added build-in "Accept-Features" support. For now only "metalink" is
  8562. used in this header field.
  8563. This "metalink" value is removed from the list when connecting URLs
  8564. fed by metalink file to avoid loop in "transparent" metlaink.
  8565. * src/HttpRequest.cc
  8566. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8567. header is also held in this variable. Also renamed setUserHeaders as
  8568. addHeader and it was rewritten to add header not just to clear the old
  8569. value.
  8570. * src/HttpRequestCommand.cc
  8571. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8572. from "Accept-Features" list.
  8573. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8574. default.
  8575. * src/RequestGroup.h
  8576. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8577. * src/a2functional.h: Included <string> because Concat class depends on
  8578. it.
  8579. * test/HttpRequestTest.cc
  8580. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Added comment
  8582. * src/RequestGroup.cc (createNextCommand)
  8583. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Capitalized METHOD_GET and METHOD_HEAD
  8585. * src/Request.cc
  8586. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Added getDownloadResults() method
  8588. * src/RequestGroupMan.cc
  8589. * src/RequestGroupMan.h
  8590. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Fixed the bug that aria2 exits when commands is empty() but
  8592. _routineCommands are not.
  8593. * src/DownloadEngine.cc
  8594. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Use the default value pulled from Option object in HelpItemFactory.
  8596. except options whose defualt value is embedded in a usage text.
  8597. * src/HelpItemFactory.cc
  8598. * src/HelpItemFactory.h
  8599. * src/option_processing.cc
  8600. * src/version_usage.cc
  8601. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Added --quiet option to make aria2 quiet (no console output).
  8603. --quiet option is tagged with ADVANCED.
  8604. * src/HelpItemFactory.cc
  8605. * src/LogFactory.cc
  8606. * src/LogFactory.h
  8607. * src/MultiUrlRequestInfo.cc
  8608. * src/MultiUrlRequestInfo.h
  8609. * src/NullStatCalc.h: New class. This class prints nothing.
  8610. * src/OptionHandlerFactory.cc
  8611. * src/main.cc
  8612. * src/option_processing.cc
  8613. * src/prefs.h
  8614. * src/usage_text.h
  8615. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8617. * src/HelpItemFactory.cc (createHelpItems):
  8618. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Fixed compilation error in ExpatMetalinkProcessor.cc
  8620. * src/ExpatMetalinkProcessor.cc
  8621. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Reuse socket if the origin server supports HTTP keep-alive and
  8623. --enable-http-keep-alive or --enable-http-pipelining is given.
  8624. The current implementation doesn't reuse the connections established
  8625. against proxy server.
  8626. * src/AbstractCommand.cc
  8627. * src/DownloadEngine.cc
  8628. * src/DownloadEngine.h
  8629. * src/HttpDownloadCommand.cc
  8630. * src/HttpInitiateConnectionCommand.cc
  8631. * src/HttpResponseCommand.cc
  8632. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Rewritten HTTP keep-alive and pipelining routine.
  8634. * src/AbstractCommand.cc
  8635. * src/HttpConnection.cc
  8636. * src/HttpDownloadCommand.cc
  8637. * src/HttpRequest.cc
  8638. * src/HttpRequestCommand.cc
  8639. * src/HttpResponseCommand.cc
  8640. * src/Request.cc
  8641. * src/Request.h
  8642. * src/RequestGroup.cc
  8643. * test/HttpRequestTest.cc
  8644. * test/HttpResponseTest.cc
  8645. * test/RequestTest.cc
  8646. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Added missing setUserHeaders call
  8648. * src/HttpRequestCommand.cc
  8649. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8651. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8652. waste of time because it is more likey false.
  8653. * src/FileAllocationDispatcherCommand.cc (execute)
  8654. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Now HTTP status and version are a member variable of HttpHeader.
  8656. HTTP status is processed as a string, not integer.
  8657. * src/AbstractProxyResponseCommand.cc
  8658. * src/HttpConnection.cc
  8659. * src/HttpHeader.cc
  8660. * src/HttpHeader.h
  8661. * src/HttpHeaderProcessor.cc
  8662. * src/HttpHeaderProcessor.h
  8663. * src/HttpResponse.cc
  8664. * src/HttpResponse.h
  8665. * test/HttpHeaderProcessorTest.cc
  8666. * test/HttpResponseTest.cc
  8667. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Added --header option. You can specify any number of additional HTTP headers
  8669. like:
  8670. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8671. Unlike other commad-line option, you can use --header option multiple times.
  8672. * src/HelpItemFactory.cc
  8673. * src/HttpRequest.{cc, h}
  8674. * src/HttpRequestCommand.cc
  8675. * src/OptionHandlerFactory.cc
  8676. * src/OptionHandlerImpl.h
  8677. * src/option_processing.cc
  8678. * src/prefs.h
  8679. * src/usage_text.h
  8680. * test/HttpRequestTest.cc (testUserHeaders)
  8681. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Eliminates the time lag between sequential downloads and commands in
  8683. the same RequestGroup.
  8684. In old implementation, aria2 occasionally waits 1 seconds before
  8685. executing next command or RequestGroup.
  8686. This is really a waste of time, and new implementation eliminates
  8687. this unnecessary time lag.
  8688. * src/AbstractCommand.cc
  8689. * src/AutoSaveCommand.cc
  8690. * src/CheckIntegrityCommand.cc
  8691. * src/Command.{cc, h}
  8692. * src/DownloadEngine.{cc, h}
  8693. * src/DownloadEngineFactory.cc
  8694. * src/FileAllocationCommand.cc
  8695. * src/FileAllocationDispatcherCommand.cc
  8696. * src/FillRequestGroupCommand.cc
  8697. * src/FtpInitiateConnectionCommand.cc
  8698. * src/HaveEraseCommand.cc
  8699. * src/HttpInitiateConnectionCommand.cc
  8700. * src/HttpResponseCommand.cc
  8701. * src/RealtimeCommand.cc
  8702. * src/RequestGroup.cc
  8703. * src/RequestGroupMan.cc
  8704. * src/StreamFileAllocationEntry.cc
  8705. * src/TimeBasedCommand.{cc, h}
  8706. * src/TimedHaltCommand.cc
  8707. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8709. keyword explicit and SharedHandle's default constructor initializes
  8710. its internal obj to null, old implementation initializes it using
  8711. obj's default constructor.
  8712. To assign null, write SharedHandle<T> x(...); x.reset();
  8713. TODO: test/SharedHandleTest.cc needs more tests.
  8714. * src/SharedHandle.h
  8715. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Fixed type in man page.
  8717. * doc/aria2c.1.txt
  8718. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8720. * src/SimpleLogger.{cc, h}
  8721. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Implemented auto protocol detection.
  8723. Now you can do:
  8724. aria2c -Z http://host/file file1.torrent file2.metalink
  8725. (Note: -Z option is required for auto protcol detection.)
  8726. Then aria2c downloads 3 files simultaneously:
  8727. 1. http://host/file
  8728. 2. file1.torrent <-- read local torrent file
  8729. 3. file2.metalink <-- read local Metalink file.
  8730. Same thing goes with -i option. Assume your uris.txt contans:
  8731. http://host/file
  8732. file1.torrent
  8733. file2.metalink
  8734. Then you can do: aria2c -i uris.txt
  8735. (Note: -Z option is not needed if -i option is given.)
  8736. * src/main.cc
  8737. * src/ProtocolDetector.{cc, h}
  8738. * test/ProtocolDetectorTest.cc
  8739. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8741. installed
  8742. * src/ARC4Encryptor.h
  8743. * src/ARC4Decryptor.h
  8744. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Renamed argument from 'errno' to 'err', since errno is confused with
  8746. errno defined in errno.h.
  8747. * src/LibgcryptARC4Decryptor.h
  8748. * src/LibgcryptARC4Context.h
  8749. * src/LibgcryptDHKeyExchange.h
  8750. * src/LibgcryptARC4Encryptor.h
  8751. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Rewritten choking algorithm.
  8753. * src/PeerChokeCommand.{cc, h}
  8754. * src/BtInterestedMessage.cc
  8755. * src/PeerSessionResource.{cc, h}
  8756. * src/DefaultPeerStorage.{cc, h}
  8757. * src/BtNotInterestedMessage.cc
  8758. * src/DefaultBtMessageDispatcher.{cc, h}
  8759. * src/BtMessageDispatcher.h
  8760. * src/Peer.{cc, h}
  8761. * src/BtLeecherStateChoke.{cc, h}
  8762. * src/BtSetup.cc
  8763. * src/BtSeederStateChoke.{cc, h}
  8764. * src/PeerStorage.h
  8765. * test/MockPeerStorage.h
  8766. * test/MockBtMessageDispatcher.h
  8767. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Fixed compilation error on x84-64 platform.
  8769. * src/AuthConfig.cc: Included ostream.
  8770. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Rewritten getBasename() and getDirname(), without standard library
  8772. basename(), dirname().
  8773. * src/File.cc
  8774. * test/FileTest.cc
  8775. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Added Simplified Chinese translation. Also updated the following
  8777. translations: Polish, Dutch, German. Great thanks to all translators.
  8778. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Suppress content-range error when 'Content-Range' response header
  8780. doesn't contains bytes-unit specifier 'bytes'
  8781. * src/HttpHeader.cc (getRange)
  8782. * test/HttpHeaderTest.cc
  8783. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Fixed compilation error with g++-4.3
  8785. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Added missing include files for MinGW
  8787. * test/HttpHeaderProcessorTest.cc
  8788. * test/DHTRoutingTableSerializerTest.cc
  8789. * test/DHTRoutingTableDeserializerTest.cc
  8790. * test/UriListParserTest.cc
  8791. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Now download line is printed nicely with no garbage at the end of
  8793. line. I use ioctl to get the columns of terminal.
  8794. If stdout is redirected to another device, instead of carriage return,
  8795. end of line '\n' character is used. This is feature request#1909659
  8796. * src/ConsoleStatCalc.cc (calculateStat)
  8797. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Included a2time.h
  8799. * src/DHTMessageDispatcher.h
  8800. * src/DHTMessageEntry.h
  8801. * src/DHTReplaceNodeTask.h
  8802. * src/DHTMessageTracker.h
  8803. * src/Util.h
  8804. * src/CookieBox.h
  8805. * src/SocketCore.h
  8806. * src/DefaultBtMessageDispatcher.h
  8807. * src/SocketCore.cc
  8808. * src/Util.cc
  8809. * src/DHTPingTask.h
  8810. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Fixed high memory footprint when DHT is enabled.
  8812. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8813. queued than it is processed and the queue is getting longer. As a
  8814. consequence, momory usage is increased.
  8815. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8816. replacement cache in DHTBucket which is described in Kademlia paper.
  8817. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8818. DHTReplaceNodeTask.
  8819. * src/DHTBucket.{h, cc}
  8820. (cacheNode): New function.
  8821. (getCachedNodes): New function.
  8822. (dropNode): Push back cached node to _nodes.
  8823. * test/DHTBucketTest.cc
  8824. (testCacheNode): New test
  8825. (testDropNode): New test
  8826. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8828. the unused 4KB memory when ssl is not used.
  8829. * src/SocketCore.cc
  8830. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Added summary log for peer announce storage.
  8832. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8833. Removed cast
  8834. * src/DefaultPeerStorage.cc (addPeer)
  8835. Log exception message
  8836. * src/DHTMessageTracker.cc (handleTimeout)
  8837. Fixed casting
  8838. * test/HttpRequestTest.cc
  8839. * test/MetalinkProcessorTest.cc
  8840. * test/PieceTest.cc
  8841. * test/MetalinkEntryTest.cc
  8842. * test/SequenceTest.cc
  8843. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. * src/ParameterizedStringParser.cc (createLoop):
  8845. Removed unused variable sstep.
  8846. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8847. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. * src/Util.{h, cc}
  8849. (parseUInt): New function.
  8850. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8851. The actual range is uint32_t.
  8852. * test/UtilTest.cc
  8853. * src/ParameterizedStringParser.cc:
  8854. Use Util::parseUInt() for loop variables.
  8855. * test/ParameterizedStringParserTest.cc
  8856. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8857. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Rewritten the functions for binding port.
  8859. * src/DHTConnectionImpl.{h, cc}
  8860. * src/PeerListenCommand.{h, cc}
  8861. * src/DHTSetup.cc
  8862. * src/BtSetup.cc
  8863. * test/DHTConnectionImplTest.cc
  8864. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8865. type cleanup for allmost all remaining files.
  8866. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Type clarification
  8868. * src/PeerSessionResource.{h, cc}
  8869. * src/DefaultPieceStorage.{h, cc}
  8870. * src/Peer.{h, cc}
  8871. * test/PeerSessionResourceTest.cc
  8872. Use div function
  8873. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8874. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Type clarification
  8876. * src/DefaultPeerStorage.{h, cc}
  8877. * test/DefaultPeerStorageTest.cc
  8878. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Type clarification: size_t for length or size, uint64_t for file
  8880. length, off_t for file offset.
  8881. * src/DefaultBtProgressInfoFile.cc
  8882. * src/DefaultBtContext.{h, cc}
  8883. * src/DefaultBtInteractive.cc
  8884. * src/DownloadCommand.{h, cc}
  8885. * src/IteratableChunkChecksumValidator.{h, cc}
  8886. * src/SegmentMan.{h, cc}
  8887. * src/SingleFileDownloadContext.{h, cc}
  8888. * src/IteratableChecksumValidator.{h, cc}
  8889. * src/BtContext.h
  8890. * src/IteratableValidator.h
  8891. * src/DownloadContext.h
  8892. * test/SingleFileDownloadContextTest.cc
  8893. * test/DefaultBtContextTest.cc
  8894. * test/MockBtContext.h
  8895. * test/Metalink2RequestGroupTest.cc
  8896. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Type clarification: size_t for length or size, uint64_t for file
  8898. length, off_t for file offset.
  8899. * src/PiecedSegment.cc
  8900. * src/GrowSegment.h
  8901. * src/DefaultBtRequestFactory.h
  8902. * src/DefaultBtProgressInfoFile.cc
  8903. * src/UnknownLengthPieceStorage.h
  8904. * src/DefaultPieceStorage.cc
  8905. * src/UnknownLengthPieceStorage.cc
  8906. * src/DefaultBtInteractive.cc
  8907. * src/GrowSegment.cc
  8908. * src/BitfieldMan.h
  8909. * src/DownloadCommand.cc
  8910. * src/BtRequestFactory.h
  8911. * src/PiecedSegment.h
  8912. * src/DefaultPieceStorage.h
  8913. * src/Piece.cc
  8914. * src/DefaultBtRequestFactory.cc
  8915. * src/PieceStorage.h
  8916. * src/Segment.h
  8917. * src/Piece.h
  8918. * src/BitfieldMan.cc
  8919. * src/Util.cc
  8920. * test/DefaultBtProgressInfoFileTest.cc
  8921. * test/DefaultPieceStorageTest.cc
  8922. * test/MockPieceStorage.h
  8923. * test/BtRequestMessageTest.cc
  8924. * test/DefaultBtMessageDispatcherTest.cc
  8925. * test/BitfieldManTest.cc
  8926. * test/GrowSegmentTest.cc
  8927. * test/PieceTest.cc
  8928. * test/SegmentTest.cc
  8929. * test/SegmentManTest.cc
  8930. * test/DefaultBtRequestFactoryTest.cc
  8931. * test/MockBtRequestFactory.h
  8932. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Fixed compilation error with --disable-nls
  8934. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8935. in gettext.h causes the problem.
  8936. * src/common.h
  8937. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Removed subPiece related functions.
  8939. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8940. * src/DefaultPieceStorage.{h, cc}
  8941. * test/PieceTest.cc
  8942. * test/DefaultPieceStorageTest.cc
  8943. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Use unsigned char for data store.
  8945. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Bump up version number to 0.13.0+1
  8947. * configure.ac
  8948. * Release 0.13.0+1
  8949. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. Changed inactive connection timeout to 120.
  8951. To accept more mulually interested peers, disconnect peer when there
  8952. is no interest between us after certain time passed.
  8953. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8954. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8956. when compiled with async DNS support.
  8957. * src/DownloadEngine.cc
  8958. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8959. value '10' will be a little bit short when some DNS servers are
  8960. offline and several DNS servers are tried. It should be configured
  8961. by command-line option.
  8962. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Merged Ross's mingw patch.
  8964. * src/DHTRoutingTableDeserializer.cc
  8965. * src/DHTRoutingTableSerializer.cc
  8966. * src/Platform.{h, cc}
  8967. * src/timegm.h
  8968. * src/gettimeofday.h
  8969. * src/getaddrinfo.h
  8970. * src/SocketCore.h
  8971. * src/common.h
  8972. * src/inet_aton.h
  8973. * src/DownloadEngine.h
  8974. * src/gai_strerror.h
  8975. * src/a2netcompat.h
  8976. * configure.ac
  8977. * configure
  8978. * aclocal.m4
  8979. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Included missing iostream.
  8981. * test/AllTest.cc
  8982. * test/BtDependencyTest.cc
  8983. * test/BtExtendedMessageTest.cc
  8984. * test/DHTConnectionImplTest.cc
  8985. * test/DHTMessageFactoryImplTest.cc
  8986. * test/DHTMessageTrackerEntryTest.cc
  8987. * test/DHTNodeTest.cc
  8988. * test/DHTRoutingTableSerializerTest.cc
  8989. * test/DefaultBtAnnounceTest.cc
  8990. * test/DefaultBtContextTest.cc
  8991. * test/DefaultBtMessageFactoryTest.cc
  8992. * test/DefaultExtensionMessageFactoryTest.cc
  8993. * test/HandshakeExtensionMessageTest.cc
  8994. * test/HttpResponseTest.cc
  8995. * test/MetalinkProcessorTest.cc
  8996. * test/MultiFileAllocationIteratorTest.cc
  8997. * test/SocketCoreTest.cc
  8998. * test/UTPexExtensionMessageTest.cc
  8999. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Reorganized includes.
  9001. * src/NameResolver.cc
  9002. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Fixed compilation error without ares/c-ares
  9004. * src/NameResolver.h:
  9005. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Added a test for large file.
  9007. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9008. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Fixed the bug that file size is ignored if size > INT32_MAX
  9010. * src/SizeMetalinkParserState.cc (endElement):
  9011. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Bump up version number to 0.13.0
  9013. * configure.ac
  9014. * Release 0.13.0
  9015. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Updated Makfefile.am to make 'make dist' work.
  9017. Now packaged filename is aria2c-VERSION.tar.bz2.
  9018. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9019. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9020. Large file support is now configured by configure script.
  9021. * configure.ac
  9022. Removed unsused source files
  9023. * src/
  9024. * test/
  9025. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9026. Peer.h and BtContext.h respectively.
  9027. * src/Peer.h
  9028. * src/BtContext.h
  9029. Updated translations.
  9030. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9031. translations. Great thanks to all translators!;)
  9032. * po/*.{po, gmo}
  9033. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9035. statically declared sha1 MessageDigestContext.
  9036. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9037. initialization of short-lived MessageDigestContext.
  9038. * src/MessageDigestHelper.{h, cc}
  9039. * src/main.cc
  9040. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9041. the initialization of MessageDigestContext every time in validating
  9042. chunk checksum.
  9043. * src/DownloadCommand.{h, cc}
  9044. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Add a file descriptor which connected to fast peer(latency<1500) to
  9046. select(). This change reduced CPU load.
  9047. * src/PeerInteractionCommand.cc
  9048. * src/DefaultBtInteractive.{h, cc}
  9049. * src/BtInteractive.h
  9050. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Fixed the previous insufficient fix for possible busy loop.
  9052. * src/MSEHandshake.cc (identifyHandshakeType)
  9053. Removed unused functions.
  9054. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9055. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Fixed possible busy loop if first 20 bytes are not received for a few
  9057. minutes.
  9058. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9059. * src/ReceiverMSEHandshakeCommand.cc
  9060. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Fixed compilation error
  9062. * src/ExpatMetalinkProcessor.cc
  9063. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9065. * src/DHTBucket.cc
  9066. Removed unnecessary cast.
  9067. * src/HandshakeExtensionMessage.cc
  9068. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9070. is missing.
  9071. * src/OptionHandlerFactory.cc
  9072. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Fixed the bug that HAVE message is not sent for a piece they are
  9074. downloaded fom http/ftp server before any BitTorrent handshake is done
  9075. with peers.
  9076. * src/DefaultBtInteractive.cc
  9077. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9079. * src/Makefile.am
  9080. * src/Makefile.in
  9081. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Updated README. Added html version of README and man page.
  9083. * README
  9084. * README.html
  9085. * readme2html: Shell script to generate README.html from README using
  9086. asciidoc.
  9087. * doc/aria2c.1.html
  9088. * doc/makeman: Added the line to generate aria2c.1.html
  9089. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Fixed offset calculation.
  9091. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9092. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Rewritten itos and uitos using template. llitos and ullitos are
  9094. replaced with itos and uitos respectively.
  9095. * src/Util.{h, cc}
  9096. * test/UtilTest.cc
  9097. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9098. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9099. of the number of bytes required for storing public key and shared
  9100. secret.
  9101. * src/LibgcryptDHKeyExchange.h
  9102. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9103. * src/MSEHandshake.cc
  9104. * test/DHKeyExchangeTest.cc
  9105. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Removed since they are not used.
  9107. * src/Xml2MetalinkProcessor.{h, cc}
  9108. * src/Socket.cc
  9109. * src/SegmentSplitter.{h, cc}
  9110. * test/Xml2MetalinkProcessorTest.cc
  9111. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Fixed the bug that prevents aria2 from stopping other than by pressing
  9113. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9114. option. aria2 doesn't stop even after --seed-time is satisfied and
  9115. continues to output blank lines in the console.
  9116. * src/ReceiverMSEHandshakeCommand.cc
  9117. * src/PeerReceiveHandshakeCommand.cc
  9118. * src/PeerListenCommand.cc
  9119. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Bump up version number to 0.13.0rc
  9121. * configure.ac
  9122. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Updated man page and some usage text.
  9124. * doc/aria2c.1.txt
  9125. * src/usage_text.h
  9126. * po/*.{po, gmo}
  9127. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Updated translations. Added Finnish and Hebrew translations.
  9129. Great thanks to all translators!
  9130. * po/*.{po, gmo}
  9131. * po/LINGUAS
  9132. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Log more detailed information about each message.
  9134. * src/DHTQueryMessage.{h, cc}
  9135. * src/DHTGetPeersMessage.{h, cc}
  9136. * src/DHTFindNodeReplyMessage.{h, cc}
  9137. * src/DHTGetPeersReplyMessage.{h, cc}
  9138. * src/DHTAnnouncePeerMessage.{h, cc}
  9139. * src/DHTResponseMessage.{h, cc}
  9140. * src/DHTFindNodeMessage.{h, cc}
  9141. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Use constants defined in prefs.h
  9143. * src/option_processing.cc
  9144. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9146. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Make room for future enchancements for IPv6 addresses.
  9148. Bump up version number of dht.dat file format to 2.
  9149. Not compatible with previous version.
  9150. * src/DHTRoutingTableSerializer.cc
  9151. * src/DHTRoutingTableDeserializer.cc
  9152. * test/DHTRoutingTableSerializerTest.cc
  9153. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Added handling for the return values from
  9155. PeerMessageUtil::createcompact().
  9156. * src/DefaultBtContext.cc (computeFastSet):
  9157. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Fixed abort when peer's ip address is IPv4-mapped address.
  9159. * src/DefaultBtContext.cc (computeFastSet)
  9160. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9161. cannot handle IPv4-mapped addresses.
  9162. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9163. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Proper return value handling for OpenSSL functions.
  9165. * src/LibsslDHKeyExchange.h
  9166. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Random bytes generation using libgcrypt and OpenSSL.
  9168. * src/DHTUtil.{h, cc}
  9169. * test/DHTUtilTest.cc
  9170. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9172. received.
  9173. * src/DHTMessageReceiver.cc (receiveMessage)
  9174. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Fixed the bug that a return code is always 0. BUG#1897704
  9176. If error occurred during the download or there exist unfinished
  9177. downloads, aria2 returns with code 1.
  9178. * src/RequestGroupMan.{h, cc}
  9179. * src/MultiUrlRequestInfo.{h, cc}
  9180. * src/main.cc
  9181. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. IPv6 support for SocketCore class.
  9183. TODO: In SocketCore::establishConnection(), this is insufficient to
  9184. determin the failure of connect() here because the socket is
  9185. non-blocking state. The next addresses should be tried after select().
  9186. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9187. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9188. instead which address family independent.
  9189. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9190. information in a compact peer format which is for IPv4 only.
  9191. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9192. this is a spec of BitTorrent protocol.
  9193. * src/SocketCore.{h, cc}
  9194. * src/PeerMessageUtil.cc
  9195. * test/SocketCoreTest.cc
  9196. * test/PeerMessageUtilTest.cc
  9197. * test/DHTConnectionImplTest.cc
  9198. Handle IPv4-mapped addresses.
  9199. * src/DHTNode.cc: Now identity is determined by node id.
  9200. * src/DHTMessageTrackerEntry.cc
  9201. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9202. should handle it.
  9203. * src/DHTRoutingTableDeserializer.cc
  9204. * src/DHTMessageFactoryImpl.cc
  9205. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Change the unit of --stop option from a minute to a second.
  9207. * src/usage_text.h
  9208. * src/DownloadEngineFactory.cc
  9209. * src/OptionHandlerFactory.cc
  9210. * src/message.h
  9211. * src/TimedHaltCommand.cc
  9212. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Make listening socket non-block mode.
  9214. * src/FtpConnection.cc
  9215. * src/FtpNegotiationCommand.{h, cc}
  9216. * src/PeerListenCommand.cc
  9217. Fixed the bug that cause slow ftp negotiation.
  9218. * src/FtpNegotiationCommand.{h, cc}
  9219. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Added basic tag to --enable-dht, --dht-listen-port option.
  9221. * src/HelpItemFactory.cc (createHelpItems)
  9222. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Updated text.
  9224. * src/usage_text.h
  9225. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9227. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Determin _threadtholdSpeed in each constructor for
  9229. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9230. * src/ActivePeerConnectionCommand.{h, cc}
  9231. * src/PeerReceiveHandshakeCommand.{h, cc}
  9232. * src/BtSetup.cc
  9233. * src/BtConstants.h
  9234. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Added --bt-min-crypto-level and --bt-require-crypto options.
  9236. * src/OptionHandlerFactory.cc
  9237. * src/MSEHandshake.cc
  9238. * src/HelpItemFactory.cc
  9239. * src/option_processing.cc
  9240. * src/ReceiverMSEHandshakeCommand.cc
  9241. * src/prefs.h
  9242. * src/DefaultBtAnnounce.cc
  9243. * src/InitiatorMSEHandshakeCommand.cc
  9244. * src/usage_text.h
  9245. * test/MSEHandshakeTest.cc
  9246. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Bump version number to 0.13.0b
  9248. * configure.ac
  9249. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Updated doc.
  9251. * src/MessageDigestHelper.h:
  9252. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Use raw message digest as a token instead of its hexadecimal
  9254. representation.
  9255. * src/DHTTokenTracker.cc (generateToken)
  9256. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Added Message Stream Encryption(MSE) support.
  9258. Currently, aria2 accepts incoming connections with Obfuscation Header
  9259. and legacy BitTorrent Header and establishes connections with
  9260. Obfuscation Header first and if failed then retry with legacy
  9261. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9262. choose ARC4. The new option to change the default behavior is planned.
  9263. For tracker extension, "supportcrypto=1" is added statically.
  9264. * src/PeerInitiateConnectionCommand.{h, cc}
  9265. * src/PeerConnection.{h, cc}
  9266. * src/HandleRegistry.h
  9267. * src/SocketCore.h
  9268. * src/PeerReceiveHandshakeCommand.{h, cc}
  9269. * src/BtRegistry.{h, cc}
  9270. * src/PeerListenCommand.cc
  9271. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9272. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9273. * src/MSEHandshake.{h, cc}
  9274. * src/ARC4Encryptor.h
  9275. * src/ARC4Decryptor.h
  9276. * src/LibgcryptARC4Encryptor.h
  9277. * src/LibgcryptARC4Decryptor.h
  9278. * src/LibgcryptARC4Context.h
  9279. * src/LibsslARC4Encryptor.h
  9280. * src/LibsslARC4Decryptor.h
  9281. * src/LibsslARC4Context.h
  9282. * src/DHKeyExchange.h
  9283. * src/LibgcryptDHKeyExchange.h
  9284. * src/LibsslDHKeyExchange.h
  9285. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9286. * test/DefaultBtAnnounceTest.cc
  9287. * test/ARC4Test.cc
  9288. * test/DHKeyExchangeTest.cc
  9289. Removed prepareForRetry() because it is not used.
  9290. * src/PeerAbstractCommand.{h, cc}
  9291. * src/PeerInteractionCommand.{h, cc}
  9292. * src/PeerInitiateConnectionCommand.{h, cc}
  9293. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Added the ability to load nodes from torrent file. These nodes are
  9295. added to the routing table when downloading that torrent.
  9296. * src/BtContext.h
  9297. * src/DefaultBtContext.{h, cc}
  9298. * src/DHTSetup.cc
  9299. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9300. hostname and port pair, and resolves all of them.
  9301. * src/NameResolver.{h, cc}: Added reset().
  9302. * src/RequestGroup.cc
  9303. * test/DefaultBtContextTest.cc
  9304. * test/MockBtContext.h
  9305. Removed assert() from DefaultBtContext and throw exception instead.
  9306. * src/DefaultBtContext.cc
  9307. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Fixed segmentation fault bug when exiting if dht is disabled.
  9309. * src/RequestGroup.cc
  9310. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Fixed typo in log message and define the message in message.h
  9312. * src/TimedHaltCommand.cc
  9313. * src/message.h
  9314. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. Included RecoverableException.h to fix compilation error.
  9316. * test/DHTMessageFactoryImplTest.cc
  9317. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9319. * test/DHTPingMessageTest.cc
  9320. * test/DHTGetPeersMessageTest.cc
  9321. * test/DHTFindNodeMessageTest.cc
  9322. * test/DHTAnnouncePeerMessageTest.cc
  9323. * test/MockDHTMessage.h
  9324. * test/MockDHTMessageFactory.h
  9325. * test/MockDHTMessageDispatcher.h: New class.
  9326. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9328. virtual.
  9329. * src/DHTMessageDispatcher.h
  9330. * src/DHTMessageDispatcherImpl.{h, cc}
  9331. * src/DHTSetup.cc
  9332. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Adding handling of DHT error message. Just log error message and
  9334. throw exception.
  9335. * src/DHTMessageFactoryImpl.cc
  9336. * test/DHTMessageFactoryImplTest.cc
  9337. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Added handling of dynamic cast failure.
  9339. * src/DHTNodeLookupTask.cc
  9340. * src/DHTPeerLookupTask.cc
  9341. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Added the ability to stop aria2 itself when given time has passed
  9343. from start. Use --stop option to specify time in minutes.
  9344. When 0 is given, this feature is disabled.
  9345. * src/OptionHandlerFactory.cc
  9346. * src/TimeBasedCommand.h: Make _interval protected scope.
  9347. * src/HelpItemFactory.cc
  9348. * src/option_processing.cc
  9349. * src/prefs.h
  9350. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9351. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9352. Without this modification, the result list shows "ERR" when aria2 is
  9353. stopped by --stop option. It should be "INPR".
  9354. * src/DownloadEngine.{h, cc}
  9355. * src/DownloadEngineFactory.cc
  9356. * src/usage_text.h
  9357. * src/TimedHaltCommand.{h, cc}: New class.
  9358. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Bootstrap through node added by port message.
  9360. Currently bootstrap is executed if the number of buckets in routing
  9361. table is 1.
  9362. * src/BtPortMessage.{h, cc}
  9363. * src/DefaultBtMessageFactory.{h, cc}
  9364. * src/PeerInteractionCommand.cc
  9365. * test/BtPortMessageTest.cc
  9366. * test/MockDHTTask.h
  9367. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Extract the Peer class's member variables, which are only needed after
  9369. PeerInteractionCommand, into PeerSessionResource class.
  9370. This class is instantiated in PeerInteractionCommand class's ctor and
  9371. released in its dtor.
  9372. This will make Peer class lightweight and uses less memory for peers
  9373. which are not connected and wait in the queue.
  9374. * src/PeerChokeCommand.cc
  9375. * src/PeerSessionResource.{h, cc}
  9376. * src/PeerInteractionCommand.cc
  9377. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9378. * src/DefaultBtInteractive.cc
  9379. * src/BtPieceMessage.cc
  9380. * src/BtInterestedMessage.cc
  9381. * src/BtUnchokeMessage.cc
  9382. * src/DefaultPeerStorage.{h, cc}
  9383. * src/PeerInitiateConnectionCommand.cc
  9384. * src/ActivePeerConnectionCommand.cc
  9385. * src/BtNotInterestedMessage.cc
  9386. * src/DefaultBtMessageDispatcher.cc
  9387. * src/BtChokeMessage.cc
  9388. * src/BtRequestMessage.cc
  9389. * src/Peer.{h, cc}
  9390. * src/BtRegistry.h
  9391. * src/TrackerWatcherCommand.cc
  9392. * src/PeerReceiveHandshakeCommand.cc
  9393. * test/BtExtendedMessageTest.cc
  9394. * test/BtAllowedFastMessageTest.cc
  9395. * test/BtCancelMessageTest.cc
  9396. * test/DefaultPieceStorageTest.cc
  9397. * test/BtBitfieldMessageTest.cc
  9398. * test/BtHaveMessageTest.cc
  9399. * test/BtNotInterestedMessageTest.cc
  9400. * test/BtRequestMessageTest.cc
  9401. * test/PeerSessionResourceTest.cc
  9402. * test/DefaultBtMessageDispatcherTest.cc
  9403. * test/PeerTest.cc
  9404. * test/BtInterestedMessageTest.cc
  9405. * test/BtRejectMessageTest.cc
  9406. * test/BtChokeMessageTest.cc
  9407. * test/DefaultPeerStorageTest.cc
  9408. * test/BtHaveNoneMessageTest.cc
  9409. * test/BtHaveAllMessageTest.cc
  9410. * test/DefaultExtensionMessageFactoryTest.cc
  9411. * test/BtUnchokeMessageTest.cc
  9412. * test/DefaultBtMessageFactoryTest.cc
  9413. * test/HandshakeExtensionMessageTest.cc
  9414. * test/UTPexExtensionMessageTest.cc
  9415. * test/DefaultBtRequestFactoryTest.cc
  9416. * test/BtPieceMessageTest.cc
  9417. Removed typedef PeerStats.
  9418. * src/PeerStat.h
  9419. * src/SegmentMan.cc
  9420. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Added std namespace to copy, remove_copy, back_inserter,
  9422. front_inserter.
  9423. * src/RequestGroupMan.cc
  9424. * src/DefaultPieceStorage.cc
  9425. * src/StreamFileAllocationEntry.cc
  9426. * src/BtFileAllocationEntry.cc
  9427. * src/RequestGroup.cc
  9428. * src/MetalinkEntry.cc
  9429. * src/DelegatingPeerListProcessor.cc
  9430. * src/DefaultBtRequestFactory.cc
  9431. * src/DefaultBtMessageDispatcher.cc
  9432. * src/version_usage.cc: Included <algorithm>
  9433. * src/main.cc
  9434. * src/MetalinkParserController.cc
  9435. * src/DefaultBtContext.cc
  9436. * src/DownloadEngineFactory.cc
  9437. * src/a2algo.h
  9438. Removed.
  9439. * test/StreamUriListParserTest.cc
  9440. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9442. ActivePeerConnectionCommand when it is given and
  9443. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9444. * src/ActivePeerConnectionCommand.{h, cc}
  9445. * src/BtSetup.cc
  9446. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Only add socket to DownloadEngine's select routine when peer or
  9448. localhost is unchoked and interested. This lowers CPU usage a
  9449. little bit.
  9450. * src/PeerInteractionCommand.cc
  9451. * src/PeerAbstractCommand.{h, cc}
  9452. * src/BtInteractive.h
  9453. * src/DefaultBtInteractive.{h, cc}
  9454. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Revert previous change because get_peers message is needed for
  9456. announce_peer anyway.
  9457. * src/DHTGetPeersCommand.cc
  9458. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Request peers thought DHT only when download hasn't finished.
  9460. * src/DHTGetPeersCommand.cc
  9461. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9463. * src/DHTBucketRefreshTask.{h, cc}
  9464. * src/DHTSetup.cc
  9465. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9467. standard classes.
  9468. Included string.h where mem* function are used.
  9469. Added namespace aria2.
  9470. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Create directory before saving DHT routing table.
  9472. Now ios::failure is now handled properly.
  9473. * src/DHTAutoSaveCommand.cc
  9474. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Removed unnecessary cerr.
  9476. * src/DownloadEngine.cc
  9477. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Catch exception inside DHTMessageReceiver::receiveMessage().
  9479. Log unknown message.
  9480. * src/DHTMessageReceiver.{h, cc}
  9481. * src/DHTMessageFactory.h
  9482. * src/DHTMessageFactoryImpl.{h, cc}
  9483. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9484. * src/DHTInteractionCommand.cc
  9485. * src/DHTUnknownMessage.{h, cc}
  9486. * test/DHTUnknownMessageTest.cc
  9487. * test/MockDHTMessageFactory.h
  9488. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Commented out ip address comparison because a host can have multiple
  9490. ip addresses and it is hard to predict the hostname is resolved into
  9491. which one.
  9492. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9493. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. * po/Makefile.in: Removed since this is generated by configure.
  9495. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Fixed compiler warning about redefinition of SIZE_MAX.
  9497. Use common.h instead of config.h directly here.
  9498. * src/Platform.{h, cc}
  9499. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9500. here.
  9501. * common.h
  9502. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9503. Updated gettext related files.
  9504. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9505. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9506. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Added DHT functionality, compatible with mainline.
  9508. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9509. You may need to specify entry point to DHT network using
  9510. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9511. Use --dht-listen-port to specify port number. Make sure that your
  9512. firewall configuration can pass through UDP traffic to the port.
  9513. The routing table is saved in $HOME/.aria2/dht.dat.
  9514. * src/DHT*
  9515. * src/BNode.{h, cc}
  9516. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9517. particular torrent.
  9518. * src/Data.cc: Rewritten ctor.
  9519. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9520. --dht-entry-point.
  9521. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9522. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9523. ends, remove BtContext from DHTPeerAnnounceStorage.
  9524. * src/BtPortMessage.{h, cc}: Rewritten.
  9525. * src/message.h
  9526. * src/OptionHandlerImpl.cc
  9527. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9528. --dht-entry-point.
  9529. * src/Dictionary.{h, cc} (remove): New function.
  9530. * src/prefs.h
  9531. * src/DefaultBtMessageFactory.h
  9532. * src/BtHandshakeMessage.cc
  9533. * src/ActivePeerConnectionCommand.cc
  9534. * src/SocketCore.{h, cc}: Added datagram socket support.
  9535. * src/DefaultBtMessageFactory.cc
  9536. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9537. Create DHT commands.
  9538. * src/BtMessageFactory.h
  9539. * src/PeerMessageUtil.{h, cc}
  9540. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Fixed the bug that log file is not written when configuration file doesn't exist.
  9542. This is caused by using Logger class before LogFactory is not configured.
  9543. BUG #1875079
  9544. * src/option_processing.cc
  9545. Warning message "configuration doesn't exist" is only printed when --conf is
  9546. given.
  9547. * src/option_processing.cc
  9548. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9550. ShaVisitor is now deprecated and slated to be removed.
  9551. * src/DefaultBtContext.cc
  9552. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Externalize message to message.h
  9554. * src/Platform.cc
  9555. * src/message.h
  9556. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Set default domain and default path to cookie.
  9558. * src/HttpResponse.cc
  9559. * src/CookieBox.{h, cc}
  9560. * src/CookieParser.{h, cc}
  9561. * test/CookieParserTest.cc
  9562. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Added --no-conf and --conf-path command-line option.
  9564. --no-conf option disables loading aria2.conf file.
  9565. --conf-path option changes the configuration file path. The default
  9566. file path is $HOME/.aria2/aria2.conf
  9567. Added a warning message when the configuration file is not found.
  9568. * src/HelpItemFactory.cc
  9569. * src/option_processing.cc
  9570. * src/prefs.h
  9571. * src/usage_text.h
  9572. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Added the message to inform users that other help categories are
  9574. available in -h option.
  9575. * src/version_usage.cc
  9576. * src/TagContainer.{h, cc}
  9577. * test/TagContainerTest.cc
  9578. * src/TaggedItem.{h, cc}
  9579. * test/TaggedItemTest.cc
  9580. * src/HelpItem.h
  9581. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9583. from PiecedSegment's ctor.
  9584. Previously Piece::getAllMissingBlockIndexes() is called from
  9585. PiecedSegment() but it is rather expensive since only first element is
  9586. used.
  9587. * src/PiecedSegment.cc
  9588. * src/Piece.{h, cc}
  9589. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9591. each time these functions are called.
  9592. * src/BitfieldMan.{h, cc}
  9593. * test/BitfieldManTest.cc
  9594. * src/array_fun.h
  9595. * test/array_funTest.cc
  9596. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9597. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9598. filtered. Removed unnecessary cast to int32_t.
  9599. * src/BitfieldMan.{h, cc}
  9600. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9602. payload length(4bytes) are received. This happens because lenbufLength
  9603. is not updated in this particular case and successive call of
  9604. receiveMessage() overwrites payload length with bytes recieved which
  9605. are payload body.
  9606. * src/PeerConnection.{h, cc}
  9607. * src/message.h
  9608. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9610. peer if there are peers that have same ipaddr and port.
  9611. I've experiened segmentation fault and "pure virtual function was
  9612. called" error.
  9613. * src/Peer.h
  9614. * test/PeerTest.cc
  9615. * src/DefaultPeerStorage.cc
  9616. * test/DefaultPeerStorageTest.cc
  9617. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Removed a call to isPowerOf() because it is no longer necessary here
  9619. and a request block is not always power of 2.
  9620. BUG#1866924
  9621. * src/PeerMessageUtil.cc (checkLength)
  9622. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Fixed the bug that always first found Segment is removed from
  9624. usedSegmentEntries. Removed unused functions.
  9625. * src/SegmentMan.{h, cc}
  9626. * test/SegmentManTest.cc
  9627. Fixed the bug that ServerHost is not removed.
  9628. * src/RequestGroup.cc
  9629. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Fixed the bug that SegmentMan::completeSegment() is not called
  9631. even if Segment is complete when --lowest-speed-limit is enabled.
  9632. BUG#1864525
  9633. * src/DownloadCommand.{h, cc}
  9634. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Fixed: hash algorithm 'sha1' is always used.
  9636. * src/DownloadCommand.cc (validatePieceHash)
  9637. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Added --enable-peer-exchange command-line option.
  9639. * src/OptionHandlerFactory.cc
  9640. * src/HelpItemFactory.cc
  9641. * src/option_processing.cc
  9642. * src/usage_text.h
  9643. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Move extension from BtRuntime to ExtensionMessageFactory, because
  9645. extension can be specified per peer, not per torrent.
  9646. * src/DefaultBtInteractive.cc
  9647. * src/BtRuntime.h
  9648. * src/ExtendedMessagingAware.h
  9649. * src/ExtensionMessageFactory.h
  9650. * src/DefaultExtensionMessageFactory.cc
  9651. * test/DefaultExtensionMessageFactoryTest.cc
  9652. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Added categorized option help. Specify category using --help option.
  9654. Also added the ability to search options in forward match.
  9655. * src/HelpItem.{h, cc}
  9656. * test/HelpItemTest.cc
  9657. * src/HelpItemFactory.{h, cc}
  9658. * src/TagContainer.{h, cc}
  9659. * test/TagContainerTest.cc
  9660. * src/option_processing.cc
  9661. * src/prefs.h
  9662. * src/TaggedItem.{h, cc}
  9663. * test/TaggedItemTest.cc
  9664. * src/version_usage.cc
  9665. * src/help_tags.h
  9666. * src/usage_text.h
  9667. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Fixed segmentation fault when bad torrent metainfo is parsed.
  9669. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9670. and then throw exception or skip it.
  9671. * src/DefaultBtContext.{h, cc}
  9672. * test/DefaultBtContextTest.cc
  9673. * src/AnnounceList.cc
  9674. * src/CompactPeerListProcessor.cc
  9675. * src/message.h
  9676. * src/DefaultBtAnnounce.{h, cc}
  9677. * test/DefaultBtAnnounceTest.cc
  9678. * src/BencodeVisitor.cc
  9679. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Added missing "B"(=Byte). So now the message looks like this:
  9681. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9682. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9683. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Show the seed ratio after torrent downloads.
  9685. For example, after torrent download completed and --seed-time and
  9686. --seed-ratio conditions are fulfilled, following message is printed
  9687. right after "Download complete: .....":
  9688. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9689. * src/RequestGroupMan.cc
  9690. * src/RequestGroup.{h, cc}
  9691. * src/message.h
  9692. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Remove a defunct control file. A defunct control file means that while
  9694. it exists, but the corresponding download file is missing.
  9695. After its removal, a download restarts from the beginning.
  9696. * src/RequestGroup.cc
  9697. * src/message.h
  9698. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Allocate bitfield in Peer when it is really used. More specifically,
  9700. bitfield in Peer is allocated after the connection is established and
  9701. deallocated when the connection is dropped.
  9702. Since 2 parameters(piece length and total length) was removed from the
  9703. constructor of Peer class, many test classes were modified accordingly.
  9704. See svn log for more detailed information.
  9705. * src/PeerInteractionCommand.cc
  9706. * src/CompactPeerListProcessor.cc
  9707. * src/Peer.cc
  9708. * src/DefaultPeerListProcessor.cc
  9709. * src/PeerListenCommand.cc
  9710. * src/PeerReceiveHandshakeCommand.cc
  9711. Fixed memory leak
  9712. * src/Piece.cc
  9713. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9715. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9716. command-line options.
  9717. * src/option_processing.cc
  9718. * src/ActivePeerConnectionCommand.cc
  9719. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9720. Send have message to peer if it already has the piece.
  9721. * src/BtHaveMessage.{h, cc}
  9722. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9724. port.
  9725. * src/DefaultPeerStorage.{h, cc}
  9726. * test/DefaultPeerStorageTest.cc
  9727. * src/HandshakeExtensionMessage.cc
  9728. * test/HandshakeExtensionMessageTest.cc
  9729. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9730. * src/PeerStorage.h
  9731. * test/MockPeerStorage.h
  9732. * src/PeerListenCommand.cc
  9733. * src/PeerReceiveHandshakeCommand.cc
  9734. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Added --metalink-enable-unique-protocol option.
  9736. * src/Metalink2RequestGroup.cc
  9737. * src/option_processing.cc
  9738. * src/prefs.h
  9739. * src/version_usage.cc
  9740. * doc/aria2c.1.txt
  9741. * doc/aria2c.1
  9742. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Allow a peer in incomingPeer to be added peers.
  9744. * src/DefaultPeerStorage.cc
  9745. * test/DefaultPeerStorageTest.cc
  9746. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9748. I could reproduce this bug in following procedure:
  9749. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9750. 2. Restart aria2.
  9751. 3. You see the download stopped around 99%.
  9752. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9753. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9754. If timeout is reached, then _nextCommand is unused and it may contains
  9755. segments and they won't be canceled. Actually, timeout is not needed
  9756. here because if the server dropped connection, then retry is made.
  9757. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Added uTorrent compatible Peer Exchange.
  9759. * src/BencodeVisitor.{h, cc}
  9760. * test/BencodeVisitorTest.cc
  9761. * src/BtConstants.h
  9762. * src/BtContext.h: Added 'private' flag.
  9763. * src/BtExtendedMessage.{h, cc}
  9764. * test/BtExtendedMessageTest.cc
  9765. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9766. reserved field.
  9767. * test/BtHandshakeMessageTest.cc
  9768. * src/BtMessageFactory.h
  9769. * src/BtRegistry.h
  9770. * src/BtRuntime.h: This class holds default extension message IDs for
  9771. aria2. By default, aria2 uses ID 8 for ut_pex.
  9772. * src/DefaultBtContext.cc
  9773. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9774. When it is true, aria2 enables ut_pex. This value is set by
  9775. PeerInteractionCommand.
  9776. * src/DefaultBtMessageFactory.{h, cc}
  9777. * test/DefaultBtMessageFactoryTest.cc
  9778. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9779. handling to DefaultBtInteractive class.
  9780. * src/DefaultExtensionMessageFactory.{h, cc}
  9781. * test/DefaultExtensionMessageFactoryTest.cc
  9782. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9783. the container(peers and incomingPeers. The equality is determined by
  9784. Peer::id).
  9785. * test/DefaultPeerStorageTest.cc
  9786. * src/ExtensionMessage.h
  9787. * test/MockExtensionMessage.h
  9788. * src/ExtensionMessageFactory.h
  9789. * test/MockExtensionMessageFactory.h
  9790. * src/HandshakeExtensionMessage.{h, cc}
  9791. * test/HandshakeExtensionMessageTest.cc
  9792. * src/MetaEntry.h
  9793. * src/Peer.{h, cc}
  9794. * src/PeerInteractionCommand.cc
  9795. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9796. addIncomingPeer.
  9797. * src/PeerMessageUtil.{h, cc}
  9798. * src/PeerObject.h
  9799. * src/UTPexExtensionMessage.{h, cc}
  9800. * test/UTPexExtensionMessageTest.cc
  9801. * src/message.h
  9802. * src/prefs.h
  9803. Fixed the bug that returns incomplete data when it contains null
  9804. character. A convenient constructor was also added.
  9805. * src/Data.{h, cc}
  9806. Rewritten.
  9807. * src/CompactPeerListProcessor.cc
  9808. Fixed typos.
  9809. * src/message.h
  9810. * src/MetaFileUtil.cc
  9811. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Added "Status Legend" label to the explanation text of 'stat' in
  9813. download result and moved it to the last. BUG#1848214
  9814. * src/RequestGroupMan.cc
  9815. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9817. * src/Makefie.am
  9818. * test/Makefile.am
  9819. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Fixed the bug that prevents aria2 from loading cookie file when expire
  9821. value is greater than 2^31-1. BUG#1851066
  9822. * src/CookieBoxFactory.cc
  9823. * test/CookieBoxFactoryTest.cc
  9824. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Fixed possible memory leak when an exception is thrown.
  9826. * src/XML2SAXMetalinkProcessor.cc
  9827. Added Expat support. If both libxml2 and Expat are installed, then
  9828. libxml2 is used by default.
  9829. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9830. ExpatMetalinkProcessor according to the configuration.
  9831. * src/ExpatMetalinkProcessor.{h, cc}
  9832. * src/main.cc: Removed libxml2 specific header and init/free function.
  9833. * src/MetalinkProcessorFactory.{h, cc}
  9834. * src/MetalinkHelper.cc
  9835. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9836. * src/MetalinkProcessor.h
  9837. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9838. MetalinkProcessorTest is used instead.
  9839. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9840. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9841. MetalinkProcessorFactory::newInstance().
  9842. * m4/libexpat.m4
  9843. * configure.ac: Added configuration options for libexpat.
  9844. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Disabled -s option in metalink download.
  9846. * src/Metalink2RequestGroup.cc
  9847. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. If several protocols are available for a mirror in metalink file,
  9849. aria2 now use one of them. --metalink-preferred-protocol option was
  9850. added to specify the preference of protocol.
  9851. * src/AbstractCommand.cc
  9852. * src/OptionHandlerFactory.cc
  9853. * src/ServerHost.{h, cc}
  9854. * src/Metalink2RequestGroup.cc
  9855. * src/RequestGroup.{h, cc}
  9856. * test/RequestGroupTest.cc
  9857. * src/option_processing.cc
  9858. * src/prefs.h
  9859. * src/HttpResponseCommand.cc
  9860. * src/MetalinkResource.{h, cc}
  9861. * src/FtpNegotiationCommand.cc
  9862. * src/MetalinkEntry.{h, cc}
  9863. * src/MetalinkEntryTest.cc
  9864. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Code cleanup and added debug log.
  9866. * src/PeerConnection.cc
  9867. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Compiler error fix: applied the patch by Tiziano Mueller
  9869. * src/RequestGroup.cc
  9870. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9872. in stopped and completed event.
  9873. * src/AnnounceList.{h, cc}
  9874. * test/AnnounceListTest.cc
  9875. * src/DefaultBtAnnounce.cc
  9876. * test/DefaultBtAnnounceTest.cc
  9877. Sorted URLs.
  9878. * test/Metalink2RequestGroupTest.cc
  9879. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Removed unnecessary string copy. Updated doc and corrected indentation.
  9881. * src/Base64.cc
  9882. Fixed compilation warnings
  9883. * test/DataTest.cc
  9884. * test/HttpRequestTest.cc
  9885. * test/MetaFileUtilTest.cc
  9886. * test/RequestTest.cc
  9887. * Release 0.12.0
  9888. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Updated translations
  9890. * po/{de,fr,ja,nl,ru}.po
  9891. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9892. translations. Many thanks to translators.
  9893. * po/{ca,es,it,pt_BR,sv}.po
  9894. * po/LINGUAS
  9895. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Added a notice about URL
  9897. * src/version_usage.cc
  9898. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9899. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9900. aria2 repeatedly sends stopped request when tracker returns error code.
  9901. * src/AnnounceList.cc
  9902. * test/AnnounceListTest.cc
  9903. * src/AnnounceTier.h
  9904. Added a message when ctrl-c is hit.
  9905. Now second ctrl-c is also handled in signal handler.
  9906. * src/RequestGroupMan.{h, cc}
  9907. * src/RequestGroup.{h, cc}
  9908. * src/MultiUrlRequestInfo.cc
  9909. * src/DownloadEngine.cc
  9910. * src/TrackerWatcherCommand.cc
  9911. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Code cleanup
  9913. * src/Base64.cc (encode)
  9914. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. Changed Direct/IO enable/disable procesure in file allocation routine.
  9916. * src/SingleFileAllocationIterator.cc
  9917. (SingleFileAllocationIterator):
  9918. Disable directIO if offset is not multiple of 512.
  9919. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9920. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9921. Enable created SingleFileAllocationIterator's directIO.
  9922. * src/FileAllocationEntry.cc
  9923. (FileAllocationEntry): Enable directIO here.
  9924. (~FileAllocationEntry): Disable directIO here.
  9925. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9927. * src/Peer.{h, cc}
  9928. * src/DefaultPieceStorage.cc
  9929. * test/DefaultPieceStorageTest.cc
  9930. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Rewritten direct I/O support routine
  9932. * src/SingleFileAllocationIterator.cc
  9933. * src/MultiDiskAdaptor.{h, cc}
  9934. * src/ByteArrayDiskWriter.h
  9935. * src/AbstractSingleDiskAdaptor.h
  9936. * src/AbstractDiskWriter.cc
  9937. * src/DefaultPieceStorage.cc
  9938. * src/DiskWriter.h
  9939. * src/BinaryStream.h
  9940. * src/IteratableChunkChecksumValidator.cc
  9941. * src/IteratableChecksumValidator.cc
  9942. * src/CheckIntegrityEntry.cc
  9943. * src/FileAllocationEntry.cc
  9944. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Fixed typo
  9946. * src/version_usage.cc
  9947. Updated doc
  9948. * doc/aria2c.1.txt
  9949. * doc/aria2c.1
  9950. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Fixed compile error without message digest support.
  9952. * src/FileMetalinkParserState.cc
  9953. * src/MetalinkParserController.{h, cc}
  9954. * test/XML2SAXMetalinkProcessorTest.cc
  9955. * test/MetalinkParserControllerTest.cc
  9956. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Enable direct I/O support in checksum checking.
  9958. * src/IteratableChunkChecksumValidator.{h, cc}
  9959. * test/IteratableChunkChecksumValidatorTest.cc
  9960. * src/CheckIntegrityEntry.cc
  9961. * src/PieceHashCheckIntegrityEntry.cc
  9962. * src/IteratableChecksumValidator.{h, cc}
  9963. * src/BtCheckIntegrityEntry.cc: Added doc.
  9964. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Added --allow-piece-length-change option.
  9966. * src/DefaultBtProgressInfoFile.cc
  9967. * test/DefaultBtProgressInfoFileTest.cc
  9968. * src/OptionHandlerFactory.cc
  9969. * src/option_processing.cc
  9970. * src/prefs.h
  9971. * src/version_usage.cc
  9972. * doc/aria2c.1.txt
  9973. * doc/aria2c.1
  9974. Fixed: duplicated result entry appears when exception is thrown in
  9975. RequestGroup::createInitiateConnectionCommand().
  9976. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9977. Add RequestGroup to _requestGroup after RequetGroup::
  9978. createInitiateConnectionCommand() succeeds.
  9979. Externalized message
  9980. * src/XML2SAXMetalinkProcessor.cc
  9981. * src/message.h
  9982. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Forced download abort when received negative response from http/ftp
  9984. server.
  9985. * src/HttpResponseCommand.cc
  9986. * src/FtpNegotiationCommand.cc
  9987. * src/HttpResponse.cc
  9988. * src/FtpConnection.cc
  9989. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9991. the predecessor, Xml2MetalinkParser class.
  9992. I tested them against 94KB metalink file with 1234 chunk checksums.
  9993. The new one parsed it in 22msec, while it took 6000msec with old one.
  9994. * src/XML2SAXMetalinkProcessor.{h, cc}
  9995. * test/XML2SAXMetalinkProcessorTest.cc
  9996. * src/MetalinkParserController.{h, cc}
  9997. * test/MetalinkParserControllerTest.cc
  9998. * src/MetalinkParserState.h: Also added 16 subclasses.
  9999. * src/main.cc
  10000. * src/Metalink2RequestGroup.cc
  10001. * src/MetalinkHelper.cc
  10002. * src/MetalinkEntry.cc
  10003. * src/ChunkChecksum.h
  10004. Rewritten Base64 class for better performance.
  10005. * src/Base64.{h, cc}
  10006. * test/Base64Test.cc
  10007. * src/HttpRequest.cc
  10008. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Fixed the bug#1841757: aria2 will connect to server to only get
  10010. file size.
  10011. * src/StreamFileAllocationEntry.cc
  10012. * src/option_processing.cc
  10013. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10014. downloads.
  10015. * src/FtpNegotiationCommand.cc
  10016. Suppressed wrong message when finding PreDownloadHandler
  10017. * src/RequestGroup.cc
  10018. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Updated usage
  10020. * src/version_usage.cc
  10021. Updated man page
  10022. * doc/aria2c.1.txt
  10023. * doc/aria2c.1
  10024. Updated po files
  10025. * po/aria2c.pot
  10026. * po/*.po
  10027. * po/*.gmo
  10028. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Eliminated g++-4.2 warning
  10030. * src/DownloadHandlerConstants.{h, cc}
  10031. * src/Util.cc
  10032. * test/MetaFileUtilTest.cc
  10033. * test/PStringBuildVisitorTest.cc
  10034. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10035. * src/RequestGroup.cc
  10036. * src/BtCheckIntegrityEntry.cc
  10037. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Fixed a2io.h
  10039. * src/a2io.h
  10040. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Added direct I/O support. The current implementation uses O_DIRECT,
  10042. which is not posix standard and is tested on linux 2.6.21.
  10043. Currently only file allocation uses direct I/O.
  10044. * src/SingleFileAllocationIterator.{h, cc}
  10045. * test/SingleFileAllocationIteratorTest.cc
  10046. * src/MultiFileAllocationIterator.{h, cc}
  10047. * test/MultiFileAllocationIteratorTest.cc
  10048. * src/BinaryStream.h
  10049. * src/DiskWriter.h
  10050. * src/AbstractDiskWriter.{h, cc}
  10051. * src/ByteArrayDiskWriter.h
  10052. * src/DiskAdaptor.h
  10053. * src/AbstractSingleDiskAdaptor.{h, cc}
  10054. * src/MultiDiskAdaptor.{h, cc}
  10055. * src/FileAllocationEntry.cc
  10056. * src/Util.{h, cc}
  10057. * src/OptionHandlerFactory.cc
  10058. * src/prefs.h
  10059. * src/version_usage.cc
  10060. * src/option_processing.cc
  10061. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10062. handleException.
  10063. * src/MultiFileAllocationIterator.cc
  10064. Added EINTR handling
  10065. * src/SocketCore.cc
  10066. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Updated usage
  10068. * src/version_usage.cc
  10069. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Applied Ross's patch for MinGW port.
  10071. * src/DownloadEngine.h
  10072. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Set Content-Type to SingleFileDownloadContext when http response is
  10074. received.
  10075. * src/HttpResponseCommand.cc
  10076. * src/HttpResponse.{h, cc}
  10077. * test/HttpResponseTest.cc
  10078. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Rewritten to add content-type support.
  10080. * src/DownloadHandler.{h, cc}
  10081. * src/BtPostDownloadHandler.{h, cc}
  10082. * test/BtPostDownloadHandlerTest.cc
  10083. * src/MetalinkPostDownloadHandler.{h, cc}
  10084. * test/MetalinkPostDownloadHandlerTest.cc
  10085. * src/PostDownloadHandler.{h, cc}
  10086. * src/DownloadHandlerConstants.{h, cc}
  10087. * src/RequestGroup.cc
  10088. * src/HttpResponseCommand.cc
  10089. * src/FtpNegotiationCommand.cc
  10090. * src/SingleFileDownloadContext.{h, cc}
  10091. * src/RequestGroup.h
  10092. * src/RequestGroupCriteria.h
  10093. * src/ContentTypeRequestGroupCriteria.h
  10094. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10095. If it is give, metalink/torrent file is not written to the disk, but
  10096. just is kept in memory. Parsing is occurred on memory.
  10097. * src/MetalinkHelper.{h, cc}
  10098. * src/MetalinkProcessor.h
  10099. * src/Xml2MetalinkProcessor.{h, cc}
  10100. * test/Xml2MetalinkProcessorTest.cc
  10101. * src/DownloadHandlerFactory.{h, cc}
  10102. * test/DownloadHandlerFactoryTest.cc
  10103. * src/PreDownloadHandler.{h, cc}
  10104. * src/OptionHandlerFactory.cc
  10105. * src/DefaultBtContext.{h, cc}
  10106. * test/DefaultBtContextTest.cc
  10107. * src/version_usage.cc
  10108. * src/Metalink2RequestGroup.{h, cc}
  10109. * src/RequestGroup.{h, cc}
  10110. * src/a2functional.h
  10111. * test/a2functionalTest.cc
  10112. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10113. * src/OptionHandlerImpl.h
  10114. * src/prefs.h
  10115. * src/Util.{h, cc}
  10116. * test/UtilTest.cc
  10117. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10118. memory usage.
  10119. * src/RequestGroupMan.{h, cc}
  10120. * src/DownloadEngine.cc
  10121. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10122. WeakHandle to SharedHandle because WeakHandle could be null.
  10123. * src/RequestGroup.{h, cc}
  10124. * src/DownloadEngineFactory.cc
  10125. * src/DownloadResult.h
  10126. Set totalLength after download finished
  10127. * src/UnknownLengthPieceStorage.{h, cc}
  10128. Keep torrent file specified in metalink in memory.
  10129. * src/Metalink2RequestGroup.cc
  10130. * src/BtDependency.cc
  10131. * src/TrueRequestGroupCriteria.h
  10132. Fixed the bug: seekg is used where seekp should be used.
  10133. * src/ByteArrayDiskWriter.cc
  10134. * test/ByteArraydiskWriterTest.cc
  10135. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. Fixed syntax error
  10137. * test/SequenceTest.cc
  10138. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10140. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10141. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10142. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10143. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Added the check to see whether ares_host_callback accepts timeouts
  10145. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10146. * src/NameResolver.{h, cc}
  10147. * m4/libcares.m4
  10148. * configure.ac: Set C++ for language choice.
  10149. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Fixed: compilation fails without c-ares/ares
  10151. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10152. Generate http/ftp commands only when download is incomplete.
  10153. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10154. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Corrected typo. Examples are removed since they are available in man
  10156. page.
  10157. * src/version_usage.cc
  10158. Updated man page.
  10159. * doc/aria2c.1
  10160. * doc/aria2c.1.txt
  10161. * doc/makeman: Commented out sed command.
  10162. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Throw DlAbortEx when a remote file is not found.
  10164. * src/HttpResponse.cc
  10165. * src/FtpNegotiationCommand.cc
  10166. * src/message.h
  10167. Overwrite an existing file if --allow-overwrite=true is given.
  10168. * src/RequestGroup.cc
  10169. Removed unused functions
  10170. * src/AbstractCommand.h
  10171. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Removed 'extern' from 'extern typedef ...' in src/*.h
  10173. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10174. Updated usage
  10175. * src/version_usage.cc
  10176. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Trim announce URL
  10178. * src/DefaultBtContext.cc
  10179. * test/ShaVisitorTest.cc
  10180. Trim argument s. Give trimed s to exception constructor.
  10181. * src/Util.cc (parseInt)(parseLLInt)
  10182. * test/UtilTest.cc
  10183. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Set precision back to 1.
  10185. * src/ConsoleStatCalc.cc (calculateStat)
  10186. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Replaced strtol with Util::parseInt
  10188. * src/ChunkedEncoding.cc
  10189. * src/HttpConnection.cc
  10190. * src/CookieBoxFactory.cc
  10191. * src/ParameterizedStringParser.cc
  10192. * src/Util.cc
  10193. * test/UtilTest.cc
  10194. * test/OptionHandlerTest.cc
  10195. * src/Request.cc
  10196. Throw exception when empty string is given. The message for exception
  10197. changed.
  10198. * src/Util.cc (parseInt)(parseLLInt)
  10199. * src/message.h
  10200. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10202. set to 1.
  10203. * src/ConsoleStatCalc.cc (calculateStat)
  10204. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Preallocate non-requested file which is adjacent forward to requested
  10206. file('requested' files means the files given in --select-file option)
  10207. if they share a same piece.
  10208. This fixes long pause in the file system which doesn't support sparse
  10209. files like FAT32 while downloading.
  10210. * src/MultiFileAllocationIterator.{h, cc}
  10211. * test/MultiFileAllocationIteratorTest.cc
  10212. * src/FileEntry.{h, cc}
  10213. Removed unused _option.
  10214. * src/MultiDiskAdaptor.h
  10215. * test/MultiDiskAdaptorTest.cc
  10216. * src/DefaultPieceStorage.cc
  10217. Set the default value of --seed-ratio to 1.0.
  10218. If 0.0 is given, then seeding continues regardless of share ratio.
  10219. * src/version_usage.cc
  10220. * src/option_processing.cc
  10221. * src/BtSetup.cc
  10222. * doc/aria2c.1.txt
  10223. * doc/aria2c.1
  10224. Fixed: Selective download is not working in BitTorrent
  10225. * src/RequestGroup.cc
  10226. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10227. * src/PieceStorage.h
  10228. * test/MockPieceStorage.h
  10229. * src/UnknownLengthPieceStorage.h
  10230. * src/DefaultPieceStorage.{h, cc}
  10231. * src/Metalink2RequestGroup.cc
  10232. * src/RequestGroup.cc
  10233. * src/Sequence.h
  10234. * test/SequenceTest.cc
  10235. * src/IntSequence.h
  10236. * src/message.h
  10237. * src/Util.{h, cc}
  10238. * test/UtilTest.cc
  10239. Added new function 'parse' to catch exception thrown by subclass's
  10240. parseArg
  10241. * src/OptionHandler.h
  10242. * src/OptionParser.cc
  10243. * src/NameMatchOptionHandler.h
  10244. * src/OptionHandlerImpl.h
  10245. * test/OptionHandlerTest.cc
  10246. Added IntegerRangeOptionHandler. Used for --listen-port and
  10247. --select-file. Now --listen-port accepts range of port.
  10248. * src/OptionHandlerFactory.cc
  10249. * src/version_usage.cc
  10250. * src/OptionHandlerImpl.h
  10251. * src/option_processing.cc
  10252. * src/BtSetup.cc
  10253. * src/PeerListenCommand.{h, cc}
  10254. * doc/aria2c.1.txt
  10255. * doc/aria2c.1
  10256. Implemented operator< for Exception class to provide easy way to print
  10257. exception stack trace.
  10258. * src/Exception.{h, cc}
  10259. * src/main.cc
  10260. * src/option_processing.cc
  10261. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. * src/version_usage.cc
  10263. (showVersion): Reworked.
  10264. (showUsage): Added examples.
  10265. Removed Hint for total length and file name.
  10266. * src/Metalink2RequestGroup.cc
  10267. * src/RequestGroup.{h, cc}
  10268. * src/HttpResponseCommand.cc
  10269. * src/FtpNegotiationCommand.cc
  10270. Now --follow-torrent and --follow-metalink option work properly.
  10271. * src/RequestGroup.cc
  10272. Updated man page
  10273. * doc/aria2c.1.txt
  10274. * doc/aria2c.1
  10275. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Removed.
  10277. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10278. Use Segment::operator==()
  10279. * src/HttpConnection.cc
  10280. * src/Segment.h
  10281. Updated usage
  10282. * src/version_usage.cc
  10283. Added EINTR treatment.
  10284. * src/SocketCore.cc
  10285. * src/AbstractDiskWriter.cc
  10286. Rewritten.
  10287. * src/Util.cc (rangedFileCopy)
  10288. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Fixed typo.
  10290. * src/version_usage.cc
  10291. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Implemented. Now -c option works fine.
  10293. * src/DefaultPieceStorage.cc (markPiecesDone)
  10294. * test/DefaultPieceStorageTest.cc
  10295. Removed.
  10296. * src/SegmentMan.{h, cc}
  10297. (markAllPiecesDone)
  10298. (markPieceDone)
  10299. Synchronized po files with
  10300. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10301. * src/fr.po
  10302. * src/ru.po
  10303. * src/de.po
  10304. * src/ja.po
  10305. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Added ifdef and some modifications to compile without BitTorrent,
  10307. Metalink, MessageDigest
  10308. support.
  10309. * src/PieceHashCheckIntegrityEntry.cc
  10310. * src/MetalinkEntry.h
  10311. * src/version_usage.cc
  10312. * src/main.cc
  10313. * src/DownloadEngine.{h, cc}
  10314. * src/Metalink2RequestGroup.cc
  10315. * src/Peer.cc
  10316. * src/RequestGroup.cc
  10317. * src/MetalinkHelper.cc
  10318. * test/DefaultPieceStorageTest.cc
  10319. * test/MetalinkPostDownloadHandlerTest.cc
  10320. * test/Metalink2RequestGroupTest.cc
  10321. Hide TOTAL SPD when all downloads complete.
  10322. * src/ConsoleStatCalc.cc
  10323. Log target system information.
  10324. * src/main.cc
  10325. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Now --metalink-location accepts a comma-deliminated list of locations.
  10327. * src/MetalinkEntry.{h, cc}
  10328. * test/MetalinkEntryTest.cc
  10329. * src/version_usage.cc
  10330. * src/Metalink2RequestGroup.cc
  10331. * src/Xml2MetalinkProcessor.cc
  10332. * test/Xml2MetalinkProcessorTest.cc
  10333. * doc/aria2c.1.txt
  10334. * doc/aria2c.1
  10335. * src/Util.cc (toUpper)(toLower): Rewritten.
  10336. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Added the ability to detect duplicate download entry which is about to
  10338. download the same file other RequestGroup is downloading.
  10339. * src/RequestGroup.cc
  10340. * src/HttpResponseCommand.cc
  10341. * src/FtpNegotiationCommand.cc
  10342. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Recalculates download progress when loading a control file,
  10344. if the piece length of DownloadContext is different from the one saved
  10345. in the control file. Currently in-flight pieces are ignored.
  10346. * src/DefaultBtProgressInfoFile.cc
  10347. * test/DefaultBtProgressInfoFileTest.cc
  10348. * src/Util.{h, cc}
  10349. * test/UtilTest.cc
  10350. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Do not rotate tiers in announce-list.
  10352. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10353. AnnounceList::allTiersFailed() used instead to detect whether all
  10354. tiers are tried and failed.
  10355. * test/DefaultBtAnnounceTest.cc
  10356. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10357. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10358. * test/AnnounceListTest.cc
  10359. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10360. clause. Catch RecoverableException instead of DlRetryEx instead.
  10361. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. Implemented checksum validation feature(1 checksum for each file)
  10363. The validation takes place after the download.
  10364. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10365. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10366. * src/CheckIntegrityCommand.cc: Changed log message.
  10367. * src/Metalink2RequestGroup.cc: Set checksum to
  10368. SingleFileDownloadContext.
  10369. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10370. PieceHashCheckIntegrity class.
  10371. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10372. PieceHashCheckIntegrity class.
  10373. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10374. * src/IteratableValidator.h: New class.
  10375. * src/message.h
  10376. * src/CheckIntegrityEntry.{h, cc}
  10377. * src/IteratableChunkChecksumValidator.{h, cc}
  10378. * src/SingleFileDownloadContext.h
  10379. * src/DownloadCommand.cc
  10380. --allow-overwrite=true is no longer needed to check file integrity
  10381. before download in BitTorrent download.
  10382. * src/RequestGroup.cc (getInitialCommand)
  10383. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10384. throws exception.
  10385. * src/RequestGroupMan.cc (getInitialCommands)
  10386. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. urlencode the given url inside Request::parseUrl(...)
  10388. * src/Request.{h, cc}
  10389. * src/Util.{h, cc}
  10390. * test/RequestTest.cc
  10391. Removed #!metalink3! notation support because it is deleted from
  10392. the metalink specification.
  10393. * src/Request.{h, cc}
  10394. * test/RequestTest.cc
  10395. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Don't connect server before checking file integrity at startup, if
  10397. filesize and output file path are known.
  10398. * src/AbstractCommand.cc
  10399. * src/StreamFileAllocationEntry.cc
  10400. * src/Metalink2RequestGroup.cc
  10401. * src/RequestGroup.{h, cc}
  10402. * src/HttpResponseCommand.cc
  10403. * src/FtpNegotiationCommand.cc
  10404. Added DownloadFailureException. If it is thrown, RequestGroup should
  10405. halt.
  10406. * src/AbstractCommand.cc
  10407. * src/DownloadFailureException.h
  10408. * src/RequestGroup.cc
  10409. Catch RecoverableException, instead of DlAbortEx.
  10410. * src/RequestGroupMan.cc
  10411. * src/FillRequestGroupCommand.cc
  10412. * src/MetaFileUtil.cc
  10413. * src/IteratableChunkChecksumValidator.cc
  10414. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10415. getGID())
  10416. * src/CheckIntegrityCommand.cc
  10417. * src/message.h
  10418. Print gid instead of idx.
  10419. * src/RequestGroupMan.cc
  10420. Removed exception throwers declaration.
  10421. * src/DirectDiskAdaptor.{h, cc}
  10422. * src/SocketCore.{h, cc}
  10423. * src/MultiDiskAdaptor.{h, cc}
  10424. * src/HttpConnection.{h, cc}
  10425. * src/HttpResponse.{h, cc}
  10426. * src/DiskAdaptor.{h, cc}
  10427. * src/CopyDiskAdaptor.{h, cc}
  10428. * src/MultiDiskAdaptor.{h, cc}
  10429. * src/HttpHeaderProcessor.{h, cc}
  10430. * src/AbstractSingleDiskAdaptor.{h, cc}
  10431. * src/Util.{h, cc}
  10432. * test/UtilTest.cc
  10433. * src/DefaultDiskWriter.{h, cc}
  10434. * src/FtpConnection.{h, cc}
  10435. * src/AbstractDiskWriter.{h, cc}
  10436. Removed duplicate code.
  10437. * src/StreamCheckIntegrityEntry.cc
  10438. Removed unnecessary include.
  10439. * src/DiskWriter.h
  10440. Included Exception.h
  10441. * src/option_processing.cc
  10442. Included 2 files and added doc
  10443. * src/TrackerWatcherCommand.cc
  10444. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10445. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10446. Changed CheckIntegrityEntry interface so that it can define
  10447. the action when all the chunk checksums are valid.
  10448. * src/CheckIntegrityEntry.h
  10449. * src/StreamCheckIntegrityEntry.{h, cc}
  10450. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10451. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10452. to exit rather than doing seeding. So, it would be good to toggle this
  10453. behavior.
  10454. * src/CheckIntegrityCommand.cc
  10455. * src/AbstractCommand.cc
  10456. * src/RequestGroup.cc
  10457. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Reflect the download length of in-flight pieces.
  10459. It makes the download length readout more precise.
  10460. * src/DefaultPieceStorage.{h, cc}
  10461. * test/DefaultPieceStorageTest.cc
  10462. * src/a2functional.h
  10463. * test/a2functionalTest.cc
  10464. Lower CPU load when --max-download-limit is used.
  10465. There is up and down in speed indicator when enabling
  10466. http-pipelining but a download goes well. I think the problem is that
  10467. because http-pipelining is enabled, DownloadCommand is created for
  10468. each segment and in its constructor, PeerStat::downloadStart() is
  10469. called. In PeerStat::downloadStart(), speed calculation object is
  10470. reseted, which makes download speed zero.
  10471. * src/DownloadCommand.cc
  10472. Rewritten using accumulate.
  10473. * src/RequestGroupMan.cc (calculateStat)
  10474. Code clearnup.
  10475. * src/FtpNegotiationCommand.cc
  10476. * src/HttpResponseCommand.cc
  10477. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Fixed: Can not resume: aria2 reports download already finished.
  10479. * src/AbstractCommand.{h, cc}
  10480. * src/HttpResponseCommand.cc
  10481. * src/FtpNegotiateCommand.cc
  10482. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Now a file is stored in the directory specified in .metalnk file
  10484. (file[@name]).
  10485. * src/Metalink2RequestGroup.cc
  10486. Create the directory structure when opening the file if it doesn't
  10487. exist.
  10488. * src/AbstractDiskWriter.cc
  10489. * src/Util.{h, cc}
  10490. * src/File.h
  10491. * test/UtilTest.cc
  10492. Removed file name comparison
  10493. * src/Metalink2RequestGroup.cc
  10494. * src/HttpResponseCommand.cc
  10495. Rewritten using Util::mkdirs()
  10496. * src/FileEntry.cc (setupDir)
  10497. * test/FileEntryTest.cc
  10498. Updated doc
  10499. * src/SingleFileDownloadContext.h
  10500. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. Now SleepCommand dispatches nextCommand when halt is requested.
  10502. It avoids a possible long wait after hitting CTRL-C.
  10503. * src/SleepCommand.{h, cc}
  10504. * src/RequestGroupAware.{h, cc}
  10505. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10507. to open listen port, then remove the port number from the tracker
  10508. request.
  10509. * src/DefaultBtAnnounce.cc
  10510. * test/DefaultBtAnnounceTest.cc
  10511. * test/MockPieceStorage.h
  10512. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10513. them more testable.
  10514. * src/DefaultBtAnnounce.{h, cc}
  10515. * src/DefaultBtContext.{h, cc}
  10516. * src/Util.{h, cc}
  10517. * test/DefaultBtAnnounceTest.cc
  10518. * test/DefaultBtContextTest.cc
  10519. * test/UtilTest.cc
  10520. Added 'B' to upload bytes readout.
  10521. * src/ConsoleStatCalc.cc
  10522. Now the listen port for BitTorrent download is opened when it is
  10523. needed.
  10524. * src/DownloadEngineFactory.cc
  10525. * src/BtSetup.{h, cc}
  10526. * src/PeerListenCommand.{h, cc}
  10527. Now an exception thrown while parsing tracker response is now logged.
  10528. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10529. called, which means no retry is made in this case, assuming a tracker
  10530. has a problem.
  10531. * src/TrackerWatcherCommand.cc
  10532. Fixed: downloading a file whose length is unkown fails.
  10533. * src/DownloadCommand.cc
  10534. Simplified prepareForNextSegment()
  10535. * src/DownloadCommand.cc
  10536. Updated
  10537. * po/POTFILES.in
  10538. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Re-implemented a file listing for Metalink, which was dropped while
  10540. http/ftp/torrent integration was being implemented.
  10541. * src/MetalinkHelper.{h, cc}: New class.
  10542. * test/MetalinkHelperTest.cc
  10543. * src/main.cc
  10544. * src/Metalink2RequestGroup.cc
  10545. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Added the ability to display the detailed torrent file information.
  10547. Now -S option gives not only a file listing, but also total download
  10548. length, info hash, announce URI, piece length, the number of pieces,
  10549. and mode(single or multi-torrent).
  10550. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10551. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10552. KiB)
  10553. * test/UtilTest.cc
  10554. * src/main.cc
  10555. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10556. Added ftp://USER:PASSWD@Servername automatic parsing.
  10557. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10558. _password. Recognize username and password in URI.
  10559. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10560. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10561. * src/RequestFactory.{h, cc}: Removed.
  10562. * src/AuthConfigFactory.{h, cc}: New class.
  10563. * src/FtpConnection.cc: Use AuthConfigFactory.
  10564. * src/HttpRequest.cc: Use AuthConfigFactory.
  10565. * test/HttpRequestTest.cc: Updated.
  10566. * test/RequestTest.cc: Updated.
  10567. * test/AuthConfigFactoryTest.cc: New class.
  10568. * test/RequestFactoryTest.cc: Removed.
  10569. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. Use RequestGroup::allDownloadFinished() to decide whether the control
  10571. file should be removed or saved.
  10572. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10573. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10574. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Use File::renameTo()
  10576. * src/DefaultBtProgressInfoFile.cc
  10577. Added --no-file-allocation-limit command-line option.
  10578. * src/version_usage.cc
  10579. * src/option_processing.cc
  10580. * src/OptionHandlerFactory.cc
  10581. * src/RequestGroup.{h, cc}
  10582. * src/BtCheckIntegrityEntry.cc
  10583. * src/StreamCheckIntegrityEntry.cc
  10584. * src/prefs.h
  10585. * doc/aria2c.1.txt
  10586. * doc/aria2c.1
  10587. Now prealloc is the default value for --file-allocation option.
  10588. * src/version_usage.cc
  10589. * src/option_processing.cc
  10590. * doc/aria2c.1.txt
  10591. * doc/aria2c.1
  10592. Don't URL-encode user-agent.
  10593. * src/HttpRequest.cc
  10594. Updated translations
  10595. * po/LINGUAS: Added nl for Dutch translation.
  10596. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10597. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10598. * po/POTFILES.in: Updated.
  10599. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Added the ability to recognize url-list in a torrent file.
  10601. The retrieved URLs are attached to the corresponding FileEntry.
  10602. * src/DefaultBtContext.{h, cc}
  10603. * src/FileEntry.{h, cc}
  10604. * test/DefaultBtContextTest.cc
  10605. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10607. after the download finishes.
  10608. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10610. the data smaller than block length.
  10611. A block length can be specified by constructor's argument.
  10612. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10613. Get a missing piece in the range of given FileEntry. This function is
  10614. not used in the program yet.
  10615. * src/Util.h: Added some macros.
  10616. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. Added HTTP/1.1 keep alive and pipelining support.
  10618. See --enable-http-keep-alive and --enable-http-pipelining option.
  10619. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10620. Segment.
  10621. * src/HttpDownloadCommand.{h, cc}
  10622. * src/OptionHandlerFactory.cc
  10623. * src/HttpConnection.{h, cc}
  10624. * src/version_usage.cc
  10625. * src/HttpInitiateConnectionCommand.cc
  10626. * src/FtpInitiateConnectionCommand.cc
  10627. * src/Segment.h
  10628. * src/HttpRequestCommand.{h, cc}
  10629. * src/option_processing.cc
  10630. * src/prefs.h
  10631. * src/HttpResponseCommand.cc
  10632. * src/SegmentMan.{h, cc}
  10633. * src/FtpNegotiateCommand.cc
  10634. * src/HttpProxyResponseCommand.cc
  10635. * src/Request.cc
  10636. * src/HttpRequest.cc
  10637. * src/DownloadCommand.cc
  10638. * test/HttpRequestTest.cc
  10639. * test/RequestTest.cc
  10640. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10641. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10642. finished.
  10643. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10645. catching it inside the method.
  10646. When no file entry is found in a metalink without querying user
  10647. preferences, throw the exception with the error message that suggests
  10648. metalink file is probably broken.
  10649. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10650. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10652. processed.
  10653. * src/RequestGroupMan.cc (removeStoppedGroup)
  10654. Added debug message.
  10655. * src/BtPostDownloadHandler.cc
  10656. * src/MetalinkPostDownloadHandler.cc
  10657. * src/PostDownloadHandler.{h, cc}
  10658. * src/RequestGroup.cc
  10659. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10660. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10661. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10663. stops and there are any unfinished or in-progress downloads.
  10664. Added the legend of "stat".
  10665. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Throw exception when chunck checksum verification fails.
  10667. * src/DownloadCommand.cc (validatePieceHash): New function.
  10668. * src/PiecedSegment.{h, cc} (clear): New function.
  10669. * src/GrowSegment.{h, cc} (clear): New function.
  10670. * src/Segment.h (clear): New function.
  10671. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10672. * test/SegmentTest.cc
  10673. * test/GrowSegmentTest.cc
  10674. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. Do not send referer when redirected.
  10676. * src/Request.cc (redirectUrl)
  10677. * test/RequestTest.cc
  10678. * test/HttpRequestTest.cc
  10679. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Implemented BitTorrent/http/ftp integrated download.
  10681. I've rewritten lots of files and now some headers have forward
  10682. class declarations to reduce compile time.
  10683. The implementation is extremely alpha stage, I recommend to use this
  10684. for testing purpose only.
  10685. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Fixed the compilation error on 64bit platform.
  10687. * test/HttpHeaderProcessorTest.cc
  10688. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Merged Ross's patch that fixes compilation problem in MinGW
  10690. * test/DefaultBtProgressInfoFileTest.cc
  10691. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Updated fr.po by sebone
  10693. * po/fr.po
  10694. Updated man page.
  10695. * doc/aria2c.1.txt
  10696. * Release 0.11.3
  10697. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10699. failure in Metalink.
  10700. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Automatically save *.aria2 control file of http/ftp download in every
  10702. 60 seconds.
  10703. * src/AutoSaveCommand.{h, cc}: New class.
  10704. * src/TimeBasedCommand.{h, cc}: New class.
  10705. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10706. Disable parameterized URI support by default. Added -P option to
  10707. enable the feature.
  10708. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10709. * src/OptionHandlerFactory.cc
  10710. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10711. Updated Japanese translation.
  10712. * po/ja.po
  10713. Updated man page.
  10714. * doc/aria2c.1.txt
  10715. * Release 0.11.3-rc
  10716. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10718. it is successful, then renamed to *.aria2.
  10719. This prevents *.aria2 file from being truncated or corrupted when
  10720. file system becomes out of space.
  10721. * src/DefaultBtProgressInfoFile.cc (save)
  10722. * src/SegmentMan.cc (save)
  10723. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10724. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Reduced the fragmentation of bitfield in http/ftp download.
  10726. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10727. * test/BitfieldManTest.cc
  10728. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Added the ability to disable segmented download in .metalink.
  10730. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10731. 'url' tag.
  10732. * src/MetalinkEntry.{h, cc}
  10733. * src/RequestResource.{h, cc}
  10734. * src/MetalinkRequestInfo.cc
  10735. * src/Xml2MetalinkProcessor.cc
  10736. * test/Xml2MetalinkProcessorTest.cc
  10737. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Added parameterized URI support.
  10739. * src/main.cc: -Z option added.
  10740. * src/OptionHandlerFactory.cc
  10741. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10742. * src/PStringDatum.h: New class.
  10743. * src/PStringSegment.{h,cc}: New class.
  10744. * src/PStringNumLoop.h: New class.
  10745. * src/PStringSelect.h: New class.
  10746. * src/NumberDecorator.h: New class.
  10747. * src/FixedWidthNumberDecorator.h: New class.
  10748. * src/AlphaNumberDecorator.h: New class.
  10749. * src/PStringVisitor.h: New class.
  10750. * src/PStringBuildVisitor.{h,cc}: New class.
  10751. * src/ParameterizedStringParser.{h,cc}: New class.
  10752. * src/Util.{h,cc}
  10753. (isNumber): New function.
  10754. (isLowercase): New function.
  10755. (isUppercase): New function.
  10756. (alphaToNum): New function.
  10757. * test/ParameterizedStringParserTest.cc: New class.
  10758. * test/AlphaNumberDecoratorTest.cc: New class.
  10759. * test/PStringBuildVisitorTest.cc: New class.
  10760. * test/UtilTest.cc
  10761. (testIsNumber): New function.
  10762. (testIsLowercase): New function.
  10763. (testIsUppercase): New function.
  10764. (testAlphaToNum): New function.
  10765. Added '\n' after the error message
  10766. * src/RequestInfo.h (printDownloadAbortMessage)
  10767. Added auto file renaming feature in http(s)/ftp download.
  10768. * src/main.cc: Added --auto-file-renaming command-line option.
  10769. * src/OptionHandlerFactory.cc
  10770. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10771. * src/RequestGroup.{h, cc}
  10772. (shouldCancelDownloadForSafety): Rewritten
  10773. (tryAutoFileRenaming): New function.
  10774. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10775. * src/HttpResponseCommand.cc
  10776. (executeInternal): Removed the call to RequestGroupMan::
  10777. isSameFileBeingDownloaded()
  10778. * src/FtpNegotiateCommand.cc
  10779. (recvSize): Removed the call to RequestGroupMan::
  10780. isSameFileBeingDownloaded()
  10781. * test/RequestGroupTest.cc: New class.
  10782. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10784. IO.
  10785. * src/DefaultBtProgressInfoFile.cc
  10786. * src/MetaFileUtil.cc
  10787. * src/SimpleLogger.cc
  10788. * src/SegmentMan.cc
  10789. * src/Util.cc
  10790. * src/Platform.cc
  10791. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10793. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10795. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10796. Fixed the bug that prevents file allocation is not done when
  10797. dowloading multi-torrent file.
  10798. * src/AbstractDiskWriter.cc (openFile)
  10799. Increase the maximum number of -j option from 15 to 45.
  10800. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10801. Added fr.po, thanks to Charles Landemaine.
  10802. * po/fr.po
  10803. * po/LINGUAS
  10804. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10805. gcc 3.4.4 support:
  10806. * src/DefaultBtContext.cc: int32_t -> int
  10807. * src/main.cc: int -> int32_t, int32_t -> int
  10808. * src/messageDigest.h: uint32_t -> unsigned int
  10809. * src/NameResolver.h: int32_t -> int
  10810. * src/PeerConnection.cc: int -> int32_t
  10811. * src/SpeedCalc.cc: int32_t -> int
  10812. * src/TrackerUpdateCommand.h: int -> int32_t
  10813. * src/Util.cc: int32_t -> int
  10814. * src/Util.h: int32_t -> int
  10815. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10816. * test/AnnounceListTest.cc: int -> int32_t
  10817. * test/ChunkedEncodingTest.cc: int -> int32_t
  10818. * test/DataTest.cc: int -> int32_t
  10819. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10820. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10821. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10822. * test/FeatureConfigTest.cc: int -> int32_t
  10823. * test/MetalinkEntryTest.cc: int -> int32_t
  10824. * test/MockBtRequestFactory.h: int -> int32_t
  10825. * test/MockPieceStorage.h: int -> int32_t
  10826. * test/OptionTest.cc: int -> int32_t
  10827. * test/RequestTest.cc: int -> int32_t
  10828. * test/SegmentManTest.cc: int -> int32_t
  10829. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10830. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10831. Move sleep functions to Util class:
  10832. * src/Util.cc
  10833. (sleep): New function.
  10834. (usleep): New function.
  10835. * src/DownloadCommand.cc: sleep -> Util::sleep
  10836. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10837. MinGW build enhancements. The following files are added:
  10838. * src/timegm.{c,h}
  10839. Changes to support the above new files:
  10840. * configure.ac
  10841. * src/Makefile.am
  10842. * src/a2time.h
  10843. * src/Util.cc:
  10844. * src/strptime.c: Added support for %Z option.
  10845. Fixed MinGW non-blocking bug.
  10846. * src/SocketCore.cc
  10847. * src/HttpRequestCommand.cc
  10848. Miscellenous build fixes/enhancements.
  10849. * configure.ac: Added summary report.
  10850. * src/Platform.h: Tweaked #include's.
  10851. * src/a2netcompat.h: Tweaked #include's.
  10852. * src/strptime.h: Tweaked #include's.
  10853. * src/gai_strerror.c: Tweaked #include's.
  10854. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10855. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10856. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10857. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Increased the initial connection size in BitTorrent download to 40.
  10859. * src/BtRuntime.h
  10860. Added the usage message of --peer-id-prefix option.
  10861. * src/main.cc
  10862. * Release 0.11.2
  10863. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. MessageDigestHelper is introduced in order to simplify the use
  10865. of message digest. Removed repeated code.
  10866. The message digest algorithm is now specified by string, like "sha1",
  10867. "md5".
  10868. * src/messageDigest.{h, cc}
  10869. * src/MessageDigestHelper.{h, cc}: New class.
  10870. * src/DefaultPieceStorage.cc
  10871. * src/DefaultBtContext.{h, cc}
  10872. (computeFastSet): New function.
  10873. (setInfoHash): Added for unit testing.
  10874. (setNumPieces): Added for unit testing.
  10875. * src/DefaultBtInteractive.cc
  10876. * src/BtPieceMessage.cc
  10877. * src/Peer.cc
  10878. * src/Checksum.h
  10879. * src/message.h
  10880. * src/IteratableChecksumValidator.h
  10881. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10882. inside it.
  10883. * src/SegmentMan.{h, cc}
  10884. (checkIntegrity): Removed.
  10885. * src/IteratableChunkChecksumValidator.{h, cc}
  10886. * src/Util.h
  10887. (sha1Sum): Removed.
  10888. (simpleMessageDigest): Removed.
  10889. (fileChecksum): Removed.
  10890. (computeFastSet): Removed.
  10891. * src/ShaVisitor.cc
  10892. * src/ChunkChecksum.h
  10893. * src/DownloadCommand.cc
  10894. Removed messageDigest virtual functions.
  10895. * src/MultiDiskAdaptor.{h, cc}
  10896. * src/DiskAdaptor.h
  10897. * src/ByteArrayDiskWriter.h
  10898. * src/DiskWriter.h
  10899. * src/DiskAdaptorWriter.h
  10900. * src/AbstractSingleDiskAdaptor.{h, cc}
  10901. * src/AbstractDiskWriter.{h, cc}
  10902. Fixed comilation error when message digest is disabled.
  10903. * src/MetalinkEntry.{h, cc}
  10904. * src/MetalinkRequestInfo.cc
  10905. Removed srandom and random.
  10906. * src/SimpleRandomizer.h
  10907. Added size() virtual function to DiskAdaptor
  10908. * src/MultiDiskAdaptor.h
  10909. Fixed the bug that causes that files are not opened correctly in
  10910. multi-file torrent.
  10911. * src/TorrentRequestInfo.cc
  10912. * src/MultiDiskAdaptor.cc
  10913. Added SHA256 support
  10914. * src/messageDigest.cc
  10915. * src/Xml2MetalinkProcessor.cc
  10916. Show supported message digest algorithms
  10917. * src/main.cc
  10918. Updated contact info.
  10919. * src/main.cc
  10920. Applied Ross's patch
  10921. * src/a2netcompat.h
  10922. * src/main.cc
  10923. Fixed the bug that prevents a remote metalink from not being processed
  10924. even if '-o foo.metalink' is specified.
  10925. * src/MetalinkRequestInfo.cc
  10926. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Merged Dan's patch:
  10928. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10929. Use va_copy to avoid core dump on amd64:
  10930. * src/SimpleLogger.cc
  10931. Updated contact info.
  10932. * src/main.cc
  10933. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10934. digest is not available.
  10935. * src/MetalinkEntry.h
  10936. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Make a2netcompat.h include a2io.h to fix compilation error:
  10938. * src/a2netcompat.h
  10939. * src/SocketCore.cc: Removed include of a2io.h
  10940. * src/Util.cc: Removed include of a2io.h
  10941. Gather time related functions to a2time.h:
  10942. * src/a2time.h: New file.
  10943. * src/DefaultPeerStorage.cc
  10944. * src/SimpleLogger.cc
  10945. * src/Util.{h, cc}
  10946. * src/SimpleRandomizer.h
  10947. * src/TimeA2.{h,cc}
  10948. * src/DownloadCommand.cc
  10949. * src/main.cc
  10950. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10951. a2netcompat.h:
  10952. * src/NameResolver.cc
  10953. Fixed compilation error without openssl:
  10954. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10955. Added default block to suppress compiler warnings:
  10956. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10957. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10958. MinGW build enhancements. The following files are added:
  10959. * src/gai_strerror.{c,h}
  10960. * src/gettimeofday.{c,h}
  10961. Changes to support the above new files:
  10962. * configure.ac
  10963. * src/Makefile.am
  10964. * src/a2netcompat.h
  10965. * src/TimeA2.cc
  10966. * src/DefaultPeerStorage.cc
  10967. * src/NameResolver.cc: removed mingw_strerror() function.
  10968. * src/SocketCore.cc: removed mingw_strerror() function.
  10969. Miscellaneous MinGW build fixes.
  10970. * src/a2io.h: Use _lseeki64() instead of lseek()
  10971. * src/common.h
  10972. * src/DefaultFileAllocator.cc
  10973. * src/GlowFileAllocator.cc
  10974. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10975. * src/NameResolver.cc
  10976. (callback): Changed int32_t to int.
  10977. (resolve): Changed int32_t to int.
  10978. * src/Platform.cc
  10979. * src/Platform.h
  10980. * test/MultiDiskWriterTest.cc
  10981. * test/PeerMessageUtilTest.cc
  10982. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10983. Other enhancements and fixes.
  10984. * src/HttpRequestCommand.cc
  10985. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10986. * src/SocketCore.cc:
  10987. (error): New function to abstract errno/WSAGetLastError().
  10988. (errorMsg): New function to abstract errno/WSAGetLastError().
  10989. (initiateSecureConnection): Added more detailed error reporting.
  10990. * src/SocketCore.h: Added private variable blocking, to allow
  10991. proper handling of OpenSSL psuedo-errors.
  10992. * src/message.h
  10993. (EX_SSL_INIT_FAILURE)
  10994. (EX_SSL_IO_ERROR)
  10995. (EX_SSL_PROTOCOL_ERROR)
  10996. (EX_SSL_UNKNOWN_ERROR)
  10997. (EX_SSL_CONNECT_ERROR)
  10998. (EX_SOCKET_BLOCKING)
  10999. (EX_SOCKET_NONBLOCKING)
  11000. (EX_SOCKET_UNKNOWN_ERROR)
  11001. * src/Util.cc
  11002. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11003. reserved name.
  11004. (httpGMT): Fixed typo.
  11005. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. Merged Ross's win32 patch(manually)
  11007. In the course of merging, following files are added.
  11008. * src/strptime.{h,c}
  11009. * src/libgen.{h,c}
  11010. * src/inet_aton.{h,c}
  11011. * src/Platform.{h,cc}
  11012. * src/localtime_r.{h,c}
  11013. * src/getaddrinfo.{h,c}
  11014. I've gethered network related things, and put them to following file:
  11015. * src/a2netcompat.h
  11016. Also io related things are put to following file:
  11017. * src/a2io.h
  11018. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11019. * src/message.h
  11020. (MSG_ALLOCATION_COMPLETED)
  11021. (EX_TOO_LARGE_FILE)
  11022. (EX_SIZE_MISMATCH)
  11023. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11024. (EX_INVALID_CHUNK_CHECKSUM)
  11025. (EX_INVALID_RANGE_HEADER)
  11026. * src/FileAllocationCommand.cc
  11027. * src/HttpResponse.cc
  11028. * src/RequestGroup.cc
  11029. * src/MultiDiskAdaptor.cc
  11030. * src/OptionHandlerImpl.h
  11031. * src/HttpResponseCommand.cc
  11032. * src/FtpNegotiateCommand.cc
  11033. * src/IteratableChecksumValidator.cc
  11034. * src/SegmentMan.cc
  11035. * src/ChunkChecksumValidator.cc
  11036. Added Randomizer::getRandomNumber(long int)
  11037. * src/Randomizer.h (getRandomNumber)
  11038. * src/SimpleRandomizer.h (getRandomNumber)
  11039. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11040. * src/Util.cc (randomAlpha): Use this new function.
  11041. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Converted int's to in32_t. long long int's are also converted to
  11043. int64_t
  11044. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Fixed the bug that prevents cookies from being sent to the server
  11046. if the domain of cookie is FQDN and starts with ".".
  11047. * src/Cookie.cc (match)
  11048. To add the ability to change peer id.
  11049. * src/DefaultBtContext.h
  11050. (_peerIdPrefix): New variable
  11051. (setPeerIdPrefix): New function.
  11052. * src/torrentRequestInfo.cc
  11053. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11054. DefaultBtContext.
  11055. * src/main.cc (main): Added peer-id-prefix command-line option.
  11056. The usage message is not added yet.
  11057. * src/DefaultBtContext.cc
  11058. (generatePeerId): Use _peerIdPrefix.
  11059. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11060. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Fixed the bug that prevents filename in content-disposition from
  11062. being retrieved when filename is not quoted.
  11063. * src/Util.cc (getContentDispositionFilename)
  11064. Fixed the bug that causes infinate loop and memory leak when file open
  11065. operation failed.
  11066. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11067. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. Fixed the bug that causes segfault when all URIs specified are
  11069. unsupported.
  11070. * src/RequestGroupMan.cc (getInitialCommands)
  11071. Check if RequestGroup::createNextCommand() returns empty list of
  11072. commands.
  11073. * src/RequestGroup.cc (createNextCommand)
  11074. Change log level from info to error so that users can notice that
  11075. an error occurred.
  11076. Fixed the bug that causes segfault when a zero-sized file is
  11077. downloaded.
  11078. * src/BitfieldMan.cc (isAllBitSet)
  11079. Return true if bitfieldLength is 0.
  11080. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. * src/main.cc
  11082. (showUsage): Added 3 usage examples for metalink download.
  11083. Replace MetalinkChunkChecksum with ChunkChecksum.
  11084. * src/MetalinkChunkChecksum.h: Removed.
  11085. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11086. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11087. * src/Xml2MetalinkProcessor.cc
  11088. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11089. * src/MetalinkRequestInfo.cc (execute)
  11090. * Release 0.11.1
  11091. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Reads URIs from stdin when "-i -" is specified.
  11093. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11094. * src/UriListParser.h, src/UriListParser.cc: New class.
  11095. * src/StreamUriListParser.h: New class.
  11096. * src/FileUriListParser.h: New class.
  11097. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11098. instead of UriFileListParser.
  11099. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11100. Made console readout more readable.
  11101. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11102. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11103. Fix the bug that causes -s option not to work.
  11104. * src/main.cc (main)
  11105. * src/a2algo.h: New file.
  11106. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Create directory structure specified in metalink file.
  11108. * src/RequestGroup.h, src/RequestGroup.cc
  11109. (initAndOpenFile): Create a directory to store files if it does not
  11110. exist.
  11111. (getDir): New function.
  11112. Added ETA and download speed for an individual file to readout.
  11113. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11114. * src/RequestGroup.h
  11115. (calculateDownloadSpeed): New function.
  11116. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Made -S option work with metalink file and provided selective download
  11118. to metalink.
  11119. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11120. (filename): Removed.
  11121. (file): New variable.
  11122. (size): Removed.
  11123. (operator=): Updated.
  11124. (getPath): New function.
  11125. (getLength): New function.
  11126. (toFileEntry): New function.
  11127. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11128. (execute): Use toStream.
  11129. (showFileEntry): Removed.
  11130. * src/MetalinkRequestInfo.h
  11131. (targetFiles): New variable.
  11132. (setTargetFiles): New variable.
  11133. * src/MetalinkRequestInfo.cc
  11134. (execute): Added the ability to print file information included in
  11135. a metalink file.
  11136. Added selective download mode to metalink.
  11137. * src/main.cc
  11138. (showUsage): Updated to denote that -S and --select-file options are
  11139. applicable to metalink.
  11140. * src/FileEntry.h
  11141. (operator=): New function.
  11142. (getBasename): New function.
  11143. (getDirname): New function.
  11144. * src/Util.h, src/Util.cc
  11145. (toStream): New function.
  11146. * src/Xml2MetalinkProcessor.cc: Updated.
  11147. Made aria2 work with metalink with directory structure.
  11148. * src/File.h, src/File.cc
  11149. (getBasename): New function.
  11150. (getDirname): New function.
  11151. * src/RequestGroup.h, src/RequestGroup.cc
  11152. (_topDir): New variable.
  11153. (setTopDir): New function.
  11154. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11155. Rewrote HTTP header parsing with stringstream.
  11156. * src/HttpConnection.h, src/HttpConnection.cc
  11157. (HttpRequestEntry): New class.
  11158. (headerBuf): Removed.
  11159. (headerBufLength): Removed.
  11160. (outstandingHttpRequests): Now its element type is
  11161. HttpRequestEntryHandle.
  11162. (findEndOfHeader): Removed.
  11163. (receiveResponse): Rewritten.
  11164. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11165. Updated doc for -j option to notice that it should be used with -i
  11166. option.
  11167. * src/main.cc (showUsage)
  11168. Removed unused classes.
  11169. * src/RequestInfo.h
  11170. (FileInfo): Removed.
  11171. (checksum): Removed.
  11172. (fileInfo): Removed.
  11173. (setChecksum): Removed.
  11174. (getChecksum): Removed.
  11175. (getFileInfo): Removed.
  11176. Use ISO units.
  11177. * src/ConsoleDownloadEngine.cc
  11178. * src/TorrentConsoleDownloadEngine.cc
  11179. * src/Util.cc (abbrevSize)
  11180. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. Added the default listening ports to the help message.
  11182. * src/main.cc (showUsage)
  11183. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Reduce the number of calls to gettimeofday to lower CPU load.
  11185. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11186. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11187. * src/Peer.h (calculateUploadSpeed): New function.
  11188. (calculateDownloadSpeed): New function.
  11189. * src/DefaultPeerStorage.cc
  11190. (CalculateStat): Added _now variable.
  11191. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11192. and Peer::calculateUploadSpeed(const struct timeval&)
  11193. Drop connection if no request or piece message is exchanged in
  11194. a certain interval.
  11195. * src/DefaultBtInteractive.h
  11196. (btRuntime): New variable.
  11197. (inactiveCheckPoint): New variable.
  11198. (checkActiveInteraction): New function.
  11199. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11200. request or piece message is received.
  11201. (checkActiveInteraction): New function.
  11202. (doInteractionProcessing): Call checkActiveInteraction.
  11203. Fixed the bug that causes remote Metalink and Torrent files are not
  11204. processed.
  11205. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11206. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Changed format of log file.
  11208. * src/SimpleLogger.cc
  11209. * Release 0.11.0
  11210. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. * src/AbstractCommand.cc
  11212. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11213. MSG_MAX_TRY from error to info.
  11214. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11215. * src/message.h
  11216. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11217. (MSG_DOWNLOAD_ABORTED): Added %s.
  11218. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11219. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11220. * src/PeerAbstractCommand.cc
  11221. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11222. * src/Request.h
  11223. (cookieBox): Made ShardHandle.
  11224. * src/RequestGroup.h, src/RequestGroup.cc
  11225. (createNextCommandWithAdj): New function.
  11226. * src/FileAllocationCommand.cc
  11227. (executeInternal): Use createNextCommandWithAdj().
  11228. * src/CheckIntegrityCommand.cc
  11229. (executeInternal): Use createNextCommandWithAdj().
  11230. Added --load-cookies command-option.
  11231. * src/OptionHandlerFactory.cc
  11232. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11233. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11234. Now aria2 can handle cookie's expiration date.
  11235. * src/Cookie.h (expires): Changed its type to time_t.
  11236. * src/main.cc: Added --load-cookies command-line option.
  11237. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11238. * src/Util.h, src/Util.cc (httpGMT): New function.
  11239. * src/Request.cc (Request): Initialize cookieBox using
  11240. CookieBoxFactory.
  11241. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11242. * src/CookieParser.h, src/CookieParser.cc: New class.
  11243. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11244. * src/HttpResponseCommand.cc
  11245. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11246. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11247. download.
  11248. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. Added -j command-line option.
  11250. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11251. * src/main.cc
  11252. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11253. Rewritten using stringstream.
  11254. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11255. Rewritten using stringstream.
  11256. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Make download size shown in MB, KB.
  11258. * src/ConsoleDownloadEngine.h (sendStatistics)
  11259. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11260. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Accept incoming connections if download rate is low.
  11262. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11263. (_lowestSpeedLimit): New variable.
  11264. (setLowestSpeedLimit): New function.
  11265. (execute): Accept incoming connections if download rate is low.
  11266. MAX_PEERS is ignored in this case.
  11267. Disable PREF_OUT in multiple concurrent download:
  11268. * src/RequestGroup.h, src/RequestGroup.cc
  11269. (setUserDefinedFilename): New function.
  11270. * src/DownloadEngineFactory.cc
  11271. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11272. concurrent download.
  11273. * src/DefaultSegmentManFactory.cc
  11274. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11275. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11277. Added its overloaded method.
  11278. * src/RequestGroup.h
  11279. (_numConcurrentCommand): New variable.
  11280. (setNumConcurrentCommand): New function.
  11281. * src/RequestGroup.cc
  11282. Abort download if same file is being downloaded concurrently.
  11283. * src/RequestGroup.h, src/RequestGroupMan.cc
  11284. (isSameFileBeingDownloaded): New function.
  11285. * src/HttpResponseCommand.cc (executeInternal)
  11286. * src/FtpNegotiateCommand.cc (recvSize)
  11287. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11288. * main.cc: Added help message for -i option.
  11289. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11291. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11292. * src/MetalinkEntry.h
  11293. (checksum): Changed to ChecksumHandle
  11294. * src/MetalinkRequestInfo.cc
  11295. (checksum): Changed to ChecksumHandle
  11296. * src/File.cc
  11297. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11298. * src/common.h
  11299. (DIR_OPEN_MODE): New definition
  11300. * src/RequestGroup.cc
  11301. (prepareForNextAction): Added an argument.
  11302. * src/message.h
  11303. (MSG_GOOD_CHECKSUM): New definition
  11304. (MSG_BAD_CHECKSUM): New definition
  11305. * src/HttpResponseCommand.cc
  11306. (handleDefaultEncoding): Continue download sequence in new
  11307. non-segmented download.
  11308. * src/FileAllocationEntry.h
  11309. (_nextDownloadCommand): New variable.
  11310. * src/DownloadCommand.cc
  11311. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11312. available.
  11313. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11314. * src/IteratableChecksumValidator.h,
  11315. src/IteratableChecksumValidator.cc: New class.
  11316. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11317. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Change file mode to 666:
  11319. * src/common.h (OPEN_MODE): New definition.
  11320. * src/File.cc
  11321. * src/Util.cc
  11322. * src/Directry.cc
  11323. * src/AbstractDiskWriter.cc
  11324. Change the level of log message "download aborted" to debug:
  11325. * src/PeerAbstractCommand.cc (execute)
  11326. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11327. * src/TrackerWatcherCommand.cc
  11328. (createCommand): Sleep some seconds after request failed.
  11329. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11330. then abort tracker request.
  11331. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11332. * Added the simultaneous download feature.
  11333. * src/main.cc: Print "Exception caught: " when exception is caught.
  11334. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11335. * src/ActivePeerConnectionCommand.cc
  11336. * src/PeerInteractionCommand.cc
  11337. * src/BtRuntime.h
  11338. (cuidCounter): Removed.
  11339. (getNewCuid): Removed.
  11340. * src/DownloadEngineFactory.cc
  11341. * src/PeerListenCommand.cc
  11342. * src/TrackerUpdateCommand.cc
  11343. * src/PeerInitiateConnectionCommand.cc
  11344. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. * src/PeerAbstractCommand.cc
  11346. (onAbort): Call PeerStorage::returnPeer()
  11347. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11348. (incomingPeers): New variable.
  11349. (addIncomingPeer): New function.
  11350. (returnPeer): New function.
  11351. (onErasingPeer): New function.
  11352. (addPeer): push_back -> push_front
  11353. (getActivePeers): Rewritten.
  11354. (calculateStat): Rewritten.
  11355. * src/PeerStorage.h
  11356. (TransferStat::copy): New function.
  11357. (TransferStat::TransferStat): New function.
  11358. (TransferStat::operator=): New function.
  11359. (addIncomingPeer): New function.
  11360. (returnPeer): New function.
  11361. * src/PeerListenCommand.cc
  11362. (execute): Use PeerStorage::addIncomingPeer() instead of
  11363. Peer::addPeer().
  11364. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. Connect to a peer actively when download speed is lower than specified
  11366. speed in torrent download:
  11367. * src/ActivePeerConnectionCommand.h: New class.
  11368. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11370. * src/main.cc: Fixed the bug that prevents download if .netrc
  11371. doesn't exist.
  11372. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. To cache resolved hostname:
  11374. * src/AbstractCommand.h, src/AbstractCommand.cc
  11375. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11376. Added dns cache.
  11377. * src/FtpInitiateConnectionCommand.cc
  11378. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11379. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11380. NameResolver working without ares.
  11381. * src/TorrentRequestInfo.cc
  11382. (execute): Don't cache dns in torrent download.
  11383. * src/HttpInitiateConnectionCommand.cc
  11384. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11385. * src/DNSCache.h: New class.
  11386. * src/UrlRequestInfo.cc
  11387. (execute): Use dns cache.
  11388. In http request, suppress port number in http request header if port
  11389. is 80 or 443:
  11390. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11391. request header if port is 80 or 443.
  11392. (createProxyRequest): Allways send port number.
  11393. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. To add the command-line option which disables netrc support:
  11395. * src/OptionHandlerFactory.cc
  11396. (createOptionHandlers): Added PREF_NO_NETRC.
  11397. * src/main.cc: Added -n option.
  11398. * src/prefs.h (PREF_NO_NETRC): New definition.
  11399. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11400. V_TRUE.
  11401. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11402. is V_FALSE. This may get configurable in the future release.
  11403. To clear peer's error status by time basis:
  11404. * src/PeerAbstractCommand.cc
  11405. (onAbort): Call Peer::startBadCondition().
  11406. * src/Peer.h, src/Peer.cc
  11407. (error): Removed.
  11408. (_badConditionStartTime): New variable.
  11409. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11410. (startBadCondition): New function.
  11411. (isGood): New function.
  11412. * src/DefaultPeerStorage.cc
  11413. (addPeer): Use Peer::isGood().
  11414. (FindFinePeer): Use Peer::isGood().
  11415. Always include port number in http request header:
  11416. * src/HttpRequest.cc (getHostText): Always include port number in
  11417. http request header.
  11418. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11419. To the ability to read options from a config file:
  11420. * src/main.cc: Command-line parameter validation is delegated to
  11421. OptionHandler class.
  11422. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11423. * src/Option.h, src/Option.cc (clear): New function.
  11424. * src/OptionParser.h, src/OptionParser.cc: New class.
  11425. * src/OptionHandler.h: New class.
  11426. * src/NameMatchOptionHandler.h: New class.
  11427. * src/OptionHandlerImpl.h: New classes.
  11428. * src/prefs.h: '_' -> '-'
  11429. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11430. (FTP_PASV): New definition.
  11431. * src/Util.h, src/Util.cc (getRealSize): New function.
  11432. To disable netrc support if .netrc file does not have correct
  11433. permissions:
  11434. * src/File.h, src/File.cc (mode): New function.
  11435. To prevent confidential information to be logged:
  11436. * src/HttpConnection.h, src/HttpConnection.cc
  11437. (eraseConfidentialInfo): New function.
  11438. (sendRequest): Call eraseConfidentialInfo().
  11439. (sendProxyRequest): Call eraseConfidentialInfo().
  11440. * src/main.cc: Validate permissions of .netrc file.
  11441. To add --user-agent command-line option:
  11442. * src/main.cc: Added new command line option: --user-agent
  11443. * src/prefs.h (PREF_USER_AGENT): New definition.
  11444. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11445. parameter to HttpRequest object.
  11446. * src/AbstractProxyRequestCommand.cc
  11447. (executeInternal): Set user-agent option parameter to HttpRequest
  11448. object.
  11449. Marged the patches from Dan Fandrich.
  11450. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. Use filename and size from Metalink file instead of sending HEAD
  11452. request:
  11453. * src/UrlRequestInfo.h
  11454. (_filename): New variable.
  11455. (_totalLength): New variable.
  11456. (setTotalLength): New variable.
  11457. (setFilename): New variable.
  11458. * src/MetalinkRequestInfo.cc
  11459. (execute): Set filename and size to UrlRequestInfo
  11460. * src/UrlRequestInfo.cc
  11461. (execute): Use filename and size from Metalink instead of seding
  11462. HEAD request to servers.
  11463. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. To add the ability to resume downloading a partially downloaded file
  11465. which is downloaded from the beginning:
  11466. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11467. takes this role.
  11468. * src/main.cc: Added -c option.
  11469. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11470. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11471. * src/prefs.h (PREF_CONTINUE): New definition.
  11472. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11473. * src/DefaultDiskWriter.cc
  11474. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11475. * src/AbstractDiskWriter.h
  11476. (glowFileAllocator): New variable.
  11477. * src/AbstractDiskWriter.cc
  11478. (openExistingFile): Now preallocate file space from the end of the
  11479. existing file if totalLength argument is specified and grater than 0.
  11480. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11481. to download exists in local, continue the download of the file.
  11482. --allow-overwrite=true is assumed in this context.
  11483. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11484. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11485. Throw exception if --check-integrity=true is specified but chunk
  11486. checksums are not provided:
  11487. * src/UrlRequestInfo.cc
  11488. Do not print URLs to stdout:
  11489. * src/UrlRequestInfo.cc
  11490. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. * src/Request.h: Use AuthResolver to get authentication information.
  11492. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11493. set to RequestFactory object.
  11494. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11495. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11496. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11497. create Request object.
  11498. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11499. To integrate Netrc into exsiting classes:
  11500. * src/Request.h
  11501. (_userDefinedAuthConfig): New variable.
  11502. (findNetrcAuthenticator): New function.
  11503. (segment): Removed.
  11504. (setUserDefinedAuthConfig): New function.
  11505. (resolveHttpAuthConfigItem): New function.
  11506. (resolveFtpAuthConfigItem): New function.
  11507. (resolveHttpProxyAuthConfigItem): New function.
  11508. * src/HttpRequest.h
  11509. (authConfig): Removed.
  11510. (proxyAuthConfig): Removed.
  11511. (setAuthConfig): Removed.
  11512. (setProxyAuthConfig): Removed.
  11513. * src/UrlRequest.h
  11514. (getHeadResult): Added a parameter: authConfigHandle
  11515. * src/common.h
  11516. (SingletonHolder.h): New include.
  11517. * src/main.cc
  11518. (Netrc.h): New include.
  11519. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11520. Added initial value of PREF_NETRC_PATH.
  11521. Added the initialization of netrc.
  11522. * src/AuthConfig.h: New class.
  11523. * src/prefs.h
  11524. (PREF_NETRC_PATH): New definition.
  11525. * src/HttpAuthConfig.h: Removed.
  11526. * src/Netrc.cc
  11527. (getRequiredNextToken): New function.
  11528. (skipMacdef): New function.
  11529. (parse): Rewritten.
  11530. * src/Netrc.h
  11531. (getRequiredNextToken): New function.
  11532. (skipMacdef): New function.
  11533. * src/Util.h, src/Util.cc
  11534. (getHomeDir): New function.
  11535. * src/TrackerWatcherComand.cc
  11536. (createRequestCommand): Use AuthConfig.
  11537. * src/FtpConnection.cc
  11538. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11539. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11540. * src/Request.cc
  11541. (findNetrcAuthenticator): New function.
  11542. (resolveHttpAuthConfigItem): New function.
  11543. (resolveFtpAuthConfigItem): New function.
  11544. (resolveHttpProxyAuthConfigItem): New function.
  11545. * src/UrlRequestInfo.cc: Use AuthConfig.
  11546. * src/HttpRequest.cc
  11547. (createRequest): Use authConfig.
  11548. (getProxyAuthString): Use authConfig.
  11549. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11550. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11551. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. To reduce overhead to find commands whose socket is either
  11553. readable or writable in the download engine loop:
  11554. * src/Command.h, src/Command.cc
  11555. (STATUS): New enum.
  11556. (status): New variable.
  11557. (statusMatch): New function.
  11558. (setStatusActive): New function.
  11559. (setStatusInactive): New function.
  11560. * src/DownloadEngine.h, src/DownloadEngine.cc
  11561. (executeCommand): New function.
  11562. (run): Simplified.
  11563. (waitData): Call Command::setStatusActive() when command's socket is
  11564. readable or writable.
  11565. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. To handle Segment as SegmentHandle:
  11567. * src/AbstractCommand.cc (execute): Rewritten.
  11568. * src/SegmentMan.h: Segment -> SegmentHandle
  11569. Introducded HttpResponse class, HttpRequest class to improve code
  11570. extensiveness and make it clear:
  11571. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11572. HttpResponse class.
  11573. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11574. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11575. * src/HttpConnection.cc: Contruction of http request were moved to
  11576. HttpRequest class.
  11577. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11578. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11579. * src/HttpAuthConfig.h: New class.
  11580. * src/Range.h: New class.
  11581. To make FtpTunnel{Request, Response}Command and
  11582. HttpProxy{Request, Response}Command derived from
  11583. AbstractProxy{Request, Response}Command:
  11584. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11585. Derived from AbstractProxyRequestCommand class.
  11586. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11587. Derived from AbstractProxyResponseCommand class.
  11588. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11589. Derived from AbstractProxyRequestCommand class.
  11590. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11591. Derived from AbstractProxyResponseCommand class.
  11592. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11593. : New class.
  11594. * src/AbstractProxyResponseCommand.h,
  11595. src/AbstractProxyResponseCommand.cc: New class.
  11596. To add netrc support:
  11597. * src/Netrc.h, src/Netrc.cc: New class.
  11598. * src/Util.h, src/Util.cc (split): New function.
  11599. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11600. "Content-Range" header instead of "Range" header.
  11601. * src/HttpHeader.h
  11602. (getStatus): Removed.
  11603. (setStatus): Removed.
  11604. * src/Segment.h
  11605. (getPositionToWrite): New function.
  11606. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. * src/HttpHeader.h
  11608. (Range.h): New include.
  11609. (status): New variable.
  11610. (HttpHeader): Initialized status with 0.
  11611. (getStatus): New function.
  11612. (setStatus): New function.
  11613. (getRange): New function.
  11614. (HttpHeaderHandle): New function.
  11615. * src/HttpHeader.cc
  11616. (getRange): New function.
  11617. * src/Request.h
  11618. (RequestWeakHandle): New definition.
  11619. * src/HttpConnection.h
  11620. (HttpConnectionHandle): New type definition.
  11621. * src/HttpConnection.cc
  11622. (receiveResponse): Set HTTP status to headers.
  11623. * src/main.cc
  11624. (showUsage): Fixed typo.
  11625. * src/Segment.h
  11626. (SegmentHandle): New type definition.
  11627. * src/BitfieldMan.h
  11628. (getMissingUnusedLength): New function.
  11629. * src/BitfieldMan.cc
  11630. (getMissingUnusedLength): New function.
  11631. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. To fix static initialization order problem:
  11633. * src/BitfieldManFactory.h
  11634. (defaultRandomizer): Removed.
  11635. (factory): New variable.
  11636. (getNewFactory): Removed.
  11637. (getFactoryInstance): New function.
  11638. (setDefaultRandomizer): Rewritten.
  11639. (getDefaultRandomizer): Rewritten.
  11640. * src/BitfieldManFactory.cc
  11641. (defaultRandomizer): Removed.
  11642. (factory): Initialized to 0.
  11643. (BitfieldManFactory): Initialized randomizer to 0.
  11644. * src/DefaultPieceStorage.cc
  11645. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11646. * src/Peer.cc
  11647. (Peer): getNewFactory() -> getFactoryInstance()
  11648. * src/SegmentMan.cc
  11649. (initBitfield): getNewFactory() -> getFactoryInstance()
  11650. * src/Piece.cc
  11651. (Piece): getNewFactory() -> getFactoryInstance()
  11652. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. To fix the bug that causes crash on Max OS X:
  11654. * src/SimpleRandomizer.h
  11655. (getInstance): Create new instance if the static variable is null.
  11656. * src/SimpleRandomizer.cc
  11657. (randomizer): Initialized to 0.
  11658. * src/BitfieldManFactory.h
  11659. (getNewFactory): Removed the call to setRandomizer().
  11660. To fix the miscalculation of the range of checksum:
  11661. * src/BitfieldMan.h
  11662. (isBitSetOffsetRange): New function.
  11663. * src/BitfieldMan.cc
  11664. (isBitSetOffsetRange): New function.
  11665. * src/SegmentMan.cc
  11666. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11667. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11668. * Release 0.10.1
  11669. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. To lower CPU usage in BitTorrent download when --max-upload-limit
  11671. command-line option specified:
  11672. * src/DefaultBtMessageDispatcher.cc
  11673. (sendMessages): Calculate uploading speed only when current message
  11674. is uploading data and is not sent yet.
  11675. * src/DefaultPeerStorage.h
  11676. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11677. * src/HttpResponseCommand.cc
  11678. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11679. This fixes compile error in Soralis 10.
  11680. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11681. To fix segfault in Metalink download:
  11682. * src/UrlRequestInfo.h
  11683. (filename): Removed.
  11684. (totalLength): Removed.
  11685. (setTotalLength): Removed.
  11686. (setFilename): Removed.
  11687. * src/MetalinkRequestInfo.cc
  11688. (execute): Do not set filename and totalLength to reqInfo.
  11689. Set chunk checksum to reqInfo if it is not null.
  11690. * src/HttpResponseCommand.cc
  11691. (executeInternal): Fixed filename in log.
  11692. (handleDefaultEncoding): Removed the call to initBitfield() and
  11693. markAllPiecesDone().
  11694. (handleOtherEncoding): Added HEAD method handling.
  11695. * src/FtpNegotiateCommand.cc
  11696. (executeInternal): Added SEQ_HEAD_OK handling.
  11697. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11698. return false.
  11699. * src/FtpNegotiateCommand.h
  11700. (SEQ_HEAD_OK): New definition.
  11701. * src/SegmentMan.cc
  11702. (initBitfield): Delete bitfield.
  11703. (isChunkChecksumValidationReady): Fixed the condition.
  11704. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11705. works fine.
  11706. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11707. * src/Xml2MetalinkProcessor.h
  11708. (xpathExists): New function.
  11709. * src/Xml2MetalinkProcessor.cc
  11710. (xpathExists): New function.
  11711. Not to send HEAD request if filename and size are available in Metalink
  11712. file:
  11713. * src/UrlRequestInfo.h
  11714. (filename): New variable.
  11715. (totalLength): New variable.
  11716. (setTotalLength): New function.
  11717. (setFilename): New function.
  11718. * src/MetalinkRequestInfo.cc
  11719. (execute): Set filename and size to UrlRequestInfo.
  11720. * src/MetalinkEntry.cc
  11721. (MetalinkEntry): Initialize size with 0.
  11722. * src/UrlRequestInfo.cc
  11723. (execute): Set filename and size to SegmentMan.
  11724. Not to download rest of the files after selected files are downloaded
  11725. in BitTorrent:
  11726. * src/PieceStorage.h
  11727. (allDownloadFinished): New function.
  11728. * src/DefaultBtAnnounce.cc
  11729. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11730. downloadFinished.
  11731. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11732. * src/DefaultPieceStorage.cc
  11733. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11734. Commented out the call to finishSelectiveDownloadingMode().
  11735. (downloadFinished): Call isFilteredAllBitSet() instead of
  11736. isAllBitSet().
  11737. (allDownloadFinished): New function.
  11738. * src/DefaultBtInteractive.cc
  11739. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11740. downloadFinished().
  11741. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11742. * src/TorrentDownloadEngine.cc
  11743. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11744. * src/BitfieldMan.h
  11745. (isFilteredAllBitSet): New function.
  11746. * src/ShareRatioSeedCriteria.h
  11747. (PieceStorage.h): New include.
  11748. (pieceStorage): New variable.
  11749. (evaluate):
  11750. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11751. * src/BitfieldMan.cc
  11752. (isFilteredAllBitSet): New function.
  11753. (isAllBitSet): Filter is not took into account.
  11754. Rename --force-truncate as --allow-overwrite:
  11755. * src/TorrentRequestInfo.cc
  11756. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11757. * src/main.cc
  11758. (showUsage): --force-truncate -> --allow-overwrite
  11759. * src/message.h
  11760. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11761. * src/prefs.h
  11762. (PREF_FORCE_TRUNCATE): Removed.
  11763. (PREF_ALLOW_OVERWRITE): New definition.
  11764. * src/SegmentMan.cc
  11765. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11766. * src/MetalinkRequestInfo.cc
  11767. (execute): Queueing message are now logged in info level.
  11768. * src/common.h
  11769. (LONG_LONG_MAX): Removed.
  11770. (LONG_LONG_MIN): Removed.
  11771. * src/HttpResponseCommand.cc
  11772. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11773. * src/FtpNegotiateCommand.cc
  11774. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11775. * src/main.cc
  11776. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11777. command-line option.
  11778. (main): Added --check-integriy and --realtime-chunk-checksum
  11779. command-line option.
  11780. --force-truncate -> --allow-overwrite
  11781. Set initial value of --check-integrity option to false.
  11782. Don't show usage when error occurs while persing command-line options.
  11783. Removed deprecated --upload-limit option.
  11784. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11785. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11786. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11787. * src/BtAllowedFastMessage.cc:
  11788. * src/BtBitfieldMessage.cc
  11789. * src/BtCancelMessage.cc
  11790. * src/BtChokeMessage.cc
  11791. * src/BtHaveAllMessage.cc
  11792. * src/BtHaveMessage.cc
  11793. * src/BtHaveNoneMessage.cc
  11794. * src/BtInterestedMessage.cc
  11795. * src/BtNotInterestedMessage.cc
  11796. * src/BtPieceMessage.cc
  11797. * src/BtPortMessage.cc
  11798. * src/BtRejectMessage.cc
  11799. * src/BtRequestMessage.cc
  11800. * src/BtSuggestPieceMessage.cc
  11801. * src/BtUnchokeMessage.cc
  11802. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11803. files are affected.
  11804. * src/ChunkChecksumValidator.cc
  11805. * src/SegmentMan.cc
  11806. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. To add chunk checksum validation:
  11808. * src/MetalinkEntry.h
  11809. (MetalinkChunkChecksum.h): New include.
  11810. (chunkChecksum): New variable.
  11811. * src/Request.h
  11812. (method): New variable.
  11813. (setMethod): New function.
  11814. (getMethod): New function.
  11815. (METHOD_GET): New static constant.
  11816. (METHOD_HEAD): New static constant.
  11817. * src/Xml2MetalinkProcessor.h
  11818. (getPieceHash): New function.
  11819. * src/PieceStorage.h
  11820. (markAllPiecesDone): New function.
  11821. (checkIntegrity): New function.
  11822. * src/FileAllocator.h
  11823. (NullFileAllocationMonitor.h): New include.
  11824. (FileAllocator): Initialize fileAllocationMonitor with new
  11825. NullFileAllocationMonitor().
  11826. * src/MultiDiskAdaptor.h
  11827. (messageDigest.h): Remove include.
  11828. (ctx): Removed.
  11829. (hashUpdate): Added ctx.
  11830. (MultiDiskAdaptor): Removed ctx.
  11831. (sha1Sum): Renamed as messageDigest.
  11832. (messageDigest): New function.
  11833. * src/UrlRequestInfo.h
  11834. (HeadResult): New class.
  11835. (digestAlgo): New variable.
  11836. (chunkChecksumLength): New variable.
  11837. (chunkChecksums): New variable.
  11838. (getHeadResult): New function.
  11839. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11840. (setDigestAlgo): New function.
  11841. (setChunkChecksumLength): New function.
  11842. (setChunkChecksums): New function.
  11843. * src/DefaultPieceStorage.cc
  11844. (DiskAdaptorWriter.h): New include.
  11845. (ChunkChecksumValidator.h): New include.
  11846. (markAllPiecesDone): New function.
  11847. (checkIntegrity): New function.
  11848. * src/DefaultBtContext.h
  11849. (getPieceHashes): New function.
  11850. * src/TorrentRequestInfo.cc
  11851. (execute): Try to validate chunk checksum if file already exists and
  11852. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11853. * src/messageDigest.h
  11854. (~MessageDigestContext): Added digestFree().
  11855. * src/MetalinkRequestInfo.cc
  11856. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11857. * src/DiskAdaptor.h
  11858. (messageDigest.h): New include.
  11859. (sha1Sum): Renamed as messageDigest.
  11860. (messageDigest): New function.
  11861. * src/DownloadCommand.h
  11862. (PeerStat.h): New include.
  11863. (maxDownloadSpeedLimit): New variable.
  11864. (startupIdleTime): New variable.
  11865. (lowestDownloadSpeedLimit): New variable.
  11866. (peerStat): New variable.
  11867. (setMaxDownloadSpeedLimit): New function.
  11868. (setStartupIdleTime): New function.
  11869. (setLowestDownloadSPeedLimit): New function.
  11870. * src/BtContext.h
  11871. (getPieceHashes): New function.
  11872. * src/main.cc
  11873. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11874. option to true for testing purpose.
  11875. * src/BtPieceMessage.cc
  11876. (checkPieceHash): Use messageDigest
  11877. * src/DownloadEngine.cc
  11878. (SetDescriptor): Removed.
  11879. (AccumulateActiveCommand): Removed.
  11880. (waitData): Rewritten.
  11881. (updateFdSet): Rewritten.
  11882. * src/MultiDiskAdaptor.cc
  11883. (hashUpdate): Added ctx.
  11884. (sha1Sum): Renamed as messageDigest.
  11885. (messageDigest): New function.
  11886. * src/BitfieldMan.h
  11887. (isBitRangeSet): New function.
  11888. (unsetBitRange): New function.
  11889. * src/ByteArrayDiskWriter.h
  11890. (sha1Sum): Renamed as messageDigest.
  11891. (messageDigest): New function.
  11892. * src/ConsoleDownloadEngine.cc
  11893. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11894. * src/DiskWriter.h
  11895. (messageDigest.h): New include.
  11896. (sha1Sum): Renamed as messageDigest.
  11897. (messageDigest): New function.
  11898. * src/ChunkChecksumValidator.h: New class.
  11899. * src/DiskAdaptorWriter.h: New class.
  11900. * src/prefs.h
  11901. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11902. (PREF_CHECK_INTEGRITY): New definition.
  11903. * src/HttpResponseCommand.cc
  11904. (handleDefaultEncoding): Added method "HEAD" handling.
  11905. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11906. (handleOtherEncoding):
  11907. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11908. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11909. startupIdleTime, lowestDownloadSpeedLimit to command.
  11910. * src/SegmentMan.h
  11911. (getSegmentEntryByIndex): New function.
  11912. (getSegmentEntryByCuid): New function.
  11913. (getSegmentEntryIteratorByCuid): New function.
  11914. (diskWriter): DiskWriter -> DiskWriterHandle
  11915. (pieceHashes): New variable.
  11916. (chunkHashLength): New variable.
  11917. (digestAlgo): New variable.
  11918. (FindPeerStat): Removed.
  11919. (getPeerStat): Rewritten.
  11920. (markAllPiecesDone): New function.
  11921. (checkIntegrity): New function.
  11922. (tryChunkChecksumValidation): New function.
  11923. (isChunkChecksumValidationReady): New function.
  11924. * src/BitfieldMan.cc
  11925. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11926. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11927. blocks to 0.
  11928. (isBitRangeSet): New function.
  11929. (unsetBitRange): New function.
  11930. * src/FtpNegotiateCommand.cc
  11931. (executeInternal): Set maxDownloadSpeedLimit,
  11932. startupIdleTime, lowestDownloadSpeedLimit to command.
  11933. (recvSize): Added method "HEAD" handling.
  11934. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11935. * src/AbstractSingleDiskAdaptor.cc
  11936. (sha1Sum): Renamed as messageDigest.
  11937. (messageDigest): New function.
  11938. * src/AbstractSingleDiskAdaptor.h
  11939. (sha1Sum): Renamed as messageDigest.
  11940. (messageDigest): New function.
  11941. * src/Util.h
  11942. (indexRange): New function.
  11943. * src/MetalinkEntry.cc
  11944. (MetalinkEntry): Initialized chunkChecksum to 0.
  11945. * src/ShaVisitor.cc
  11946. (~ShaVisitor): Removed the call to ctx.digestFree().
  11947. * src/SegmentMan.cc
  11948. (ChunkChecksumValidator.h): New include.
  11949. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11950. to DIGEST_ALGO_SHA1.
  11951. (~SegmentMan): Removed diskWriter.
  11952. (FindSegmentEntryByIndex): Removed.
  11953. (FindSegmentEntryByCuid): Removed.
  11954. (checkoutSegment): Rewritten.
  11955. (findSlowerSegmentEntry): Rewritten.
  11956. (getSegment): Rewritten.
  11957. (updateSegment): Rewritten.
  11958. (completeSegment): Rewritten.
  11959. (markAllPiecesDone): New function.
  11960. (checkIntegrity): New function.
  11961. (isChunkChecksumValidationReady): New function.
  11962. (tryChunkChecksumValidation): New function.
  11963. * src/Xml2MetalinkProcessor.cc
  11964. (getEntry): Get size and set it to entry.
  11965. Get chunk checksum and set it to entry.
  11966. (getPieceHash): New function.
  11967. * src/Util.cc
  11968. (sha1Sum): Removed ctx.digestFree()
  11969. (fileChecksum): Removed ctx.digestFree()
  11970. (indexRange): New function.
  11971. * src/Request.cc
  11972. (METHOD_GET): New variable.
  11973. (METHOD_HEAD): New variable.
  11974. (Request): Added method.
  11975. * src/UrlRequestInfo.cc
  11976. (FatalException.h): New include.
  11977. (message.h): New include.
  11978. (operator<<): Added operator<< for class HeadResult.
  11979. (getHeadResult): New function.
  11980. (execute): Get filename and size in separate download engine.
  11981. * src/ChunkChecksumValidator.cc: New class.
  11982. * src/DownloadCommand.cc:
  11983. (DownloadCommand): Added peerStat.
  11984. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11985. the value from Option.
  11986. The buffer size is now 16KB.
  11987. Use peerStat member instead of getting it from SegmentMan.
  11988. Use startupIdleTime member instead of gettingit from Option.
  11989. Added chunk checksum validation.
  11990. * src/AbstractDiskWriter.cc
  11991. (AbstractDiskWriter): Removed ctx.
  11992. (~AbstractDiskWriter): Removed ctx.digestFree()
  11993. (writeDataInternal): Returns the return value of write.
  11994. (readDataInternal): Returns the return value of read.
  11995. (sha1Sum): Renamed as messageDigest
  11996. (messageDigest): New function.
  11997. * src/AbstractDiwkWriter.h
  11998. (messageDigest.h): Removed include.
  11999. (ctx): Removed.
  12000. (sha1Sum): Renamed as messageDigest
  12001. (messageDigest): New function.
  12002. * src/DefaultPieceStorage.h
  12003. (markAllPiecesDone): New function.
  12004. (checkIntegrity): New function.
  12005. * src/NullFileAllocationMonitor.h: New class.
  12006. * src/MetalinkChunkChecksum.h: New class.
  12007. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12008. To decrease CPU usage in bittorrent download, calculation results in
  12009. BitfieldMan were cached and realtime fetching PeerObject was removed
  12010. with WeakHandle introduced. Option values are set to the objects
  12011. by setter before download begins.
  12012. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12013. * src/DefaultBtRequestFactory.h
  12014. (dispatcher): BtMessageDispatcherHandle ->
  12015. BtMessageDispatcherWeakHandle.
  12016. (messageFactory): New variable.
  12017. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12018. BtMessageDispatcherWeakHandle.
  12019. (setBtMessageFactory): New function.
  12020. * src/DefaultBtMessageDispatcher.cc:
  12021. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12022. from Option.
  12023. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12024. feating the value from Option.
  12025. Use messageFactory member.
  12026. * src/PeerInteractionCommand.cc
  12027. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12028. Add reverse dependencies to factory object.
  12029. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12030. dispatcher.
  12031. Set messageFactory to receiver.
  12032. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12033. btInteractive.
  12034. Set receiver to peerObject.
  12035. Set maxDownloadSpeedLimit to this.
  12036. (executeInternal): Use maxDownloadSpeedLimit member.
  12037. * src/BtChokeMessage.cc
  12038. (doReceivedAction): Use dispatcher, requestFactory member.
  12039. (onSendComplete): Use dispatcher member.
  12040. * src/PeerInteractionCommand.h
  12041. (maxDownloadSpeedLimit): New variable.
  12042. * src/DefaultBtMessageReceiver.h
  12043. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12044. (dispatcher):
  12045. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12046. (messageFactory): New variable.
  12047. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12048. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12049. (setDispatcher):
  12050. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12051. (setBtMessageFactory): New function.
  12052. * src/DefaultBtInteractive.cc
  12053. (initiateHandshake): Use messageFactory member.
  12054. (addBitfieldMessageToQueue): Use messageFactory member.
  12055. (addAllowedFastMessageToQueue): Use messageFactory member.
  12056. (decideChoking): Use messageFactory member.
  12057. (checkHave): Use messageFactory member.
  12058. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12059. (receiveMessages): Use maxDownloadSpeedLimit member.
  12060. (decideInterest): Use messageFactory member.
  12061. * src/BtRequestMessage.cc
  12062. (doReceivedAction): Use messageFactory, dispatcher member.
  12063. (onQueued): Use dispatcher member.
  12064. * src/BtPieceMessage.cc
  12065. (doReceivedAction): Use dispatcher member.
  12066. (send): Use peerConnection member.
  12067. (onWrongPiece): Use requestFactory member.
  12068. (handleChokingEvent): Use messageFactory, dispatcher member.
  12069. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12070. * src/BtMessageDispatcher.h
  12071. (BtMessageDispatcherWeakHandle): New type definition.
  12072. * src/SimpleBtMessage.cc
  12073. (send): Use peerConnection member.
  12074. * src/BtRejectMessage.cc
  12075. (doReceivedAction): Use dispatcher member.
  12076. * src/DefaultBtMessageDispatcher.h
  12077. (Option.h): Removed include.
  12078. (messageFactory): New variable.
  12079. (option): Removed.
  12080. (maxUploadSpeedLimit): New variable.
  12081. (requestTimeout): New variable.
  12082. (DefaultBtMessageDispatcher): Removed option.
  12083. Added maxUploadSpeedLimit, requestTimeout.
  12084. (setOption): Removed.
  12085. (getOption): Removed.
  12086. (setMaxUploadSpeedLimit): New function.
  12087. (setRequestTimeout): New function.
  12088. (setBtMessageFactory): New function.
  12089. * src/DefaultBtInteractive.h
  12090. (btMessageReceiver):
  12091. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12092. (dispatcher):
  12093. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12094. (btRequestFactory):
  12095. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12096. (peerConnection):
  12097. PeerConnectionHandle -> PeerConnectionWeakHandle
  12098. (messageFactory): New variable.
  12099. (option): Removed.
  12100. (keepAliveInterval): New variable.
  12101. (maxDownloadSpeedLimit): New variable.
  12102. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12103. (setBtMessageReceiver):
  12104. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12105. (setDispatcher):
  12106. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12107. (setBtRequestFactory):
  12108. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12109. (setPeerConnection):
  12110. PeerConnectionHandle -> PeerConnectionWeakHandle
  12111. (setOption): Removed.
  12112. (setKeepAliveInterval): New function.
  12113. (setMaxDownloadSpeedLimit): New function.
  12114. (setBtMessageFactory): New function.
  12115. * src/BitfieldMan.h
  12116. (cachedNumMissingBlock): New variable.
  12117. (cachedNumFilteredBlock): New variable.
  12118. (cachedCompletedLength): New variable.
  12119. (cachedFilteredComletedLength): New variable.
  12120. (cachedFilteredTotalLength): New variable.
  12121. (countMissingBlockNow): New function.
  12122. (countFilteredBlockNow): New function.
  12123. (getFilteredTotalLengthNow): New function.
  12124. (getCompletedLengthNow): New function.
  12125. (getFilteredCompletedLengthNow): New function.
  12126. (updateCache): New function.
  12127. * src/AbstractBtMessage.h
  12128. (BtMessageDispatcher.h): New include.
  12129. (PeerConnection.h): New include.
  12130. (BtRequestFactory.h): New include
  12131. (BtMessageFactory.h): New include.
  12132. (dispatcher): New variable.
  12133. (messageFactory): New variable.
  12134. (peerConnection: New variable.
  12135. (setBtMessageDispatcher): New function.
  12136. (setPeerConnection): New function.
  12137. (setBtMessageFactory): New function.
  12138. (setBtRequestFactory): New function.
  12139. * src/DefaultBtMessageFactory.cc
  12140. (setCommonProperty): Set dispatcher, requestFactory, this,
  12141. peerConnection to msg.
  12142. * src/BtRegistry.h
  12143. (BT_MESSAGE_RECEIVER): New macro.
  12144. * src/PeerConnection.h
  12145. (PeerConnectionWeakHandle): New type definition.
  12146. * src/BtMessageFactory.h
  12147. (BtMessageFactoryWeakHandle): New type definition.
  12148. * src/BitfieldMan.cc
  12149. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12150. cachedCompletedLength, cachedFilteredComletedLength,
  12151. cachedFilteredTotalLength.
  12152. Call updateCache().
  12153. (countMissingBlock): Return cachedNumMissingBlock.
  12154. (countMissingBlockNow): New function.
  12155. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12156. (countFilteredBlockNow): New function.
  12157. (setBit): Call updateCache().
  12158. (unsetBit): Call updateCache().
  12159. (setBitfield): Call updateCache().
  12160. (clearAllBit): Call updateCache().
  12161. (setAllBit): Use setBitInternal instead of setBit.
  12162. Call updateCache().
  12163. (addFilter): Call updateCache().
  12164. (enableFilter): Call updateCache().
  12165. (disableFilter): Call updateCache().
  12166. (clearFilter): Call updateCache().
  12167. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12168. (getFilteredTotalLengthNow): New function.
  12169. (getCompletedLength): Return cachedCompletedLength.
  12170. (getCompletedLengthNow): New function.
  12171. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12172. (getFilteredCompletedLengthNow): New function.
  12173. (updateCache): New function.
  12174. * src/BtMessageReceiver.h
  12175. (BtMessageReceiverWeakHandle): New type definition.
  12176. * src/DefaultBtMessageReceiver.cc
  12177. (receiveHandshake): Use messageFactory member.
  12178. (sendHandshake): Use messageFactory member.
  12179. (receiveMessage): Use messageFactory member.
  12180. * src/DefaultBtMessageFactory.h
  12181. (dispatcher): New variable.
  12182. (requestFactory): New variable.
  12183. (peerConnection): New variablle.
  12184. (setBtMessageDispatcher): New function.
  12185. (setBtRequestFactory): New function.
  12186. (setPeerConnection): New function.
  12187. * src/SharedHandle.h
  12188. (RefCount): New class.
  12189. (WeakHandle): New class.
  12190. * src/PeerObject.h
  12191. (BtMessageReceiver.h): New include.
  12192. (PeerObject): Added btMessageReceiver.
  12193. (btMessageReceiver): New variable.
  12194. * src/Util.cc
  12195. (countBit): Simplified.
  12196. * src/BtCancelMessage.cc
  12197. (doReceivedAction): Use dispatcher member.
  12198. * src/BtRequestFactory.h
  12199. (BtRequestFactoryWeakHandle): New type definition.
  12200. * src/PeerStorage.h
  12201. (downloadSpeed): int -> uint32_t
  12202. (uploadSpeed): int -> uint32_t
  12203. (sessionDownloadLength): long long int -> uint64_t
  12204. (sessionUploadLength): long long int -> uint64_t
  12205. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12206. To add RecoverableException, FatalException:
  12207. * src/AbstractCommand.cc
  12208. (onAbort): Exception -> RecoverableException
  12209. * src/PeerAbstractCommand.h
  12210. (RecoverableException.h): New include.
  12211. (onAbort): Exception -> RecoverableException.
  12212. * src/PeerInteractionCommand.cc
  12213. (onAbort): Exception -> RecoverableException.
  12214. * src/PeerAbstractCommand.cc
  12215. (execute): Exception -> RecoverableException.
  12216. (onAbort): Exception -> RecoverableException.
  12217. * src/TorrentRequestInfo.cc
  12218. (execute): Exception -> RecoverableException.
  12219. * src/MetalinkRequestInfo.cc
  12220. (execute): Exception -> RecoverableException.
  12221. * src/MetaFileUtil.cc: RecoverableException.
  12222. * src/AbstractCommand.h
  12223. (onAbort): Exception -> RecoverableException.
  12224. * src/DlRetryEx.h: Exception -> RecoverableException.
  12225. * src/DlAbortEx.h: Exception -> RecoverableException.
  12226. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12227. * src/Util.cc: Exception -> RecoverableException.
  12228. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12229. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12230. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12231. To make ID static const int
  12232. * src/BtInterestedMessage.h
  12233. (ID_t): Removed.
  12234. (ID): New variable.
  12235. (getId): Made non-const.
  12236. * src/BtPieceMessage.h
  12237. (ID_t): Removed.
  12238. (ID): New variable.
  12239. (getId): Made non-const.
  12240. * src/BtChokeMessage.h
  12241. (ID_t): Removed.
  12242. (ID): New variable.
  12243. (getId): Made non-const.
  12244. * src/BtHaveAllMessage.h
  12245. (ID_t): Removed.
  12246. (ID): New variable.
  12247. (getId): Made non-const.
  12248. * src/BtKeepAliveMessage.h
  12249. (ID_t): Removed.
  12250. (ID): New variable.
  12251. (getId): Made non-const.
  12252. * src/BtHandshakeMessage.h
  12253. (ID): New variable.
  12254. (getId): Made non-const.
  12255. * src/BtSuggestPieceMessage.h
  12256. (ID_t): Removed.
  12257. (ID): New variable.
  12258. (getId): Made non-const.
  12259. * src/BtPortMessage.h
  12260. (ID_t): Removed.
  12261. (ID): New variable.
  12262. (getId): Made non-const.
  12263. * src/AbstractBtMessage.h
  12264. (id): Removed.
  12265. (AbstractBtMessage): Removed id.
  12266. (getId): Removed.
  12267. * src/BtHaveMessage.h
  12268. (ID_t): Removed.
  12269. (ID): New variable.
  12270. (getId): Made non-const.
  12271. * src/BtAllowedFastMessage.h
  12272. (ID_t): Removed.
  12273. (ID): New variable.
  12274. (getId): Made non-const.
  12275. * src/BtCancelMessage.h
  12276. (ID_t): Removed.
  12277. (ID): New variable.
  12278. (getId): Made non-const.
  12279. * src/BtNotInterestedMessage.h
  12280. (ID_t): Removed.
  12281. (ID): New variable.
  12282. (getId): Made non-const.
  12283. * src/BtChokeMessage.h
  12284. (ID_t): Removed.
  12285. (ID): New variable.
  12286. (getId): Made non-const.
  12287. * src/BtRejectMessage.h
  12288. (ID_t): Removed.
  12289. (ID): New variable.
  12290. (getId): Made non-const.
  12291. * src/BtBitfieldMessage.h
  12292. (ID_t): Removed.
  12293. (ID): New variable.
  12294. (getId): Made non-const.
  12295. * src/BtUnchokeMessage.h
  12296. (ID_t): Removed.
  12297. (ID): New variable.
  12298. (getId): Made non-const.
  12299. * src/BtRequestMessage.h
  12300. (ID_t): Removed.
  12301. (ID): New variable.
  12302. (getId): Made non-const.
  12303. * src/BtHaveMessage.h
  12304. (ID_t): Removed.
  12305. (ID): New variable.
  12306. (getId): Made non-const.
  12307. To add --force-truncate command-line option and a check whether
  12308. the file already exists:
  12309. * src/DirectDiskAdaptor.h
  12310. (getFilePath): Made virtual public.
  12311. * src/MultiDiskAdaptor.h
  12312. (File.h): New include.
  12313. (DiskWriterEntry::fileEntry): Made private.
  12314. (DiskWriterEntry::fileExists): New function.
  12315. (DiskWriterEntry::getFileEntry): New function.
  12316. (fileExists): New function.
  12317. (getFilePath): New function.
  12318. * src/TorrentRequestInfo.cc
  12319. (FatalException.h): New include.
  12320. (message.h): New include.
  12321. (RecoverableException.h): New include.
  12322. (execute): Added a check whether file is already exists or not.
  12323. * src/DiskAdaptor.h
  12324. (fileExists): New function.
  12325. (getFilePath): New function.
  12326. * src/main.cc
  12327. (showUsage): Added an explanation of --force-truncate command-line
  12328. option.
  12329. (main): Added --force-truncate command-line option.
  12330. * src/Exception.h
  12331. (setMsg): buf[256] -> buf[1024]
  12332. * src/CopyDiskWriter.h
  12333. (getFilePath): Made public virtual.
  12334. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12335. (fileExists): New function.
  12336. * src/DownloadEngineFactory.cc
  12337. (newTorrentConsoleEngine): Don't open file here.
  12338. * src/message.h
  12339. (EX_FILE_ALREADY_EXISTS): New definition.
  12340. * src/prefs.h
  12341. (PREF_FOECE_TRUNCATE): New definition.
  12342. * src/HttpResponseCommand.cc
  12343. (handleDefaultEncoding): Added a check whether the file already exists.
  12344. * src/SegmentMan.h
  12345. (fileExists): New function.
  12346. (shouldCancelDownloadForSafety): New function.
  12347. * src/FtpNegotiateCommand.cc
  12348. (recvSize): Added a check whether the file already exists.
  12349. * src/AbstractSingleDiskAdaptor.cc
  12350. (File.h): New include.
  12351. (fileExists): New function.
  12352. * src/AbstractSingleDiskAdaptor.h
  12353. (getFilePath): Removed.
  12354. (fileExists): New function.
  12355. * src/SegmentMan.cc
  12356. (fileExists): New function.
  12357. (shouldCancelDownloadForSafety): New function.
  12358. To fix regression bug in torrent downloading:
  12359. * src/DefaultBtRequestFactory.cc
  12360. (doChokedAction): New function.
  12361. * src/DefaultBtRequestFactory.h
  12362. (doChokedAction): New function.
  12363. * src/DefaultBtMessageDispatcher.cc
  12364. (doChokedAction): Do not delete request if its target is in allowed
  12365. fast set.
  12366. * src/DefaultBtInteractive.cc
  12367. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12368. (sendKeepAlive): Send keep alive message even if the outgoing message
  12369. queue is not empty.
  12370. (decideInterest): Simplified the code.
  12371. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12372. it is already called when BtChokeMessage is received from a peer.
  12373. * src/BtRequestFactory.h
  12374. (doChokedAction): New function.
  12375. To clean up code:
  12376. * src/PeerInteractionCommand.h
  12377. (executeInternal): Added virtual keyword explicitly.
  12378. (prepareForRetry): Added virtual keyword explicitly.
  12379. (prepareForNextPeer): Added virtual keyword explicitly.
  12380. (onAbort): Added virtual keyword explicitly.
  12381. * src/RequestSlot.cc
  12382. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12383. * src/BtPieceMessage.cc
  12384. (doReceivedAction): Added a debug log of piece's bitfield.
  12385. * src/Piece.h
  12386. (getBitfieldLength): New function.
  12387. * src/ByteArrayDiskWriter.cc
  12388. (clear): Added buf = 0 to avoid double free corruption.
  12389. * src/FileAllocator.cc
  12390. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12391. Added cp.reset().
  12392. * src/BitfieldMan.h
  12393. (operator=): Rewritten.
  12394. * src/BitfieldMan.cc
  12395. (BitfieldMan): Initialized bitfield, useBitfield.
  12396. * src/PeerConnection.cc
  12397. (receiveMessage): Added a call to socket->readable() after getting
  12398. message length to avoid possible EOF.
  12399. * src/Util.cc
  12400. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12401. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. To add an ability to pre-allocate file space:
  12403. * src/DirectDiskAdaptor.h: Rewritten.
  12404. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12405. * src/MultiDiskAdaptor.h: Rewritten.
  12406. * src/DefaultPieceStorage.cc
  12407. (MultiDiskWriter.h): Removed include.
  12408. (PreAllocationDiskWriter.h): Removed include.
  12409. (FileAllocationMonitor.h): New include.
  12410. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12411. (initStorage): Rewritten.
  12412. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12413. * src/FileAllocator.h: New class.
  12414. * src/FileAllocator.cc: New class.
  12415. * src/FileAllocationMonitor.h: New class.
  12416. * src/FileAllocationMonitor.cc: New class.
  12417. * src/ConsoleFileAllocationMonitor.h: New class.
  12418. * src/ConsoleFileAllocationMonitor.cc: New class.
  12419. * src/AbstractSingleDiskAdaptor.h: New class.
  12420. * src/AbstractSingleDiskAdaptor.cc: New class.
  12421. * src/DiskAdaptor.h
  12422. (Directory.h): Removed include.
  12423. (DiskWriter.h): Removed include.
  12424. (FileEntry.h): Removed include.
  12425. (diskWriter): Removed.
  12426. (DiskAdaptor): Removed diskWriter.
  12427. (openFile): Made pure virtual.
  12428. (closeFile): Made pure virtual.
  12429. (openExistingFile): Made pure virtual.
  12430. (initAndOpenFile): Made pure virtual.
  12431. (writeData): Made pure virtual.
  12432. (readData): Made pure virtual.
  12433. (sha1Sum): Made pure virtual.
  12434. (getStoreDir): Returns const reference of storeDir.
  12435. (DiskAdaptorHandle): New type definition.
  12436. * src/main.cc
  12437. (ConsoleFileAllocationMonitor.h): New include.
  12438. (showUsage): Added default value description of -s option.
  12439. Added the description of --file-allocation option.
  12440. (main): Set default value of --file-allocation option to 'none'.
  12441. Added --file-allocation command-line option.
  12442. Setup FileAllocationMonitorFactory.
  12443. * src/FtpInitiateConnectionCommand.cc
  12444. (executeInternal): Removed diskWriter related processing, which was
  12445. moved to FtpNegotiationCommand.cc.
  12446. * src/DirectDiskAdaptor.cc
  12447. (getFilePath): Made non-const.
  12448. * src/CopyDiskAdaptor.h
  12449. (DiskAdaptor.h): Removed include.
  12450. (DiskWriter.h): Removed include.
  12451. (AbstractSingleDiskAdaptor.h): New include.
  12452. (getFilePath): Made non-const. Added virtual keyword.
  12453. (CopyDiskAdaptor): Removed diskWriter.
  12454. (getTempFile): Returns const reference.
  12455. (CopyDiskAdaptorHandle): New type definition.
  12456. * src/ByteArrayDiskWriter.cc
  12457. (clear): Simplified.
  12458. (initAndOpenFile): Rewritten.
  12459. (openFile): Call initAndOpenFile()
  12460. * src/MultiDiskAdaptor.cc: Rewritten.
  12461. * src/DownloadEngineFactory.cc
  12462. (FileAllocator.h): New include.
  12463. (FileAllocationMonitor.h): New include.
  12464. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12465. create DefaultDiskWriter with file allocator.
  12466. * src/DiskWriter.h
  12467. (initAndOpenFile): Added totalLength argument.
  12468. (openFile): Added totalLength argument.
  12469. * src/prefs.h
  12470. (PREF_FILE_ALLOCATION): New definition.
  12471. (V_PREALLOC): New definition.
  12472. (V_NONE): New definition.
  12473. * src/HttpResponseCommand.cc
  12474. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12475. size.
  12476. * src/FtpNegotiateCommand.cc
  12477. (Util.h): New include.
  12478. (recvSize): Open file here.
  12479. * src/Util.h
  12480. (ullitos): New function.
  12481. * src/CopyDiskWriter.h
  12482. (getFilePath): Made non-const.
  12483. * src/DefaultDiskWriter.h
  12484. (Option.h): New include.
  12485. (totalLength): Removed.
  12486. (DefaultDiskWriter): Removed totalLength.
  12487. (initAndOpenFile): Added totalLength argument.
  12488. (DefaultDiskWriterHandle): New type definition.
  12489. (createNewDiskWriter): New function.
  12490. * src/Util.cc
  12491. (ullitos): New function.
  12492. * src/DefaultDiskWriter.cc
  12493. (message.h): New include.
  12494. (FileAllocator.h): New include.
  12495. (prefs.h): New include.
  12496. (Util.h): New include.
  12497. (DefaultDiskWriter): Removed totalLength.
  12498. (initAndOpenFile): Added file allocation.
  12499. (createNewDiskWriter): New function. Just for temporary solution.
  12500. It will be rewritten later.
  12501. * src/DiskAdaptor.cc
  12502. (DiskAdaptor): Removed diskWriter.
  12503. * src/AbstractDiskWriter.cc
  12504. (LogFactory.h): New include.
  12505. (AbstractDiskWriter): Added fileAllocator, logger.
  12506. (openFile): Added totalLength argument.
  12507. * src/AbstractDiskWriter.h
  12508. (FileAllocator.h): New include.
  12509. (Logger.h): New include.
  12510. (fileAllocator): New variable.
  12511. (logger): New variable.
  12512. (openFile): Added totalLength argument. Added virtual keyword
  12513. explicitly.
  12514. (openExistingFile): Added totalLength argument. Added virtual keyword
  12515. explicitly.
  12516. (closeFile): Added virtual keyword explicitly.
  12517. (sha1Sum): Added virtual keyword explicitly.
  12518. (writeData): Added virtual keyword explicitly.
  12519. (readData): Added virtual keyword explicitly.
  12520. (setFileAllocator): New function.
  12521. * src/DefaultPieceStorage.h
  12522. (FileAllocator.h): New include.
  12523. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12524. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12525. * src/FileProgressMonitor.h: New class.
  12526. To compile aria2 on PC-BSD:
  12527. * src/DefaultBtContext.cc
  12528. (libgen.h): New include.
  12529. To fix memory leak:
  12530. * src/Exception.h
  12531. (~Exception): Delete cause. Fixed memory leak.
  12532. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. Rewritten a portion of bittorrent implementation:
  12534. * src/BtMessageValidator.h: New class.
  12535. * src/BtBitfieldMessageValidator.h: New class.
  12536. * src/BtHandshakeMessageValidator.h: New class.
  12537. * src/BtRequestMessageValidator.h: New class.
  12538. * src/BtSuggestPieceMessageValidator.h: New class.
  12539. * src/BtAllowedFastMessageValidator.h: New class.
  12540. * src/BtRejectMessageValidator.h: New class.
  12541. * src/BtCancelMessageValidator.h: New class.
  12542. * src/BtPieceMessageValidator.h: New class.
  12543. * src/BtHaveMessageValidator.h: New class.
  12544. * src/BtEventListener.h: New class.
  12545. * src/AbstractBtEventListener.h: New class.
  12546. * src/BtEvent.h: New class.
  12547. * src/BtChokingEvent.h: New class.
  12548. * src/BtChokedEvent.h: New class.
  12549. * src/BtCancelSendingPieceEvent.h: New class.
  12550. * src/BtAbortOutstandingRequestEvent.h: New class.
  12551. * src/Randomizer.h: New class.
  12552. * src/SimpleRandomizer.h: New class.
  12553. * src/BtMessage.h: New class.
  12554. * src/AbstractBtMessage.h: New class.
  12555. * src/SimpleBtMessage.h: New class.
  12556. * src/BtHaveMessage.h: New class.
  12557. * src/BtInterestedMessage.h: New class.
  12558. * src/BtAllowedFastMessage.h: New class.
  12559. * src/BtUnchokeMessage.h: New class.
  12560. * src/BtCancelMessage.h: New class.
  12561. * src/BtNotInterestedMessage.h: New class.
  12562. * src/BtChokeMessage.h: New class.
  12563. * src/BtHaveNoneMessage.h: New class.
  12564. * src/BtHandshakeMessage.h: New class.
  12565. * src/BtSuggestPieceMessage.h: New class.
  12566. * src/BtHaveMessage.h: New class.
  12567. * src/BtPieceMessage.h: New class.
  12568. * src/BtHaveAllMessage.h: New class.
  12569. * src/BtKeepAliveMessage.h: New class.
  12570. * src/BtPortMessage.h: New class.
  12571. * src/BtRejectMessage.h: New class.
  12572. * src/BtBitfieldMessage.h: New class.
  12573. * src/BtRequestMessage.h: New class.
  12574. * src/DefaultBtRequestFactory.h: New class.
  12575. * src/DefaultBtMessageReceiver.h: New class.
  12576. * src/BtInteractive.h: New class.
  12577. * src/BtMessageDispatcher.h: New class.
  12578. * src/DefaultBtMessageDispatcher.h: New class.
  12579. * src/DefaultBtInteractive.h: New class.
  12580. * src/BitfieldManFactory.h: New class.
  12581. * src/HandleRegistry.h: New class.
  12582. * src/BtMessageFactory.h: New class.
  12583. * src/BtMessageReceiver.h: New class.
  12584. * src/DefaultBtMessageFactory.h: New class.
  12585. * src/PeerObject.h: New class.
  12586. * src/BtRequestFactory.h: New class.
  12587. * src/SuggestPieceMessage.h: Removed.
  12588. * src/PortMessage.h: Removed.
  12589. * src/SuggestPieceMessage.h: Removed.
  12590. * src/KeepAliveMessage.h: Removed.
  12591. * src/HandshakeMessage.h: Removed.
  12592. * src/PeerInteraction.h: Removed.
  12593. * src/UnchokeMessage.h: Removed.
  12594. * src/PieceMessage.h: Removed.
  12595. * src/RequestMessage.h: Removed.
  12596. * src/InterestedMessage.h: Removed.
  12597. * src/HaveMessage.h: Removed.
  12598. * src/CancelMessage.h: Removed.
  12599. * src/RejectMessage.h: Removed.
  12600. * src/AllowedFastMessage.h: Removed.
  12601. * src/HaveNoneMessage.h: Removed.
  12602. * src/SimplePeerMessage.h: Removed.
  12603. * src/HaveAllMessage.h: Removed.
  12604. * src/BitfieldMessage.h: Removed.
  12605. * src/PeerMessageFactory.h: Removed.
  12606. * src/NotInterestedMessage.h: Removed.
  12607. * src/ChokeMessage.h: Removed.
  12608. * src/PeerMessage.h: Removed.
  12609. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12610. To know root cause of exception:
  12611. * src/Exception.h
  12612. (cause): New variable.
  12613. (Exception): Added a parameter.
  12614. (getMsg): Return const reference to msg.
  12615. (getCause): New function.
  12616. * src/DlRetryEx.h
  12617. (DlRetryEx): Added a parameter 'cause'.
  12618. Added an overloaded constructor.
  12619. (DlAbortEx): Added a parameter 'cause'.
  12620. Added an overloaded constructor.
  12621. * src/SimpleLogger.cc
  12622. (writeLog): Log nested exception messages recursively.
  12623. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12624. * src/DefaultBtProgressInfoFile.cc
  12625. (load): Fixed memory leak when the infohash doesn't match.
  12626. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. * src/DefaultPeerStorage.cc
  12628. (calculateStat): Simplified the code by combining 2 loops into 1.
  12629. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12631. for BitTorrent download:
  12632. * src/PeerAbstractCommand.cc
  12633. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12634. * src/main.cc:
  12635. (timeoutSpecified): Removed.
  12636. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12637. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12638. * src/TorrentRequestInfo.cc
  12639. (timeoutSpecified): Removed.
  12640. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12641. timeout value.
  12642. * src/prefs.h
  12643. (PREF_BT_TIMEOUT): New definition.
  12644. Delete unused variables:
  12645. * src/TorrentRequestInfo.cc
  12646. (requestInfo): Removed.
  12647. Move setSignalHander to Util::setGlobalSignalHandler:
  12648. * src/TorrentRequestInfo.cc:
  12649. setSignalHander -> Util::setGlobalSignalHandler
  12650. * src/main.cc
  12651. (setSignalHander): Removed.
  12652. (main): setSignalHander -> Util::setGlobalSignalHandler
  12653. * src/Util.h
  12654. (setGlobalSignalHandler): New function.
  12655. * src/Util.cc
  12656. (setGlobalSignalHandler): New function.
  12657. * src/UrlRequestInfo.cc:
  12658. setSignalHander -> Util::setGlobalSignalHandler
  12659. Reset peer status in order to exit gracefully:
  12660. * src/PeerAbstractCommand.cc
  12661. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12662. To fix the bug that causes the number of bytes uploaded is not saved
  12663. to .aria2 file:
  12664. * src/DefaultPeerStorage.h
  12665. (removedPeerSessionDownloadLength): New variable.
  12666. (removedPeerSessionUploadLength): New variable.
  12667. * src/DefaultPeerStorage.cc
  12668. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12669. removedPeerSessionUploadLength(0).
  12670. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12671. through all peers, and then add removedPeerSessionDownloadLength(
  12672. removedPeerSessionUploadLength) to it.
  12673. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12674. (to) the peer to removedPeerSessionDownloadLength
  12675. (removedPeerSessionUploadLength).
  12676. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. To add Metalink location option:
  12678. * src/MetalinkRequestInfo.cc
  12679. (execute): Call MetalinkEntry::setLocationPreference()
  12680. * src/main.cc
  12681. (showUsage): Added the help message for --metalink-location option.
  12682. (main): Added --metalink-location option.
  12683. * src/prefs.h
  12684. (PREF_METALINK_LOCATION): New definition.
  12685. * src/MetalinkEntry.cc
  12686. (AddLocationPreference): New function object.
  12687. (setLocationPreference): New function.
  12688. * src/Xml2MetalinkProcessor.cc
  12689. (getResource): Set location attribute to MetalinkResource
  12690. To show URLs to download
  12691. * src/UrlRequestInfo.h
  12692. (printUrls): New function.
  12693. To add multiple <file> Metalink support:
  12694. * src/MetalinkEntry.h
  12695. (MetalinkResources): Removed.
  12696. (setLocationPreference): New function.
  12697. (MetalinkEntryHandle): New type definition.
  12698. (MetalinkEntries): New type definition.
  12699. * src/Xml2MetalinkProcessor.h
  12700. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12701. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12702. (parseFile): Metalinker* -> MetalinkerHandle
  12703. * src/UrlRequestInfo.h
  12704. (execute): RequestInfo* -> RequestInfos
  12705. * src/MetalinkRequestInfo.cc
  12706. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12707. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12708. (execute): RequestInfo* -> RequestInfos
  12709. Added multiple <file> support. Print filename when it is queued.
  12710. * src/MetalinkRequestInfo.h
  12711. (execute): RequestInfo* -> RequestInfos
  12712. (getDownloadEngine): Removed.
  12713. * src/RequestInfo.h
  12714. (RequestInfoHandle): New type definition.
  12715. (RequestInfos): New type definition.
  12716. (execute): RequestInfo* -> RequestInfos
  12717. (getDownloadEngine): Removed.
  12718. * src/MetalinkResource.h
  12719. (MetalinkResourceHandle): New type definition.
  12720. (MetalinkResources): New type definition.
  12721. * src/MetalinkEntry.cc
  12722. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12723. because the element is now of type MetalinkResourceHandle.
  12724. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12725. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12726. (dropUnsupportedResource): Removed the deletion of the elements of
  12727. resources because the element is now of type MetalinkResourceHandle.
  12728. * src/Xml2MetalinkProcessor.cc
  12729. (parseFile): Metalinker* -> MetalinkerHandle
  12730. MetalinkEntry* -> MetalinkEntryHandle
  12731. Removed try-catch block.
  12732. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12733. MetalinkResource* -> MetalinkResourceHandle
  12734. Removed try-catch block.
  12735. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12736. Free result by using xmlXPathFreeObject()
  12737. * src/Metalinker.cc
  12738. (~Metalinker): Removed the deletion of entries.
  12739. MetalinkEntry* -> MetalinkEntryHandle
  12740. (queryEntry): Add multiple <file> Metalink support.
  12741. * src/Metalinker.h
  12742. (MetalinkEntries): Removed.
  12743. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12744. * src/MetalinkProcessor.h
  12745. (parseFile): Metalinker* -> MetalinkerHandle
  12746. Bug fixes:
  12747. * src/PeerChokeCommand.cc
  12748. (execute): cat01->cat02
  12749. * src/DefaultPieceStorage.cc
  12750. (DefaultPieceStorage): Added diskAdaptor(0)
  12751. * src/TrackerWatcherComand.cc:
  12752. (execute): Use btAnnounce->noMoreAnnounce()
  12753. to determin whether the function returns true or not.
  12754. * src/TrackerUpdateCommand.cc:
  12755. (execute): Use btAnnounce->noMoreAnnounce()
  12756. to determin whether the function returns true or not.
  12757. * src/FtpConnection.cc
  12758. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12759. This is the fix of the busy loop bug.
  12760. * src/DownloadCommand.cc
  12761. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12762. cached PeerStat.
  12763. The value of "name" entry in torrent file is now set by
  12764. *DiskAdaptor::setTopDir(...) methods.
  12765. * src/MultiDiskAdaptor.h
  12766. (topDir): New variable.
  12767. (setTopDir): New function.
  12768. (getTopDir): New function.
  12769. * src/MultiDiskAdaptor.cc
  12770. (getFilePath): Concat storDir, "/" and topDir.
  12771. (mkdir): Use getFilePath() to get the directory path for output.
  12772. * src/DefaultPieceStorage.cc
  12773. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12774. CopyDiskAdaptor.
  12775. * src/CopyDiskAdaptor.h
  12776. (topDir): New variable.
  12777. (setTopDir): New function.
  12778. (getTopDir): New function.
  12779. * src/CopyDiskAdaptor.cc
  12780. (fixFilename): Updated.
  12781. Misc
  12782. * src/UrlRequestInfo.h
  12783. (e): Removed.
  12784. (UrlRequestInfo): Removed e.
  12785. (getDownloadEngine): Removed.
  12786. * src/UrlRequestInfo.cc
  12787. (handler): Rewritten.
  12788. (printUrls): New function.
  12789. (execute): Call printUrls().
  12790. * src/HandshakeMessage.cc
  12791. (check): peerinteraction->getBtContext() -> btContext
  12792. * src/PeerInteraction.h
  12793. (getBtContext): Removed.
  12794. * src/TorrentRequestInfo.h
  12795. (execute): RequestInfo* -> RequestInfos
  12796. (getDownloadEngine): Removed.
  12797. * src/TorrentRequestInfo.cc
  12798. (haltRequested): Removed.
  12799. (btHaltRequested): New variable.
  12800. (torrentHandler): haltRequested -> btHaltRequested
  12801. (execute): RequestInfo* -> RequestInfos
  12802. * src/TorrentConsoleDownloadEngine.cc
  12803. (afterEachIteration): haltRequested -> btHaltRequested.
  12804. * src/ConsoleDownloadEngine.h
  12805. (initStatistics): Added virtual.
  12806. (calculateStatistics): Added virtual.
  12807. (onEndOfRun): Added virtual.
  12808. (afterEachIteration): Added virtual.
  12809. * src/ConsoleDownloadEngine.cc
  12810. (haltRequested): New variable.
  12811. (afterEachIteration): New function.
  12812. * src/main.cc
  12813. (requestInfo): Removed.
  12814. * src/SegmentMan.cc
  12815. (findSlowerSegmentEntry): Refactored.
  12816. * Release 0.9.0
  12817. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12819. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12820. * src/TorrentMan.h: Removed.
  12821. * src/TorrentMan.cc: Removed.
  12822. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12823. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12824. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12825. * src/PeerAbstractCommand.cc: Use btRuntime.
  12826. * src/BtContextAwareCommand.h: New class.
  12827. * src/FileEntry.h: Added accessor methods for following variables.
  12828. (path): Made private.
  12829. (length): Made private.
  12830. (offset): Made private.
  12831. (extracted): Made private.
  12832. (requested): Made private.
  12833. (FileEntries): New definition.
  12834. (FileEntryHandle): New definition.
  12835. * src/FileEntry.cc: New file.
  12836. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12837. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12838. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12839. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12840. * src/PieceStorage.h: New file.
  12841. * src/PeerInteractionCommand.h: Use btContext.
  12842. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12843. btRuntime.
  12844. * src/DefaultBtProgressInfoFile.h: New file.
  12845. * src/DefaultBtProgressInfoFile.cc: New file.
  12846. * src/File.cc
  12847. (Util.h): New include.
  12848. (mkdirs): New function.
  12849. * src/MultiDiskAdaptor.h
  12850. (mkdir): New function.
  12851. * src/PeerListProcessor.h
  12852. (Peers): Removed.
  12853. * src/PeerInteraction.h
  12854. (torrentMan): Removed.
  12855. (btContext): New variable.
  12856. (peerStorage): New variable.
  12857. (pieceStorage): New variable.
  12858. (btAnnounce): New variable.
  12859. (getTorrentMan): Removed.
  12860. (getBtContext): New function.
  12861. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12862. btAnnounce.
  12863. * src/HandshakeMessage.h
  12864. (TorrentMan.h): Removed.
  12865. * src/HandshakeMessage.cc: Use btContext.
  12866. * src/DefaultBtAnnounce.cc: New file.
  12867. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12868. * src/DefaultPieceStorage.cc: New file.
  12869. * src/DefaultBtContext.h: New file.
  12870. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12871. Use the accessor methods of FileEntry.
  12872. * src/CookieBox.cc: Updated to use Util::slice().
  12873. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12874. * src/common.h (SharedHandle.h): New include.
  12875. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12876. pieceStorage.
  12877. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12878. * src/DiskAdaptor.h
  12879. (topDir): Removed.
  12880. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12881. (setTopDir): Removed.
  12882. (getTopDir): Removed.
  12883. * src/BtContext.h: New file.
  12884. * src/DefaultPeerStorage.h: New file.
  12885. * src/PieceMessage.h (TorrentMan.h): Removed.
  12886. * src/RequestMessage.h (TorrentMan.h): Removed.
  12887. * src/TorrentDownloadEngine.h
  12888. (uploadLength): New variable.
  12889. (btContext): New variable.
  12890. (btRuntime): New variable.
  12891. (pieceStorage): New variable.
  12892. (peerStorage): New variable.
  12893. (btAnnounce): New variable.
  12894. (btProgressInfoFile): New variable.
  12895. (torrentMan): Removed.
  12896. (setBtContext): New function.
  12897. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12898. peerStorage, btAnnounce, btProgressInfoFile.
  12899. * src/Piece.h
  12900. (toString): New function.
  12901. (Pieces): New type definition.
  12902. * src/Peer.h
  12903. (active): New variable.
  12904. (Peer): Added active.
  12905. (activate): Set active to true.
  12906. (deactivate): Set active to false.
  12907. (isActive): New function.
  12908. (Peers): New type definition.
  12909. * src/DirectDiskAdaptor.cc
  12910. (getFilePath): Use the accessor methods of FileEntry.
  12911. * src/TorrentConsoleDownloadEngine.h
  12912. (afterEachIteration): New function.
  12913. * src/TorrentConsoleDownloadEngine.cc
  12914. (haltRequested): New variable.
  12915. (sendStatistics): Use pieceStorage, btRuntime.
  12916. (afterEachIteration): New function.
  12917. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12918. * src/Directry.h
  12919. (Directory): New function.
  12920. (DirectoryHandle): New type definition.
  12921. * src/BtProgressInfoFile.h: New file.
  12922. * src/RequestMessage.cc: Use pieceStorage.
  12923. * src/BtRuntime.h: New file.
  12924. * src/DefaultBtContext.cc: New file.
  12925. * src/BitfieldMan.h
  12926. (getCompletedLength): New function(private).
  12927. (getCompletedLength): New function.
  12928. (getFilteredCompletedLength): New function.
  12929. * src/BitfieldMan.h
  12930. (getCompletedLength): New function(private).
  12931. (getCompletedLength): New function.
  12932. (getFilteredCompletedLength): New function.
  12933. * src/MultiDiskAdaptor.cc
  12934. (mkdir): New function.
  12935. (openFile): Call mkdir().
  12936. (initAndOpenFile): Call mkdir().
  12937. * src/CancelMessage.h
  12938. (TorrentMan.h): Removed.
  12939. * src/RejectMessage.h
  12940. (TorrentMan.h): Removed.
  12941. * src/DownloadEngineFactory.cc
  12942. (DefaultPieceStorage.h): New include.
  12943. (DefaultPeerStorage.h): New include.
  12944. (DefaultBtAnnounce.h): New include.
  12945. (DefaultBtProgressInfoFile.h): New include.
  12946. (newTorrentConsoleEngine): Rewritten.
  12947. * src/ShareRatioSeedCriteria.h
  12948. (torrentMan): Removed.
  12949. (btContext): New variable.
  12950. (peerStorage): New variable.
  12951. (btRuntime): New variable.
  12952. (evaluate): Use btContext, btRuntime, peerStorage.
  12953. * src/AnnounceTier.h: New file.
  12954. * src/BtAnnounce.h: New file.
  12955. * src/BtRegistry.h: New file.
  12956. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12957. * src/PeerConnection.h (TorrentMan.h): Removed.
  12958. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12959. * src/Util.h
  12960. (slice): Added an argument.
  12961. * src/Util.cc
  12962. (slice): Added an argument to control whether trim is made or not.
  12963. * src/PeerStorage.h: New file.
  12964. * src/BtRegistry.cc: New file.
  12965. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12966. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12967. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12968. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12969. * src/TorrentRequestInfo.h
  12970. (e): Removed.
  12971. (showFileEntry): Added an argument.
  12972. (getDownloadEngine): Return 0.
  12973. * src/DefaultBtAnnounce.h: New file.
  12974. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12975. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12976. * src/PeerMessageFactory.h
  12977. (btContext): New variable.
  12978. (pieceStorage): New variable.
  12979. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12980. btAnnounce.
  12981. * src/DiskAdaptor.cc
  12982. (DiskAdaptor): Removed topDir.
  12983. (~DiskAdaptor): Removed topDir.
  12984. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12985. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12986. * src/File.h (mkdirs): New function.
  12987. * src/DefaultPeerStorage): New file.
  12988. * src/DownloadEngineFactory.h
  12989. (newTorrentConsoleEngine): Use btContext.
  12990. * src/BtContextAwareCommand.cc: New file.
  12991. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12992. * src/PeerMessage.h
  12993. (btContext): New variable.
  12994. (peerStorage): New variable.
  12995. (pieceStorage): New variable.
  12996. (setBtContext): New function.
  12997. * src/Directry.cc
  12998. (Directory): New function.
  12999. (createDir): Do nothing if name.size() == 0.
  13000. * src/AnnounceList.h
  13001. (AnnounceTier): Removed.
  13002. (AnnounceTiers): Removed.
  13003. * src/DefaultPieceStorage.h: New file.
  13004. * src/Piece.cc (toString): New function.
  13005. To fix typo:
  13006. * src/main.cc (showVersion): Fixed typo.
  13007. To fix compile warning:
  13008. * src/DelegatingPeerListProcessor.cc
  13009. (canHandle): Added "return false".
  13010. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13011. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13012. make the process of announce request testable.
  13013. * src/TrackerWatcherCommand.h
  13014. (TimeA2.h): Removed.
  13015. (interval): Removed.
  13016. (checkPoint): Removed.
  13017. (createRequestCommand): Added an argument 'url'.
  13018. (TrackerWatherCommand): Removed interval.
  13019. (createCommand): New function.
  13020. * src/DownloadEngineFactory.cc
  13021. (newTorrentConsoleEngine): Updated according to the changes in
  13022. TrackerWatherCommand.
  13023. * src/TorrentMan.cc
  13024. (DelegatingPeerListProcessor.h): New includes.
  13025. (TorrentMan): Added the initialization of announceInterval.
  13026. (isStoppedAnnounceReady): New function.
  13027. (isCompletedAnnounceReady): New function.
  13028. (isDefaultAnnounceReady): New function.
  13029. (isAnnounceReady): New function.
  13030. (getAnnounceUrl): New function.
  13031. (announceStart): New function.
  13032. (announceFailure): New function.
  13033. (announceSuccess): New function.
  13034. (isAllAnnounceFailed): New function.
  13035. (resetAnnounce): New function.
  13036. (processAnnounceResponse): New function.
  13037. (needMorePeerConnection): New function.
  13038. (noMoreAnnounce): New function.
  13039. * src/TrackerUpdateCommand.h
  13040. (getTrackerResponse): int->size_t
  13041. * src/TorrentMan.h
  13042. (isStoppedAnnounceReady): New function.
  13043. (isCompletedAnnounceReady): New function.
  13044. (isDefaultAnnounceReady): New function.
  13045. (announceInterval): New variable.
  13046. (isAnnounceReady): New function.
  13047. (getAnnounceUrl): New function.
  13048. (announceStart): New function.
  13049. (announceFailure): New function.
  13050. (announceSuccess): New function.
  13051. (isAllAnnounceFailed): New function.
  13052. (resetAnnounce): New function.
  13053. (processAnnounceResponse): New function.
  13054. (needMorePeerConnection): New function.
  13055. (noMoreAnnounce): New function.
  13056. * src/TrackerWatcherCommand.cc
  13057. (TrackerWatherCommand): Removed interval and checkPoint.
  13058. (execute): Rewritten.
  13059. (createCommand): New function.
  13060. (createRequestCommand): Rewritten.
  13061. * src/TrackerUpdateCommand.cc
  13062. (MetaFileUtil.h): Removed.
  13063. (DelegatingPeerListProcessor.h): Removed.
  13064. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13065. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13066. Request -> RequestHandle:
  13067. * src/HttpResponseCommand.h: Request->RequestHandle
  13068. * src/AbstractCommand.cc: Request->RequestHandle
  13069. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13070. * src/HttpRequestCommand.cc: Request->RequestHandle
  13071. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13072. * src/AbstractCommand.h: Request->RequestHandle
  13073. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13074. * src/HttpResponseCommand.cc: Request->RequestHandle
  13075. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13076. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13077. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13078. * src/HttpConnection.h: Request->RequestHandle
  13079. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13080. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13081. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13082. * src/DownloadCommand.h: Request->RequestHandle
  13083. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13084. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13085. * src/HttpRequestCommand.h: Request->RequestHandle
  13086. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13087. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13088. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13089. * src/HttpDownloadCommand.h: Request->RequestHandle
  13090. * src/FtpConnection.cc: Request->RequestHandle
  13091. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13092. * src/UrlRequestInfo.cc: Request->RequestHandle
  13093. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13094. * src/HttpConnection.h: Request->RequestHandle
  13095. * src/DownloadCommand.cc: Request->RequestHandle
  13096. * src/FtpConnection.h: Request->RequestHandle
  13097. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13098. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13099. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13100. * src/Request.h
  13101. (SharedHandle.h): New include.
  13102. (RequestHandle): New type definition.
  13103. (Requests): Redefined.
  13104. To add MULTITRACKER support:
  13105. * src/TrackerWatcherCommand.h
  13106. (createRequestCommand): New function.
  13107. * src/DownloadEngineFactory.cc
  13108. (newTorrentConsoleEngine): Removed req.
  13109. * src/prefs.h
  13110. (PREF_TRACKER_MAX_TRIES): New definition.
  13111. * src/TorrentMan.cc
  13112. (TorrentMan): Removed req. Added trackerNumTry.
  13113. (~TorrentMan): Removed req.
  13114. (setupInternal1): Added announceList.
  13115. * src/TorrentRequestInfo.cc
  13116. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13117. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13118. * src/main.cc
  13119. (main): Added PREF_TRACKER_MAX_TRIES.
  13120. * src/TorrentMan.h
  13121. (Request.h): Removed.
  13122. (AnnounceList.h): New include.
  13123. (trackerNumTry): New variable.
  13124. (req): Removed.
  13125. (announceList): New variable.
  13126. * src/TrackerWatcherCommand.cc
  13127. (execute): Rewritten.
  13128. (createRequestCommand): New function.
  13129. * src/TrackerUpdateCommand.cc
  13130. (execute): Updated with the use of AnnounceList.
  13131. * src/AnnounceList.cc: New class.
  13132. * src/AnnounceList.h: New class.
  13133. To fix typo:
  13134. * src/prefs.h
  13135. (PREF_MAX_TRIES): max_try->max_tries
  13136. To not to decode "+" as space in URL decode:
  13137. * src/Util.cc
  13138. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13139. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13140. To add timeout to async name resolution:
  13141. * src/AbstractCommand.h
  13142. (nameResolveFinished): New function. This is not elegant way. It needs
  13143. to be more refined.
  13144. (nameResolverCheck): New variable.
  13145. * src/AbstractCommand.cc
  13146. (AbstractCommand): Added nameResolverCheck.
  13147. (execute): Added the check whether the name resolution has finished.
  13148. (setNameResolverCheck): Set nameResolverCheck to true.
  13149. (disableNameResolverCheck): Set nameResolverCheck to false.
  13150. (nameResolverFinished): New function.
  13151. * src/FtpInitiateConnectionCommand.h
  13152. (nameResolverFinished): New function.
  13153. * src/FtpInitiateConnectionCommand.cc
  13154. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13155. * src/HttpInitiateConnectionCommand.h
  13156. (nameResolverFinished): New function.
  13157. * src/HttpInitiateConnectionCommand.cc
  13158. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13159. * src/prefs.h
  13160. (PREF_DNS_TIMEOUT): New definition.
  13161. * src/main.cc
  13162. (main): Added PREF_DNS_TIMEOUT.
  13163. To add the support for a non-compact response from a tracker:
  13164. * src/PeerListProcessor.h: New class.
  13165. * src/DefaultPeerListProcessor.h: New class.
  13166. * src/DefaultPeerListProcessor.cc: New class.
  13167. * src/CompactPeerListProcessor.h: New class.
  13168. * src/CompactPeerListProcessor.cc: New class.
  13169. * src/DelegatingPeerListProcessor.h: New class.
  13170. * src/DelegatingPeerListProcessor.cc: New class.
  13171. * src/TorrentMan.cc
  13172. (addPeer): New function(overload).
  13173. (addPeer): Delete unused peers only when new peer is added.
  13174. * src/TorrentMan.h
  13175. (PeerListProcessor.h): Included.
  13176. (Peers): Removed.
  13177. (addPeer): New function(overload).
  13178. * src/TrackerUpdateCommand.cc
  13179. (netinet/in.h): Removed.
  13180. (DelegatingPeerListProcessor.h): Included.
  13181. (execute): Updated to use DelegatingPeerListProcessor.
  13182. To fix the memory leak in TorrentMan::peers:
  13183. * src/PeerAbstractCommand.cc
  13184. (onAbort): Added peer->resetStatus().
  13185. * src/Peer.h
  13186. (resetStatus): Made public.
  13187. To improve the precision of the speed calculation:
  13188. * src/SpeedCalc.h
  13189. (nextInterval): New variable.
  13190. * src/SpeedCalc.cc
  13191. (reset): Added nextInterval.
  13192. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13193. (changeSw): Set nextInterval to 15 seconds relative to the current
  13194. instant time.
  13195. * src/main.cc
  13196. (showVersion): Updated.
  13197. (showUsage): Updated.
  13198. * Release 0.8.1
  13199. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13200. * src/main.cc
  13201. (showUsage): Commented out --min-segment-size option.
  13202. (main): Commented out --min-segment-size option.
  13203. * Release 0.8.0
  13204. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13205. * src/*.{h,cc}:
  13206. Added an exception to the license which allows linking with OpenSSL.
  13207. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. * src/AbstractCommand.cc
  13209. (execute): Check whether the download has finished before checking
  13210. socket status.
  13211. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13212. Do not exit even if no segment is available.
  13213. * src/prefs.h
  13214. (PREF_STARTUP_IDLE_TIME): New definition.
  13215. * src/PeerInteractionCommand.cc
  13216. (executeInternal): Removed max speed limit. Because it performs bad.
  13217. (receiveMessages): Added max speed limit. This was better than above,
  13218. but still a little bit to be desired. Sometimes the download speed
  13219. became much faster than I specified.
  13220. * src/SpeedCalc.h
  13221. (start): New variable.
  13222. (accumulatedLength): New variable.
  13223. (getAvgSpeed): New function.
  13224. * src/SpeedCalc.cc
  13225. (reset): Added start, accumulatedLength.
  13226. (update): Added calculation of an average speed.
  13227. (getAvgSpeed): New function.
  13228. * src/DownloadCommand.h
  13229. (sw): Removed.
  13230. * src/main.cc
  13231. (main): Added PREF_STARTUP_IDLE_TIME.
  13232. * src/PeerStat.h
  13233. (STATUS): Added REQUEST_IDLE.
  13234. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13235. (getAvgDownloadSpeed): New function
  13236. (requestIdle): New function.
  13237. * src/SegmentMan.h
  13238. (SegmentEntryHandle): New type definition.
  13239. (SegmentEntries): Now holds SegmentEntryHandle.
  13240. (findSlowerSegmentEntry): New funtion.
  13241. * src/SegmentMan.cc
  13242. (save): Updated according to the changes in SegmentEntries.
  13243. (read): Updated according to the changes in SegmentEntries.
  13244. (FindSegmentEntryByIndex): Updated according to the changes in
  13245. SegmentEntries.
  13246. (FindSegmentEntryByCuid): Updated according to the changes in
  13247. SegmentEntries.
  13248. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13249. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13250. Renamed uitr as itr.
  13251. (findSlowerSegmentEntry): New function.
  13252. (getSegment): Updated according to the changes in SegmentEntries.
  13253. Added the feature that cancels the segment with slow server and fast
  13254. one takes it over.
  13255. (cancelSegment): Updated according to the changes in SegmentEntries.
  13256. (getDownloadLength): Updated according to the changes in
  13257. SegmentEntries.
  13258. (init): Assigned 0 to bitfield after deleting it.
  13259. * src/DownloadCommand.cc
  13260. (STARTUP_IDLE_TIME): Removed.
  13261. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13262. * src/PeerChokeCommand.cc
  13263. (optUnchokingPeer): Updated according to the changes in Peer.
  13264. (ResetDelta): Removed.
  13265. (UploadFaster): Updated according to the changes in Peer.
  13266. (DownloadFaster): Updated according to the changes in Peer.
  13267. (execute): I clarify the meaning of "upload" and "download" here.
  13268. "upload" means the transfer from localhost to remote host.
  13269. "download" means the transfer from remote host to localhost.
  13270. Based on this rule, I swapped orderByUploadRate and
  13271. orderByDownloadRate.
  13272. * src/PeerInteractionCommand.cc
  13273. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13274. (executeInternal): Removed the argument of
  13275. peerInteraction->sendMessages().
  13276. (receiveMessages): Rewritten download speed limit.
  13277. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13278. * src/HttpResponseCommand.cc
  13279. (handleDefaultEncoding): If file size is unknown in torrent request,
  13280. do not call segmentMan->initBitfield() here.
  13281. Disabled persistent connection feature in torrent request.
  13282. * src/UrlRequestInfo.h
  13283. (UrlRequestInfo): Removed const qualifier from option.
  13284. * src/TorrentMan.h
  13285. (TransferStat): New class.
  13286. (deltaDownloadLength): Removed.
  13287. (deltaUploadLength): Removed.
  13288. (addDeltaDownloadLength): Removed.
  13289. (getDeltaDownloadLength): Removed.
  13290. (resetDeltaDownloadLength): Removed.
  13291. (addDeltaUploadLength): Removed.
  13292. (getDeltaUploadLength): Removed.
  13293. (resetDeltaUploadLength): Removed.
  13294. (addActivePeer): Added peer->activate().
  13295. (deleteActivePeer): Added peer->deactivate().
  13296. (calculateStat): New function.
  13297. * src/TorrentMan.cc
  13298. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13299. (calculateStat): New function.
  13300. * src/PeerInteraction.h
  13301. (uploadLimit): Removed.
  13302. (option): New variable.
  13303. (setUploadLimit): Removed.
  13304. (getUploadSpeed): Removed.
  13305. (sendMessages): Removed the argument "currentUploadSpeed".
  13306. * src/PeerInteraction.cc
  13307. (prefs.h): Included.
  13308. (PeerInteraction): Removed uploadLimit. Added option.
  13309. (sendMessages): Rewritten upload speed limit.
  13310. (sendHandshake): Removed the argument from sendMessages().
  13311. (sendBitfield): Removed the argument from sendMessages().
  13312. * src/PeerAbstractCommand.cc
  13313. (execute): Commented out the portion of upload limit.
  13314. (onAbort): Removed peer->resetStatus().
  13315. * src/TorrentRequestInfo.cc
  13316. (timeoutSpecified): Declared extern.
  13317. (execute): Set timeout to 180 if timeout is not specified by.
  13318. command-line.
  13319. * src/PieceMessage.cc
  13320. (receivedAction): Added peer->updateDownloadLength().
  13321. Removed peer->addPeerUpload().
  13322. Removed torrentMan->addDeltaDownloadLength().
  13323. (send): Added peer->updateUploadLength().
  13324. Removed peer->addPeerDownload().
  13325. Removed torrentMan->addDeltaUploadLength().
  13326. * src/main.cc
  13327. (timeoutSpecified): New variable.
  13328. (main): Set timeoutSpecified to false.
  13329. If the command-line option "--upload-limit" is specified, then
  13330. timeoutSpecified is set to true. This option will remain in the next
  13331. release, but be deprecated in the future release.
  13332. * src/TorrentRequestInfo.h
  13333. (TorrentRequestInfo): Removed const qualifier from op.
  13334. * src/PeerStat.h
  13335. (uploadSpeed): New variable.
  13336. (PeerStat): Added default value to cuid.
  13337. (calculateUploadSpeed): New function.
  13338. (updateUploadLength): New function.
  13339. (getMaxUploadSpeed): New function.
  13340. (getAvgUploadSpeed): New function.
  13341. (reset): Added uploadSpeed. Set status to IDLE.
  13342. * src/TorrentDownloadEngine.h
  13343. (cp): Declared as Time.
  13344. (sessionDownloadLengthArray): Removed.
  13345. (sessionUploadLengthArray): Removed.
  13346. (currentCp): Removed.
  13347. (lastCalcStat): New variable
  13348. (lastElapsed): Removed.
  13349. (sessionDownloadLength): Removed.
  13350. (calculateStat): New function.
  13351. * src/TorrentDownloadEngine.cc
  13352. (initStatistics): Removed lastElapsed, cp[],
  13353. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13354. currentCp, sessionDownloadLength.
  13355. Added cp.reset() and lastCalcStat.reset().
  13356. (calculateSpeed): Changed the name of the argument.
  13357. (calculateStatistics): Rewritten.
  13358. (calculateStat): New function.
  13359. * src/Peer.h
  13360. (PeerStat.h): Included.
  13361. (peerUpload): Removed.
  13362. (peerDownload): Removed.
  13363. (peerStat): New variable.
  13364. (sessionUploadLength): New variable.
  13365. (sessionDownloadLength): New variable.
  13366. (deltaUpload): Removed.
  13367. (deltaDownload): Removed.
  13368. (resetStatus): Made private.
  13369. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13370. Removed peerUpload, peerDownload.
  13371. (updateUploadLength): New function.
  13372. (addDeltaUpload): Removed.
  13373. (updateDownloadLength): New function.
  13374. (resetDeltaUpload): Removed.
  13375. (getDeltaUpload): Removed.
  13376. (addDeltaDownload): Removed.
  13377. (calculateUploadSpeed): New function.
  13378. (resetDeltaDownload): Removed.
  13379. (getDeltaDownload): Removed.
  13380. (calculateDownloadSpeed): New function.
  13381. (getSessionUploadLength): New function.
  13382. (getSessionDownloadLength): New function.
  13383. (activate): New function.
  13384. (deactivate): New function.
  13385. (addPeerUpload): Removed.
  13386. (setPeerUpload): Removed.
  13387. (getPeerUpload): Removed.
  13388. (addPeerDownload): Removed.
  13389. (setPeerDownload): Removed.
  13390. (getPeerDownload): Removed.
  13391. * src/Peer.cc
  13392. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13393. * src/MetalinkRequestInfo.h
  13394. (MetalinkRequestInfo): Removed const qualifier from op.
  13395. * src/RequestInfo.h
  13396. (op): Removed const qualifier.
  13397. (RequestInfo): Removed const qualifier from op.
  13398. * src/prefs.h
  13399. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13400. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13401. * src/PeerInteractionCommand.cc
  13402. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13403. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13404. * src/PeerInteraction.cc
  13405. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13406. * src/main.cc
  13407. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13408. Added the description of "--max-download-limit" option.
  13409. Removed the description of "--upload-limit" option.
  13410. Added the description of "--max-upload-limit" option.
  13411. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13412. Added "--max-download-limit" option and "--max-upload-limit" option.
  13413. Added the warning message if "--upload-limit" option is used.
  13414. * src/DownloadCommand.cc
  13415. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13416. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13417. To rewrite segment download mechanism for HTTP/FTP download.
  13418. Use BitfieldMan to manage segment download.
  13419. * src/HttpResponseCommand.h
  13420. (executeInternal): Pass the reference of segment.
  13421. * src/AbstractCommand.cc
  13422. (prepareForRetry): Call segmentMan->cancelSegment here.
  13423. (onAbort): Call segmentMan->cancelSegment here.
  13424. * src/HttpDownloadCommand.cc
  13425. (prepareForNextSegment): New function.
  13426. * src/DownloadEngineFactory.cc
  13427. (newConsoleEngine): Removed splitter.
  13428. (newTorrentConsoleEngine): Removed splitter.
  13429. * src/Request.h
  13430. (segment): Renamed from seg.
  13431. * src/FtpInitiateConnectionCommand.h
  13432. (executeInternal): Pass the reference of segment.
  13433. * src/AbstractCommand.h
  13434. (executeInternal): Pass the reference of segment.
  13435. * src/pref.h
  13436. (PREF_SEGMENT_SIZE): New definition.
  13437. * src/HttpProxyRequestCommand.h
  13438. (executeInternal): Pass the reference of segment.
  13439. * src/HttpResponseCommand.cc
  13440. (checkResponse): Allowed status 206 when a request range starts 0.
  13441. (handleDefaultEncoding): Rewritten the code related to Segment.
  13442. (handleOtherEncoding): Rewritten the code related to Segment.
  13443. * src/SegmentMan.h
  13444. (SegmentEntry): New class.
  13445. (SegmentEntries): New type definition.
  13446. (bitfield): New variable.
  13447. (usedSegmentEntries): New variable.
  13448. (onNullBitfield): New function.
  13449. (checkoutSegment): New function.
  13450. (segments): Removed.
  13451. (splitter): Removed.
  13452. (unregisterId): Removed.
  13453. (getSegment): New function(overload)
  13454. (getDownloadedSize): Removed.
  13455. (cancelSegment): New function.
  13456. (completeSegment): New function.
  13457. (initBitfield): New function.
  13458. (hasSegment): New function.
  13459. (getDownloadLength): New function.
  13460. * src/BitfieldMan.h
  13461. (getStartIndex): New function.
  13462. (getEndIndex): New function.
  13463. (getMissingUnusedIndex): New function(overload).
  13464. (getSparseMissingUnusedIndex): New function.
  13465. * src/BitfieldMan.cc
  13466. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13467. (getMissingUnusedIndex): New function(overload).
  13468. (Range): New class.
  13469. (getStartIndex): New function.
  13470. (getEndIndex): New function.
  13471. (getSparseMissingUnusedIndex): New function.
  13472. (isBitSetInternal): Return false if the given index is less than 0.
  13473. * src/HttpInitiateConnectionCommand.h
  13474. (executeInternal): Pass the reference of segment.
  13475. * src/FtpNegotiateCommand.h
  13476. (executeInternal): Pass the reference of segment.
  13477. * src/FtpNegotiateCommand.cc
  13478. (recvSize): Initialize bitfield here.
  13479. * src/FtpTunnelResponseCommand.h
  13480. (executeInternal): Pass the reference of segment.
  13481. * src/HttpConnection.cc
  13482. (createRequest): Rewritten range header processing.
  13483. * src/DownloadCommand.h
  13484. (executeInternal): Pass the reference of segment.
  13485. (prepareForRetry): Removed.
  13486. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13487. function.
  13488. * src/main.cc
  13489. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13490. * src/SegmentMan.cc
  13491. (SegmentMan): Added bitfield. Removed splitter.
  13492. (~SegmentMan): Added bitfield. Removed splitter.
  13493. (unregisterId): Removed.
  13494. (getSegment): Rewritten.
  13495. (updateSegment): Rewritten.
  13496. (save): Rewritten.
  13497. (read): Rewritten.
  13498. (finished): Rewritten.
  13499. (getDownloadedSize): Removed.
  13500. (initBitfield): New function.
  13501. (FindSegmentEntryByIndex): New function object.
  13502. (FindSegmentEntryByCuid): New function object.
  13503. (checkoutSegment): New function.
  13504. (onNullBitfield): New function.
  13505. (getSegment): New function(overload).
  13506. (CancelSegment): New function object.
  13507. (cancelSegment): New function.
  13508. (completeSegment): New function.
  13509. (hasSegment): New function.
  13510. (getDownloadLength): New function.
  13511. * src/FtpInitiateConnectionCommand.cc
  13512. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13513. * src/Segment.h: Rewritten.
  13514. * src/Segment.cc (operator<<): New function.
  13515. * src/HttpDownloadCommand.h
  13516. (prepareForNextSegment): New function.
  13517. * src/Request.cc
  13518. (resetUrl): Made segment null.
  13519. * src/DownloadEngine.cc
  13520. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13521. * src/HttpProxyRequestCommand.h
  13522. (executeInternal): Pass the reference of segment.
  13523. * src/DownloadCommand.cc
  13524. (executeInternal): Rewritten the code related to Segment.
  13525. (prepareForRetry): Removed.
  13526. (prepareForNextSegment): Rewritten.
  13527. * src/FtpTunnelResponseCommand.h
  13528. (executeInternal): Pass the reference of segment.
  13529. To add HTTP 1.1 persistent connection support(experimental)
  13530. * src/HttpRequestCommand.cc
  13531. (executeInternal): Disable keep alive if it is disabled by
  13532. configuration.
  13533. * src/Request.h
  13534. (keepAlive): New variable.
  13535. (isKeepAlive): New function.
  13536. (setKeepAlive): New function.
  13537. * src/pref.h
  13538. (PREF_HTTP_KEEP_ALIVE): New definition.
  13539. * src/HttpResponseCommand.cc
  13540. (executeInternal): Check the remote server supports keep alive.
  13541. * src/HttpConnection.cc
  13542. (createRequest): Send "Connection: close" only if keep alive is
  13543. disabled.
  13544. * src/main.cc
  13545. (main):
  13546. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13547. To add max download speed limit:
  13548. * src/pref.h
  13549. (PREF_MAX_SPEED_LIMIT): New definition.
  13550. * src/PeerInteractionCommand.cc
  13551. (executeInternal): Added max download speed limit. Not tested yet.
  13552. * src/SegmentMan.h
  13553. (PeerStats): New type definition.
  13554. (peerStats): New variable.
  13555. (registerPeerStat): New function.
  13556. (FindPeerStat): New function object.
  13557. (getPeerStat): New function.
  13558. (calculateDownloadSpeed): New function.
  13559. * src/SpeedCalc.h: New class.
  13560. * src/SpeedCalc.cc: New class.
  13561. * src/main.cc
  13562. (main):
  13563. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13564. download speed is not restricted).
  13565. * src/PeerStat.h: New class.
  13566. * src/SegmentMan.cc
  13567. (registerPeerStat): New function.
  13568. (calculateDownloadSpeed): New function.
  13569. * src/DownloadCommand.cc
  13570. (STARTUP_IDLE_TIME): New definition.
  13571. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13572. downloadStart.
  13573. (~DownloadCommand): Call peerStat->downloadStop.
  13574. (executeInternal): Added download speed limitter. Rewritten lowest
  13575. speed limitter.
  13576. * src/HttpConnection.cc
  13577. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13578. * src/AbstractCommand.cc
  13579. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13580. Added hostname to the error message.
  13581. * src/ConsoleDownloadEngine.cc
  13582. (calculateStatistics): Initialize psize with dlSize.
  13583. * src/PieceMessage.cc
  13584. (receivedAction): Do not call peerInteraction->abortPiece here.
  13585. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13586. * src/BitfieldMan.h
  13587. (clearAllUseBit): New function.
  13588. (setAllUseBit): New function.
  13589. * src/BitfieldMan.cc
  13590. (clearAllBit): Do not clear useBitfield here.
  13591. (clearAllUseBit): New function.
  13592. (setAllUseBit): New function.
  13593. * src/Piece.cc
  13594. (clearAllBlock): Call bitfield->clearAllUseBit().
  13595. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13596. To make filename URL-decoded:
  13597. * src/HttpResponseCommand.h: Updated doc.
  13598. * src/HttpResponseCommand.cc
  13599. (determinFilename): Made filename URL-decoded.
  13600. * src/FtpInitiateConnectionCommand.cc
  13601. (executeInternal): Made filename URL-decoded.
  13602. * src/Util.h (urldecode): New function.
  13603. * src/Util.cc (urldecode): New function.
  13604. To fix a bug that caused assertion failure in ares_strerror:
  13605. * src/NameResolver.cc (callback): Fixed the bug.
  13606. * Release 0.7.3
  13607. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13608. To add --seed-time and --seed-ratio command-line option:
  13609. * src/Option.h (getAsDouble): New function.
  13610. * src/Option.cc (getAsDouble): New function.
  13611. * src/SeedCheckCommand.h: New class.
  13612. * src/SeedCheckCommand.cc: New class.
  13613. * src/DownloadEngineFactory.cc
  13614. (SeedCheckCommand.h): Included.
  13615. (UnionSeedCriteria.h): Included.
  13616. (TimeSeedCriteria.h): Included.
  13617. (ShareRatioSeedCriteria.h): Included.
  13618. (newTorrentConsoleEngine): Added the processing of seed option.
  13619. * src/SeedCriteria.h: New class.
  13620. * src/ShareRatioSeedCriteria.h: New class.
  13621. * src/TimeSeedCriteria.h: New class.
  13622. * src/UnionSeedCriteria.h: New class.
  13623. * src/prefs.h
  13624. (PREF_SEED_TIME): New definition.
  13625. (PREF_SEED_RATIO): New definition.
  13626. * src/main.cc
  13627. (showUsage): Added --seed-time and --seed-ratio option.
  13628. (main): Added --seed-time and --seed-ratio option.
  13629. Made default log file name "/dev/null".
  13630. * src/SharedHandle.h
  13631. (SharedHandle): Copy constructor. Made it assignable from the
  13632. SharedHandle of the subclasses.
  13633. (operator=): Made it assignable from the SharedHandle of the
  13634. subclasses.
  13635. (getRefCount): New function.
  13636. To add notice log level and the switch to write log to stdout. This
  13637. switch is configurable per log level.
  13638. * src/Logger.h
  13639. (notice): New function.
  13640. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13641. constant.
  13642. * src/LogFactory.cc
  13643. (getInstance): The use of NullLogger was removed. A log message with
  13644. notice log level was made written to stdout along with log file.
  13645. * src/NullLogger.h
  13646. (notice): New function.
  13647. * src/SimpleLogger.h
  13648. (writeHeader): Added the 'file' argument.
  13649. (writeLog): Added the 'file' argument.
  13650. (writeFile): New function.
  13651. (stdoutField): New variable.
  13652. (SimpleLogger): Removed the default constructor.
  13653. (SimpleLogger): Made the default value of logfile 0.
  13654. (debug): Added 'virtual' keyword.
  13655. (info): Added 'virtual' keyword.
  13656. (warn): Added 'virtual' keyword.
  13657. (error): Added 'virtual' keyword.
  13658. (notice): New function.
  13659. (setStdout): New function.
  13660. * src/SimpleLogger.cc
  13661. (WRITE_LOG): Replaced writeLog with writeFile.
  13662. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13663. (SimpleLogger): Removed the default constructor.
  13664. (setStdout): New function.
  13665. (writeLog): Added the handling of NOTICE log level.
  13666. (writeFile): New function.
  13667. (notice): New function.
  13668. * src/TorrentMan.h: Updated doc.
  13669. * src/BitfieldMan.h: Updated doc.
  13670. * src/TrackerWatcherCommand.cc
  13671. (execute): Return true if error occurred in the request to the tracker
  13672. and halt is requested.
  13673. * src/TrackerUpdateCommand.cc
  13674. (execute): Return true if error occurred in the request to the tracker
  13675. and halt is requested.
  13676. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13677. DownloadEngine:
  13678. * src/TorrentConsoleDownloadEngine.h
  13679. (onSelectiveDownloadingCompletes): Removed.
  13680. * src/TorrentConsoleDownloadEngine.cc
  13681. (onSelectiveDownloadingCompletes): Removed.
  13682. * src/TorrentDownloadEngine.h
  13683. (onEndOfRun): Added 'virtual' keyword.
  13684. (afterEachIteration): Removed.
  13685. (onSelectiveDownloadingCompletes): Removed.
  13686. * src/TorrentDownloadEngine.cc
  13687. (onEndOfRun): Removed filenameFixed.
  13688. (afterEachIteration): Removed.
  13689. * src/TorrentMan.cc
  13690. (completePiece): Call onDownloadComplete here.
  13691. (onDownloadComplete): Added 2 log messages.
  13692. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13693. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13694. * src/NameResolver.h: Added the prototype declaration of callback().
  13695. To support c-ares library:
  13696. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13697. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13698. * src/FtpInitiateConnectionCommand.h:
  13699. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13700. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13701. * src/HttpInitiateConnectionCommand.h:
  13702. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13703. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13704. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13705. #1542285 by tizianomueller)
  13706. * src/HttpInitiateConnectionCommand.cc:
  13707. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13708. * src/FtpInitiateConnectionCommand.cc:
  13709. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13710. * src/DownloadEngine.h:
  13711. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13712. * src/DownloadEngine.cc:
  13713. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13714. To fix the bug that causes compilation failure with metalink-support
  13715. disabled(bug#1543587):
  13716. * src/main.cc: Fixed with the patch by tizianomueller.
  13717. * Release 0.7.2
  13718. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13719. * src/main.cc
  13720. (main): Added a message to inform users that aria2 is starting to
  13721. verify checksum.
  13722. * src/RequestInfo.cc
  13723. (printDownloadAbortMessage): Added a message to inform users that
  13724. transfer can be resumed.
  13725. * src/FeatureConfig.cc
  13726. (FEATURE_ASYNC_DNS): New definition.
  13727. (FeatureConfig): Added aysnc DNS entry.
  13728. To replace CommandUuid with Command* in SocketEntry and
  13729. NameResolverEntry:
  13730. * src/DownloadEngine.h
  13731. (CommandUuids): Removed.
  13732. (SocketEntry::commandUuid): Removed.
  13733. (SocketEntry::command): New variable.
  13734. (SocketEntry::SocketEntry): Updated.
  13735. (SocketEntry::operator==): Updated.
  13736. (NameResolverEntry::commandUuid): Removed.
  13737. (NameResolverEntry::command): New variable.
  13738. (NameResolverEntry::NameResolverEntry): Updated.
  13739. (NameResolverEntry::operator==): Updated.
  13740. (waitData): Changed the argument type.
  13741. (addSocketForReadCheck): Changed the argument type.
  13742. (deleteSocketForReadCheck): Changed the argument type.
  13743. (addSocketForWriteCheck): Changed the argument type.
  13744. (deleteSocketForWriteCheck): Changed the argument type.
  13745. (addNameResolverCheck): Changed the argument type.
  13746. (deleteNameResolverCheck): Changed the argument type.
  13747. * src/DownloadEngine.cc
  13748. (FindCommand): Removed.
  13749. (run): Removed activeUuid. Added activeCommands instead.
  13750. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13751. (AccumulateActiveCommand): New function object.
  13752. (waitData): Use AccumulateActiveCommand.
  13753. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13754. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13755. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13756. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13757. (addNameResolverCheck): Use Command instead of CommandUuid.
  13758. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13759. * src/AbstractCommand.cc
  13760. (disableReadCheckSocket): Updated according to the changes in
  13761. DownloadEngine.
  13762. (setReadCheckSocket): Updated according to the changes in
  13763. DownloadEngine.
  13764. (disableWriteCheckSocket): Updated according to the changes in
  13765. DownloadEngine.
  13766. (setWriteCheckSocket): Updated according to the changes in
  13767. DownloadEngine.
  13768. (setNameResolverCheck): Updated according to the changes in
  13769. DownloadEngine.
  13770. (disableNameResolverCheck): Updated according to the changes in
  13771. DownloadEngine.
  13772. * src/AbstractCommand.cc
  13773. (disableReadCheckSocket): Updated according to the changes in
  13774. DownloadEngine.
  13775. (setReadCheckSocket): Updated according to the changes in
  13776. DownloadEngine.
  13777. (disableWriteCheckSocket): Updated according to the changes in
  13778. DownloadEngine.
  13779. (setWriteCheckSocket): Updated according to the changes in
  13780. DownloadEngine.
  13781. * release 0.7.1
  13782. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13783. To handle the case where some BitTorrent tracker requires all letters
  13784. except for [A-Za-z0-9] is URL encoded.
  13785. * src/Util.h
  13786. (torrentUrlencode): New function.
  13787. * src/Util.cc
  13788. (ctype.h): Included.
  13789. (torrentUrlencode): New function.
  13790. * src/TrackerWatcherCommand.cc
  13791. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13792. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13793. To add asynchronous DNS support(libares):
  13794. * src/AbstractCommand.h
  13795. (setNameResolverCheck): New function.
  13796. (disableNameResolverCheck): New function
  13797. (resolveHostname): New function.
  13798. * src/AbstractCommand.cc
  13799. (setNameResolverCheck): New function.
  13800. (disableNameResolverCheck): New function
  13801. (resolveHostname): New function.
  13802. * src/FtpInitiateConnectionCommand.h
  13803. (nameResolver): New function.
  13804. * src/FtpInitiateConnectionCommand.cc
  13805. (Util.h): Included.
  13806. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13807. disableWriteCheckSocket.
  13808. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13809. (executeInternal): Added async DNS support.
  13810. * src/HttpInitiateConnectionCommand.h
  13811. (nameResolver): New function.
  13812. * src/HttpInitiateConnectionCommand.cc
  13813. (DlRetryEx.h): Included.
  13814. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13815. disableWriteCheckSocket.
  13816. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13817. (executeInternal): Added async DNS support.
  13818. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13819. by extern "C" declaration.
  13820. * src/NameResolver.cc: New class.
  13821. * src/Util.h:
  13822. (isNumberAndDotsNotation): New function
  13823. * src/Util.cc
  13824. (isNumberAndDotsNotation): New function.
  13825. * src/DownloadEngine.h
  13826. (NameResolver.h): Included.
  13827. (NameResolverEntry): New class.
  13828. (NameResolverEntries): New type definition.
  13829. (addNameResolverCheck): New function.
  13830. (deleteNameResolverCheck): New function.
  13831. * src/DownloadEngine.cc
  13832. (run): Initialize cp with 0.
  13833. (SetDescriptor::operator()): Added for NameResolverEntry.
  13834. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13835. (waitData): Check nameResolver entries.
  13836. (updateFdSet): Update fds in nameResolver entries.
  13837. (addNameResolverCheck): New function.
  13838. (deleteNameResolverCheck): new function.
  13839. * src/PeerInteractionCommand.cc
  13840. (executeInternal): Fixed wrong socket handling.
  13841. * src/main.cc
  13842. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13843. * src/Util.cc
  13844. (fileChecksum): Removed the call to ctx.digestReset().
  13845. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13846. * po/ru.po: Azamat sent me Russian translation.
  13847. * src/FtpNegotiateCommand.cc
  13848. (recvGreeting): Call disableWriteCheckSocket just after
  13849. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13850. (recvRetr): Recognized status code 125 as a acceptable response code.
  13851. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13852. case-insesitive filesystem(BUG#1531057).
  13853. * src/Time.h: Renamed as TimeA2.h.
  13854. * src/Time.cc: Renamed as TimeA2.cc.
  13855. * src/TimeA2.h: New class.
  13856. * src/TimeA2.cc: New class.
  13857. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13858. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13859. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13860. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13861. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13862. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13863. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13864. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13865. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13866. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13867. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13868. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13869. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13870. * release 0.7.0
  13871. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13872. * src/PeerChokeCommand.h
  13873. (PeerChokeCommand): Rearranged the arguments.
  13874. * src/PeerChokeCommand.cc
  13875. (PeerChokeCommand): Rearranged the arguments.
  13876. * src/MetalinkEntry.h
  13877. (Checksum.h): Included.
  13878. (md5): Removed.
  13879. (sha1): Removed.
  13880. (checksum): New variable.
  13881. (operator=): Updated.
  13882. (check): Removed.
  13883. * src/prefs.h
  13884. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13885. (PREF_FOLLOW_TORRENT): New definition.
  13886. (PREF_SELECT_FILE): New definition.
  13887. (PREF_FOLLOW_METALINK): New definition.
  13888. * src/MetalinkResource.h
  13889. (TYPE_HTTPS): Added to enum TYPE.
  13890. * src/TorrentMan.cc
  13891. (~TorrentMan): Rewritten.
  13892. * src/MultiDiskWriter.cc
  13893. (MultiDiskAdaptor): Updated according to the changes in
  13894. MessageDigestContext.
  13895. (~MultiDiskAdaptor): Updated according to the changes in
  13896. MessageDigestContext.
  13897. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13898. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13899. * src/Util.h
  13900. (fileChecksum): Updated according to the changes in
  13901. MessageDigestContext.
  13902. * src/Util.cc
  13903. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13904. (fileChecksum): Updated according to the changes in
  13905. MessageDigestContext.
  13906. * src/messageDigest.h: Rewritten.
  13907. * src/MetalinkEntry.cc
  13908. (check): Removed.
  13909. (Supported): Updated.
  13910. (dropUnsupportedResource): Fixed a memory leak.
  13911. * src/ShaVisitor.cc
  13912. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13913. (~ShaVisitor): Updated according to the changes in
  13914. MessageDigestContext.
  13915. (visit): Updated according to the changes in MessageDigestContext.
  13916. * src/main.cc
  13917. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13918. command-line option added.
  13919. * src/DownloadEngine.h
  13920. (SocketEntry): New class.
  13921. (SocketEntries): New definition.
  13922. (PairFind): Removed.
  13923. (SockCmdMap): Removed.
  13924. * src/DownloadEngine.cc
  13925. (DownloadEngine): Rewritten.
  13926. (~DownloadEngine): Rewritten.
  13927. (run): Renamed activeCommandUuids as activeUuids.
  13928. (SetDescriptor): Rewritten.
  13929. (AccumulateActiveCommandUuid): Removed.
  13930. (AccumulateActiveUuid): New function object.
  13931. (waitData): Rewritten.
  13932. (updateFdSet): Rewritten.
  13933. (addSocket): Rewritten.
  13934. (deleteSocket): Rewritten.
  13935. (addSocketForReadCheck): Rewritten.
  13936. (deleteSocketForReadCheck): Rewritten.
  13937. (addSocketForWriteCheck): Rewritten.
  13938. (deleteSocketForWriteCheck): Rewritten.
  13939. * src/Xml2MetalinkProcessor.cc
  13940. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13941. * src/DownloadCommand.cc
  13942. (executeInternal): Added the check routine for lowest speed limit.
  13943. * src/AbstractDiskWriter.cc
  13944. (AbstractDiskWriter): Updated according to the changes in
  13945. MessageDigestContext.
  13946. (~AbstractDiskWriter): Updated according to the changes in
  13947. MessageDigestContext.
  13948. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13949. * src/RequestInfo.h: New class.
  13950. * src/UrlRequestInfo.h: New class.
  13951. * src/UrlRequestInfo.cc: New class.
  13952. * src/TorrentRequestInfo.h: New class.
  13953. * src/TorrentRequestInfo.cc: New class.
  13954. * src/MetalinkRequestInfo.h: New class.
  13955. * src/MetalinkRequestInfo.cc: New class.
  13956. * src/Checksum.h: New class.
  13957. * src/DownloadEngineFactory.h: New class.
  13958. * src/DownloadEngineFactory.cc: New class.
  13959. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13960. * src/Option.h
  13961. (getAsBool): New function.
  13962. * src/Option.cc
  13963. (prefs.h): Included.
  13964. (defined): 0-length value is now recognized as undefined.
  13965. (getAsInt): Rewritten.
  13966. (getAsLLInt): Rewritten.
  13967. (getAsBool): New function.
  13968. * src/FeatureConfig.h: Rewritten.
  13969. * src/FeatureConfig.cc: Rewritten.
  13970. * src/prefs.h
  13971. (PREF_STDOUT_LOG): New definition.
  13972. (PREF_LOG): New definition.
  13973. (PREF_DIR): New definition.
  13974. (PREF_OUT): New definition.
  13975. (PREF_SPLIT): New definition.
  13976. (PREF_DAEMON): New definition.
  13977. (PREF_REFERER): New definition.
  13978. (PREF_TORRENT_FILE): New definition.
  13979. (PREF_LISTEN_PORT): New definition.
  13980. (PREF_METALINK_FILE): New definition.
  13981. (PREF_METALINK_VERSION): New definition.
  13982. (PREF_METALINK_LANGUAGE): New definition.
  13983. (PREF_METALINK_OS): New definition.
  13984. (PREF_METALINK_SERVERS): New definition.
  13985. * src/main.cc
  13986. (main): Following command-line parameters are now put into Option
  13987. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13988. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13989. metalinkLanguage, metalinkOs, metalinkServers
  13990. To fix the bug that aria2 can not handle http response header properly.
  13991. * src/HttpHeader.cc
  13992. (put): Made name lowercased.
  13993. (defined): Made name lowercased.
  13994. (getFirst): Made name lowercased.
  13995. (get): Made name lowercased.
  13996. (getFirstAsInt): Rewritten.
  13997. (getFirstAsLLInt): Rewritten.
  13998. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13999. * src/TorrentMan.h:
  14000. (advertisePiece): Updated doc.
  14001. (getAdvertisedPieceIndexes): Updated doc.
  14002. (removeAdvertisedPiece); New function.
  14003. * src/TorrentMan.cc
  14004. (FindElapsedHave): New function object.
  14005. (removeAdvertisedPiece): New function.
  14006. * src/HaveEraseCommand.h: New class.
  14007. * src/HaveEraseCommand.cc: New class.
  14008. * src/FeatureConfig.h: New class.
  14009. * src/FeatureConfig.cc: New class.
  14010. * src/Request.h
  14011. (defaultPorts): Removed.
  14012. * src/Request.cc
  14013. (FeatureConfig.h): Included.
  14014. (Request): Removed the statements related to defaultPorts.
  14015. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14016. A default port number is now retrieved from FeatureConfig.
  14017. * src/main.cc
  14018. (HaveEraseCommand.h): Included.
  14019. (showVersion): Added the output of feature list.
  14020. (main): Added HaveEraseCommand to command queue in BitTorrent
  14021. downloading.
  14022. * src/PeerInteractionCommand.h
  14023. (chokeCheckPoint): Commented out.
  14024. (periodicExecPoint): New variable.
  14025. * src/PeerInteractionCommand.cc
  14026. (executeInternal): Following methods are now called in at least every
  14027. 0.5 seconds to reduce CPU usage:
  14028. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14029. checkHave(), sendKeepAlive().
  14030. (checkLongTimePeerChoking): Commented out.
  14031. * src/BitfieldMan.h
  14032. (getNthBitIndex): Changed the method signature.
  14033. (getMissingIndexRandomly): Changed the method signature.
  14034. * src/BitfieldMan.cc
  14035. (getNthBitIndex): Rewritten
  14036. (getMissingIndexRandomly): Rewritten.
  14037. (hasMissingPiece): Rewritten.
  14038. (getMissingIndex): Refactored.
  14039. (getMissingUnusedIndex); Refactored.
  14040. (getMissingIndex): Refactored.
  14041. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14042. * src/PeerMessage.h
  14043. (Piece.h): Included.
  14044. (SharedHandle.h): Included.
  14045. (invalidate): New variable.
  14046. (uploading): New variable.
  14047. (isInvalidate): New function.
  14048. (isUploading): New function.
  14049. (onPush): New function.
  14050. (onChoked): New function.
  14051. (onCanceled): New function.
  14052. (onAbortPiece): New function.
  14053. (PeerMessageHandle): New type definition.
  14054. * src/PeerMessage.cc
  14055. (PeerMessage): Added the initialization for invalidate and uploading.
  14056. * src/CancelMessage.h
  14057. (CancelMessage): Rewritten.
  14058. * src/RejectMessage.h
  14059. (RejectMessage): Rewritten.
  14060. * src/Metalinker.h
  14061. (operator=): Defined.
  14062. * src/MetaEntry.h
  14063. (operator=): Defined.
  14064. * src/MetalinkResource.h
  14065. (operator=): Defined.
  14066. * src/AllowedFastMessage.h
  14067. (AllowedFastMessage): Rewritten.
  14068. * src/HandshakeMessage.h
  14069. (HandshakeMessage): New function(overload).
  14070. * src/HandshakeMessage.cc
  14071. (HandshakeMessage): Rewritten.
  14072. (init): New function.
  14073. * src/HaveMessage.h
  14074. (HaveMessage): Rewritten.
  14075. * src/Time.h
  14076. (operator=): Defined the function body here.
  14077. * src/Time.cc
  14078. (operator=): Removed.
  14079. * src/SocketCore.h
  14080. (operator==): Defined here.
  14081. (operator!=): Defined here.
  14082. (operator<): Defined here.
  14083. * src/SocketCore.cc
  14084. (operator==): Removed.
  14085. (operator<): Removed.
  14086. * src/BitfieldMan.h
  14087. (operator=): Defined the function body here.
  14088. * src/BitfieldMan.cc
  14089. (operator=): Removed.
  14090. * src/TorrentMan.h
  14091. (deleteErrorPeer): Removed.
  14092. (deleteUnusedPeer); New function.
  14093. * src/TorrentMan.cc
  14094. (addPeer): Call deleteUnusedPeer.
  14095. (deleteErrorPeer): Removed.
  14096. (deleteUnusedPeer): New function.
  14097. * src/PeerAbstractCommand.h
  14098. (setNoCheck): New function.
  14099. (noCheck): New variable.
  14100. * src/PeerAbstractCommand.cc
  14101. (PeerAbstractCommand): Added the initialization of noCheck.
  14102. (execute): Added a check for noCheck.
  14103. (setNoCheck): New function.
  14104. * src/Util.h
  14105. (stdio.h): Included.
  14106. * src/Util.cc
  14107. (unistd.h): Included.
  14108. * src/DefaultDiskWriter.cc
  14109. (unistd.h): Included.
  14110. * src/Peer.h
  14111. (operator==): Defined the function body here.
  14112. (operator!=): Defined the function body here.
  14113. * src/Peer.cc
  14114. (operator==): Removed.
  14115. (operator!=): Removed.
  14116. * src/Piece.h
  14117. (Piece): Defined the function body here(copy constructor).
  14118. (operator=): Defined the function body here.
  14119. (operator==): Defined the function body here.
  14120. * src/Piece.cc
  14121. (Piece): Removed(copy constructor).
  14122. (operator=): Removed.
  14123. (operator==): Removed.
  14124. * src/PeerMessageUtil.h
  14125. (ChokeMessage.h): Removed.
  14126. (UnchokeMessage.h): Removed.
  14127. (InterestedMessage.h): Removed.
  14128. (NotInterestedMessage.h): Removed.
  14129. (HaveMessage.h): Removed.
  14130. (BitfieldMessage.h): Removed.
  14131. (RequestMessage.h): Removed.
  14132. (CancelMessage.h): Removed.
  14133. (PieceMessage.h): Removed.
  14134. (HandshakeMessage.h): Removed.
  14135. (KeepAliveMessage.h): Removed.
  14136. (PortMessage.h): Removed.
  14137. (HaveAllMessage.h): Removed.
  14138. (HaveNoneMessage.h): Removed.
  14139. (PeerConnection.h): Removed.
  14140. (HandshakeMessage.h): Included.
  14141. * src/BitfieldMessage.h
  14142. (init): New function.
  14143. (BitfieldMessage): Rewritten.
  14144. (BitfieldMessage): New function(overload).
  14145. * src/RequestSlot.h
  14146. (operator=): Defined the function body here.
  14147. (operator==): Defined the function body here.
  14148. * src/RequestSlot.cc
  14149. (operator=): Removed.
  14150. (operator==): Removed.
  14151. To remove the dependency on the PeerMessage subclass from
  14152. PeerInteraction:
  14153. * src/PeerMessageFactory.h: New class.
  14154. * src/PeerMessageFactory.cc: New class.
  14155. * src/SimplePeerMessage.cc
  14156. (send): If invalidate is true then do nothing.
  14157. * src/PeerInteractionCommand.cc
  14158. (HandshakeMessage.h): Included.
  14159. (KeepAliveMessage.h): Included.
  14160. (ChokeMessage.h): Included.
  14161. (UnchokeMessage.h): Included.
  14162. (HaveMessage.h): Included.
  14163. (executeInternal): Call setNoCheck().
  14164. Removed setWriteCheckSocket(socket).
  14165. * src/PeerInteraction.h
  14166. (ChokeMessage.h): Removed.
  14167. (UnchokeMessage.h): Removed.
  14168. (InterestedMessage.h): Removed.
  14169. (NotInterestedMessage.h): Removed.
  14170. (HaveMessage.h): Removed.
  14171. (BitfieldMessage.h): Removed.
  14172. (RequestMessage.h): Removed.
  14173. (CancelMessage.h): Removed.
  14174. (PieceMessage.h): Removed.
  14175. (HandshakeMessage.h): Removed.
  14176. (KeepAliveMessage.h): Removed.
  14177. (PortMessage.h): Removed.
  14178. (HaveAllMessage.h): Removed.
  14179. (HaveNoneMessage.h): Removed.
  14180. (RejectMessage.h): Removed.
  14181. (AllowedFastMessage.h): Removed.
  14182. (SuggestPieceMessage.h): Removed.
  14183. (PeerMessageFactory.h): Included.
  14184. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14185. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14186. (PeerMessageFactory): New variable.
  14187. (createPeerMessage): Removed.
  14188. (createHandshakeMessage): Removed.
  14189. (setPeerMessageCommonProperty): Removed.
  14190. (addRequestSlot): New function.
  14191. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14192. (getPeerMessageFactory): New function.
  14193. (createRequestMessage): Removed.
  14194. (createCancelMessage): Removed.
  14195. (createPieceMessage): Removed.
  14196. (createHaveMessage): Removed.
  14197. (createChokeMessage): Removed.
  14198. (createUnchokeMessage): Removed.
  14199. (createInterestedMessage): Removed.
  14200. (createNotInterestedMessage): Removed.
  14201. (createBitfieldMessage): Removed.
  14202. (createKeepAliveMessage): Removed.
  14203. (createHaveAllMessage): Removed.
  14204. (createHaveNoneMessage): Removed.
  14205. (createRejectMessage): Removed.
  14206. (createAllowedFastMessage): Removed.
  14207. * src/PeerInteraction.cc
  14208. (PeerInteraction): Allocate PeerMessageFactory here.
  14209. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14210. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14211. PieceMessage::ID.
  14212. (addMessage): Simplified by using PeerMessage::onPush().
  14213. (addRequestSlot): New function.
  14214. (rejectAllPieceMessageInQueue): Simplified by using
  14215. PeerMessage::onChoked().
  14216. (rejectPieceMessageInQueue): Simplified by using
  14217. PeerMessage::onCanceled().
  14218. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14219. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14220. (createHandshakeMessage): Removed.
  14221. (createPeerMessage): Removed.
  14222. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14223. (setPeerMessageCommonProperty): Removed.
  14224. (createRequestMessage): Removed.
  14225. (createCancelMessage): Removed.
  14226. (createPieceMessage): Removed.
  14227. (createHaveMessage): Removed.
  14228. (createChokeMessage): Removed.
  14229. (createUnchokeMessage): Removed.
  14230. (createInterestedMessage): Removed.
  14231. (createNotInterestedMessage): Removed.
  14232. (createBitfieldMessage): Removed.
  14233. (createKeepAliveMessage): Removed.
  14234. (createHaveAllMessage): Removed.
  14235. (createHaveNoneMessage): Removed.
  14236. (createRejectMessage): Removed.
  14237. (createAllowedFastMessage): Removed.
  14238. * src/PieceMessage.h
  14239. (createRejectMessage): New function.
  14240. (PieceMessage): Rewritten.
  14241. (onChoked): New function.
  14242. (onCanceled): New function.
  14243. * src/PieceMessage.cc
  14244. (send): If invalidate is true then do nothing, just return.
  14245. (createRejectMessage): New function.
  14246. (onChoked): New function.
  14247. (onCanceled): New function.
  14248. * src/RequestMessage.h
  14249. (RequestMessage): Rewritten.
  14250. (onPush): New function.
  14251. (onAbortPiece): New function.
  14252. * src/RequestMessage.cc
  14253. (onPush): New function.
  14254. (onAbortPiece): New function.
  14255. Update fd_set when a socket is added or deleted in order to improve
  14256. performance:
  14257. * src/DownloadEngine.h
  14258. (rfdset): New variable.
  14259. (wfdset): New variable.
  14260. (updateFdSet): New function.
  14261. * src/DownloadEngine.cc
  14262. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14263. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14264. (waitData): Copy rfdset and wfdset.
  14265. (updateFdSet): New function.
  14266. (addSocket): Call updateFdSet.
  14267. (deleteSocket): Call updateFdSet.
  14268. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14269. To add the support for Metalink3.0 backward compatible links:
  14270. * src/Request.h
  14271. (SAFE_CHARS): Added '#'.
  14272. (METALINK_MARK): New definition.
  14273. * src/Request.cc
  14274. (parseUrl): Added the support for Metalink3.0 backward compatible
  14275. links.
  14276. etc
  14277. * src/PeerInteraction.cc
  14278. (MsgPushBack): Removed.
  14279. (sendMessages): Use STL copy and back_inserter.
  14280. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14281. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14282. * src/TorrentMan.h
  14283. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14284. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14285. * src/SharedHandle.h: New class.
  14286. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14287. * src/HttpResponseCommand.h
  14288. (HttpResponseCommand): Wrapped Socket.
  14289. * src/SocketCore.h
  14290. (operator==): New function.
  14291. (operator!=): New function.
  14292. (operator<): New function.
  14293. (getSockfd): New function.
  14294. (isOpen): New function.
  14295. (writeData): New function.
  14296. * src/SocketCore.cc
  14297. (operator==): New function.
  14298. (operator!=): New function.
  14299. (operator<): New function.
  14300. * src/AbstractCommand.h
  14301. (socket): Changed its type to SocketHandle.
  14302. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14303. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14304. (disableReadCheckSocket): New function.
  14305. (disableWriteCheckSocket): New function.
  14306. (readCheckTarget): Changed its type to SocketHandle.
  14307. (writeCheckTarget): Changed its type to SocketHandle.
  14308. (AbstractCommand): Replaced Socket with SocketHandle.
  14309. * src/AbstractCommand.cc
  14310. (AbstractCommand): Replaced Socket with SocketHandle.
  14311. (~AbstractCommand): Removed the deallocation for Socket object.
  14312. (disableReadCheckSocket): New function.
  14313. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14314. (disableWriteCheckSocket): New function.
  14315. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14316. * src/HttpDownloadCommand.cc
  14317. (DownloadCommand): Replaced Socket with SocketHandle.
  14318. * src/PeerAbstractCommand.h
  14319. (socket): Changed its type to SocketHandle.
  14320. (peer): Changed its type to PeerHandle.
  14321. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14322. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14323. (disableReadCheckSocket): New function.
  14324. (disableWriteCheckSocket): New function.
  14325. (readCheckTarget): Changed its type to SocketHandle.
  14326. (writeCheckTarget): Changed its type to SocketHandle.
  14327. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14328. Replaced Peer with PeerHandle.
  14329. * src/HttpRequestCommand.cc
  14330. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14331. Use disableReadCheckSocket.
  14332. * src/PeerInitiateConnectionCommand.h
  14333. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14334. * src/PeerChokeCommand.cc
  14335. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14336. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14337. (execute): Use PeerHandle.
  14338. * src/PeerConnection.h
  14339. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14340. (socket): Changed its type to SocketHandle.
  14341. (PeerConnection): Replaced Socket with SocketHandle.
  14342. * src/PeerConnection.cc
  14343. (PeerConnection): Replaced Socket with SocketHandle.
  14344. * src/PeerInteractionCommand.h
  14345. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14346. Replaced Peer with PeerHandle.
  14347. * src/PeerInteractionCommand.cc
  14348. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14349. Replaced Peer with PeerHandle.
  14350. (executeInternal): Use disableWriteCheckSocket.
  14351. Use HandshakeMessageHandle.
  14352. (receiveMessages): Use PeerMessageHandle.
  14353. (prepareForNextPeer): Use PeerHandle.
  14354. * src/HttpProxyRequestCommand.h
  14355. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14356. * src/HttpResponseCommand.cc
  14357. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14358. * src/TorrentMan.cc
  14359. (nullPeer): Added external reference.
  14360. (~TorrentMan): Removed the deallocation of the elements of peers.
  14361. (addPeer): Rewritten.
  14362. (isPeerAvailable): Use nullPeer.
  14363. (deleteOldpeers): Replaced with deleteErrorPeer.
  14364. (deleteErrorPeer): New function.
  14365. (getPeer): Use PeerHandle and nullPeer.
  14366. (hasMissingPiece): Replaced Peer with PeerHandle.
  14367. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14368. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14369. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14370. (getMissingPiece): Replaced Peer with PeerHandle.
  14371. * src/FtpNegotiateCommand.cc
  14372. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14373. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14374. (recvGreeting): Use disableWriteCheckSocket.
  14375. (recvPasv): Removed the allocation of Socket.
  14376. Use disableReadCheckSocket.
  14377. (sendRestPasv): Use disableWriteCheckSocket.
  14378. (recvRetr): Changed assertion.
  14379. * src/PeerInteraction.h
  14380. (SharedHandle.h): Included SharedHandle.h.
  14381. (PeerMessageHandle): New type definition.
  14382. (HandshakeMessageHandle): New type definition.
  14383. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14384. (peer): Changed its type to PeerHandle.
  14385. (createHandshakeMessage): Replaced HandshakeMessage with
  14386. HandshakeMessageHandle.
  14387. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14388. (PeerInteraction): Replaced Peer with PeerHandle.
  14389. Replaced Socket with SocketHandle.
  14390. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14391. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14392. (receiveHandshake): Replaced HandshakeMessage with
  14393. HandshakeMessageHandle.
  14394. * src/PeerInteraction.cc
  14395. (PeerInteraction): Replaced Peer with PeerHandle.
  14396. Replaced Socket with SocketHandle.
  14397. (~PeerInteraction): Removed the deallocation of the elements of
  14398. messageQueue.
  14399. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14400. (isSendingMessageInProgress): Replaced PeerMessage with
  14401. PeerMessageHandle.
  14402. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14403. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14404. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14405. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14406. (abortPiece): Use PeerMessageHandle.
  14407. (receiveHandshake): Replaced HandshakeMessage with
  14408. HandshakeMessageHandle. Removed try-catch block.
  14409. (createHandshakeMessage): Replaced HandshakeMessage with
  14410. HandshakeMessageHandle.
  14411. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14412. Removed try-catch block.
  14413. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14414. * src/HttpProxyResponseCommand.cc
  14415. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14416. * src/FtpTunnelResponseCommand.h
  14417. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14418. * src/HttpConnection.cc
  14419. (HttpConnection): Replaced Socket with SocketHandle.
  14420. * src/PeerAbstractCommand.cc
  14421. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14422. (~PeerAbstractCommand): Removed the deallocation of socket.
  14423. Use disableReadCheckSocket, disableWriteCheckSocket.
  14424. (disableReadCheckSocket): New function.
  14425. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14426. (disableWriteCheckSocket): New function.
  14427. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14428. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14429. * src/FtpTunnelRequestCommand.cc
  14430. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14431. (~FtpTunnelRequestCommand): Corrected indentation.
  14432. * src/DownloadCommand.h
  14433. (DownloadCommand): Replaced Socket with SocketHandle.
  14434. * src/PeerListenCommand.cc
  14435. (PeerListenCommand): Removed the initialization of socket.
  14436. (~PeerListenCommand): Removed the deallocation of socket.
  14437. (bindPort): Use SocketHandle.
  14438. (execute): Use SocketHandle and PeerHandle.
  14439. * src/FtpDowndloadCommand.cc
  14440. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14441. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14442. * src/main.cc
  14443. (main): Corrected indentation.
  14444. * src/HttpInitiateConnectionCommand.cc
  14445. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14446. (executeInternal): Removed the allocation of socket.
  14447. * src/HttpRequestCommand.h
  14448. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14449. * src/FtpNegotiationCommand.h
  14450. (dataSocket): Changed its type to SocketHandle.
  14451. (serverSocket): Changed its type to SocketHandle.
  14452. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14453. * src/TorrentMan.h
  14454. (MAX_PEER_UPDATE): Removed.
  14455. (MAX_PEERS): New definition.
  14456. (Peers): The element is now of type PeerHandle.
  14457. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14458. (getPeer): Replaced Peer with PeerHandle.
  14459. (deleteOldErrorPeers): Removed.
  14460. (deleteErrorPeer): New function.
  14461. (hasMissingPiece): Replaced Peer with PeerHandle.
  14462. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14463. (getMissingPiece): Replaced Peer with PeerHandle.
  14464. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14465. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14466. (addActivePeer): Replaced Peer with PeerHandle.
  14467. (deleteActivePeer): Replaced Peer with PeerHandle.
  14468. Added a check for the return value of find.
  14469. * src/FtpTunnelResponseCommand.cc
  14470. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14471. * src/FtpInitiateConnectionCommand.cc
  14472. (executeInternal): Removed the allocation of socket.
  14473. * src/DownloadEngine.h
  14474. (Sockets): An element is now of type SocketHandle.
  14475. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14476. (CommandUuids): New type definition.
  14477. (rsockets): Changed its type to SockCmdMap.
  14478. (wsockets): Changed its type to SockCmdMap.
  14479. (addSocket): Rewritten.
  14480. (deleteSocket): Rewritten.
  14481. (addSocketForReadCheck): Rewritten.
  14482. (deleteSocketForReadCheck): Rewritten.
  14483. (addSocketForWriteCheck): Rewritten.
  14484. (deleteSocketForWriteCheck): Rewritten.
  14485. (PairFind): New template class.
  14486. * src/HttpDownloadCommand.h
  14487. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14488. * src/FtpConnection.cc
  14489. (FtpConnection): Replaced Socket with SocketHandle.
  14490. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14491. block.
  14492. * src/InitiateConnectionCommandFactory.cc
  14493. (DlAbortEx.h): Included DlAbortEx.h.
  14494. (createInitiateConnectionCommand): Throw exception if the protocol of
  14495. requested URI is not supported.
  14496. * src/Peer.cc
  14497. (nullPeer): Changed its type to PeerHandle.
  14498. (operator==): New function.
  14499. (operator!=): New function.
  14500. * src/Peer.h
  14501. (SharedHandle.h): Included SharedHandle.h.
  14502. (operator==): New function.
  14503. (operator!=): New function.
  14504. (Peer): Added the default constructor.
  14505. Use resetStatus() to initialize member variables.
  14506. (nullPeer): Removed.
  14507. * src/TrackerUpdateCommand.cc
  14508. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14509. with MIN_PEERS.
  14510. * src/PeerListenCommand.h
  14511. (socket): Changed its type to SocketHandle.
  14512. * src/Command.h
  14513. (CommandUuid): New type definition.
  14514. (uuid): New variable.
  14515. (uuidGen): New variable.
  14516. (Command): Added the initialization of uuid.
  14517. (getUuid): New function.
  14518. * src/Socket.h
  14519. (Socket): Removed.
  14520. (SocketHandle): New type definition.
  14521. * src/DownloadEngine.h
  14522. (FindCommand): New function object.
  14523. (run): The portion of socket check was rewritten.
  14524. (SetDescriptor): New function object.
  14525. (AccumulateActiveCommandUuid): New function object.
  14526. (waitData): Rewritten.
  14527. (addSocket): Rewritten.
  14528. (deleteSocket): Rewritten.
  14529. (addSocketForReadCheck): Rewritten.
  14530. (addSocketForWriteCheck): Rewritten.
  14531. (deleteSocketForReadCheck): Rewritten.
  14532. (deleteSocketForWriteCheck): Rewritten.
  14533. * src/HttpProxyResponseCommand.h
  14534. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14535. * src/HttpConnection.h
  14536. (socket): Changed its type to SocketHandle.
  14537. (HttpConnection): Replaced Socket with SocketHandle.
  14538. * src/PeerInitiateConnectionCommand.cc
  14539. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14540. (executeInternal): Removed the allocation of socket.
  14541. (prepareForNextPeer): Use PeerHandle.
  14542. * src/PeerMessage.h
  14543. (peer): Changed its type to PeerHandle.
  14544. (getPeer): Replaced Peer with PeerHandle.
  14545. (setPeer): Replaced Peer with PeerHandle.
  14546. * src/DownloadCommand.cc
  14547. (DownloadCommand): Replaced Socket with SocketHandle.
  14548. * src/FtpConnection.h
  14549. (socket): Changed its type to SocketHandle.
  14550. (FtpConnection): Replaced Socket with SocketHandle.
  14551. (sendPort); Replaced Socket with SocketHandle.
  14552. * src/FtpDowndloadCommand.h
  14553. (ctrlSocket): Changed its type to SocketHandle.
  14554. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14555. * src/HttpProxyRequestCommand.cc
  14556. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14557. * src/FtpTunnelRequestCommand.h
  14558. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14559. etc
  14560. * src/PeerChokeCommand.h
  14561. (setAllPeerChoked): Removed.
  14562. (setAllPeerResetDelta): Removed.
  14563. * src/PeerChokeCommand.cc
  14564. (setAllPeerChoked): Removed.
  14565. (ChokePeer): New function object.
  14566. (setAllPeerResetDelta): Removed.
  14567. (ResetDelta): New function object.
  14568. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14569. (execute): Show download speed when the local node is a seeder.
  14570. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14571. using STL.
  14572. * src/TrackerWatcherCommand.h
  14573. (MIN_PEERS): Removed.
  14574. * src/TorrentMan.cc
  14575. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14576. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14577. To fix the bug that .aria2 file is not saved if downloading is stopped
  14578. by the errors:it results that aria2 can not resume downloading:
  14579. * src/main.cc
  14580. (normalDownload): Added the call to save().
  14581. (main): Added the deletion of the elements in 'reserved'.
  14582. To fix log:
  14583. * src/PeerInteraction.cc
  14584. (receiveHandshake): Fixed log.
  14585. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14586. To improve download performance in BitTorrent:
  14587. * src/TorrentMan.cc
  14588. (getPeer): Check the number of connections. Return nullPeer if
  14589. it is greater than MAX_PEER_UPDATE.
  14590. This code was originally here, but was removed in 0.5.1.
  14591. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14592. To improve the conditional compilation:
  14593. * src/MultiDiskWriter.h:
  14594. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14595. * src/MultiDiskWriter.cc:
  14596. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14597. * src/Util.h:
  14598. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14599. Added ENABLE_BITTORRENT around computeFastSet().
  14600. * src/Util.cc:
  14601. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14602. Added ENABLE_BITTORRENT around computeFastSet().
  14603. * src/messageDigest.h:
  14604. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14605. * src/ShaVisitor.h:
  14606. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14607. * src/ShaVisitor.cc:
  14608. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14609. * src/main.cc:
  14610. Added ENABLE_BITTORRENT around includes and blocks related to
  14611. BitTorrent.
  14612. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14613. digest support is not available.
  14614. * src/AbstractDiskWriter.h:
  14615. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14616. * src/AbstractDiskWriter.cc:
  14617. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14618. * src/MetalinkEntry.cc
  14619. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14620. support is not available.
  14621. To add command-line options for Metalink:
  14622. * src/main.cc:
  14623. Added metalink-version, metalink-language, metalink-os,
  14624. follow-metalink.
  14625. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14626. * src/main.cc: Use these definition.
  14627. * Release 0.6.0
  14628. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14629. To add Metalink support(http/ftp only):
  14630. * src/AbstractCommand.h
  14631. (tryReserved): New function.
  14632. * src/AbstractCommand.cc
  14633. (execute): Call tryReserved().
  14634. (tryReserved): New function.
  14635. * src/Request.h
  14636. (Requests): New type definition.
  14637. * src/SegmentMan.h
  14638. (reserved): New variable.
  14639. * src/Util.h
  14640. (fileChecksum): New function.
  14641. (toUpper): New function.
  14642. (toLower): New function.
  14643. * src/Util.cc
  14644. (messageDigest.h): Included.
  14645. (trim): Trim \r\n\t.
  14646. (fileChecksum): New function.
  14647. (toUpper): New function.
  14648. (toLower): New function.
  14649. * src/main.cc
  14650. (normalDownload): New function.
  14651. (main): Added 2 command-line options: metalink-file,
  14652. metalink-connection. Their usage has not been written yet.
  14653. * src/MetalinkProcessor.h: New class.
  14654. * src/Xml2MetalinkProcessor.h: New class.
  14655. * src/Xml2MetalinkProcessor.cc: New class.
  14656. * src/MetalinkEntry.h: New class.
  14657. * src/MetalinkEntry.cc: New class.
  14658. * src/MetalinkResource.h: New class.
  14659. * src/MetalinkResource.cc: New class.
  14660. To add md5 message digest checking:
  14661. * src/messageDigest.h: Rewritten.
  14662. * src/MultiDiskWriter.cc: Updated according to the changes in
  14663. messageDigest.h.
  14664. * src/ShaVisitor.cc: Updated according to the changes in
  14665. messageDigest.h.
  14666. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14667. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14668. messageDigest.h.
  14669. To fix a bug that causes segfault when the payload length in peer
  14670. message is less than 0:
  14671. * src/PeerConnection.cc:
  14672. (receiveMessage): Fixed the bug.
  14673. * src/PeerMessageUtil.cc
  14674. (checkLength): Throw an exception if length is less than or equals to
  14675. 0.
  14676. To add new interfaces to Base64 encoding/decoding:
  14677. * src/Base64.h
  14678. (part_encode): Changed the method signature.
  14679. (encode): New function(overload).
  14680. (decode): New function(overload).
  14681. * src/Base64.cc
  14682. (part_encode): Rewritten.
  14683. (encode): Rewritten.
  14684. (encode): New function(overload).
  14685. To prevent a peer to download same piece if there is an error in
  14686. checksum:
  14687. * src/PieceMessage.cc
  14688. (receivedAction): Call peerInteraction->abortPiece().
  14689. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14690. To fix the bug that causes same have message is sent many times to
  14691. a single peer.
  14692. * src/Time.cc
  14693. (isNewer): Use Util::difftv().
  14694. * src/Util.cc
  14695. (difftv): Added a cast to (long long int).
  14696. * src/TorrentMan.cc
  14697. (advertisePiece): Use push_front.
  14698. (getAdvertisedPieceIndexes): A performance improvement was made.
  14699. To fix the bug that sends tracker requests without a sleep interval
  14700. when the number of connections is less than 15.
  14701. * src/TrackerWatcherCommand.cc
  14702. (execute): Now the number of connections is not a factor to decide
  14703. whether or not a tracker request should be sent or not.
  14704. * src/Time.h
  14705. (setTimeInSec): New function.
  14706. * src/Time.cc
  14707. (setTimeInSec): New function.
  14708. etc.
  14709. * src/ChokeMessage.cc
  14710. (receivedAction): Removed peer->snubbing = false
  14711. * src/PeerConnection.h
  14712. (receiveHandshake): Updated doc.
  14713. * src/TorrentMan.h
  14714. (getAdvertisedPieceIndexes): Updated the method signature.
  14715. * src/TorrentMan.cc
  14716. (getAdvertisedPieceIndexes): Updated the method signature.
  14717. * src/Time.h
  14718. (getTimeInMicros): Added a cast to (long long int).
  14719. (getTimeInMillis): Added a cast to (long long int).
  14720. * Release 0.5.2
  14721. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14722. To make a listening socket non-block:
  14723. * src/SocketCore.h
  14724. (setNonBlockingMode): New function.
  14725. * src/SocketCore.cc
  14726. (setNonBlockingMode): New function.
  14727. (beginListen): Added a call to setNonBlockingMode().
  14728. (acceptConnection): Call setNonBlockingMode().
  14729. (setBlockingMode): Updated.
  14730. To handle tracker's NAT-checking:
  14731. * src/PeerConnection.cc
  14732. (receiveHandshake): 'msg' param is filled with received data and
  14733. its length is assigned to 'length' param, even if all handshake
  14734. message is not yet received.
  14735. * src/PeerInteractionCommand.cc
  14736. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14737. a new peer connects to localhost.
  14738. A call to peerInteraction->sendHandshake() was removed because
  14739. it is called from peerInteraction->receiveHandshake(true).
  14740. * src/PeerInteraction.h
  14741. (quickReplied): New variable.
  14742. (receiveHandshake): Added an argument.
  14743. * src/PeerInteraction.cc
  14744. (PeerInteraction): Added the initialization of quickReplied.
  14745. (receiveHandshake): Send handshake message as soon as the info hash
  14746. in a handshake message from a peer is correct.
  14747. To change the random part of peer id and key parameter:
  14748. * src/TorrentMan.h
  14749. (key): New variable.
  14750. * src/TorrentMan.cc
  14751. (setupInternal1): Use Util::randomAlpha() to generate random part
  14752. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14753. key is also generated by Util::randomAlpha() and it is now 8 character
  14754. long.
  14755. * src/Util.h
  14756. (randomAlpha): New function.
  14757. * src/Util.cc
  14758. (randomAlpha): New function.
  14759. * src/TrackerWatcherCommand.cc
  14760. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14761. Added no_peer_id=1.
  14762. Set snubbing flag to false when a choke message is received from a
  14763. snubbed peer.
  14764. * src/ChokeMessage.cc
  14765. (receivedAction): Set snubbing flag to false.
  14766. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14767. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14768. * src/SimpleLogger.h (writeHeader): New function.
  14769. * src/SimpleLogger.cc (writeHeader): New function.
  14770. (writeLog): Fixed the bug that causes segfaults if exception message
  14771. contains an unescaped "%" character.
  14772. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14773. when a tracker request fails.
  14774. * src/Request.cc (parseUrl): Query string is now handled properly.
  14775. * Release 0.5.1
  14776. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14777. To add Time class which represents a specific instant in time and
  14778. its precision is microseconds. Time checking procedures were rewritten
  14779. using this object.
  14780. * src/Time.h: New class.
  14781. * src/Time.cc: New class.
  14782. * src/AbstractCommand.h
  14783. (updateCheckPoint): Removed.
  14784. (isTimeoutDetected): Removed.
  14785. (checkPoint): Changed the type to Time.
  14786. (timeout): New variable.
  14787. (setTimeout): New function.
  14788. * src/AbstractCommand.cc
  14789. (AbstractCommand): Removed the initialization of checkPoint.
  14790. Added the initialization of timeout.
  14791. (updateCheckPoint): Removed.
  14792. (isTimeoutDetected): Removed.
  14793. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14794. * src/PeerChokeCommand.h
  14795. (checkPoint): Changed the type to Time.
  14796. * src/PeerChokeCommand.cc
  14797. (PeerChokeCommand): Removed the initialization of checkPoint.
  14798. (execute): Rewritten using Time object.
  14799. * src/TrackerWatcherCommand.h
  14800. (checkPoint): Changed the type to Time.
  14801. * src/TrackerWatcherCommand.cc
  14802. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14803. (execute): Rewritten.
  14804. * src/ConsoleDownloadEngine.h
  14805. (cp): Changed the type to Time.
  14806. (startup): Changed the type to Time.
  14807. * src/ConsoleDownloadEngine.cc
  14808. (initStatistics): Use cp.reset(), startup.reset().
  14809. (calculateStatistics): Rewritten using Time object.
  14810. * src/PeerAbstractCommand.h
  14811. (updateCheckPoint): Removed.
  14812. (isTimeoutDetected): Removed.
  14813. (checkPoint): Changed the type to Time.
  14814. * src/PeerAbstractCommand.cc
  14815. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14816. (updateCheckPoint): Removed.
  14817. (isTimeoutDetected): Removed.
  14818. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14819. * src/PeerInteractionCommand.cc
  14820. (PeerInteractionCommand): Removed the initializations of struct
  14821. timeval variables.
  14822. * src/PeerInteractionCommand.h
  14823. (keepAliveCheckPoint): Changed the type to Time.
  14824. (chokeCheckPoint): Changed the type to Time.
  14825. (freqCheckPoint): Changed the type to Time.
  14826. (haveCheckTime): Changed the type to Time.
  14827. * src/PeerInteractionCommand.cc
  14828. (executeInternal): Rewritten using Time object.
  14829. (detectMessageFlooding): Rewritten using Time object.
  14830. (checkLongTimePeerChoking): Rewritten using Time object.
  14831. (sendKeepAlive): Rewritten using Time object.
  14832. (checkHave): Rewritten using Time object.
  14833. * src/SleepCommand.h
  14834. (checkPoint): Changed the type to Time.
  14835. * src/SleepCommand.cc
  14836. (SleepCommand): Removed the initialization of checkPoint.
  14837. (execute): Rewritten using Time object.
  14838. * src/TorrentAutoSaveCommand.h
  14839. (checkPoint): Changed the type to Time.
  14840. * src/TorrentAutoSaveCommand.cc
  14841. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14842. (execute): Rewritten.
  14843. * src/DownloadCommand.h
  14844. (sw): Changed the type to Time.
  14845. * src/DownloadCommand.cc
  14846. (DownloadCommand): Removed the initialization of sw.
  14847. (executeInternal): Rewritten.
  14848. * src/RequestSlot.h
  14849. (dispatchedTime): Changed the type to Time.
  14850. * src/RequestSlot.cc
  14851. (RequestSlot): Removed the call to setDispatchedTime().
  14852. (setDispatchedTime): Rewirtten.
  14853. (isTimeout): Rewritten.
  14854. (getLatencyInMillis): Rewritten.
  14855. * src/TorrentDownloadEngine.h
  14856. (cp): Changed the type to Time[2].
  14857. (startup): Changed the type to Time.
  14858. * src/TorrentDownloadEngine.cc
  14859. (initStatistics): Rewritten.
  14860. (calculateStatistics): Rewritten.
  14861. * src/DownloadEngine.cc
  14862. (run): Rewritten.
  14863. To detect all attempts to connect to the tracker are failed:
  14864. * src/AbstractCommand.cc
  14865. (execute): Increment e->segmentMan->errors if a command aborted.
  14866. * src/SegmentMan.h
  14867. (errors): New variable.
  14868. * src/SegmentMan.cc
  14869. (SegmentMan): Added the initialization of errors.
  14870. (init): Added the initialization of errors.
  14871. * src/TrackerWatcherCommand.cc
  14872. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14873. request was failed.
  14874. To handle snubbed peers:
  14875. * src/PeerChokeCommand.cc
  14876. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14877. (execute): Snubbed peers don't get unchoked.
  14878. * src/PeerInteraction.h
  14879. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14880. * src/PeerInteraction.cc
  14881. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14882. back the requested 16k block in 60 seconds.
  14883. * src/PieceMessage.cc
  14884. (receivedAction): A peer's snubbed state is cleard if it sends
  14885. the requested 16k block in 60 seconds.
  14886. * src/Peer.h
  14887. (snubbing): New variable.
  14888. * src/Peer.cc
  14889. (resetStatus): Added snubbed = false.
  14890. To fix the bug that causes have message is not sent:
  14891. * src/PeerInteractionCommand.cc
  14892. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14893. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14894. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14895. * src/TorrentMan.h
  14896. (HaveEntry): New class.
  14897. (advertisePiece): Rewritten.
  14898. (getAdvertisedPieceIndexes): Rewritten.
  14899. (Haves): Changed the type.
  14900. (getAdvertisedPieceIndexes): Added an argument.
  14901. Others:
  14902. * src/TorrentMan.h
  14903. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14904. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14905. * src/TorrentMan.cc
  14906. (getPeer): Don't check the number of connections here.
  14907. (setupInternal1): Changed peerId.
  14908. * src/PeerInteractionCommand.h
  14909. (KEEP_ALIVE_INTERVAL): New definition.
  14910. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14911. * src/main.cc
  14912. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14913. * src/DownloadEngine.h: Removed unnecessary header includes.
  14914. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14915. To fix the bug that causes segfaults if a tracker returns a zero-length
  14916. list as "peers":
  14917. * src/TrackerUpdateCommand.cc
  14918. (execute): Added a check to see wether the type of peers is Data*.
  14919. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14920. * Release 0.5.0
  14921. To fix compile issue with gcc3:
  14922. * src/CancelMessage.h
  14923. (ID): Renamed as ID_t
  14924. (ID_t): New enum.
  14925. * src/RejectMessage.h
  14926. (ID): Renamed as ID_t
  14927. (ID_t): New enum.
  14928. * src/SuggestPieceMessage.h
  14929. (ID): Renamed as ID_t
  14930. (ID_t): New enum.
  14931. * src/AllowedFastMessage.h
  14932. (ID): Renamed as ID_t
  14933. (ID_t): New enum.
  14934. * src/PortMessage.h
  14935. (ID): Renamed as ID_t
  14936. (ID_t): New enum.
  14937. * src/HaveNoneMessage.h
  14938. (ID): Renamed as ID_t
  14939. (ID_t): New enum.
  14940. * src/KeepAliveMessage.h
  14941. (ID): Renamed as ID_t
  14942. (ID_t): New enum.
  14943. * src/HaveAllMessage.h
  14944. (ID): Renamed as ID_t
  14945. (ID_t): New enum.
  14946. * src/UnchokeMessage.h
  14947. (ID): Renamed as ID_t
  14948. (ID_t): New enum.
  14949. * src/BitfieldMessage.h
  14950. (ID): Renamed as ID_t
  14951. (ID_t): New enum.
  14952. * src/PieceMessage.h
  14953. (ID): Renamed as ID_t
  14954. (ID_t): New enum.
  14955. * src/RequestMessage.h
  14956. (ID): Renamed as ID_t
  14957. (ID_t): New enum.
  14958. * src/NotInterestedMessage.h
  14959. (ID): Renamed as ID_t
  14960. (ID_t): New enum.
  14961. * src/ChokeMessage.h
  14962. (ID): Renamed as ID_t
  14963. (ID_t): New enum.
  14964. * src/InterestedMessage.h
  14965. (ID): Renamed as ID_t
  14966. (ID_t): New enum.
  14967. * src/HaveMessage.h
  14968. (ID): Renamed as ID_t
  14969. (ID_t): New enum.
  14970. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14971. * src/PeerAbstractCommand.h
  14972. (beforeSocketCheck): Removed.
  14973. * src/PeerAbstractCommand.cc
  14974. Modified in order to call executeInternal() even if socket check
  14975. and upload limit check fail.
  14976. * src/PeerInteractionCommand.h
  14977. (keepAlive): Removed.
  14978. (sendKeepAlive): New function.
  14979. (checkHave): New function.
  14980. (beforeSocketCheck): Removed.
  14981. * src/PeerInteractionCommand.cc
  14982. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14983. calls to checkHave() and sendKeepAlive().
  14984. (keepAlive): Renamed to sendKeepAlive().
  14985. (sendKeepAlive): New function.
  14986. (beforeSocketCheck): Removed.
  14987. (checkHave): New function.
  14988. * src/BitfieldMan.cc
  14989. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14990. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14991. 0.
  14992. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14993. * src/TorrentMan.h
  14994. (UsedPieces): Removed.
  14995. (Pieces): New type definition.
  14996. * src/Piece.h: Updated doc.
  14997. * src/Peer.h
  14998. (totalLength): Removed.
  14999. * src/Peer.cc
  15000. (updateLatency): Fixed the latency calculation.
  15001. * src/TorrentMan.cc
  15002. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15003. than or equal to MAX_PEER_LIST_SIZE.
  15004. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15005. then return false.
  15006. (deleteOldErrorPeers): Rewritten.
  15007. (deleteUsedPiece): Fixed the miss use of STL remove.
  15008. * src/PeerInteraction.h
  15009. (Pieces): Removed.
  15010. (deleteTimeoutRequestSlot): Removed.
  15011. (deleteCompletedRequestSlot): Removed.
  15012. (checkRequestSlot): New function.
  15013. * src/PeerInteraction.cc
  15014. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15015. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15016. (checkRequestSlot): New function.
  15017. * src/DownloadEngine.cc
  15018. (run): Clear activeSockets before calling waitData().
  15019. (waitData): Removed a call to activeSockets.clear().
  15020. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15021. To attempt to handle EINTR:
  15022. * src/SocketCore.cc
  15023. (isReadable): Added EINTR handling.
  15024. (isWritable): Added EINTR handling.
  15025. To improve the performance:
  15026. * src/AbstractCommand.cc
  15027. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15028. * src/PeerInteractionCommand.h
  15029. (receiveMessage): Renamed as receiveMessages().
  15030. (receiveMessages): New function.
  15031. * src/PeerInteractionCommand.cc
  15032. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15033. () function. detectMessageFlooding() is moved here.
  15034. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15035. (). The flooding detection for have message is comment out.
  15036. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15037. Util::difftv().
  15038. (receiveMessage): Renamed as receiveMessages().
  15039. (receiveMessages): New function.
  15040. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15041. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15042. * src/SleepCommand.cc
  15043. (execute): Use Util::difftvsec() instead of Util::difftv().
  15044. * src/BitfieldMan.h
  15045. (getNthBitIndex): New function.
  15046. (hasMissingPiece): New function.
  15047. (getAllMissingIndexes): New function.
  15048. * src/BitfieldMan.cc
  15049. (countSetBit): Rewritten.
  15050. (getNthBitIndex): New function.
  15051. (getMissingIndexRandomly): Rewritten.
  15052. (hasMissingPiece): New function.
  15053. (getAllMissingIndexes): New function.
  15054. * src/TorrentMan.cc
  15055. (hasMissingPiece): New function.
  15056. (deleteUsedPiece): Rewritten using STL.
  15057. * src/PeerInteraction.cc
  15058. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15059. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15060. (addRequests): Updated the number of pending requests.
  15061. * src/PeerAbstractCommand.cc
  15062. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15063. (execute): Returns true if TorrentMan::isHalt() is true.
  15064. Corrected the condition of upload limit checking.
  15065. * src/Util.h
  15066. (countBit): New function.
  15067. * src/Util.cc
  15068. (nbits): New variable.
  15069. (countBit): New function.
  15070. * src/DownloadEngine.h
  15071. (SockCmdMap): New type definition.
  15072. (waitData): Added an argument.
  15073. (addSocket): Added an argument.
  15074. (addSocketForReadCheck): Added an argument.
  15075. (addSocketForWriteCheck): Added an argument.
  15076. * src/DownloadEngine.cc
  15077. (run): Executes only commands whose sockets are ready to read or write.
  15078. All commands are executed in every 1 second.
  15079. (waitData): Calls select() again if it returned
  15080. EINTR.
  15081. (addSocket): Saves socket and command object pair to the map.
  15082. (deleteSocket): Deletes socket and command object pair from the map.
  15083. (addSocketForReadCheck): Added an argument.
  15084. (addSocketForWriteCheck): Added an argument.
  15085. * src/DownloadCommand.cc
  15086. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15087. To send "event=stopped" to the tracker when the application finishes:
  15088. * src/PeerChokeCommand.h
  15089. (checkPoint): New variable.
  15090. * src/PeerChokeCommand.cc
  15091. (PeerChokeCommand): Added the initialization of checkPoint.
  15092. (execute): The interval check is now done by checkPoint, not
  15093. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15094. * src/TorrentMan.h
  15095. (halt): New function.
  15096. (hasMissingPiece): New function.
  15097. (isHalt): New function.
  15098. (setHalt): New function.
  15099. * src/TorrentMan.cc
  15100. (TorrentMan): Added the initialization of halt.
  15101. * src/TorrentAutoSaveCommand.h
  15102. (checkPoint): New variable.
  15103. * src/PeerListenCommand.cc
  15104. (execute): Returns true if TorrentMan::isHalt() is true.
  15105. * src/main.cc
  15106. (setSignalHander): Added flags argument.
  15107. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15108. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15109. Removed printDownloadAbortMessage() after torrent downloading loop.
  15110. * src/TorrentAutoSaveCommand.cc
  15111. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15112. (execute): Returns true if TorrentMan::isHalt() is true.
  15113. The interval check is now done by checkPoint, not SleepCommand.
  15114. * src/TrackerWatcherCommand.cc
  15115. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15116. event=stopped.
  15117. * src/TrackerUpdateCommand.cc
  15118. (prepareForRetry): Do not use SleepCommand here.
  15119. (execute): Returns true if TorrentMan::isHalt() is true.
  15120. Others:
  15121. * src/TorrentMan.cc
  15122. (getMissingPieceIndex): Updated log message.
  15123. * src/PeerInteraction.cc
  15124. (createPeerMessag): Updated log message.
  15125. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15126. To add the ability to download several pieces in mix in a command and
  15127. increase the number of request slots according to request-cancel
  15128. latency:
  15129. * src/PeerInteractionCommand.cc
  15130. (executeInternal): The number of messages to be received at a time
  15131. is increased from 10 to 50.
  15132. * src/LogFactory
  15133. (getInstance): Added NullLogger.
  15134. * src/NullLogger.h: New class.
  15135. * src/BitfieldMan.h
  15136. (getMissingIndex): New function.
  15137. * src/BitfieldMan.cc
  15138. (getMissingIndex): New function.
  15139. * src/TorrentMan.h
  15140. (checkOutPiece): New function.
  15141. (getMissingPieceIndex): New function.
  15142. (getMissingFastPieceIndex): New function.
  15143. (getMissingFastPiece): New function.
  15144. * src/TorrentMan.cc
  15145. (updatePiece): Rewritten using STL.
  15146. (syncPiece): Rewritten using STL.
  15147. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15148. checkOutPiece().
  15149. (getMissingPieceIndex): New function.
  15150. (getMissingFastPieceIndex): New function.
  15151. (getMissingFastPiece): New function.
  15152. (checkOutPiece): New function.
  15153. * src/PeerInteraction.h
  15154. (Pieces): New type definition.
  15155. (piece): Removed.
  15156. (pieces): New variable.
  15157. (getNewPieceAndSendInterest): Added the "piece" argument.
  15158. (abortPiece): Added the "piece" argument.
  15159. (abortAllPieces): New function.
  15160. (isInRequestSlot): New function.
  15161. (hasDownloadPiece): Added the "index" argument.
  15162. (setDownloadPiece): Removed.
  15163. (getDownloadPiece): Added the "index" argument.
  15164. (updatePiece): New function.
  15165. (createRequestMessage): Added the "index" argument.
  15166. * src/PeerInteraction.cc
  15167. (onChoked): Rewritten.
  15168. (abortPiece): Rewirtten.
  15169. (abortAllPieces): New function.
  15170. (deleteTimeoutRequestSlot): Rewritten.
  15171. Clarified code a little bit.
  15172. (deleteCompletedRequestSlot): Rewritten.
  15173. (isInRequestSlot): New function.
  15174. (syncPiece): Rewritten.
  15175. (updatePiece): New function.
  15176. (getNewPieceAndSendInterest): Rewritten.
  15177. (addRequests): Rewritten.
  15178. (getDownloadPiece): Rewritten.
  15179. (hasDownloadPiece): Rewritten.
  15180. (createRequestMessage): Added the "index" argument.
  15181. * src/common.h
  15182. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15183. (DIV_FLOOR): New definition.
  15184. * src/PieceMessage.cc
  15185. (receivedAction): Update request-piece latency here.
  15186. * src/RequestSlot.h
  15187. (getLatencyInMillis): New function.
  15188. * src/RequestSlot.cc
  15189. (isTimeout): Rewritten using getLatencyInMillis.
  15190. (getLatencyInMillis): New function.
  15191. * src/Piece.h
  15192. (operator==): New function.
  15193. (getMissingBlockIndex): New function.
  15194. * src/Piece.cc
  15195. (operator==): New function.
  15196. (getMissingBlockIndex): New function.
  15197. * src/Peer.h
  15198. (DEFAULT_LATENCY): New definition.
  15199. (latency): New variable.
  15200. (updateLatency): New function.
  15201. (getLatency): New function.
  15202. * src/Peer.cc
  15203. (resetStatus): Reset latecy.
  15204. (updateLatency): New function.
  15205. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15206. * src/SocketCore.cc
  15207. (isReadable): Added secure to the condition.
  15208. * src/HttpConnection.cc
  15209. (receiveResponse): Fixed a bug that causes no response header
  15210. exception.
  15211. * src/Peer.h
  15212. (getFastSet): Fixed the return value type.
  15213. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15214. To remove a wait from download loop:
  15215. * src/DownloadEngine.cc
  15216. (run): Comment out shortSleep.
  15217. To rewrite the message handling:
  15218. * src/SimplePeerMessage.h: New class.
  15219. * src/SimplePeerMessage.cc: New class.
  15220. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15221. (msg): New variable.
  15222. (create): New function.
  15223. (send): Removed.
  15224. (getMessage): New function.
  15225. (getMessageLength): New function.
  15226. * src/CancelMessage.cc
  15227. (create): New function.
  15228. (receivedAction): Replaced deleteRequestMessageInQueue with
  15229. rejectPieceMessageInQueue.
  15230. (send): Removed.
  15231. (getMessage): New function.
  15232. (getMessageLength): New function.
  15233. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15234. (msg): New variable.
  15235. (msgLength): New variable.
  15236. (~BitfieldMessage): Deleted msg.
  15237. (send): Removed.
  15238. (getMessage): New function.
  15239. (getMessageLength): New function.
  15240. * src/BitfieldMessage.cc
  15241. (create): New function.
  15242. (send): Removed.
  15243. (getMessage): New function.
  15244. (getMessageLength): New function.
  15245. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15246. (msg): New variable.
  15247. (sendPredicate): New function.
  15248. (onSendComplete): New function.
  15249. (send): Removed.
  15250. (getMessage): New function.
  15251. (getMessageLength): New function.
  15252. (create): New function.
  15253. * src/ChokeMessage.cc
  15254. (create): New function.
  15255. (send): Removed.
  15256. (sendPredicate): New function.
  15257. (getMessage): New function.
  15258. (getMessageLength): New function.
  15259. (onSendComplete): New function.
  15260. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15261. (msg): New variable.
  15262. (send): Removed.
  15263. (getMessage): New function.
  15264. (getMessageLength): New function.
  15265. * src/KeepAliveMessage.cc
  15266. (send): Removed.
  15267. (getMessage): New function.
  15268. (getMessageLength): New function.
  15269. * src/PortMessage.h
  15270. (create): New function.
  15271. (receivedAction): Updated log message.
  15272. * src/PortMessage.cc: New file.
  15273. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15274. (msg): New variable.
  15275. (sendPredicate): New function.
  15276. (onSendComplete): New function.
  15277. (create): New function.
  15278. (send): Removed.
  15279. (getMessage): New function.
  15280. (getMessageLength): New function.
  15281. * src/UnchokeMessage.cc
  15282. (create): New function.
  15283. (send): Removed.
  15284. (sendPredicate): New function.
  15285. (getMessage): New function.
  15286. (getMessageLength): New function.
  15287. (onSendComplete): New function.
  15288. * src/PieceMessage.h
  15289. (leftPieceDataLength): Removed.
  15290. (leftDataLength): New variable.
  15291. (headerSend): New variable.
  15292. (pendingCount): New variable.
  15293. (msgHeader): New variable.
  15294. (sendPieceData): New function.
  15295. (incrementPendingCount): New function.
  15296. (isPendingCountMax): New function.
  15297. (create): New function.
  15298. (getMessageHeader): New function.
  15299. (getMessageHeaderLength): New function.
  15300. * src/PieceMessage.cc
  15301. (create): New function.
  15302. (getMessageHeader): New function.
  15303. (getMessageHeaderLength): New function.
  15304. (send): Rewritten.
  15305. (sendPieceData): New function.
  15306. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15307. (msg): New variable.
  15308. (create): New function.
  15309. (getMessage): New function.
  15310. (getMessageLength): New function.
  15311. * src/HaveMessage.cc
  15312. (create): New function.
  15313. (send): Removed.
  15314. (sendPieceData): New function.
  15315. (getMessage): New function.
  15316. (getMessageLength): New function.
  15317. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15318. (msg): New variable.
  15319. (create): New function.
  15320. (send): Removed.
  15321. (getMessage): New function.
  15322. (getMessageLength): New function.
  15323. * src/RequestMessage.cc
  15324. (create): New function.
  15325. (receivedAction): Added the handling of fast extension.
  15326. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15327. (send): Removed.
  15328. (getMessage): New function.
  15329. (getMessageLength): New function.
  15330. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15331. (msg): New variable.
  15332. (sendPredicate): New function.
  15333. (onSendComplete): New function.
  15334. (create): New function.
  15335. (getMessage): New function.
  15336. (getMessageLength): New function.
  15337. * src/InterestedMessage.cc
  15338. (create): New function.
  15339. (send): Removed.
  15340. (sendPieceData): New function.
  15341. (getMessage): New function.
  15342. (getMessageLength): New function.
  15343. (onSendComplete): New function.
  15344. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15345. (msg): New variable.
  15346. (sendPieceData): New function.
  15347. (onSendComplete): New function.
  15348. (create): New function.
  15349. (send): Removed.
  15350. (getMessage): New function.
  15351. (getMessageLength): New function.
  15352. * src/NotInterestedMessage.cc
  15353. (create): New function.
  15354. (send): Removed.
  15355. (sendPredicate): New function.
  15356. (getMessage): New function.
  15357. (getMessageLength): New function.
  15358. (onSendComplete): New function.
  15359. * src/AllowedFastMessage.h: New class.
  15360. * src/AllowedFastMessage.cc: New class.
  15361. * src/RejectMessage.h: New class.
  15362. * src/RejectMessage.cc: New class.
  15363. * src/SuggestPieceMessage.h: New class.
  15364. * src/SuggestPieceMessage.cc: New class.
  15365. * src/HaveAllMessage.h: New class.
  15366. * src/HaveAllMessage.cc: New class.
  15367. * src/HaveNoneMessage.h: New class.
  15368. * src/HaveNoneMessage.cc: New class.
  15369. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15370. (msg): New variable.
  15371. (reserved): New variable.
  15372. (create): New function.
  15373. (getId): New function.
  15374. (receivedAction): New function.
  15375. (getMessage): New function.
  15376. (getMessageLength): New function.
  15377. (isFastExtensionSupported): New function.
  15378. * src/HandshakeMessage.cc
  15379. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15380. (create): New function.
  15381. (getMessage): New function.
  15382. (getMessageLength): New function.
  15383. (toString): Added the output of reserved field.
  15384. (check): Added const qualifier.
  15385. (isFastExtensionSupported): New function.
  15386. * src/PeerMessageUtil.h
  15387. (createChokeMessage): Removed.
  15388. (createUnchokeMessage): Removed.
  15389. (createInterestedMessage): Removed.
  15390. (createNotInterestedMessage): Removed.
  15391. (createHaveMessage): Removed.
  15392. (createBitfieldMessage): Removed.
  15393. (createRequestMessage): Removed.
  15394. (createCancelMessage): Removed.
  15395. (createPieceMessage): Removed.
  15396. (createPortMessage): Removed.
  15397. (createChokeMessage): Removed.
  15398. (createUnchokeMessage): Removed.
  15399. (createInterestedMessage): Removed.
  15400. (createNotInterestedMessage): Removed.
  15401. (createHaveMessage): Removed.
  15402. (createBitfieldMessage): Removed.
  15403. (createRequestMessage): Removed.
  15404. (createCancelMessage): Removed.
  15405. (createPieceMessage): Removed.
  15406. (createKeepAliveMessage): Removed.
  15407. (createHandshakeMessage): Removed.
  15408. (setIntParam): New function.
  15409. (createPeerMessageString): New function.
  15410. * src/PeerMessageUtil.cc
  15411. (createChokeMessage): Removed.
  15412. (createUnchokeMessage): Removed.
  15413. (createInterestedMessage): Removed.
  15414. (createNotInterestedMessage): Removed.
  15415. (createHaveMessage): Removed.
  15416. (createBitfieldMessage): Removed.
  15417. (createRequestMessage): Removed.
  15418. (createCancelMessage): Removed.
  15419. (createPieceMessage): Removed.
  15420. (createPortMessage): Removed.
  15421. (createRequestMessage): Removed.
  15422. (createCancelMessage): Removed.
  15423. (createPieceMessage): Removed.
  15424. (createHaveMessage): Removed.
  15425. (createChokeMessage): Removed.
  15426. (createUnchokeMessage): Removed.
  15427. (createInterestedMessage): Removed.
  15428. (createNotInterestedMessage): Removed.
  15429. (createBitfieldMessage): Removed.
  15430. (createKeepAliveMessage): Removed.
  15431. (createHandshakeMessage): Removed.
  15432. (setIntParam): New function.
  15433. (createPeerMessageString): New function.
  15434. * src/PeerConnection.h
  15435. (peer): Removed.
  15436. (torrentMan): Removed.
  15437. (createNLengthMessage): Removed.
  15438. (setIntParam): Removed.
  15439. (writeOutgoingMessageLog): Removed all overloaded functions.
  15440. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15441. (sendMessage): New function.
  15442. (sendHandshake): Removed.
  15443. (sendKeepAlive): Removed.
  15444. (sendChoke): Removed.
  15445. (sendUnchoke): Removed.
  15446. (sendInterested): Removed.
  15447. (sendNotInterested): Removed.
  15448. (sendHave): Removed.
  15449. (sendBitfield): Removed.
  15450. (sendRequest): Removed.
  15451. (sendPiece): Removed.
  15452. (sendPieceHeader): Removed.
  15453. (sendPieceData): Removed.
  15454. (sendCancel): Removed.
  15455. (getPeer): Removed.
  15456. * src/PeerConnection.cc
  15457. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15458. (sendHandshake): Removed.
  15459. (sendKeepAlive): Removed.
  15460. (createNLengthMessage): Removed.
  15461. (setIntParam): Removed.
  15462. (writeOutgoingMessageLog): Removed all overloaded functions.
  15463. (sendChoke): Removed.
  15464. (sendUnchoke): Removed.
  15465. (sendInterested): Removed.
  15466. (sendNotInterested): Removed.
  15467. (sendHave): Removed.
  15468. (sendBitfield): Removed.
  15469. (sendRequest): Removed.
  15470. (sendPiece): Removed.
  15471. (sendPieceHeader): Removed.
  15472. (sendPieceData): Removed.
  15473. (sendMessage): New function.
  15474. (sendCancel): Removed.
  15475. * src/PeerInteractionCommand.cc
  15476. (PeerInteractionCommand): Call setUploadLimit.
  15477. (executeInternal): Call setUploadLimit.
  15478. Added the handling of "inProgress" state of handshake message.
  15479. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15480. sendNow().
  15481. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15482. sendNow().
  15483. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15484. * src/TorrentMan.h
  15485. (PEER_ID_LENGTH): New definition.
  15486. (hasAllPieces): New function.
  15487. * src/TorrentMan.cc
  15488. (getMissingPiece): Added the handling of fast extension.
  15489. (cancelPiece): Call updatePiece().
  15490. (hasAllPieces): New function.
  15491. * src/PeerInteraction.h
  15492. (fastSet): New variable.
  15493. (getNewPieceAndSendInterest): Changed the return type to void.
  15494. (send): Renamed as sendMessages.
  15495. (deleteAllRequestSlot): Removed.
  15496. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15497. (cancelAllRequest): Removed all overloaded functions.
  15498. (deleteAllRequestSlot): Removed.
  15499. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15500. (rejectPieceMessageInQueue): New function.
  15501. (rejectAllPieceMessageInQueue): New function.
  15502. (onChoked): New function.
  15503. (isSendingMessageInProgress): New function.
  15504. (getCorrespondingRequestSlot): Changed its arguments.
  15505. (isInFastSet): New function.
  15506. (addFastSetIndex): New function.
  15507. (addRequests): New function.
  15508. (sendNow): Removed.
  15509. (trySendNow): Removed.
  15510. (sendBitfield): New function.
  15511. (sendAllowdFast): New function.
  15512. (createHaveAllMessage): New function.
  15513. (createHaveNoneMessage): New function.
  15514. (createRejectMessage): New function.
  15515. (createAllowedFastMessage): New function.
  15516. * src/PeerInteraction.cc
  15517. (send): Renamed as sendMessages.
  15518. (sendMessages): New function.
  15519. (MsgPushBack): New class.
  15520. (isSendingMessageInProgress): New function.
  15521. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15522. (rejectAllPieceMessageInQueue): New function.
  15523. Added the handling of fast extension.
  15524. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15525. (rejectPieceMessageInQueue): New function.
  15526. Added the handling of fast extension.
  15527. (deleteRequestSlot): Replaced for loop with std::find.
  15528. (onChoked): New function.
  15529. (deleteAllRequestSlot): Removed.
  15530. (abortPiece): Rewirtten.
  15531. (deleteTimeoutRequestSlot): Updated log messages.
  15532. (getCorrespondingRequestSlot): Changed its arguments.
  15533. (cancelAllRequest): Removed all overloaded functions.
  15534. (receiveHandshake): Added the check to see whether an incoming peer
  15535. supports fast extension.
  15536. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15537. PeerMessageUtil.
  15538. (createPeerMessage): Use create() of each message class instead of
  15539. PeerMessageUtil.
  15540. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15541. AllowedFastMessage were added.
  15542. (getNewPieceAndSendInterest): Changed its return value type to void.
  15543. Added the handling of fast extension.
  15544. (addRequests): New function.
  15545. (sendNow): Removed.
  15546. (sendHandshake): Rewritten.
  15547. (trySendNow): Removed.
  15548. (sendBitfield): New function.
  15549. (sendAllowdFast): New function.
  15550. (isInFastSet): New function.
  15551. (addFastSetIndex): New function.
  15552. (createRequestMessage): Use RequestMessage::create instead of
  15553. PeerMessageUtil.
  15554. (createCancelMessage): Use CancelMessage::create instead of
  15555. PeerMessageUtil.
  15556. (createPieceMessage): Use PieceMessage::create instead of
  15557. PeerMessageUtil.
  15558. (createHaveMessage): Use HaveMessage::create instead of
  15559. PeerMessageUtil.
  15560. (createChokeMessage): Use ChokeMessage::create instead of
  15561. PeerMessageUtil.
  15562. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15563. PeerMessageUtil.
  15564. (createInterestedMessage): Use InterestedMessage::create instead of
  15565. PeerMessageUtil.
  15566. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15567. of PeerMessageUtil.
  15568. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15569. PeerMessageUtil.
  15570. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15571. PeerMessageUtil.
  15572. (createHaveAllMessage): New function.
  15573. (createHaveNoneMessage): New function.
  15574. (createRejectMessage): New function.
  15575. (createAllowedFastMessage: New function.
  15576. * src/Util.h
  15577. (sha1Sum): New function.
  15578. (computeFastSet): New function.
  15579. * src/Util.cc
  15580. (sha1Sum): New function.
  15581. (computeFastSet): New function.
  15582. * src/Peer.h
  15583. (fastExtensionEnabled): New variable.
  15584. (fastSet): New variable.
  15585. (setAllBitfield): New function.
  15586. (setFastExtensionEnabled): New function.
  15587. (isFastExtensionEnabled): New function.
  15588. (addFastSetIndex): New function.
  15589. (getFastSet): New function.
  15590. (isInFastSet): New function.
  15591. (countFastSet): New function.
  15592. * src/Peer.cc
  15593. (isInFastSet): New function.
  15594. (addFastSetIndex): New function.
  15595. (setAllBitfield): New function.
  15596. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15597. sockets.
  15598. * src/PeerAbstractCommand.cc
  15599. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15600. and uploadLimit.
  15601. (execute): Changed the procedure of checking sockets. The upload speed
  15602. checking were added.
  15603. (setUploadLimit): New function.
  15604. (setUploadLimitCheck): New function.
  15605. * src/PeerAbstractCommand.h
  15606. (setUploadLimit): New function.
  15607. (setUploadLimitCheck): New function.
  15608. (uploadLimit): New variable.
  15609. (uploadLimitCheck): New variable.
  15610. To contact a tracker regularly:
  15611. * src/TrackerWatcherCommand.h (interval): New variable.
  15612. (checkPoint): New variable.
  15613. (TrackerWatcherCommand): Added interval argument.
  15614. * src/TrackerWatcherCommand.cc
  15615. (TrackerWatcherCommand): Initialized checkPoint.
  15616. (execute): Now a tracker is contacted in every specified period.
  15617. If peer list is not needed, send request with numwant=0.
  15618. * src/TrackerUpdateCommand.cc
  15619. (execute): Updated log messages.
  15620. * src/DownloadEngine.cc
  15621. (~DownloadEngine): Removed two asserts.
  15622. (waitData): Uncommented wfds. May be a bug fix.
  15623. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15624. * src/PeerInteractionCommand.h
  15625. (checkInactiveConnection): Removed.
  15626. * src/PeerInteractionCommand.cc
  15627. (executeInternal): Removed following function calls:
  15628. detectMessageFlooding(), checkLongTimePeerChoking and
  15629. checkInactiveConnection().
  15630. (checkInactiveConnection): Removed.
  15631. (detectMessageFlooding): Removed function call to
  15632. checkInactiveConnection().
  15633. * src/PeerMessageUtil.h
  15634. (createChokeMessage): New function. Overload.
  15635. (createUnchokeMessage): New function. Overload.
  15636. (createInterestedMessage): New function. Overload.
  15637. (createNotInterestedMessage): New function. Overload.
  15638. (createHaveMessage): New function. Overload.
  15639. (createBitfieldMessage): New function. Overload.
  15640. (createRequestMessage): New function. Overload.
  15641. (createCancelMessage): New function. Overload.
  15642. (createPieceMessage): New function. Overload.
  15643. (createKeepAliveMessage): New function. Overload.
  15644. * src/PeerMessageUtil.cc
  15645. (createChokeMessage): New function. Overload.
  15646. (createUnchokeMessage): New function. Overload.
  15647. (createInterestedMessage): New function. Overload.
  15648. (createNotInterestedMessage): New function. Overload.
  15649. (createHaveMessage): New function. Overload.
  15650. (createBitfieldMessage): New function. Overload.
  15651. (createRequestMessage): New function. Overload.
  15652. (createCancelMessage): New function. Overload.
  15653. (createPieceMessage): New function. Overload.
  15654. (createKeepAliveMessage): New function. Overload.
  15655. * src/SendMessageQueue.cc
  15656. (createRequestMessage): Use PeerMessageUtil.
  15657. (createCancelMessage): Use PeerMessageUtil.
  15658. (createPieceMessage): Use PeerMessageUtil.
  15659. (createHaveMessage): Use PeerMessageUtil.
  15660. (createChokeMessage): Use PeerMessageUtil.
  15661. (createUnchokeMessage): Use PeerMessageUtil.
  15662. (createInterestedMessage): Use PeerMessageUtil.
  15663. (createNotInterestedMessage): Use PeerMessageUtil.
  15664. (createBitfieldMessage): Use PeerMessageUtil.
  15665. (createKeepAliveMessage): Use PeerMessageUtil.
  15666. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15667. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15668. * src/PeerInteraction.h: New class.
  15669. * src/PeerInteraction.cc: New class.
  15670. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15671. Each peer message has its own class.
  15672. * src/PendingMessages.h: Removed.
  15673. * src/PendingMessages.cc: Removed. The sending process was moved to
  15674. each message class.
  15675. * src/RequestSlotMan.h: Removed.
  15676. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15677. SendMessageQueue.
  15678. * src/RequestMessage.h: New class.
  15679. * src/RequestMessage.cc: New class.
  15680. * src/CancelMessage.h: New class.
  15681. * src/CancelMessage.cc: New class.
  15682. * src/BitfieldMessage.h: New class.
  15683. * src/BitfieldMessage.cc: New class.
  15684. * src/ChokeMessage.h: New class.
  15685. * src/ChokeMessage.cc: New class.
  15686. * src/KeepAliveMessage.h: New class.
  15687. * src/KeepAliveMessage.cc: New class.
  15688. * src/PortMessage.h: New class.
  15689. * src/UnchokeMessage.h: New class.
  15690. * src/UnchokeMessage.cc: New class.
  15691. * src/PieceMessage.h: New class.
  15692. * src/PieceMessage.cc: New class.
  15693. * src/HaveMessage.h: New class.
  15694. * src/HaveMessage.cc: New class.
  15695. * src/BitfieldMessage.h: New class.
  15696. * src/BitfieldMessage.cc: New class.
  15697. * src/NotInterestedMessage.h: New class.
  15698. * src/NotInterestedMessage.cc: New class.
  15699. * src/InterestedMessage.h: New class.
  15700. * src/InterestedMessage.cc: New class.
  15701. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15702. (getSendMessageQueue): New function.
  15703. (setSendMessageQueue): New function.
  15704. * src/HandshakeMessage.cc: New class.
  15705. * src/PeerConnection.h (receiveMessage): Changed return value and
  15706. arguments.
  15707. (receiveHandshake): Changed return value and arguments.
  15708. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15709. here.
  15710. (receiveHandshake): Do not create handshake class here.
  15711. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15712. (piece): Removed.
  15713. (syncPiece): Removed.
  15714. (sendInterest): Removed.
  15715. (sendMessages): Removed.
  15716. (createRequestPendingMessage): Removed.
  15717. (checkPieceHash): Removed.
  15718. (erasePieceOnDisk): Removed.
  15719. (getNewPieceAndSendInterest): Removed.
  15720. (onGotNewPice): Removed.
  15721. (onGotWrongPiece): Removed.
  15722. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15723. Removed peerConnection, piece.
  15724. (~PeerInteractionCommand): Removed peerConnection.
  15725. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15726. (syncPiece): Moved to SendMessageQueue.
  15727. (decideChoking): Removed PendingMessage.
  15728. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15729. The action after receiving peer message was moved to each message
  15730. class.
  15731. (onGotNewPice): Moved to SendMessageQueue.
  15732. (onGotWrongPiece): Moved to SendMessageQueue.
  15733. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15734. (sendInterest): Moved to SendMessageQueue.
  15735. (createRequestPendingMessage): Removed.
  15736. (sendMessages): Moved to SendMessageQueue.
  15737. (onAbort): Use SendMessageQueue::abortPiece()
  15738. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15739. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15740. (checkPieceHash): Moved to SendMessageQueue.
  15741. (erasePieceOnDisk): Moved to SendMessageQueue.
  15742. * src/PeerMessageUtil.h
  15743. (createBitfieldMessage): Removed.
  15744. (createHaveMessage): Changed return value and arguments.
  15745. (createBitfieldMessage): Changed return value and arguments.
  15746. (createRequestCancelMessage): Removed.
  15747. (createPieceMessage): Changed return value and arguments.
  15748. (getShortIntParam): New function.
  15749. (checkIndex): Changed arguments.
  15750. (checkBegin): Changed arguments.
  15751. (checkLength): Changed arguments.
  15752. (checkPieceOffset): Removed.
  15753. (checkRange): New function.
  15754. (checkBitfield): Changed arguments.
  15755. (createPeerMessage): Removed.
  15756. (checkIntegrity): Removed.
  15757. (createHandshakeMessage): Changed arguments.
  15758. (createChokeMessage): New function.
  15759. (createUnchokeMessage): New function.
  15760. (createInterestedMessage): New function.
  15761. (createNotInterestedMessage): New function.
  15762. (createRequestMessage): New function.
  15763. (createCancelMessage): New function.
  15764. (createPortMessage): New function.
  15765. * src/PeerMessageUtil.cc
  15766. (createBitfieldMessage): Removed.
  15767. (createHaveMessage): Changed return value and arguments.
  15768. (createBitfieldMessage): Changed return value and arguments.
  15769. (createRequestCancelMessage): Removed.
  15770. (createPieceMessage): Changed return value and arguments.
  15771. (getShortIntParam): New function.
  15772. (checkIndex): Changed arguments.
  15773. (checkBegin): Changed arguments.
  15774. (checkLength): Changed arguments.
  15775. (checkPieceOffset): Removed.
  15776. (checkRange): New function.
  15777. (checkBitfield): Changed arguments.
  15778. (createPeerMessage): Removed.
  15779. (checkIntegrity): Removed.
  15780. (createHandshakeMessage): Changed arguments.
  15781. (createChokeMessage): New function.
  15782. (createUnchokeMessage): New function.
  15783. (createInterestedMessage): New function.
  15784. (createNotInterestedMessage): New function.
  15785. (createRequestMessage): New function.
  15786. (createCancelMessage): New function.
  15787. (createPortMessage): New function.
  15788. * src/PeerMessage.h
  15789. (id): Removed.
  15790. (index): Removed.
  15791. (begin): Removed.
  15792. (length): Removed.
  15793. (bitfield): Removed.
  15794. (bitfieldLength): Removed.
  15795. (block): Removed.
  15796. (blockLength): Removed.
  15797. (inProgress): New variable.
  15798. (cuid): New variable.
  15799. (peer): New variable.
  15800. (sendMessageQueue): New variable.
  15801. (logger): New variable.
  15802. (setBitfield): Removed.
  15803. (getBitfield): Removed.
  15804. (setBlock): Removed.
  15805. (getBlock): Removed.
  15806. (getBitfieldLength): Removed.
  15807. (getBlockLength): Removed.
  15808. (isInProgress): New function.
  15809. (toString): Made pure virtual.
  15810. (check): New function.
  15811. (send): New function.
  15812. (receivedAction): New function.
  15813. (getId): Made pure virtual.
  15814. (setId): Removed.
  15815. (getIndex): Removed.
  15816. (setIndex): Removed.
  15817. (getBegin): Removed.
  15818. (setBegin): Removed.
  15819. (getLength): Removed.
  15820. (setLength): Removed.
  15821. (getCuid): New function.
  15822. (setCuid): New function.
  15823. (getPeer): New function.
  15824. (setPeer): New function.
  15825. (getSendMessageQueue): New function.
  15826. (setSendMessageQueue): New function.
  15827. (ID): Removed.
  15828. * src/PeerMessage.cc
  15829. (setBitfield): Removed.
  15830. (setBlock): Removed.
  15831. (toString): Removed.
  15832. * src/TorrentMan.h
  15833. (getPieceLength): New function.
  15834. (getPieceLength): New function.
  15835. * src/SendMessageQueue.h
  15836. (REQUEST_TIME_OUT): New definition.
  15837. (RequestSlots): New definition.
  15838. (MessageQueue): New definition.
  15839. (requestSlotMan): Removed.
  15840. (pendingMessages): Removed.
  15841. (requestSlots): New variable.
  15842. (messageQueue): New variable.
  15843. (torrentMan): New variable.
  15844. (peerConnection): New variable.
  15845. (peer): New variable.
  15846. (piece): New variable.
  15847. (getNewPieceAndSendInterest): New function.
  15848. (createPeerMessage): New function.
  15849. (createHandshakeMessage): New function.
  15850. (send): Made private.
  15851. (setPeerMessageCommonProperty): New function.
  15852. (deleteAllRequestSlot): New function.
  15853. (deleteRequestMessageInQueue): New function.
  15854. (cancelAllRequest): Made private.
  15855. (cancelAllRequest): Made private.
  15856. (countRequestSlot): Made private.
  15857. (addPendingMessage): Removed.
  15858. (deletePendingPieceMessage): Removed.
  15859. (deletePendingRequestMessage): Removed.
  15860. (addMessage): New function.
  15861. (deletePieceMessageInQueue): New function.
  15862. (deleteTimeoutRequestSlot): Changed argument.
  15863. (deleteCompletedRequestSlot): Changed argument.
  15864. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15865. (getCorrespondingRequestSlot): New function.
  15866. (countPendingMessage): Removed.
  15867. (countMessageInQueue): New function.
  15868. (getTorrentMan): New function.
  15869. (getPeerConnection): New function.
  15870. (hasDownloadPiece): New function.
  15871. (getDownloadPiece): New function.
  15872. (setDownloadPiece): New function.
  15873. (syncPiece): New function.
  15874. (sendMessages): New function.
  15875. (sendNow): New function.
  15876. (trySendNow): New function.
  15877. (abortPiece): New function.
  15878. (sendHandshake): New function.
  15879. (receiveMessage): New function.
  15880. (receiveHandshake): New function.
  15881. (createRequestMessage): New function.
  15882. (createCancelMessage): New function.
  15883. (createPieceMessage): New function.
  15884. (createHaveMessage): New function.
  15885. (createChokeMessage): New function.
  15886. (createUnchokeMessage): New function.
  15887. (createInterestedMessage): New function.
  15888. (createNotInterestedMessage): New function.
  15889. (createBitfieldMessage): New function.
  15890. (createKeepAliveMessage): New function.
  15891. * src/SendMessageQueue.cc
  15892. (SendMessageQueue): Removed requestSlotMan.
  15893. Instantiated peerConnection here.
  15894. (~SendMessageQueue): Removed requestSlotMan.
  15895. Added deletion of peerConnection and the contents of messageQueue.
  15896. (send): Updated according to the change of messageQueue.
  15897. (addPendingMessage): Renamed to addMessage.
  15898. (addMessage): New function.
  15899. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15900. (deletePieceMessageInQueue): New function.
  15901. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15902. (deleteRequestMessageInQueue): New function.
  15903. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15904. here.
  15905. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15906. (...) was moved here.
  15907. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15908. moved here.
  15909. (deleteCompletedRequestSlot):
  15910. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15911. (getCorrespondingRequestSlot):
  15912. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15913. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15914. (countPendingMessage): Renamed to countMessageInQueue.
  15915. (countMessageInQueue): New function.
  15916. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15917. (receiveHandshake): New function.
  15918. (createHandshakeMessage): New function.
  15919. (receiveMessage): New function.
  15920. (createPeerMessage): New function.
  15921. (syncPiece): New function.
  15922. (getNewPieceAndSendInterest): New function.
  15923. (sendMessages): New function.
  15924. (sendNow): New function.
  15925. (trySendNow): New function.
  15926. (sendHandshake): New function.
  15927. (abortPiece): New function.
  15928. (getDownloadPiece): New function.
  15929. (getPeerMessageCommonProperty): New function.
  15930. (createRequestMessage): New function.
  15931. (createCancelMessage): New function.
  15932. (createPieceMessage): New function.
  15933. (createHaveMessage): New function.
  15934. (createChokeMessage): New function.
  15935. (createUnchokeMessage): New function.
  15936. (createInterestedMessage): New function.
  15937. (createNotInterestedMessage): New function.
  15938. (createBitfieldMessage): New function.
  15939. (createKeepAliveMessage): New function.
  15940. To add simple Content-Disposition support:
  15941. * src/HttpResponseCommand.h (determinFilename): New function.
  15942. * src/HttpResponseCommand.cc (executeInternal):
  15943. Use determinFilename(headers) instead of req->getFile() when comparing
  15944. filename.
  15945. (determinFilename): New function.
  15946. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15947. req->getFile().
  15948. (handleOtherEncoding): Use determinFilename(headers) instead of
  15949. req->getFile().
  15950. * src/Util.h (getContentDispositionFilename): New function.
  15951. * src/Util.cc (getContentDispositionFilename): New function.
  15952. * src/LogFactory.h (release): New function.
  15953. * src/LogFactory.cc (release): New function.
  15954. To fix a bug that causes out-of-bound exception when HTTP status
  15955. line is wrong:
  15956. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15957. size.
  15958. * src/common.h (Deleter): New class.
  15959. * src/SegmentMan.cc
  15960. (~SegmentMan): Added deletion of splitter and diskWriter.
  15961. * src/DownloadEngine.h
  15962. (Commands): Use deque.
  15963. (clearQueue): New function.
  15964. * src/DownloadEngine.cc
  15965. (~DownloadEngine): Added deletion of segmentMan.
  15966. (cleanQueue): New function.
  15967. * src/TorrentDownloadEngine.h
  15968. (TorrentDownloadEngine): The implementation was moved to
  15969. TorrentDownloadEngine.cc.
  15970. (~TorrentDownloadEngine): The implementation was moved to
  15971. TorrentDownloadEngine.cc.
  15972. * src/TorrentDownloadEngine.cc
  15973. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15974. * src/main.cc
  15975. (clearRequest): Removed.
  15976. (handler): Added deletion of e.
  15977. (torrentHandler): Added deletion of te.
  15978. (main): Do not share splitter.
  15979. Use Deleter instead of clearRequest.
  15980. Deletion of classes were updated.
  15981. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15982. * src/main.cc (main): Fixed typo.
  15983. * src/message.h: Fixed typo.
  15984. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15985. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15986. To add --select-file command-line option:
  15987. * src/Util.cc
  15988. (unfoldRange): New function.
  15989. (getNum): New function.
  15990. (unfoldSubRange): New function
  15991. * src/main.cc
  15992. (showUsage): Added help message.
  15993. (main): Added --select-file command-line option. Updated the layout of
  15994. file listing.
  15995. * src/common.h
  15996. (Integers): New definition.
  15997. * src/SocketCore.cc
  15998. (writeData): Removed timeout argument.
  15999. (readData): Removed timeout argument.
  16000. (peekData): Removed timeout argument.
  16001. * src/Socket.cc
  16002. (writeData): Removed timeout argument.
  16003. (readData): Removed timeout argument.
  16004. (peekData): Removed timeout argument.
  16005. * Release 0.4.1
  16006. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16007. To deploy upload rate based choking algorithm:
  16008. * src/PeerInteractionCommand.cc
  16009. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16010. peer currently used.
  16011. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16012. download completes. Simplified.
  16013. (receiveMessage): Updated.
  16014. * src/TorrentMan.h
  16015. (activePeers): New variable.
  16016. (addActivePeer): New function.
  16017. (getActivePeers): New function.
  16018. (deleteActivePeer): New function.
  16019. * src/TorrentMan.cc
  16020. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16021. * src/PeerAbstractCommand.cc
  16022. (onAbort): Use peer->resetStatus().
  16023. * src/main.cc
  16024. (PeerChokeCommand.h): Included.
  16025. (main): Added the instance of ChokingCommand to the command queue.
  16026. * src/Peer.h
  16027. (amChoking): Renamed from amChocking
  16028. (chokingRequired): New variable.
  16029. (optUnchoking): New variable.
  16030. (deltaUpload): New variable.
  16031. (deltaDownload): New variable.
  16032. (addDeltaUpload): New function.
  16033. (resetDeltaUpload): New function.
  16034. (addDeltaDownload): New function.
  16035. (resetDeltaDownload): New function.
  16036. (addPeerUpload): Added a call to addDeltaUpload.
  16037. (addPeerDownload): Added a call to addDeltaDownload.
  16038. * src/Peer.cc
  16039. (shouldBeChoking): Renamed from shouldChoke.
  16040. (resetStatus): New function.
  16041. * src/PeerChokeCommand.h: New class.
  16042. * src/PeerChokeCommand.cc: New class.
  16043. To add lazy upload speed limiter:
  16044. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16045. statistics calculation to TorrentDownloadEngine.
  16046. * src/TorrentConsoleDownloadEngine.cc
  16047. (sendStatistics): Renamed from printStatistics.
  16048. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16049. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16050. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16051. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16052. calculation.
  16053. (sendStatistics): New function as pure virtual function.
  16054. (getUploadSpeed): New function.
  16055. * src/TorrentDownloadEngine.cc
  16056. (initStatistics): New function.
  16057. (calculateSpeed): New function.
  16058. (calculateStatistics): New function.
  16059. * src/SendMessageQueue.h
  16060. (uploadLength): New variable.
  16061. (send): Added an argument.
  16062. (setUploadLimit): New function.
  16063. (getUploadLimit): New function.
  16064. * src/SendMessageQueue.cc
  16065. (send): Added upload speed limiter.
  16066. * src/prefs.h
  16067. (PREF_UPLOAD_LIMIT): New definition.
  16068. * src/PeerInteractionCommand.cc
  16069. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16070. * src/main.cc
  16071. (main): Added --upload-limit option
  16072. For bug fixes:
  16073. * src/main.cc
  16074. (showUsage): Corrected --listen-port help
  16075. Other changes:
  16076. * src/TorrentMan.cc
  16077. (getPeer): Return nullPeer if connection is grather than
  16078. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16079. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16080. To add some useful information to the exception message:
  16081. * src/SocketCore.cc : Updated messages.
  16082. * src/SegmentMan.cc :
  16083. * src/TorrentMan.cc : Updated messages.
  16084. * src/MultiDiskWriter.cc : Updated messages.
  16085. * src/Util.cc : Updated messages.
  16086. * src/AbstractDiskWriter.cc : Updated messages.
  16087. * src/PreAllocationDiskWriter.cc : Updated messages.
  16088. * src/message.cc : Added new messages. Updated some messages.
  16089. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16090. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16091. Updated threshold from 30 to 15.
  16092. * src/AbstractDiskWriter.h (filename): New variable.
  16093. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16094. (createFile): Assigned filename.
  16095. * src/main.cc: Updated the help message for http-auth-scheme.
  16096. * Release 0.4.0
  16097. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16098. To add TrackerUpdateCommand with which replaces
  16099. CompactTrackerResponseProcessor:
  16100. * src/TrackerWatcherCommand.h (req): Removed.
  16101. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16102. if the number of peer connections are less than 30.
  16103. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16104. * src/SegmentMan.h (diskWriter): New function.
  16105. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16106. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16107. (main): Use TrackerUpdateCommand.
  16108. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16109. (req): New variable.
  16110. (setTrackerResponseProcessor): Removed.
  16111. (getTrackerResponseProcessor): Removed.
  16112. (processTrackerResponse): Removed.
  16113. * src/DownloadEngine.h (diskWriter): Removed.
  16114. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16115. to torrentMan->processTrackerResponse().
  16116. To add Util::expandBuffer:
  16117. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16118. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16119. * src/Util.h (expandBuffer): New function.
  16120. To fix the bug that causes segmentation fault when "-l ." is specified
  16121. in command-line option:
  16122. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16123. (openFile): New function.
  16124. (closeFile): New function.
  16125. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16126. (~SimpleLogger): Call closeFile();
  16127. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16128. * src/main.cc (main): Added a check to see logger is configured
  16129. properly.
  16130. To enable HTTP authentication without specifying "--http-auth-scheme"
  16131. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16132. * src/HttpConnection.cc (createRequest): Send Authorization header
  16133. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16134. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16135. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16136. * src/Peer.cc (shouldChoke): Updated algorithm.
  16137. * src/message.h (EX_AUTH_FAILED): New definition.
  16138. (EX_FILE_OPEN): New definition.
  16139. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16140. if status == 401.
  16141. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16142. if req->isTorrent == true.
  16143. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16144. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16145. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16146. (createFile): Updated message.
  16147. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16148. To add a readout of estimated remaining time to normal HTTP/FTP
  16149. downloads:
  16150. * src/ConsoleDownloadEngine.h (startup): New variable.
  16151. (startupLength): New variable.
  16152. (isStartupLengthSet): New variable.
  16153. (avgSpeed): New variable.
  16154. (eta): New variable.
  16155. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16156. estimated remaining time.
  16157. (initStatistics): Initialized newly added variables.
  16158. (calculateStatistics): Calculate average speed and estimated remaining
  16159. time.
  16160. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16161. * src/TrackerDownloadCommand.h: Removed.
  16162. * src/TrackerDownloadCommand.cc: Removed.
  16163. * src/TrackerInitCommand.h: Removed.
  16164. * src/TrackerInitCommand.cc: Removed.
  16165. * src/TrackerUpdateCommand.h: Removed.
  16166. * src/TrackerUpdateCommand.cc: Removed.
  16167. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16168. url written in TrackerInitCommand was moved here. Do not create
  16169. tracker request command if torrentMan->trackers != 0.
  16170. * src/CompactTrackerResponseProcessor.h: New class.
  16171. * src/CompactTrackerResponseProcessor.cc: New class.
  16172. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16173. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16174. Decoupled TorrentDownloadEngine from this.
  16175. * src/SegmentMan.h (init): New function.
  16176. * src/SegmentMan.cc (init): New function.
  16177. * src/TorrentMan.h (responseProcessor): New variable.
  16178. (trackers): New variable.
  16179. (setTrackerResponseProcessor): New function.
  16180. (getTrackerResponseProcessor): New function.
  16181. (processTrackerResponse): New function.
  16182. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16183. (processTrackerResponse): New function.
  16184. * src/main.cc (main): Use ByteArrayDiskWriter and
  16185. CompactTrackerResponseProcessor.
  16186. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16187. processTrackerResponse().
  16188. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16189. readout.
  16190. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16191. which indicates download has completed.
  16192. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16193. (closeFile): fd >= 0, not fd > 0
  16194. * src/main.cc (main): Added short cut for show-files.
  16195. Added short cut for torrent-file.
  16196. Added new command-line option listen-port.
  16197. Updated i18n messages.
  16198. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16199. To add LogFactory which creates singleton logger:
  16200. * src/LogFactory.h: New class.
  16201. * src/LogFactory.cc: New class.
  16202. * src/Command.h (logger): New variable.
  16203. (Constructor): Use LogFactory.
  16204. * src/AbstractCommand.cc: Use Command::logger
  16205. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16206. Use LogFactory.
  16207. * src/SegmentSplitter.h : Made logger protected.
  16208. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16209. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16210. * src/DownloadEngine.h : Made logger protected.
  16211. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16212. * src/PeerInteractionCommand.cc : Use Command::logger.
  16213. * src/HttpResponseCommand.cc : Use Command::logger.
  16214. * src/SegmentMan.h : Made logger private.
  16215. * src/TorrentMan.h : Made logger private.
  16216. * src/TorrentMan.cc : Use LogFactory.
  16217. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16218. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16219. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16220. Use LogFactory.
  16221. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16222. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16223. Use LogFactory.
  16224. * src/DownloadCommand.cc : Use Command::logger.
  16225. * src/PeerAbstractCommand.cc : Use Command::logger.
  16226. * src/PeerListenCommand.cc : Use Command::logger.
  16227. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16228. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16229. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16230. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16231. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16232. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16233. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16234. Use LogFactory.
  16235. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16236. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16237. Use LogFactory.
  16238. * src/main.cc (main): Use LogFactory.
  16239. * src/DiskAdaptor.h (logger): New variable.
  16240. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16241. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16242. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16243. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16244. parameter to a tracker request.
  16245. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16246. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16247. * src/main.cc (setSignalHander): New function.
  16248. (main): Added a handler for SIGTERM.
  16249. (handler): Updated message.
  16250. (torrentHandler): Updated message.
  16251. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16252. * src/TorrentConsoleDownloadEngine.cc
  16253. (onPartialDownloadingCompletes): Renamed as
  16254. onSelectiveDownloadingCompletes.
  16255. (onSelectiveDownloadingCompletes): Updated message.
  16256. To add DiskAdaptor which abstract DiskWriter family:
  16257. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16258. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16259. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16260. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16261. MultiDiskAdaptor.h.
  16262. (readFileEntry): Changed its arguments.
  16263. (setup): setupDiskWriter is merged into this function.
  16264. (setupDiskWriter): Removed.
  16265. (setFileFilter): New function.
  16266. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16267. made in readFileEntry.
  16268. (getFilePath): Removed.
  16269. (getTempFilePath): Removed.
  16270. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16271. (fixFilename): Removed.
  16272. (copySingleFile): Removed.
  16273. (splitMultiFile): Removed.
  16274. (deleteTempFile): Removed.
  16275. (setFileEntriesToDownload): Removed.
  16276. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16277. (isSelectiveDownloadingMode): New function.
  16278. (setAllMultiFileRequestedState): Removed.
  16279. (finishPartialDownloadingMode): Renamed as
  16280. finishSelectiveDownloadingMode.
  16281. (finishSelectiveDownloadingMode): New function.
  16282. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16283. (getSelectedTotalLength): New function.
  16284. (onDownloadComplete): Use diskAdaptor.
  16285. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16286. (Range): Removed.
  16287. (setMultiFileEntries): Renamed as setFileEntries.
  16288. (setFileEntries): New function.
  16289. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16290. (pieceLength): New variable.
  16291. * src/main.cc (printDownloadCompeleteMessage): New function.
  16292. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16293. (main): Renamed torrent-show-files to show-files.
  16294. Rewritten file contents listing.
  16295. * src/TorrentMan.h (FileEntry): Removed.
  16296. (multiFileTopDir): Removed.
  16297. (multiFileEntries): Removed.
  16298. (diskWriter): Removed.
  16299. (diskAdaptor): New variable.
  16300. * src/DefaultDiskWriter.h (totalLength): New variable.
  16301. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16302. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16303. diskWriter.
  16304. * src/TorrentConsoleDownloadEngine.h
  16305. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16306. (partialTotalLength): Renamed as selectedTotalLength.
  16307. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16308. openExistingFile, otherwise call initAndOpenFile.
  16309. (closeFile): fd > 0, not fd != 0.
  16310. * src/DirectDiskAdaptor.h: New class.
  16311. * src/DirectDiskAdaptor.cc: New class.
  16312. * src/MultiDiskAdaptor.h: New class.
  16313. * src/MultiDiskAdaptor.cc: New class.
  16314. * src/CopyDiskAdaptor.h: New class.
  16315. * src/CopyDiskAdaptor.cc: New class.
  16316. * src/DiskAdaptor.h: New class.
  16317. * src/DiskAdaptor.cc: New class.
  16318. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16319. (PREF_SHOW_FILES): New definition.
  16320. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16321. To add the ability to download multi torrent into respective files
  16322. directly:
  16323. * src/DiskWriter.h (openFile): New function.
  16324. (seek): Removed.
  16325. * src/MultiDiskWriter.h: New class.
  16326. * src/MultiDiskWriter.cc: New class.
  16327. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16328. protected.
  16329. (openFile): New function.
  16330. * src/AbstractDiskWriter.cc (openFile): New function.
  16331. * src/prefs.h (V_FALSE): New definition.
  16332. (PREF_DIRECT_FILE_MAPPING): New definition.
  16333. * src/TorrentMan.h (setupDiskWriter): New function.
  16334. (setAllMultiFileRequestedState): New function.
  16335. (onDownloadComplete): New function.
  16336. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16337. (setupDiskWriter): New function.
  16338. (getFilePath): Updated.
  16339. (getTempFilePath): Updated.
  16340. (getSegmentFilePath): Updated.
  16341. (fixFilename): Updated.
  16342. (deleteTempFile): Updated.
  16343. (setAllMultiFileRequestedState): New function.
  16344. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16345. (finishPartialDownloadingMode): Reset requested flags.
  16346. (onDownloadComplete): New function.
  16347. * src/main.cc: Added --direct-file-mapping option.
  16348. Use TorrentMan::setupDiskWriter().
  16349. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16350. onDownloadComplete().
  16351. To fix ETA bug:
  16352. * src/Util.h (difftvsec): New function.
  16353. * src/Util.cc (difftvsec): New function.
  16354. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16355. type of "elapsed" instead of long long int.
  16356. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16357. The updates of statistics takes place every 1 seconds.
  16358. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16359. (calculateSpeed): Changed its argument signature.
  16360. * src/PeerMessage.cc (toString): Fixed message.
  16361. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16362. To print ETA:
  16363. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16364. completion handling when dealing with
  16365. TorrentMan::isPartialDownloadingMode() == true.
  16366. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16367. New function.
  16368. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16369. (sessionDownloadLength): New variable.
  16370. (avgSpeed): New variable.
  16371. (eta): New variable.
  16372. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16373. new variables: eta, avgSpeed, startup.
  16374. (calculateSpeed): Calculate average speed and ETA.
  16375. (printStatistics): Added ETA.
  16376. * src/Util.h (secfmt): New function.
  16377. * src/Util.cc (secfmt): New function.
  16378. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16379. To detect "keep alive" flooding:
  16380. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16381. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16382. variable: keepAliveCount.
  16383. (detectMessageFlooding): Added "keep alive" flooding detection.
  16384. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16385. received.
  16386. To add the ability to download only specified files in multi-file
  16387. torrent:
  16388. * src/BitfieldMan.h (filterBitfield): New variable.
  16389. (filterEnabled): New variable.
  16390. (setFilterBit): New function.
  16391. (enableFilter): New function.
  16392. (disableFilter): New function.
  16393. (isFilterEnabled): New function.
  16394. (getFilteredTotalLength): New function.
  16395. (getCompletedLength): New function.
  16396. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16397. filterBitfield, filterEnabled.
  16398. (CopyConstructor): Added filterBitfield and filterEnabled.
  16399. (operator==): Added filterBitfield and filterEnabled.
  16400. (Destructor): Added filterBitfield.
  16401. (getMissingIndex): Use filterBitfield.
  16402. (getMissingUnusedIndex): Use filterBitfield.
  16403. (getFirstMissingUnusedIndex): Use filterBitfield.
  16404. (getFirstMissingUnusedIndex): Use filterBitfield.
  16405. (getAllMissingIndexes): Use filterBitfield.
  16406. (countMissingBlock): Use filterBitfield.
  16407. (countBlock): Use filterBitfield.
  16408. (setBitInternal): Added new argument on.
  16409. (setUseBit): Use setBitInternal.
  16410. (unsetUseBit): Use setBitInternal.
  16411. (setBit): Use setBitInternal.
  16412. (unsetBit): Use setBitInternal.
  16413. (isAllBitSet): Use filterBitfield.
  16414. (setFilterBit): New function.
  16415. (addFilter): New function.
  16416. (enableFilter): New function.
  16417. (disableFilter): New function.
  16418. (clearFilter): New function.
  16419. (isFilterEnabled): New function.
  16420. (getFilteredTotalLength): New function.
  16421. (getCompletedLength): New function.
  16422. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16423. Initalized newly added variables.
  16424. [FileEntry](offset): New variable.
  16425. [FileEntry](extracted): New variable.
  16426. [FileEntry](requested): New variable.
  16427. (readFileEntry): New function.
  16428. (option): New variable.
  16429. (splitMultiFile): Removed const qualifier.
  16430. (fixFilename): Removed const qualifier.
  16431. (readFileEntryFromMetaInfoFile): New function.
  16432. (finishPartialDownloadingMode): New function.
  16433. (isPartialDownloadingMode): New function.
  16434. (setFileEntriesToDownload): New function.
  16435. (getCompletedLength): New function.
  16436. (getPartialTotalLength): New function.
  16437. * src/TorrentMan.cc (readFileEntry): New function.
  16438. (setup): Use readFileEntry. If no-preallocation option is specified,
  16439. use DefaultDiskWriter.
  16440. (readFileEntryFromMetaInfoFile): New function.
  16441. (fixFilename): Removed const qualifier.
  16442. (splitMultiFile): Removed const qualifier.
  16443. (setFileEntriesToDownload): New function.
  16444. (isPartialDownloadingMode): New function.
  16445. (finishPartialDownloadingMode): New function.
  16446. (getCompletedLength): New function.
  16447. (getPartialTotalLength): New function.
  16448. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16449. New variable.
  16450. (partialTotalLength): New variable.
  16451. (downloadLength): New variable.
  16452. (totalLength): New variable.
  16453. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16454. Added log.
  16455. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16456. partialTotalLength, downloadLength, totalLength.
  16457. (calculate): Calculate downloadLength and totalLength.
  16458. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16459. * src/main.cc (addCommand): Changed argument signature.
  16460. (main): Added new variable: args. Added new option "torrent-show-files"
  16461. "no-preallocation". Usage is not updated yet.
  16462. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16463. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16464. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16465. Attempt to add the ability to listing file entries in a .torrent file.
  16466. This feature is not yet complete.
  16467. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16468. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16469. (getName): New function.
  16470. * src/TorrentMan.h (getMultiFileEntries): New function.
  16471. (getName): New function.
  16472. * src/main.cc (main): Use above 2 funtion.
  16473. * Release 0.3.2
  16474. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16475. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16476. (detectMessageFlooding): Updated threshold value.
  16477. (checkLongTimePeerChoking): Updated timeout value.
  16478. (getNewPieceAndSendInterest): Added debug log.
  16479. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16480. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16481. (getPeer): Updated.
  16482. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16483. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16484. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16485. is localhost.
  16486. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16487. * src/PendingMessage.cc (processMessage): Not to send piece message
  16488. if peer is not interested in the pieces localhost has.
  16489. * src/Peer.cc (shouldChoke): Updated.
  16490. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16491. * src/Util.cc (isPowerOf): New function.
  16492. * src/Util.h (isPowerOf): New function.
  16493. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16494. whether or not it is power of 2.
  16495. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16496. Added new class SendMessageQueue that includes PendingMessages and
  16497. RequestSlotMan.
  16498. * src/SendMessageQueue.h: New class.
  16499. * src/SendMessageQueue.cc: New class.
  16500. * src/PendingMessage.h: Added new member variable blockIndex and its
  16501. accessors.
  16502. (createRequestMessage): Updated.
  16503. * src/PendingMessage.cc (createRequestMessage): Updated.
  16504. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16505. SendMessageQueue.
  16506. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16507. (receiveMessage): Updated with SendMessageQueue.
  16508. (deletePendingPieceMessage): Removed.
  16509. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16510. (sendInterest): Updated with SendMessageQueue.
  16511. (createRequestPendingMessage): Updated with SendMessageQueue.
  16512. (sendMessages): Updated with SendMessageQueue.
  16513. (onAbort): Updated with SendMessageQueue.
  16514. (keepAlive): Updated with SendMessageQueue.
  16515. (beforeSocketCheck): Updated SendMessageQueue.
  16516. * src/PeerInteractionCommand (sendMessages): Shuffle
  16517. missingBLockIndexes before using it.
  16518. Added its own timeout for peer connection.
  16519. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16520. setter.
  16521. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16522. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16523. Added setTimeout() call.
  16524. (executeInternal): Added setTimeout() call.
  16525. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16526. Added timeout.
  16527. (isTimeoutDetected): Updated.
  16528. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16529. option.
  16530. Added *simple* message flooding checker.
  16531. * src/PeerInteractionCommand.cc (executeInternal):
  16532. Added detectMessageFlooding() call.
  16533. (detectMessageFlooding): New function.
  16534. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16535. (beforeSocketCheck): Added detectMessageFlooding() call.
  16536. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16537. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16538. Removed deletePendingPieceMessage(), getRequestSlot(),
  16539. deleteRequestSlot(), deleteAllRequestSlot().
  16540. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16541. Added checkLongTimePeerChoking() call.
  16542. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16543. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16544. if duplicate == false.
  16545. The parameter "uploaded" and "downloaded" in the tracker request are
  16546. the size since the client sent the "started" event to the tracker.
  16547. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16548. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16549. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16550. getSessionDownloadedSize(), getSessionUploadedSize().
  16551. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16552. getSessionUploadedSize() instead of getDownloadedSize(),
  16553. getUploadedSize().
  16554. * src/PendingMessage.cc (processMessage): Do not send request message
  16555. if the peer is choking the client.
  16556. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16557. less than interval.
  16558. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16559. * configure.in: Added gnutls support. Added several CPP macros.
  16560. * m4/openssl.m4: Added.
  16561. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16562. readData(), peekData(). Added gnutls support.
  16563. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16564. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16565. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16566. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16567. Instead, added a check for whether setup method has executed
  16568. successfully.
  16569. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16570. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16571. * src/Makefile.am: Updated.
  16572. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16573. using whether OpenSSL or gcrypt, depending on the result of configure
  16574. script.
  16575. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16576. messageDigest.h.
  16577. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16578. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16579. Fixed memory leak.
  16580. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16581. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16582. Removed instantiation of TrackerInitCommand. Instead,
  16583. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16584. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16585. ENABLE_SSL.
  16586. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16587. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16588. If a piece is already acquired by another command, delete the request
  16589. slots for the piece.
  16590. * src/TrackerUpdateCommand.cc (execute):
  16591. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16592. Added a check whether peer list is null.
  16593. Fixed the bug that causes sending completed event to the tracker
  16594. several times.
  16595. * src/TrackerInitCommand.cc (execute):
  16596. Fixed the bug that causes sending completed event to the tracker
  16597. several times.
  16598. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16599. by using messageDigest.h.
  16600. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16601. * PeerConnection.cc: Replaced log message "keep-alive" with
  16602. "keep alive".
  16603. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16604. localhost long time.
  16605. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16606. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16607. at most 100 failure entry from the list. If with duplicate = false,
  16608. MAX_PEER_LIST is not checked.
  16609. * PeerListenCommand.cc: Fixed the argument order of log message.
  16610. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16611. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16612. Added warn().
  16613. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16614. Implemented warn().
  16615. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16616. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16617. * Request.h: Added AFTER_COMPLETED event.
  16618. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16619. instead of downloaded size and progress(%) after download completes.
  16620. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16621. message to the peer if it is interested in what localhost has
  16622. downloaded.
  16623. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16624. destination instead of just renaming it.
  16625. * TorrentMan.cc: Added deleteTempFile().
  16626. * PeerAbstractCommand.cc: do not stop execution after download
  16627. completes. This makes localhost a seeder.
  16628. * Util.{h,cc}: Added fileCopy().
  16629. * PeerListenCommand.cc: do not stop execution after download completes.
  16630. This makes localhost a seeder.
  16631. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16632. Added TorrentMan::deleteTempFile() to torrentHandler.
  16633. Initialized the variable dir as ".".
  16634. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16635. Deleted renameSingleFile().
  16636. Added copySingleFile(), deleteTempFile().
  16637. * DownloadEngine.h: Added virtual function afterEachIteration().
  16638. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16639. in onEndOfRun() to afterEachIteration().
  16640. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16641. true.
  16642. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16643. In rangedFileCopy(), added try-catch block to properly close file
  16644. descriptors.
  16645. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16646. Added afterEachIteration(), isFilenameFixed().
  16647. * Peer.cc: Changed choking strategy.
  16648. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16649. * TrackerInitCommand.cc: Send completed event only once.
  16650. * DownloadEngine.cc: Added a call to afterEachIteration().
  16651. * TrackerUpdateCommand.cc: Do not stop execution after download
  16652. completes.
  16653. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16654. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16655. received from a tracker.
  16656. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16657. Decreased the number of failure peers to delete to 0(just comment out
  16658. the line).
  16659. * Release 0.3.1
  16660. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16661. * PeerInteractionCommand.cc: added a call to
  16662. TorrentMan::unadvertisePiece in Destructor.
  16663. * PeerInteractionCommand.cc: make have message sent immediately
  16664. if the size of pending message queue is zero.
  16665. * TorrentMan.cc: set the maximum size of peer list to 250.
  16666. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16667. to deque.
  16668. * Util.cc: fixed rangedFileCopy.
  16669. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16670. to Constructor. Also, moved digest cleanup to Destructor.
  16671. * MetaFileUtil.cc: fixed memory leak
  16672. * replaced std::vector with std::deque.
  16673. * AbstractCommand.cc: casted timeout value to long long int.
  16674. * ChunkedEncoding.cc: fixed memory leak.
  16675. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16676. * SleepCommand.cc: casted timeout value to long long int.
  16677. * Data.cc: fixed memory leak.
  16678. * Data.cc: fixed toLLInt().
  16679. * BitfieldMan.cc: fixed memory leak.
  16680. * TorrentMan.cc: initialized storeDir to ".".
  16681. * TorrentMan.cc: fixed memory leak.
  16682. * TorrentMan.cc: corrected file paths of splitted files.
  16683. * PeerAbstractCommand.cc: casted timeout to long long int.
  16684. * main.cc: added delete(req) and delete(te->diskWriter).
  16685. * RequestSlot.cc: casted timeout value to long long int.
  16686. * Request.cc: fixed memory leak.
  16687. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16688. have the piece.
  16689. * Peer.{h,cc}: added hasPiece(int index).
  16690. * main.cc: corrected addCommand.
  16691. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16692. * BitTorrent protocol support added.
  16693. * Release 0.3.0
  16694. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16695. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16696. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16697. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16698. decoding did not work properly.
  16699. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16700. * DownloadEngine.h: included sys/time.h
  16701. * DownloadEngine.cc: remove sys/time.h
  16702. * Makefile.am (SUBDIRS): Add intl.
  16703. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16704. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16705. * main.cc: correct help message for --http-auth-scheme.
  16706. * main.cc: changed e-mail address for bug reports.
  16707. * ja.po: added japanese translation.
  16708. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16709. * SimpleLogger.cc: flush log file instead of stdout.
  16710. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16711. * main.cc: Fixed command-line option: max-tries
  16712. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16713. does not equal to seg.sp.
  16714. * DownloadCommand.cc: If EOF is got from the server and the total size
  16715. of file is not zero, then throw DlRetryEx.
  16716. * main.cc: Set the minium value of min-segment-size to 1024.
  16717. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16718. fails because of a regression since 0.2.0 release.
  16719. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16720. * HttpConnection.cc:
  16721. * common.h: defined the user agent name as macro
  16722. * DownloadEngine.{h, cc}:
  16723. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16724. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16725. * main.cc: Download complete/abort message is now generated by main.
  16726. * Makefile.am (SUBDIRS): Add m4.
  16727. (ACLOCAL_AMFLAGS): New variable.
  16728. (EXTRA_DIST): New variable.
  16729. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16730. * gettext: added gettext functionality
  16731. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16732. * AbstractCommand.cc:
  16733. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16734. unregister its cuid from SegmentMan.
  16735. * DownloadEngine.cc: .aria2 file was written when a downloading
  16736. failed with errors.
  16737. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16738. Added "User-Agent" header to CONNECT proxy request.
  16739. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16740. properly.
  16741. * Logger.h:
  16742. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16743. * ChunkedEncoding.cc: Added #include directive for strings.h
  16744. * Release 0.2.1
  16745. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16746. * Util.{h,cc}: added startsWith().
  16747. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16748. Util::endsWith().
  16749. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16750. * common.h: added #include directive of limit.h.
  16751. * DownloadEngine.cc: added #include directive of sys/time.h and
  16752. algorithm.
  16753. * Exception.h: added #include directive of stdio.h.
  16754. * AbstractCommand.h: added #include directive of sys/time.h.
  16755. * DownloadCommand.h: added #include directive of sys/time.h.
  16756. * *.h: added #include directive of common.h to all base classes.
  16757. subclasses' one was removed.
  16758. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16759. does not define these macros.
  16760. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16761. * Release 0.2.0
  16762. * main.cc:
  16763. * HttpInitiateConnectionCommand.{h,cc}:
  16764. * prefs.h:
  16765. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16766. We can now use GET command in http proxy.
  16767. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16768. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16769. that splits slowest segment of SegmentMan::commands vector.
  16770. This is the default split algorithm of aria2.
  16771. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16772. that splits first segment of SegmentMan::commands vector.
  16773. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16774. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16775. * Segment.h:
  16776. * SegmentMan.cc: Added speed field to Segment.h
  16777. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16778. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16779. * message.h: Change file size related %d to %lld.
  16780. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16781. * FtpInitiateConnectionCommand.{h,cc}:
  16782. * FtpNegotiationCommand.{h,cc}:
  16783. * FtpDownloadCommand.{h,cc}:
  16784. * FtpConnection.{h,cc}: Added FTP support
  16785. * SimpleLogger.cc: Log message now includes time information.
  16786. * main.cc: The value of --http-auth-scheme option is chagned from
  16787. 'BASIC' to 'basic'
  16788. * main.cc: Added --timeout command-line option.
  16789. * main.cc: Added --min-segment-size command-line option.
  16790. * main.cc: Added --max-retries command-line option.
  16791. * prefs.h: option string constants are now defined in prefs.h
  16792. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16793. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16794. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16795. with version 0.1.0's one.
  16796. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16797. * configure.in: Added --enable-ssl option to configure script.
  16798. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16799. cannot permit absoluteURI as Request-URI.
  16800. * HttpConnection.cc: Added Referer support.
  16801. * main.cc: Added referer command-line option.
  16802. * main.cc: Added rety-wait command-line option.
  16803. * Exception.h: Fixed formating bug in Exception::setMsg()
  16804. * SocketCore.{h,cc}:
  16805. * Socket.{h, cc}:
  16806. * Request.cc:
  16807. * InitiateConnectionCommandFactory.cc:
  16808. * HttpRequestCommand.cc: Added HTTPS support.
  16809. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16810. for SocketCore.
  16811. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16812. size is wrong
  16813. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16814. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16815. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16816. * Release 0.1.0