ChangeLog 551 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456
  1. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Refactored.
  3. * src/XmlRpcMethod.cc
  4. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  6. XmlRpcResponse.
  7. * src/HttpServerBodyCommand.cc
  8. * src/Makefile.am
  9. * src/XmlRpcMethod.cc
  10. * src/XmlRpcMethod.h
  11. * src/XmlRpcMethodImpl.cc
  12. * src/XmlRpcResponse.cc
  13. * src/XmlRpcResponse.h
  14. * test/XmlRpcMethodTest.cc
  15. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. In XML-RPC option struct, header and index-out option can take
  17. array as value.
  18. * src/XmlRpcMethod.cc
  19. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Removed unused option member from PeerConnection.
  21. * src/InitiatorMSEHandshakeCommand.cc
  22. * src/PeerConnection.cc
  23. * src/PeerConnection.h
  24. * src/PeerInteractionCommand.cc
  25. * src/PeerReceiveHandshakeCommand.cc
  26. * src/ReceiverMSEHandshakeCommand.cc
  27. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Added "seeder" key to getPeers response.
  29. * src/XmlRpcMethodImpl.cc
  30. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Added addMetalink XML-RPC command.
  32. * src/XmlRpcMethodFactory.cc
  33. * src/XmlRpcMethodImpl.cc
  34. * src/XmlRpcMethodImpl.h
  35. * src/download_helper.cc
  36. * src/download_helper.h
  37. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug that POU peers are never choked in seeding.
  39. * src/BtSeederStateChoke.cc
  40. * src/BtSeederStateChoke.h
  41. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Added web-seeding URI handling in addTorrent command.
  43. * src/XmlRpcMethodImpl.cc
  44. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Added "length" key to getFiles response.
  46. * src/XmlRpcMethodImpl.cc
  47. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Moved --no-netrc option from ftp option section to http/ftp option
  49. section.
  50. * doc/aria2c.1.txt
  51. * src/OptionHandlerFactory.cc
  52. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Removed garbage "\" character before '
  54. * doc/aria2c.1.txt
  55. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Removed garbage "\" character before http.
  57. * doc/aria2c.1.txt
  58. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Documented additional options that can be specified in -i list.
  60. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  61. and --xml-rpc-passwd. Removed --enable-http-server and
  62. --http-server-listen-port.
  63. * doc/aria2c.1.txt
  64. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  66. * src/DefaultPeerStorage.cc
  67. * src/DefaultPeerStorage.h
  68. * src/PeerStorage.h
  69. * src/XmlRpcMethodImpl.cc
  70. * test/MockPeerStorage.h
  71. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Put a call to Socket::isReadable() in try block.
  73. * src/HttpServerBodyCommand.cc
  74. * src/HttpServerCommand.cc
  75. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  77. exception , so it is now in try block.
  78. * src/HttpServerResponseCommand.cc
  79. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Added "amChoking" and "peerChoking" key in getPeers response.
  81. * src/XmlRpcMethodImpl.cc
  82. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Added test case for zero-length filter.
  84. * test/BitfieldManTest.cc
  85. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. getFiles command now returns file data for finished/stopped
  87. downloads.
  88. * src/XmlRpcMethodImpl.cc
  89. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. DownloadResult now has the list of FileEntry. The download
  91. summary displays the path of first selected file and the number of
  92. remaining files for multi-file torrent.
  93. * src/DownloadResult.h
  94. * src/RequestGroup.cc
  95. * src/RequestGroupMan.cc
  96. * test/RequestGroupTest.cc
  97. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Fixed segmentation fault error when no file is selected in
  99. multi-file torrent.
  100. * src/BitfieldMan.cc
  101. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Escaped <,>,& character in XML-RPC response.
  103. * src/XmlRpcMethod.cc
  104. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Throw DlAbortEx instead of FatalException during parsing options
  106. because we don't want for aria2 to quit when bad option is passed
  107. via XML-RPC.
  108. * src/OptionHandlerException.cc
  109. * src/OptionHandlerException.h
  110. * src/OptionHandlerImpl.h
  111. * src/OptionParser.cc
  112. * src/OptionParser.h
  113. * src/PStringSegment.cc
  114. * src/ParameterizedStringParser.cc
  115. * src/download_helper.cc
  116. * test/ParameterizedStringParserTest.cc
  117. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Selecting files are now done in
  119. DefaultBtContext::setFileFileter().
  120. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  121. functions are removed because they are no longer used. Creating
  122. filter in BitfieldMan is done in new funtion
  123. PieceStorage::setupFileFilter()
  124. * src/BtContext.cc
  125. * src/BtContext.h
  126. * src/DefaultBtContext.cc
  127. * src/DefaultBtContext.h
  128. * src/DefaultPieceStorage.cc
  129. * src/DefaultPieceStorage.h
  130. * src/DiskAdaptor.cc
  131. * src/DiskAdaptor.h
  132. * src/PieceStorage.h
  133. * src/RequestGroup.cc
  134. * src/UnknownLengthPieceStorage.h
  135. * src/XmlRpcMethodImpl.cc
  136. * test/DefaultBtContextTest.cc
  137. * test/MockBtContext.h
  138. * test/MockPieceStorage.h
  139. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Fixed compile error on Mac OS X
  141. * src/HttpServer.cc
  142. * src/XmlRpcMethod.h
  143. * src/XmlRpcMethodImpl.cc
  144. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Use std::binary_search instead of std::find
  146. * src/DefaultPieceStorage.cc
  147. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Removed unnecessary BDE() call; leave them to implicit conversion.
  149. * src/XmlRpcMethodImpl.cc
  150. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Return connections and gid in string
  152. * src/XmlRpcMethodImpl.cc
  153. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Renamed addURI as addUri
  155. * src/XmlRpcMethodFactory.cc
  156. * src/XmlRpcMethodImpl.cc
  157. * src/XmlRpcMethodImpl.h
  158. * test/XmlRpcMethodTest.cc
  159. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Renamed addTorrentFile as addTorrent
  161. * src/XmlRpcMethodFactory.cc
  162. * src/XmlRpcMethodImpl.cc
  163. * src/XmlRpcMethodImpl.h
  164. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. The information for files, URIs, peers are removed from the
  166. reponse of TellaActive, TellStatus command because they tend to be
  167. large. Instead they can be retrieved by the dedicated commands:
  168. getFiles, getUris and getPeers respectively.
  169. * src/XmlRpcMethodFactory.cc
  170. * src/XmlRpcMethodImpl.cc
  171. * src/XmlRpcMethodImpl.h
  172. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Removed --max-overall-upload-limit and
  174. --max-overall-download-limit option from listRequestOptions.
  175. * src/download_helper.cc
  176. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Log incoming host in HttpListenCommand.
  178. * src/HttpListenCommand.cc
  179. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  181. --xml-rpc-passwd option.
  182. * src/HttpServer.cc
  183. * src/HttpServer.h
  184. * src/HttpServerCommand.cc
  185. * src/OptionHandlerFactory.cc
  186. * src/prefs.cc
  187. * src/prefs.h
  188. * src/usage_text.h
  189. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  191. processing 0 length request.
  192. * src/HttpServerBodyCommand.cc
  193. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Removed --enable-http-server and --http-server-listen-port
  195. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  196. instead. The original feature for --enable-http-server that
  197. reports download progress in HTML was officially removed. Persist
  198. XML-RPC connection if client supports keep-alive.
  199. * src/DownloadEngineFactory.cc
  200. * src/HttpServerCommand.cc
  201. * src/HttpServerResponseCommand.cc
  202. * src/Makefile.am
  203. * src/Makefile.in
  204. * src/OptionHandlerFactory.cc
  205. * src/RequestGroupMan.cc
  206. * src/main.cc
  207. * src/option_processing.cc
  208. * src/prefs.cc
  209. * src/prefs.h
  210. * src/usage_text.h
  211. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Added "uris" key to the response of tellStatus command. Added
  213. "connections" key to the response of tellStatus and tellActive
  214. command.
  215. * src/XmlRpcMethodImpl.cc
  216. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  218. Added TellStatusXmlRpcMethod. Remove command can now remove
  219. waiting RequestGroup.
  220. * src/RequestGroupMan.cc
  221. * src/RequestGroupMan.h
  222. * src/XmlRpcMethodFactory.cc
  223. * src/XmlRpcMethodImpl.cc
  224. * src/XmlRpcMethodImpl.h
  225. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Initialized _peerId
  227. * src/Peer.cc
  228. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Return fault structure for error. FailXmlRpcMethod is renamed as
  230. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  231. in non-torrent download. Return single param value.
  232. * src/XmlRpcMethod.cc
  233. * src/XmlRpcMethodFactory.cc
  234. * src/XmlRpcMethodImpl.cc
  235. * src/XmlRpcMethodImpl.h
  236. * test/XmlRpcMethodTest.cc
  237. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  239. command.
  240. * src/RequestGroup.cc
  241. * src/RequestGroup.h
  242. * src/RequestGroupMan.cc
  243. * src/XmlRpcMethodImpl.cc
  244. * test/RequestGroupTest.cc
  245. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Added more options that can be specified in -i list and xml-rpc
  247. add* command.
  248. * src/download_helper.h
  249. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. The available options in -i list should be listed in
  251. listRequestOptions().
  252. * src/download_helper.cc
  253. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  255. command.
  256. * src/XmlRpcMethodImpl.cc
  257. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Now RequestGroup has its own copy of Option object. This will help
  259. to give custom option for each RequestGroup.
  260. addTorrentFile command now takes options.
  261. * src/AbstractCommand.cc
  262. * src/AbstractCommand.h
  263. * src/AbstractProxyRequestCommand.cc
  264. * src/ActivePeerConnectionCommand.cc
  265. * src/ActivePeerConnectionCommand.h
  266. * src/AdaptiveURISelector.cc
  267. * src/BtCheckIntegrityEntry.cc
  268. * src/BtDependency.cc
  269. * src/BtDependency.h
  270. * src/BtFileAllocationEntry.cc
  271. * src/BtPostDownloadHandler.cc
  272. * src/CheckIntegrityEntry.cc
  273. * src/DownloadCommand.cc
  274. * src/FtpDownloadCommand.cc
  275. * src/FtpFinishDownloadCommand.cc
  276. * src/FtpInitiateConnectionCommand.cc
  277. * src/FtpNegotiationCommand.cc
  278. * src/HttpInitiateConnectionCommand.cc
  279. * src/HttpRequestCommand.cc
  280. * src/HttpResponseCommand.cc
  281. * src/HttpSkipResponseCommand.cc
  282. * src/InitiateConnectionCommand.cc
  283. * src/InitiateConnectionCommandFactory.cc
  284. * src/InitiatorMSEHandshakeCommand.cc
  285. * src/InitiatorMSEHandshakeCommand.h
  286. * src/Metalink2RequestGroup.cc
  287. * src/Metalink2RequestGroup.h
  288. * src/MetalinkPostDownloadHandler.cc
  289. * src/MultiUrlRequestInfo.cc
  290. * src/MultiUrlRequestInfo.h
  291. * src/PeerAbstractCommand.cc
  292. * src/PeerInteractionCommand.cc
  293. * src/PeerInteractionCommand.h
  294. * src/PeerReceiveHandshakeCommand.cc
  295. * src/PeerReceiveHandshakeCommand.h
  296. * src/RequestGroup.cc
  297. * src/RequestGroup.h
  298. * src/TrackerWatcherCommand.cc
  299. * src/TrackerWatcherCommand.h
  300. * src/XmlRpcMethod.cc
  301. * src/XmlRpcMethod.h
  302. * src/XmlRpcMethodImpl.cc
  303. * src/download_helper.cc
  304. * src/download_helper.h
  305. * src/main.cc
  306. * test/BtDependencyTest.cc
  307. * test/BtPostDownloadHandlerTest.cc
  308. * test/DefaultBtMessageDispatcherTest.cc
  309. * test/DownloadHandlerFactoryTest.cc
  310. * test/DownloadHelperTest.cc
  311. * test/Metalink2RequestGroupTest.cc
  312. * test/MetalinkPostDownloadHandlerTest.cc
  313. * test/RequestGroupManTest.cc
  314. * test/RequestGroupTest.cc
  315. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Added tellActiveStatus xml-rpc command which reports download
  317. status of active downloads.
  318. * src/XmlRpcMethodFactory.cc
  319. * src/XmlRpcMethodImpl.cc
  320. * src/XmlRpcMethodImpl.h
  321. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Added addTorrentFile xml-rpc command which receives uploaded
  323. torrent file and add download for it.
  324. * src/RequestGroupMan.cc
  325. * src/XmlRpcMethodFactory.cc
  326. * src/XmlRpcMethodImpl.cc
  327. * src/XmlRpcMethodImpl.h
  328. * src/download_helper.cc
  329. * src/download_helper.h
  330. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Added remove xml-rpc command which removes specified download.
  332. There is a known issue: the removed unfinished downloads are
  333. reported ERR when aria2 exits. They should be reported as INPR.
  334. * src/RequestGroupMan.cc
  335. * src/RequestGroupMan.h
  336. * src/XmlRpcMethodFactory.cc
  337. * src/XmlRpcMethodImpl.cc
  338. * src/XmlRpcMethodImpl.h
  339. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. If --enable-http-server is enabled, don't stop aria2 when all
  341. download finished and don't quit when no files to download at
  342. start up.
  343. * src/RequestGroupMan.cc
  344. * src/main.cc
  345. * src/option_processing.cc
  346. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Added missing AM_CONDITIONAL
  348. * configure.ac
  349. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Added xml-rpc functionality. Currently only addURI commad is
  351. supported. To enable xml-rpc, run aria2 with
  352. --enable-http-server. This option name is temporal and will be
  353. changed. The feature that reports download progress in html format
  354. is temporarily disabled.
  355. * src/HttpServer.cc
  356. * src/HttpServer.h
  357. * src/HttpServerBodyCommand.cc
  358. * src/HttpServerBodyCommand.h
  359. * src/HttpServerCommand.cc
  360. * src/HttpServerResponseCommand.cc
  361. * src/Makefile.am
  362. * src/OptionParser.cc
  363. * src/OptionParser.h
  364. * src/RequestGroupMan.cc
  365. * src/RequestGroupMan.h
  366. * src/XmlRpcMethod.cc
  367. * src/XmlRpcMethod.h
  368. * src/XmlRpcMethodFactory.cc
  369. * src/XmlRpcMethodFactory.h
  370. * src/XmlRpcMethodImpl.cc
  371. * src/XmlRpcMethodImpl.h
  372. * src/download_helper.cc
  373. * src/download_helper.h
  374. * test/Makefile.am
  375. * test/XmlRpcMethodTest.cc
  376. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Added xml-rpc request parser. The supported value types are:
  378. i4/int, string, double, struct, array, base64. Currently only
  379. libxml2 version is provided.
  380. * src/Xml2XmlRpcRequestProcessor.cc
  381. * src/Xml2XmlRpcRequestProcessor.h
  382. * src/XmlRpcElements.cc
  383. * src/XmlRpcElements.h
  384. * src/XmlRpcRequest.h
  385. * src/XmlRpcRequestParserController.cc
  386. * src/XmlRpcRequestParserController.h
  387. * src/XmlRpcRequestParserState.h
  388. * src/XmlRpcRequestParserStateImpl.cc
  389. * src/XmlRpcRequestParserStateImpl.h
  390. * src/XmlRpcRequestParserStateMachine.cc
  391. * src/XmlRpcRequestParserStateMachine.h
  392. * src/XmlRpcRequestProcessor.h
  393. * test/XmlRpcRequestParserControllerTest.cc
  394. * test/XmlRpcRequestProcessorTest.cc
  395. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. * Release 1.3.3
  397. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Fixed compile error since r1202.
  399. * src/ExpatMetalinkProcessor.cc
  400. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Updated Ukrainian, Russian and Simplified Chinese
  402. translations. Thanks to all translators.
  403. * po/ru.po
  404. * po/uk.po
  405. * po/zh_CN.po
  406. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Pass reference of Option object instead of pointer.
  408. * src/download_helper.cc
  409. * src/download_helper.h
  410. * src/main.cc
  411. * test/DownloadHelperTest.cc
  412. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  414. from option directly. Instead, get them from RequestGroup.
  415. * src/ActivePeerConnectionCommand.cc
  416. * src/ActivePeerConnectionCommand.h
  417. * src/PeerReceiveHandshakeCommand.cc
  418. * src/RequestGroup.h
  419. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Removed unused uploadLimitCheck and uploadLimit from
  421. PeerAbstractCommand. Removed unused maxDownloadLimit from
  422. PeerInteractionCommand.
  423. * src/PeerAbstractCommand.cc
  424. * src/PeerAbstractCommand.h
  425. * src/PeerInteractionCommand.cc
  426. * src/PeerInteractionCommand.h
  427. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Fixed broken file renaming feature since r1202.
  429. * src/FtpNegotiationCommand.cc
  430. * src/FtpNegotiationCommand.h
  431. * src/HttpResponseCommand.cc
  432. * src/RequestGroup.cc
  433. * src/RequestGroup.h
  434. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Removed unused debug log
  436. * src/SocketCore.cc
  437. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Generated configure and Makefile.in using autoconf 2.63 and
  439. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  440. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  441. * configure.ac
  442. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Moved piece statistics stuff to new PieceStatMan class.
  444. Refactored PieceSelector interface.
  445. * src/DefaultPieceStorage.cc
  446. * src/DefaultPieceStorage.h
  447. * src/LongestSequencePieceSelector.cc
  448. * src/LongestSequencePieceSelector.h
  449. * src/Makefile.am
  450. * src/PieceSelector.h
  451. * src/PieceStatMan.cc
  452. * src/PieceStatMan.h
  453. * src/RarestPieceSelector.cc
  454. * src/RarestPieceSelector.h
  455. * src/RequestGroup.cc
  456. * test/DefaultPieceStorageTest.cc
  457. * test/InOrderPieceSelector.h
  458. * test/Makefile.am
  459. * test/PieceStatManTest.cc
  460. * test/RarestPieceSelectorTest.cc
  461. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Added static member _protocolFamily to SocketCore. By default,
  463. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  464. address. Sometime SocketCore::bind() and
  465. SocketCore::establishConnection() use difference protocl family
  466. and latter cannot connect to former. To avoid this situation, we
  467. limit protocol family to AF_INET for unit tests.
  468. * src/SocketCore.cc
  469. * src/SocketCore.h
  470. * test/AllTest.cc
  471. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Avoid std::bad_alloc for negative bencode string length.
  473. * src/bencode.cc
  474. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Supported segmented downloading with chunked transfer encoding and
  476. content-length.
  477. * src/DownloadCommand.cc
  478. * src/HttpResponseCommand.cc
  479. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Bump up version number to 1.3.3
  481. * configure.ac
  482. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  484. from 4096 to 65536 (for insanely large ftp login banners)
  485. * src/FtpConnection.h
  486. * test/FtpConnectionTest.cc
  487. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. In DefaultBtContext::getActualBasePath(), return first
  489. FileEntry::getPath() for single file torrent.
  490. * src/DefaultBtContext.cc
  491. * test/DefaultBtContextTest.cc
  492. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Removed directIOAllowed() from BinaryStream, DiskWriter,
  494. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  495. Removed _directIOAllowed member from DiskWriter.
  496. * src/AbstractDiskWriter.cc
  497. * src/AbstractDiskWriter.h
  498. * src/AbstractSingleDiskAdaptor.cc
  499. * src/AbstractSingleDiskAdaptor.h
  500. * src/BinaryStream.h
  501. * src/ByteArrayDiskWriter.h
  502. * src/DefaultPieceStorage.cc
  503. * src/DiskWriter.h
  504. * src/MultiDiskAdaptor.cc
  505. * src/MultiDiskAdaptor.h
  506. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Now the constructor of AbstractDiskWriter takes filename as an
  508. argument and filename argument is removed from openFile(),
  509. initAndOpenFile(), openExistingFile() interface. storeDir member
  510. and its accessor functions are removed from DiskAdaptor because it
  511. is not used anymore. size() member function of DefaultDiskWriter,
  512. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  513. opening file.
  514. * src/AbstractDiskWriter.cc
  515. * src/AbstractDiskWriter.h
  516. * src/AbstractSingleDiskAdaptor.cc
  517. * src/AbstractSingleDiskAdaptor.h
  518. * src/ByteArrayDiskWriter.cc
  519. * src/ByteArrayDiskWriter.h
  520. * src/ByteArrayDiskWriterFactory.cc
  521. * src/ByteArrayDiskWriterFactory.h
  522. * src/DefaultDiskWriter.cc
  523. * src/DefaultDiskWriter.h
  524. * src/DefaultDiskWriterFactory.cc
  525. * src/DefaultDiskWriterFactory.h
  526. * src/DefaultPieceStorage.cc
  527. * src/DirectDiskAdaptor.cc
  528. * src/DirectDiskAdaptor.h
  529. * src/DiskAdaptor.h
  530. * src/DiskWriter.h
  531. * src/DiskWriterFactory.h
  532. * src/MessageDigestHelper.cc
  533. * src/MultiDiskAdaptor.cc
  534. * src/RequestGroup.cc
  535. * src/UnknownLengthPieceStorage.cc
  536. * src/Util.cc
  537. * test/DefaultDiskWriterTest.cc
  538. * test/DirectDiskAdaptorTest.cc
  539. * test/FallocFileAllocationIteratorTest.cc
  540. * test/MessageDigestHelperTest.cc
  541. * test/MetalinkProcessorTest.cc
  542. * test/MultiDiskAdaptorTest.cc
  543. * test/MultiFileAllocationIteratorTest.cc
  544. * test/SingleFileAllocationIteratorTest.cc
  545. * test/UtilTest.cc
  546. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Fixed the bug that aria2 aborts when --select-file is used. This
  548. bug was introduced in r1199.
  549. * src/MultiDiskAdaptor.cc
  550. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Code cleanup
  552. * test/MockPieceStorage.cc
  553. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Fixed the bug that read-only file with wrong file size will cause
  555. error because it cannot be truncated to the correct size. Now if
  556. file size is different than the expected one, re-open file in
  557. writable mode.
  558. * src/AbstractSingleDiskAdaptor.cc
  559. * src/AbstractSingleDiskAdaptor.h
  560. * src/BtCheckIntegrityEntry.cc
  561. * src/DiskAdaptor.h
  562. * src/MultiDiskAdaptor.h
  563. * src/RequestGroup.cc
  564. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Fixed the bug that with --check-integrity option aria2 reports
  566. downloaded file size is 0 even if some parts of file is correctly
  567. downloaded. This bug is reproducible for the download that a file
  568. includes last piece is missing. This bug doesn't reveal for
  569. single-torrent with file allocation on.
  570. * src/IteratableChecksumValidator.cc
  571. * test/IteratableChecksumValidatorTest.cc
  572. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Avoid circular reference between RequestGroup and AdaptiveURISelector
  574. * src/RequestGroupMan.cc
  575. * src/AdaptiveURISelector.cc
  576. * src/AdaptiveURISelector.h
  577. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. * Release 1.3.2
  579. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Updated README
  581. * README
  582. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Updated Ukrainian translations. Thanks to Alexander10.
  584. * po/uk.po
  585. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Code cleanup
  587. * src/MetalinkParserStateMachine.cc
  588. * src/MetalinkParserStateMachine.h
  589. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  591. and expat simultaneously, MetalinkProcessor is now not base class
  592. and it is directly implemented in XML2SAXMetalinkProcessor and
  593. ExpatMetalinkProcessor.
  594. * src/ExpatMetalinkProcessor.cc
  595. * src/ExpatMetalinkProcessor.h
  596. * src/Makefile.am
  597. * src/MetalinkHelper.cc
  598. * src/MetalinkProcessor.h
  599. * src/MetalinkProcessorFactory.cc: Removed.
  600. * src/MetalinkProcessorFactory.h: Removed
  601. * src/XML2SAXMetalinkProcessor.cc
  602. * src/XML2SAXMetalinkProcessor.h
  603. * test/MetalinkProcessorTest.cc
  604. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Bump up version number to 1.3.2
  606. * configure.ac
  607. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Added missing file.
  609. * test/Makefile.am
  610. * test/url-list-singleFileEndsWithSlash.torrent
  611. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  613. request.
  614. * src/AnnounceList.cc
  615. * src/AnnounceList.h
  616. * src/BDE.cc: Added
  617. * src/BDE.h: Added
  618. * src/DHTAbstractMessage.cc
  619. * src/DHTAbstractMessage.h
  620. * src/DHTAnnouncePeerMessage.cc
  621. * src/DHTAnnouncePeerMessage.h
  622. * src/DHTAnnouncePeerReplyMessage.cc
  623. * src/DHTAnnouncePeerReplyMessage.h
  624. * src/DHTFindNodeMessage.cc
  625. * src/DHTFindNodeMessage.h
  626. * src/DHTFindNodeReplyMessage.cc
  627. * src/DHTFindNodeReplyMessage.h
  628. * src/DHTGetPeersMessage.cc
  629. * src/DHTGetPeersMessage.h
  630. * src/DHTGetPeersReplyMessage.cc
  631. * src/DHTGetPeersReplyMessage.h
  632. * src/DHTMessageFactory.h
  633. * src/DHTMessageFactoryImpl.cc
  634. * src/DHTMessageFactoryImpl.h
  635. * src/DHTMessageReceiver.cc
  636. * src/DHTMessageTracker.cc
  637. * src/DHTMessageTracker.h
  638. * src/DHTPingMessage.cc
  639. * src/DHTPingMessage.h
  640. * src/DHTPingReplyMessage.cc
  641. * src/DHTPingReplyMessage.h
  642. * src/DHTQueryMessage.cc
  643. * src/DHTQueryMessage.h
  644. * src/DHTResponseMessage.cc
  645. * src/DHTResponseMessage.h
  646. * src/DefaultBtAnnounce.cc
  647. * src/DefaultBtContext.cc
  648. * src/DefaultBtContext.h
  649. * src/HandshakeExtensionMessage.cc
  650. * src/Makefile.am
  651. * src/PeerListProcessor.h
  652. * src/UTPexExtensionMessage.cc
  653. * src/bencode.cc
  654. * src/bencode.h
  655. * test/AnnounceListTest.cc
  656. * test/BDETest.cc: Added
  657. * test/BencodeTest.cc
  658. * test/DHTAnnouncePeerMessageTest.cc
  659. * test/DHTAnnouncePeerReplyMessageTest.cc
  660. * test/DHTFindNodeMessageTest.cc
  661. * test/DHTFindNodeReplyMessageTest.cc
  662. * test/DHTGetPeersMessageTest.cc
  663. * test/DHTGetPeersReplyMessageTest.cc
  664. * test/DHTMessageFactoryImplTest.cc
  665. * test/DHTMessageTrackerTest.cc
  666. * test/DHTPingMessageTest.cc
  667. * test/DHTPingReplyMessageTest.cc
  668. * test/Makefile.am
  669. * test/MockDHTMessageFactory.h
  670. * test/PeerListProcessorTest.cc
  671. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Use url-list (web-seeding) only for single-file torrent. This is
  673. basically the same behavior with Metalink file with torrent and
  674. URIs.
  675. * src/RequestGroup.cc
  676. * src/DefaultBtContext.cc
  677. * test/DefaultBtContextTest.cc
  678. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Rewritten expr
  680. * src/array_fun.h
  681. * test/array_funTest.cc
  682. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  684. * src/DefaultBtMessageDispatcher.cc
  685. * src/a2algo.h
  686. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Removed ExtendedMessagingAware. Instead of using inheritance,
  688. added ExtensionMessageRegistry and it is passed to
  689. DefaultExtensionMessageFactory.
  690. * src/DefaultBtInteractive.cc
  691. * src/DefaultBtInteractive.h
  692. * src/DefaultExtensionMessageFactory.cc
  693. * src/DefaultExtensionMessageFactory.h
  694. * src/ExtendedMessagingAware.h: Removed.
  695. * src/ExtensionMessageFactory.h
  696. * src/ExtensionMessageRegistry.h: Added.
  697. * src/Makefile.am
  698. * src/PeerInteractionCommand.cc
  699. * test/DefaultExtensionMessageFactoryTest.cc
  700. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Fixed typo in log messages
  702. * src/MSEHandshake.cc
  703. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Fixed the bug that prevents torrent download from finishing. The
  705. bug doesn't reveal for all torrents. The torrents affected this
  706. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  707. of pieces.
  708. * src/bitfield.h
  709. * test/bitfieldTest.cc
  710. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Code cleanup
  712. * src/PeerListProcessor.h
  713. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Removed RequestGroupAware
  715. * src/AbstractCommand.cc
  716. * src/AbstractCommand.h
  717. * src/ActivePeerConnectionCommand.cc
  718. * src/ActivePeerConnectionCommand.h
  719. * src/DHTGetPeersCommand.cc
  720. * src/DHTGetPeersCommand.h
  721. * src/InitiatorMSEHandshakeCommand.cc
  722. * src/InitiatorMSEHandshakeCommand.h
  723. * src/Makefile.am
  724. * src/PeerInitiateConnectionCommand.cc
  725. * src/PeerInitiateConnectionCommand.h
  726. * src/PeerInteractionCommand.cc
  727. * src/PeerInteractionCommand.h
  728. * src/RealtimeCommand.cc
  729. * src/RealtimeCommand.h
  730. * src/RequestGroupAware.cc: Removed
  731. * src/RequestGroupAware.h: Removed
  732. * src/SeedCheckCommand.cc
  733. * src/SeedCheckCommand.h
  734. * src/SleepCommand.cc
  735. * src/TrackerWatcherCommand.cc
  736. * src/TrackerWatcherCommand.h
  737. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Rewritten PeerListProcessor
  739. * src/PeerListProcessor.h
  740. * src/CompactPeerListProcessor.h: Removed
  741. * src/CompactPeerListProcessor.cc: Removed
  742. * src/DelegatingPeerListProcessor.cc: Removed.
  743. * src/DefaultBtAnnounce.cc
  744. * src/Makefile.am
  745. * src/UTPexExtensionMessage.cc
  746. * src/DefaultPeerListProcessor.h: Removed.
  747. * src/DefaultPeerListProcessor.cc: Removed.
  748. * src/DelegatingPeerListProcessor.h: Removed.
  749. * test/Makefile.am
  750. * test/PeerListProcessorTest.cc
  751. * test/DefaultPeerListProcessorTest.cc: Removed.
  752. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Rewritten RequestGroupMan::calculateStat()
  754. * src/RequestGroupMan.cc
  755. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Removed unnecessary virtual destructor for Request class.
  757. * src/Request.cc
  758. * src/Request.h
  759. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Avoid dynamic_pointer_cast.
  761. * src/DHTGetPeersCommand.cc
  762. * src/DHTGetPeersCommand.h
  763. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  765. BtEvent.
  766. * src/AbstractBtEventListener.h: Removed.
  767. * src/AbstractBtMessage.cc
  768. * src/AbstractBtMessage.h
  769. * src/BtAbortOutstandingRequestEvent.h
  770. * src/BtCancelSendingPieceEvent.h
  771. * src/BtChokedEvent.h: Removed.
  772. * src/BtChokingEvent.h
  773. * src/BtEvent.h: Removed
  774. * src/BtEventListener.h: Removed.
  775. * src/BtMessage.h
  776. * src/BtPieceMessage.cc
  777. * src/BtPieceMessage.h
  778. * src/BtRequestMessage.cc
  779. * src/BtRequestMessage.h
  780. * src/DefaultBtMessageDispatcher.cc
  781. * src/Makefile.am
  782. * src/a2functional.h
  783. * test/BtPieceMessageTest.cc
  784. * test/BtRequestMessageTest.cc
  785. * test/DefaultBtMessageDispatcherTest.cc
  786. * test/MockBtMessage.h
  787. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Code cleanup
  789. * src/RequestGroupMan.cc
  790. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Code cleanup
  792. * src/DownloadCommand.cc
  793. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Fixed segmentation fault when GZipDecoder::decode() returns 0
  795. byte.
  796. * src/DownloadCommand.cc
  797. * src/bitfield.h
  798. * test/bitfieldTest.cc
  799. Fixed the bug that causes infinite loop if broken web server
  800. returns chunked response without last "0" chunk-size marker and
  801. closes connection.
  802. * src/DownloadCommand.cc
  803. Instantiate properly configured HttpDownloadCommand for
  804. non-resumable downlaods.
  805. * src/HttpResponseCommand.cc
  806. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Rewritten array operation functions.
  808. * src/BitfieldMan.cc
  809. * src/array_fun.h
  810. * test/array_funTest.cc
  811. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Removed unused variable 'query'
  813. * src/Request.cc
  814. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  816. accidentally set to false in r1162.
  817. * configure.ac
  818. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Code cleanup
  820. * src/BNode.cc
  821. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Increase prefixLength for the bucket which doesn't own local node
  823. ID when splitting bucket.
  824. * src/DHTBucket.cc
  825. * test/DHTBucketTest.cc
  826. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. * Release 1.3.1
  828. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Bump up version number to 1.3.1
  830. * configure.ac
  831. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Removed unused variable checkPoint. Also removed include directive
  833. for TimeA2.h.
  834. * src/SeedCheckCommand.h
  835. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Fixed the bug that upload limit exceeds the value specified in
  837. --seed-ratio option depending on the timing of the execution of
  838. SeedCheckCommand.
  839. * src/SeedCheckCommand.cc
  840. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed the bug that removed peer's session upload/download length
  842. are counted twice in _cachedTransferStat before it is
  843. re-calculated. This affected the calculation of shara ratio,
  844. resulting aria2 wrongly determines that specified share ratio is
  845. reached. Also fixed the typo in calculateStatFor function name.
  846. * src/BtSetup.cc
  847. * src/DefaultPeerStorage.cc
  848. * src/ShareRatioSeedCriteria.h
  849. * test/ShareRatioSeedCriteriaTest.cc
  850. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. * Release 1.3.0
  852. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  854. Nynorsk translations. Thanks to all translators.
  855. * po/es.po
  856. * po/ja.po
  857. * po/nn.po
  858. * po/ru.po
  859. * po/uk.po
  860. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Rewritten isInRange()
  862. * src/DHTBucket.cc
  863. * test/DHTBucketTest.cc
  864. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Fixed typo
  866. * doc/aria2c.1.txt
  867. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  869. malloc/realloc is not used.
  870. * src/configure.ac
  871. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. BitfieldMan::getMissingIndexes family functions now takes unsigned
  873. char* bitfield instead of stl container for efficiency.
  874. PieceSelector::select now takes this
  875. bitfield. RarestPieceSelector::select now also performs
  876. efficiently for this change. bitfield namespace is introduced and
  877. it has several helper functions to handle basic bitfield
  878. operations such as test, count set bits, etc.
  879. * src/BitfieldMan.cc
  880. * src/BitfieldMan.h
  881. * src/DefaultBtRequestFactory.cc
  882. * src/DefaultPieceStorage.cc
  883. * src/DefaultPieceStorage.h
  884. * src/LongestSequencePieceSelector.cc
  885. * src/LongestSequencePieceSelector.h
  886. * src/Makefile.am
  887. * src/Piece.cc
  888. * src/Piece.h
  889. * src/PieceSelector.h
  890. * src/RarestPieceSelector.cc
  891. * src/RarestPieceSelector.h
  892. * src/Util.cc
  893. * src/Util.h
  894. * src/bitfield.h
  895. * test/BitfieldManTest.cc
  896. * test/LongestSequencePieceSelectorTest.cc
  897. * test/Makefile.am
  898. * test/RarestPieceSelectorTest.cc
  899. * test/UtilTest.cc
  900. * test/bitfieldTest.cc
  901. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Made accepted socket non-block.
  903. * src/FtpNegotiationCommand.cc
  904. * src/HttpListenCommand.cc
  905. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Guarded #ifdef HAVE_POSIX_FALLOCATE
  907. * src/AbstractSingleDiskAdaptor.cc
  908. * src/DefaultPieceStorage.cc
  909. * src/DiskAdaptor.h
  910. * src/DiskAdaptor.h
  911. * src/MultiFileAllocationIterator.cc
  912. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Run
  914. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  915. in every 1 sec. The timeout of RequestSlot is 60s by default and
  916. it doesn't need to be called every time when
  917. DefaultBtInteractive::doInteractionProcessing() is called.
  918. * src/DefaultBtInteractive.cc
  919. * src/DefaultBtInteractive.h
  920. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Documented 'falloc' in man page.
  922. * doc/aria2c.1.txt
  923. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Updated doc
  925. * src/usage_text.h
  926. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Added 'falloc' parameter for --file-allocation option. 'falloc'
  928. allocation mode uses posix_fallocate() system call to allocate
  929. file on disk. If you are using newer file systems such as ext4
  930. (with extents support), btrfs or xfs, 'falloc' is your best
  931. choice. It allocates large(few GiB) files almost instantly. Don't
  932. use 'falloc' with legacy file systems such as ext3 because it
  933. takes almost same time as 'prealloc' and it blocks aria2 entirely
  934. until allocation finishes. 'falloc' may not be available if your
  935. system doesn't have posix_fallocate() system call.
  936. * configure.ac
  937. * src/AbstractDiskWriter.cc
  938. * src/AbstractDiskWriter.h
  939. * src/AbstractSingleDiskAdaptor.cc
  940. * src/BinaryStream.h
  941. * src/BtCheckIntegrityEntry.cc
  942. * src/ByteArrayDiskWriter.h
  943. * src/CheckIntegrityEntry.cc
  944. * src/CheckIntegrityEntry.h
  945. * src/DefaultPieceStorage.cc
  946. * src/DiskAdaptor.cc
  947. * src/DiskAdaptor.h
  948. * src/DiskWriter.h
  949. * src/FallocFileAllocationIterator.cc
  950. * src/FallocFileAllocationIterator.h
  951. * src/FileAllocationEntry.cc
  952. * src/FileAllocationEntry.h
  953. * src/Makefile.am
  954. * src/MultiFileAllocationIterator.cc
  955. * src/MultiFileAllocationIterator.h
  956. * src/OptionHandlerFactory.cc
  957. * src/RequestGroup.cc
  958. * src/StreamCheckIntegrityEntry.cc
  959. * src/prefs.cc
  960. * src/prefs.h
  961. * src/usage_text.h
  962. * test/FallocFileAllocationIteratorTest.cc
  963. * test/Makefile.am
  964. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Removed duplicate enableDirectIO() call.
  966. * src/MultiFileAllocationIterator.cc
  967. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  969. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  970. cost of std::rotate().
  971. * src/RarestPieceSelector.cc
  972. * src/RarestPieceSelector.h
  973. * test/RarestPieceSelectorTest.cc
  974. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Updated usage doc for --bt-tracker-interval option.
  976. * src/usage_text.h
  977. * doc/aria2c.1.txt
  978. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Documented --bt-tracker-interval option in man page.
  980. * doc/aria2c.1.txt
  981. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Added an option to specify the interval between tracker requests.
  983. If non-zero value is specified, aria2 uses it and ignores the
  984. interval value in the response of tracker. If zero is specified,
  985. aria2 determines the inteval value based on the tarcker response
  986. and download progress.
  987. * src/DefaultBtAnnounce.cc
  988. * src/DefaultBtAnnounce.h
  989. * src/OptionHandlerFactory.cc
  990. * src/RequestGroup.cc
  991. * src/prefs.cc
  992. * src/prefs.h
  993. * src/usage_text.h
  994. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Added operator+=, operator-=, operator-
  996. * src/TransferStat.cc
  997. * src/TransferStat.h
  998. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Refactored RarestPieceSelector to reduce CPU load, especially for
  1000. addPieceStats.
  1001. * src/RarestPieceSelector.cc
  1002. * src/RarestPieceSelector.h
  1003. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1005. getAllMissingBlockIndexes to reduce a call to
  1006. array_function_base::operator[].
  1007. * src/BitfieldMan.cc
  1008. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Cached TransferStat/download speed to avoid to sum them up in each
  1010. call.
  1011. * src/DefaultPeerStorage.cc
  1012. * src/DefaultPeerStorage.h
  1013. * src/SegmentMan.cc
  1014. * src/SegmentMan.h
  1015. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Typedefed cuid_t as int32_t in Command.h
  1017. * src/CUIDCounter.h
  1018. * src/Command.cc
  1019. * src/Command.h
  1020. * src/DownloadEngine.cc
  1021. * src/DownloadEngine.h
  1022. * src/PeerStat.h
  1023. * src/SegmentMan.cc
  1024. * src/SegmentMan.h
  1025. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Reduced the number of calls to PeerStorage::calculateStat() and
  1027. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1028. transfer rate.
  1029. * src/DefaultBtInteractive.cc
  1030. * src/DefaultBtMessageDispatcher.cc
  1031. * src/DefaultPeerStorage.cc
  1032. * src/DefaultPeerStorage.h
  1033. * src/DownloadCommand.cc
  1034. * src/DownloadEngine.cc
  1035. * src/PeerStorage.h
  1036. * src/SegmentMan.cc
  1037. * src/SegmentMan.h
  1038. * test/MockPeerStorage.h
  1039. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Prepended _dir+"/" after joining path elements in torrent file.
  1041. * src/DefaultBtContext.cc
  1042. * test/DefaultBtContextTest.cc
  1043. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added missing IndexBtMessageValidator.h
  1045. * src/Makefile.am
  1046. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1048. Chinese translations. Thank you for contributing our project.
  1049. * po/id.po
  1050. * po/it.po
  1051. * po/ru.po
  1052. * po/uk.po
  1053. * po/zh_CN.po
  1054. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Updated README
  1056. * README
  1057. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Bump up version number to 1.3.0
  1059. * configure.ac
  1060. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Updated doc
  1062. * src/DefaultBtContext.h
  1063. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Slice/joinPath for name of single torrent.
  1065. * src/DefaultBtContext.cc
  1066. * test/DefaultBtContextTest.cc
  1067. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Updated man page: Documented --dry-run and --index-out
  1069. options. Changed the default value of --uri-selector and
  1070. --http-auth-challenge options. Removed --direct-file-mapping
  1071. option. Added example for --index-out
  1072. * doc/aria2c.1.txt
  1073. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Updated TEXT_DRY_RUN
  1075. * src/usage_text.h
  1076. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Changed the default value of --uri-selector option from 'inorder'
  1078. to 'feedback'
  1079. * src/OptionHandlerFactory.cc
  1080. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Included current URI in exception message.
  1082. * src/AbstractCommand.cc
  1083. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Renamed ServerStatURISelector as FeedbackURISelector.
  1085. * src/FeedbackURISelector.cc
  1086. * src/FeedbackURISelector.h
  1087. * src/Makefile.am
  1088. * src/RequestGroupMan.cc
  1089. * src/ServerStatURISelector.cc
  1090. * src/ServerStatURISelector.h
  1091. * test/FeedbackURISelectorTest.cc
  1092. * test/Makefile.am
  1093. * test/ServerStatURISelectorTest.cc
  1094. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1096. all URIs are tested and their timeout is not reached.
  1097. * src/AdaptiveURISelector.cc
  1098. * src/AdaptiveURISelector.h
  1099. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Changed the default value of --http-auth-challenge option to false.
  1101. * src/OptionHandlerFactory.cc
  1102. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Reuse URIs when all unused URIs run out.
  1104. * src/OptionHandlerFactory.cc
  1105. * src/RequestGroup.cc
  1106. * src/prefs.cc
  1107. * src/prefs.h
  1108. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1110. and BtRejectMessage are derived from RangeBtMessage class.
  1111. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1112. derived from IndexBtMessage class. BtChokeMessage,
  1113. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1114. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1115. ZeroBtMessage class.
  1116. * src/AbstractBtMessage.cc
  1117. * src/AbstractBtMessage.h
  1118. * src/BtAllowedFastMessage.cc
  1119. * src/BtAllowedFastMessage.h
  1120. * src/BtAllowedFastMessageValidator.h: Removed
  1121. * src/BtBitfieldMessage.cc
  1122. * src/BtBitfieldMessage.h
  1123. * src/BtCancelMessage.cc
  1124. * src/BtCancelMessage.h
  1125. * src/BtCancelMessageValidator.h: Removed
  1126. * src/BtChokeMessage.cc
  1127. * src/BtChokeMessage.h
  1128. * src/BtExtendedMessage.cc
  1129. * src/BtExtendedMessage.h
  1130. * src/BtHandshakeMessage.cc
  1131. * src/BtHandshakeMessage.h
  1132. * src/BtHaveAllMessage.cc
  1133. * src/BtHaveAllMessage.h
  1134. * src/BtHaveMessage.cc
  1135. * src/BtHaveMessage.h
  1136. * src/BtHaveMessageValidator.h: Removed
  1137. * src/BtHaveNoneMessage.cc
  1138. * src/BtHaveNoneMessage.h
  1139. * src/BtInterestedMessage.cc
  1140. * src/BtInterestedMessage.h
  1141. * src/BtKeepAliveMessage.cc
  1142. * src/BtKeepAliveMessage.h
  1143. * src/BtNotInterestedMessage.cc
  1144. * src/BtNotInterestedMessage.h
  1145. * src/BtPieceMessage.cc
  1146. * src/BtPieceMessage.h
  1147. * src/BtPortMessage.cc
  1148. * src/BtPortMessage.h
  1149. * src/BtRejectMessage.cc
  1150. * src/BtRejectMessage.h
  1151. * src/BtRejectMessageValidator.h: Removed
  1152. * src/BtRequestMessage.cc
  1153. * src/BtRequestMessage.h
  1154. * src/BtRequestMessageValidator.h: Removed
  1155. * src/BtSuggestPieceMessage.cc
  1156. * src/BtSuggestPieceMessage.h
  1157. * src/BtSuggestPieceMessageValidator.h: Removed
  1158. * src/BtUnchokeMessage.cc
  1159. * src/BtUnchokeMessage.h
  1160. * src/DefaultBtMessageFactory.cc
  1161. * src/IndexBtMessage.cc
  1162. * src/IndexBtMessage.h
  1163. * src/IndexBtMessageValidator.h
  1164. * src/Makefile.am
  1165. * src/PeerMessageUtil.cc
  1166. * src/PeerMessageUtil.h
  1167. * src/RangeBtMessage.cc
  1168. * src/RangeBtMessage.h
  1169. * src/RangeBtMessageValidator.h
  1170. * src/SimpleBtMessage.cc
  1171. * src/SimpleBtMessage.h
  1172. * src/ZeroBtMessage.cc
  1173. * src/ZeroBtMessage.h
  1174. * test/BtRequestMessageTest.cc
  1175. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Reverted usage_text.h to r1093 to avoid to lose translated
  1177. messages.
  1178. * src/usage_text.h
  1179. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1181. declared as non-const previously is now const and defined in class
  1182. definition.
  1183. * src/AbstractBtMessage.cc
  1184. * src/AbstractBtMessage.h
  1185. * src/BtAllowedFastMessage.cc
  1186. * src/BtAllowedFastMessage.h
  1187. * src/BtBitfieldMessage.h
  1188. * src/BtCancelMessage.cc
  1189. * src/BtCancelMessage.h
  1190. * src/BtChokeMessage.cc
  1191. * src/BtChokeMessage.h
  1192. * src/BtExtendedMessage.cc
  1193. * src/BtExtendedMessage.h
  1194. * src/BtHandshakeMessage.cc
  1195. * src/BtHandshakeMessage.h
  1196. * src/BtHaveAllMessage.cc
  1197. * src/BtHaveAllMessage.h
  1198. * src/BtHaveMessage.cc
  1199. * src/BtHaveMessage.h
  1200. * src/BtHaveNoneMessage.cc
  1201. * src/BtHaveNoneMessage.h
  1202. * src/BtInterestedMessage.cc
  1203. * src/BtInterestedMessage.h
  1204. * src/BtKeepAliveMessage.cc
  1205. * src/BtKeepAliveMessage.h
  1206. * src/BtMessage.h
  1207. * src/BtNotInterestedMessage.cc
  1208. * src/BtNotInterestedMessage.h
  1209. * src/BtPieceMessage.h
  1210. * src/BtPortMessage.cc
  1211. * src/BtPortMessage.h
  1212. * src/BtRejectMessage.cc
  1213. * src/BtRejectMessage.h
  1214. * src/BtRequestMessage.cc
  1215. * src/BtRequestMessage.h
  1216. * src/BtSuggestPieceMessage.cc
  1217. * src/BtSuggestPieceMessage.h
  1218. * src/BtUnchokeMessage.cc
  1219. * src/BtUnchokeMessage.h
  1220. * src/SimpleBtMessage.cc
  1221. * src/SimpleBtMessage.h
  1222. * test/MockBtMessage.h
  1223. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Use FileEntry::exists()
  1225. * src/MultiDiskAdaptor.cc
  1226. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Added exists()
  1228. * src/FileEntry.cc
  1229. * src/FileEntry.h
  1230. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Added missing prefix dir.
  1232. * src/download_helper.cc
  1233. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1235. * src/CopyDiskAdaptor.cc: Removed
  1236. * src/CopyDiskAdaptor.h: Removed
  1237. * src/DefaultPieceStorage.cc
  1238. * src/Makefile.am
  1239. * src/OptionHandlerFactory.cc
  1240. * src/prefs.cc
  1241. * src/prefs.h
  1242. * src/usage_text.h
  1243. * test/CopyDiskAdaptorTest.cc: Removed
  1244. * test/Makefile.am
  1245. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Rewritten isSameFileBeingDownloaded()
  1247. * src/RequestGroupMan.cc
  1248. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Removed getName() from DownloadContext. getName() is declared in
  1250. BtContext.
  1251. * src/BtContext.h
  1252. * src/DownloadContext.h
  1253. * src/SingleFileDownloadContext.cc
  1254. * src/SingleFileDownloadContext.h
  1255. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1256. in AbstractSingleDiskAdaptor.
  1257. * src/AbstractSingleDiskAdaptor.h
  1258. * src/DiskAdaptor.h
  1259. * src/MultiDiskAdaptor.h
  1260. * src/RequestGroup.cc
  1261. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1262. MultiDiskAdaptor.
  1263. * src/DefaultPieceStorage.cc
  1264. * src/MultiDiskAdaptor.cc
  1265. * src/MultiDiskAdaptor.h
  1266. * test/MultiDiskAdaptorTest.cc
  1267. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. FileEntry::getPath() contains store(top level) directory to
  1269. simplify path handling operation. In the previous implementation,
  1270. store directory is concatenated to FileEntry::getPath() in
  1271. DownloadContext.
  1272. * src/BtDependency.cc
  1273. * src/BtPostDownloadHandler.cc
  1274. * src/CopyDiskAdaptor.cc
  1275. * src/DefaultBtContext.cc
  1276. * src/DirectDiskAdaptor.cc
  1277. * src/FileEntry.cc
  1278. * src/FileEntry.h
  1279. * src/FtpNegotiationCommand.cc
  1280. * src/HttpResponse.cc
  1281. * src/HttpResponseCommand.cc
  1282. * src/Metalink2RequestGroup.cc
  1283. * src/MultiDiskAdaptor.cc
  1284. * src/MultiDiskAdaptor.h
  1285. * src/MultiFileAllocationIterator.cc
  1286. * src/RequestGroup.cc
  1287. * src/SingleFileDownloadContext.cc
  1288. * src/SingleFileDownloadContext.h
  1289. * src/download_helper.cc
  1290. * test/BtDependencyTest.cc
  1291. * test/CopyDiskAdaptorTest.cc
  1292. * test/DefaultBtContextTest.cc
  1293. * test/DefaultBtProgressInfoFileTest.cc
  1294. * test/DirectDiskAdaptorTest.cc
  1295. * test/DownloadHelperTest.cc
  1296. * test/FileEntryTest.cc
  1297. * test/MultiDiskAdaptorTest.cc
  1298. * test/MultiFileAllocationIteratorTest.cc
  1299. * test/RequestGroupTest.cc
  1300. * test/SingleFileDownloadContextTest.cc
  1301. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Fixed compiler warning
  1303. * src/download_helper.cc
  1304. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Throw exception if same infohash torrent is now downloading.
  1306. * src/RequestGroup.cc
  1307. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Added --dry-run option. In this mode, aria2 just checks whether
  1309. the remote file is available and doesn't download data. This
  1310. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1311. are canceled in this mode.
  1312. * src/FtpNegotiationCommand.cc
  1313. * src/HttpResponseCommand.cc
  1314. * src/HttpResponseCommand.h
  1315. * src/OptionHandlerFactory.cc
  1316. * src/RequestGroup.cc
  1317. * src/RequestGroupMan.cc
  1318. * src/prefs.cc
  1319. * src/prefs.h
  1320. * src/usage_text.h
  1321. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Fixed compiler waring
  1323. * test/UriListParserTest.cc
  1324. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Parse options in -i list using OptionParser.
  1326. * src/UriListParser.cc
  1327. * src/UriListParser.h
  1328. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Don't reset URI in retry to avoid additional round trips because
  1330. of redirects.
  1331. * src/AbstractCommand.cc
  1332. * src/OptionHandlerFactory.cc
  1333. * src/prefs.cc
  1334. * src/prefs.h
  1335. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Declared hide() in OptionHandler.
  1337. * src/NameMatchOptionHandler.h
  1338. * src/OptionHandler.h
  1339. * src/OptionHandlerImpl.h
  1340. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Updated doc
  1342. * src/Peer.h
  1343. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Added log message in setStatusInternal()
  1345. * src/ServerStat.cc
  1346. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1348. effectively exclude failed server.
  1349. * src/AbstractCommand.cc
  1350. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Added --index-out option to specify each file path for torrent.
  1352. Here index shown in --show-files option is used to specify which
  1353. file path should be altered. For example, to change the file path
  1354. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1355. option multiple times: --index-out=1=aria2.tar.bz2
  1356. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1357. available. This option can be specified in -i list.
  1358. * src/DefaultBtContext.cc
  1359. * src/DefaultBtContext.h
  1360. * src/MultiDiskAdaptor.cc
  1361. * src/MultiDiskAdaptor.h
  1362. * src/MultiFileAllocationIterator.cc
  1363. * src/OptionHandlerFactory.cc
  1364. * src/OptionHandlerImpl.h
  1365. * src/Util.cc
  1366. * src/Util.h
  1367. * src/download_helper.cc
  1368. * src/prefs.cc
  1369. * src/prefs.h
  1370. * src/usage_text.h
  1371. * test/DefaultBtContextTest.cc
  1372. * test/MultiDiskAdaptorTest.cc
  1373. * test/MultiFileAllocationIteratorTest.cc
  1374. * test/UtilTest.cc
  1375. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Use Util::pathJoin()
  1377. * src/MetalinkParserController.cc
  1378. * test/test.xml
  1379. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Use Util::pathJoin()
  1381. * src/DefaultBtContext.cc
  1382. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Added Util::pathJoin()
  1384. * src/Util.h
  1385. * test/UtilTest.cc
  1386. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Applied basename function to remove directory element in
  1388. content-disposition value.
  1389. Return empty string if content-disposition value is ".." or ".".
  1390. * src/Util.cc
  1391. * test/UtilTest.cc
  1392. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Added --max-overall-download-limit in man page.
  1394. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1395. * doc/aria2c.1.txt
  1396. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Added --max-overall-download-limit option. Now --max-upload-limit
  1398. option is not ignored when --max-overall-upload-limit option has
  1399. non-zero value. aria2 checks download(upload) speed in the order:
  1400. first checks overall speed limit and if it is not exceeded, then
  1401. checks speed limit per download. Thus you can specify both
  1402. value. For example, set --max-overall-download-limit=1M and
  1403. --max-download-limit=500K to prevent from one download from eating
  1404. all overall speed limit.
  1405. * src/DefaultBtInteractive.cc
  1406. * src/DefaultBtInteractive.h
  1407. * src/DefaultBtMessageDispatcher.cc
  1408. * src/DefaultBtMessageDispatcher.h
  1409. * src/DownloadCommand.cc
  1410. * src/DownloadCommand.h
  1411. * src/FtpNegotiationCommand.cc
  1412. * src/HttpResponseCommand.cc
  1413. * src/OptionHandlerFactory.cc
  1414. * src/PeerInteractionCommand.cc
  1415. * src/RequestGroup.cc
  1416. * src/RequestGroup.h
  1417. * src/RequestGroupMan.cc
  1418. * src/RequestGroupMan.h
  1419. * src/prefs.cc
  1420. * src/prefs.h
  1421. * src/usage_text.h
  1422. * test/DefaultBtMessageDispatcherTest.cc
  1423. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Documented select-file option in Input File section.
  1425. Documented --http-auth-challenge option.
  1426. * doc/aria2c.1.txt
  1427. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Now select-file can be specified in the uri list(-i list).
  1429. * src/BtContext.cc
  1430. * src/BtContext.h
  1431. * src/RequestGroup.cc
  1432. * src/Sequence.h
  1433. * src/download_helper.cc
  1434. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Made the upper value of --max-concurrent-downloads options unlimited.
  1436. * src/OptionHandlerFactory.cc
  1437. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Fixed the bug that disk writer is not created even if it shares
  1439. same piece with the preceding file if the length of previous file
  1440. is 0.
  1441. * src/MultiDiskAdaptor.cc
  1442. * test/MultiDiskAdaptorTest.cc
  1443. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. In BitTorrent, Open files in read-only mode for hash check. After
  1445. that, re-open file in read/write mode only when the download is
  1446. not finished.
  1447. * src/AbstractDiskWriter.cc
  1448. * src/AbstractDiskWriter.h
  1449. * src/AbstractSingleDiskAdaptor.cc
  1450. * src/AbstractSingleDiskAdaptor.h
  1451. * src/BtCheckIntegrityEntry.cc
  1452. * src/DiskAdaptor.h
  1453. * src/DiskWriter.h
  1454. * src/MultiDiskAdaptor.cc
  1455. * src/MultiDiskAdaptor.h
  1456. * src/RequestGroup.cc
  1457. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Added --http-auth-challenge option. If it is set to true(by
  1459. default), aria2 sends HTTP authorization header only when it is
  1460. requested by the server. If false is set, then authorization
  1461. header is always sent to the server. This is useful for servers
  1462. that don't respond 401 code when authentication is required.
  1463. There is an exception: if username and password are embedded in
  1464. URI, authorization header is always sent to the server regardless
  1465. of this option.
  1466. * src/AuthConfigFactory.cc
  1467. * src/HttpSkipResponseCommand.cc
  1468. * src/OptionHandlerFactory.cc
  1469. * src/prefs.cc
  1470. * src/prefs.h
  1471. * src/usage_text.h
  1472. * test/AuthConfigFactoryTest.cc
  1473. * test/HttpRequestTest.cc
  1474. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. * Release 1.2.0
  1476. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1478. Thanks to all translators.
  1479. * po/es.po
  1480. * po/ja.po
  1481. * po/ru.po
  1482. * po/uk.po
  1483. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Call deleteSocketForReadCheck() before socket is closed.
  1485. * src/HttpListenCommand.cc
  1486. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Defined virtual destructor for BObject.
  1488. * src/bencode.h
  1489. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Rewritten BDE to make it efficient.
  1491. * src/bencode.cc
  1492. * src/bencode.h
  1493. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Removed function throw list.
  1495. * src/bencode.cc
  1496. * src/bencode.h
  1497. * test/BencodeTest.cc
  1498. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Enclosed all URLs in double quotes in command-line examples.
  1500. * doc/aria2c.1.txt
  1501. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Updated reference/see also section.
  1503. * README
  1504. * doc/aria2c.1.txt
  1505. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Reorganized man page based on man man-pages.
  1507. * doc/aria2c.1.txt
  1508. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1510. because same documents are available in man page. Added
  1511. References section.
  1512. * README
  1513. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1515. PERFORMANCE PROFILE section.
  1516. * doc/aria2c.1.txt
  1517. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Rewritten the section for configuration file.
  1519. * README
  1520. * doc/aria2c.1.txt
  1521. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Fixed the segmentation fault during execution of choking algorithm
  1523. in leecher state because of broken compare operator
  1524. implementation.
  1525. * src/BtLeecherStateChoke.cc
  1526. * src/BtLeecherStateChoke.h
  1527. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1528. Open file in binary mode.
  1529. * src/CookieStorage.cc
  1530. * src/DHTSetup.cc
  1531. * src/DHTUtil.cc
  1532. * src/Netrc.cc
  1533. * src/NsCookieParser.cc
  1534. * src/ProtocolDetector.cc
  1535. * src/RequestGroupMan.cc
  1536. * src/Signature.cc
  1537. * src/bencode.cc
  1538. * src/download_helper.cc
  1539. * src/option_processing.cc
  1540. * test/CookieParserTest.cc
  1541. * test/DefaultBtProgressInfoFileTest.cc
  1542. * test/FileTest.cc
  1543. * test/GZipDecoderTest.cc
  1544. * test/RequestGroupManTest.cc
  1545. * test/SignatureTest.cc
  1546. * test/SingleFileAllocationIteratorTest.cc
  1547. * test/UriListParserTest.cc
  1548. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Removed operator[] because it is ambiguous with built-in []
  1550. operator.
  1551. * src/array_fun.h
  1552. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Fixed compile error
  1554. * src/OptionParser.cc
  1555. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Added missing call to arrayWrapperConst
  1557. * test/array_funTest.cc
  1558. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Use array_wrapper instead of array_ptr.
  1560. * src/DHTRoutingTableDeserializer.cc
  1561. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1563. * src/array_fun.h
  1564. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Added array_wrapper template.
  1566. * src/array_fun.h
  1567. * test/array_funTest.cc
  1568. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Use operator T* of array_ptr.
  1570. * src/OptionParser.cc
  1571. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Use localhost instead of 127.0.0.1
  1573. * test/FtpConnectionTest.cc
  1574. * test/MSEHandshakeTest.cc
  1575. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Added operator T*
  1577. * src/array_fun.h
  1578. * test/array_funTest.cc
  1579. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Use dynamically allocated char array to detect memory access
  1581. violation.
  1582. * src/DHTRoutingTableDeserializer.cc
  1583. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1585. defined.
  1586. * src/PeerMessageUtil.cc
  1587. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1589. * configure.ac
  1590. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Added a check to see struct sockaddr_in has sin_len member.
  1592. * configure.ac
  1593. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Fixed buffer overrun.
  1595. * src/DHTRoutingTableDeserializer.cc
  1596. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Added LL for long long int constant.
  1598. * test/FtpConnectionTest.cc
  1599. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Casted to unsigned int to suppress compiler warning on netbsd.
  1601. * src/BtRuntime.h
  1602. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1604. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1605. type time_t.
  1606. * src/SimpleLogger.cc
  1607. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Added test for FtpConnection::receiveSizeResponse().
  1609. * test/FtpConnectionTest.cc
  1610. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Fix epoll error on the old kernel 2.6.8 or ealier.
  1612. * src/EpollEventPoll.cc
  1613. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Use Util::parseLLInt instead of sscanf for portability. The
  1615. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1616. * src/FtpConnection.cc
  1617. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1619. block. It should not filter anything.
  1620. * src/BitfieldMan.cc
  1621. * src/ConsoleStatCalc.cc
  1622. * test/BitfieldManTest.cc
  1623. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Fixed the bug that the boolean options that don't take arguments
  1625. don't work.
  1626. * src/OptionHandlerImpl.h
  1627. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Fixed broken selected file BitTorrent download.
  1629. * src/MultiDiskAdaptor.cc
  1630. * test/MultiDiskAdaptorTest.cc
  1631. * test/MultiFileAllocationIteratorTest.cc
  1632. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Fixed #define guard for EpollEventPoll
  1634. * src/EpollEventPoll.h
  1635. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Wait 2 seconds. 1 second is sometimes not enough.
  1637. * test/TimeSeedCriteriaTest.cc
  1638. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Use localhost instead of 127.0.0.1.
  1640. * test/DHTConnectionImplTest.cc
  1641. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Suppressed compiler warning.
  1643. * src/AdaptiveURISelector.cc
  1644. * src/DefaultPieceStorage.cc
  1645. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Defined virtual destructor.
  1647. * src/MetalinkParserState.h
  1648. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Give NULL for second argument of getaddrinfo instead of "0".
  1650. * src/NameResolver.cc
  1651. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1653. included strptime doesn't parse data for this format.
  1654. * src/FtpConnection.cc
  1655. * test/FtpConnectionTest.cc
  1656. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Removed tests giving -1 for unsigned argument.
  1658. * test/SingleFileDownloadContextTest.cc
  1659. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Don't use sha256 in tests because it might not be supported by the
  1661. SSL library.
  1662. * test/MetalinkProcessorTest.cc
  1663. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Removed tests giving -1 for unsigned argument.
  1665. * test/AlphaNumberDecoratorTest
  1666. * test/BitfieldManTest.cc
  1667. * test/DefaultBtContextTest.cc
  1668. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Fixed compile error without libcares when epoll is available.
  1670. * src/EpollEventPoll.cc
  1671. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Included fstream instead of iostream.
  1673. * test/SignatureTest.cc
  1674. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Removed #include <algorithm>
  1676. * test/RequestGroupTest.cc
  1677. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1679. using RequestGroup::extractURIResult().
  1680. * src/AdaptiveURISelector.cc
  1681. * src/RequestGroup.cc
  1682. * src/RequestGroup.h
  1683. * test/RequestGroupTest.cc
  1684. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Added tests for array_ptr.
  1686. * test/array_funTest.cc
  1687. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Don't send ip parameter to a tracker if ip parameter is empty
  1689. string.
  1690. * src/DefaultBtAnnounce.cc
  1691. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Adjusted line feed.
  1693. * src/version_usage.cc
  1694. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Print tags, possible values when OptionHandlerException is caught.
  1696. * src/option_processing.cc
  1697. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Changed the message for FatalException.
  1699. * src/OptionParser.cc
  1700. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Documented --bt-external-ip option in man page. Updated man pages
  1702. for --proxy-method option.
  1703. * doc/aria2c.1.txt
  1704. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Use GET method for FTP via HTTP proxy.
  1706. * src/FtpInitiateConnectionCommand.cc
  1707. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Changed the default value of --proxy-method option from 'tunnel'
  1709. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1710. option.
  1711. * src/AbstractCommand.cc
  1712. * src/AbstractCommand.h
  1713. * src/FtpInitiateConnectionCommand.cc
  1714. * src/HttpDownloadCommand.cc
  1715. * src/HttpInitiateConnectionCommand.cc
  1716. * src/HttpInitiateConnectionCommand.h
  1717. * src/OptionHandlerFactory.cc
  1718. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Initialized _logger
  1720. * src/SelectEventPoll.cc
  1721. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Defined a copy constructor for the same type.
  1723. * src/SharedHandle.h
  1724. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Added OptionParser::parseArg() which internally uses getopt_long
  1726. to parse command-line options. All command-line options are now
  1727. configured by OptionHandler. No manual editing of struct option*
  1728. is required any more.
  1729. * src/NameMatchOptionHandler.h
  1730. * src/OptionHandler.h
  1731. * src/OptionHandlerFactory.cc
  1732. * src/OptionHandlerImpl.h
  1733. * src/OptionParser.cc
  1734. * src/OptionParser.h
  1735. * src/array_fun.h
  1736. * src/main.cc
  1737. * src/option_processing.cc
  1738. * test/OptionHandlerTest.cc
  1739. * test/OptionParserTest.cc
  1740. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Fixed configure error with --disable-epoll
  1742. * configure.ac
  1743. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Fixed compile error when HAVE_EPOLL is not defined.
  1745. Fixed linker error on bigendian systems.
  1746. * src/SocketCore.cc
  1747. * src/SocketCore.h
  1748. * test/DefaultBtProgressInfoFileTest.cc
  1749. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Added --bt-external-ip option. You can specify the external IP
  1751. address to report to a BitTorrent tracker. Although this function
  1752. is named 'external', it can accept any kind of IP addresses.
  1753. * src/DefaultBtAnnounce.cc
  1754. * src/OptionHandlerFactory.cc
  1755. * src/option_processing.cc
  1756. * src/prefs.cc
  1757. * src/prefs.h
  1758. * src/usage_text.h
  1759. * test/DefaultBtAnnounceTest.cc
  1760. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Extracted the algorithm to find the longest incremental sequence
  1762. as max_sequence template.
  1763. * src/LongestSequencePieceSelector.cc
  1764. * src/a2algo.h
  1765. * test/Makefile.am
  1766. * test/a2algoTest.cc
  1767. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1769. * src/usage_text.h
  1770. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Updated doc for --uri-selector, --http-server-listen-port and
  1772. --enable-http-server option. Documented --event-poll option.
  1773. * doc/aria2c.1.txt
  1774. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Updated doc for --enable-http-server.
  1776. * src/usage_text.h
  1777. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Documented --http-server-listen-port and --enable-http-server in
  1779. man page.
  1780. * doc/aria2c.1.txt
  1781. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1783. translations. Thanks to all translators.
  1784. * po/es.po
  1785. * po/id.po
  1786. * po/it.po
  1787. * po/ru.po
  1788. * po/uk.po
  1789. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Bump up version number to 1.2.0
  1791. * configure.ac
  1792. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. BtContext::getAnnounceTiers() now returns const reference.
  1794. * src/BtContext.h
  1795. * src/DefaultBtContext.cc
  1796. * src/DefaultBtContext.h
  1797. * test/MockBtContext.h
  1798. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Change the number of retries for tracker request based on the
  1800. number of available tracker in a torrent file.
  1801. * src/TrackerWatcherCommand.cc
  1802. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Added _maxTries property to RequestGroup and assign the option
  1804. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1805. RequestGroup::getMaxTries() instead of
  1806. Option::getAsInt(PREF_MAX_TRIES).
  1807. * src/AbstractCommand.cc
  1808. * src/RequestGroup.cc
  1809. * src/RequestGroup.h
  1810. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1812. Mandriva. I modified the patch: make RequestGroup have the
  1813. timeout value and AdaptiveURISelector directly modifies that
  1814. value.
  1815. * src/AbstractCommand.cc
  1816. * src/AdaptiveURISelector.cc
  1817. * src/AdaptiveURISelector.h
  1818. * src/FtpNegotiationCommand.cc
  1819. * src/RequestGroup.cc
  1820. * src/RequestGroup.h
  1821. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Fixed compiler warning
  1823. * test/IteratableChecksumValidatorTest.cc
  1824. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1826. integrated downloads. This PieceSelector subclass finds the
  1827. longest continuous sequence in the available missing pieces and
  1828. selects the last index of such sequence. This makes HTTP/FTP
  1829. connections less interrupted by the pieces obtained by BitTorrent
  1830. peers.
  1831. * src/DefaultPieceStorage.cc
  1832. * src/DefaultPieceStorage.h
  1833. * src/LongestSequencePieceSelector.cc
  1834. * src/LongestSequencePieceSelector.h
  1835. * src/Makefile.am
  1836. * src/PieceSelector.h
  1837. * src/RarestPieceSelector.h
  1838. * src/RequestGroup.cc
  1839. * test/BtDependencyTest.cc
  1840. * test/DefaultPieceStorageTest.cc
  1841. * test/IteratableChecksumValidatorTest.cc
  1842. * test/LongestSequencePieceSelectorTest.cc
  1843. * test/Makefile.am
  1844. * test/SegmentManTest.cc
  1845. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Fixed the bug that the average speed is wrong in
  1847. http/ftp/BitTorrent integrated download. Only the download bytes
  1848. in BitTorrent were considered.
  1849. * src/RequestGroup.cc
  1850. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Choose port for BitTorrent/DHT randomly from the specified range.
  1852. * src/DHTConnectionImpl.cc
  1853. * src/PeerListenCommand.cc
  1854. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Send HTTP Authorization header only if it is requested by the
  1856. server(response 401). There are some exceptions. The authorization
  1857. header for proxy is always sent if it is available without request
  1858. by the server. If username/password is specified in the URI, it
  1859. is immediately sent to the server without request by the server.
  1860. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1861. SharedHandle<AuthConfig>().
  1862. NetrcAuthResolver::resolveAuthConfig() returns
  1863. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1864. * src/AbstractAuthResolver.cc
  1865. * src/AbstractProxyRequestCommand.cc
  1866. * src/AuthConfigFactory.cc
  1867. * src/AuthConfigFactory.h
  1868. * src/HttpConnection.cc
  1869. * src/HttpRequest.cc
  1870. * src/HttpRequest.h
  1871. * src/HttpResponse.cc
  1872. * src/HttpResponseCommand.cc
  1873. * src/HttpSkipResponseCommand.cc
  1874. * test/AuthConfigFactoryTest.cc
  1875. * test/HttpRequestTest.cc
  1876. * test/HttpResponseTest.cc
  1877. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Remove leading "--" from help keyword and a substring after "="
  1879. from help keyword, so that one can query options by '-h--max-' or
  1880. '-hmax-peers=10'.
  1881. * src/option_processing.cc
  1882. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Rewritten PStringVisitor and its implementation.
  1884. * src/PStringBuildVisitor.cc
  1885. * src/PStringBuildVisitor.h
  1886. * src/PStringDatum.h
  1887. * src/PStringNumLoop.h
  1888. * src/PStringSegment.cc
  1889. * src/PStringSegment.h
  1890. * src/PStringSelect.h
  1891. * src/PStringVisitor.h
  1892. * src/download_helper.cc
  1893. * test/PStringBuildVisitorTest.cc
  1894. * test/ParameterizedStringParserTest.cc
  1895. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Persist connection between the built-in HTTP server and a client
  1897. if a client supports keep-alive. Fixed the bug that aria2 exits
  1898. when the HTTP server receives EOF from a client.
  1899. * src/HttpServer.cc
  1900. * src/HttpServer.h
  1901. * src/HttpServerCommand.cc
  1902. * src/HttpServerCommand.h
  1903. * src/HttpServerResponseCommand.cc
  1904. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Added experimental built-in HTTP server. Currently, when a client
  1906. accesses to the server, it responds with the current download
  1907. progress. By default, it is disabled. To enable the server, give
  1908. --enable-http-server option. To change the default port number
  1909. for the server to listen to, use --http-server-listen-port option.
  1910. The response HTML is very simple and refreshes it self each 1
  1911. second. Because of this refresh, you see flicker in normal web
  1912. browser such as Firefox. I recommend to use console-based browser
  1913. such as elinks, w3m. To connect to the server, run 'elinks
  1914. http://localhost:6800/' while running aria2. Please replace port
  1915. number '6800'(which is default) with your preference.
  1916. * src/DownloadEngineFactory.cc
  1917. * src/HttpHeader.cc
  1918. * src/HttpHeader.h
  1919. * src/HttpHeaderProcessor.cc
  1920. * src/HttpHeaderProcessor.h
  1921. * src/HttpListenCommand.cc
  1922. * src/HttpListenCommand.h
  1923. * src/HttpServer.cc
  1924. * src/HttpServer.h
  1925. * src/HttpServerCommand.cc
  1926. * src/HttpServerCommand.h
  1927. * src/HttpServerResponseCommand.cc
  1928. * src/HttpServerResponseCommand.h
  1929. * src/Makefile.am
  1930. * src/OptionHandlerFactory.cc
  1931. * src/Util.cc
  1932. * src/Util.h
  1933. * src/help_tags.h
  1934. * src/option_processing.cc
  1935. * src/prefs.cc
  1936. * src/prefs.h
  1937. * src/usage_text.h
  1938. * test/HttpHeaderProcessorTest.cc
  1939. * test/UtilTest.cc
  1940. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Removed.
  1942. * src/CheckIntegrityMan.cc
  1943. * src/FileAllocationMan.cc
  1944. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Made (piece) hash check sequential for each RequestGroup because
  1946. simultaneous hash check is slower than sequential execution.
  1947. * src/CheckIntegrityCommand.cc
  1948. * src/CheckIntegrityDispatcherCommand.cc
  1949. * src/CheckIntegrityDispatcherCommand.h
  1950. * src/CheckIntegrityMan.h
  1951. * src/ConsoleStatCalc.cc
  1952. * src/DownloadCommand.cc
  1953. * src/DownloadEngine.cc
  1954. * src/DownloadEngine.h
  1955. * src/DownloadEngineFactory.cc
  1956. * src/Makefile.am
  1957. * src/Makefile.in
  1958. * src/RequestGroup.cc
  1959. * src/StatCalc.h
  1960. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1962. SequentialDispatcherCommand.
  1963. * src/FileAllocationDispatcherCommand.cc
  1964. * src/SequentialDispatcherCommand.h
  1965. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Rewritten FileAllocationDispatcherCommand using brand new
  1967. SequentialDispatcherCommand.
  1968. * src/DownloadEngineFactory.cc
  1969. * src/FileAllocationCommand.cc
  1970. * src/FileAllocationDispatcherCommand.cc
  1971. * src/FileAllocationDispatcherCommand.h
  1972. * src/Makefile.am
  1973. * src/SequentialDispatcherCommand.h
  1974. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Replaced FileAllocationMan with
  1976. SequentialPicker<FileAllocationEntry>.
  1977. * src/BtCheckIntegrityEntry.cc
  1978. * src/ConsoleStatCalc.cc
  1979. * src/DownloadEngine.cc
  1980. * src/DownloadEngine.h
  1981. * src/DownloadEngineFactory.cc
  1982. * src/FileAllocationCommand.cc
  1983. * src/FileAllocationDispatcherCommand.cc
  1984. * src/FileAllocationMan.h
  1985. * src/Makefile.am
  1986. * src/SequentialPicker.h
  1987. * src/StatCalc.h
  1988. * src/StreamCheckIntegrityEntry.cc
  1989. * test/Makefile.am
  1990. * test/SequentialPickerTest.cc
  1991. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added doc for adaptive URI selector.
  1993. * doc/aria2c.1.txt
  1994. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Added doc for adaptive URI selector.
  1996. * src/usage_text.h
  1997. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Added doc for --bt-max-peers option.
  1999. * doc/aria2c.1.txt
  2000. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added doc for --bt-hash-check-seed option.
  2002. * doc/aria2c.1.txt
  2003. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Documented exit codes.
  2005. * doc/aria2c.1.txt
  2006. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Added --bt-max-peers option to specify the maximum number of peers
  2008. per torrent. 0 means unlimited number of peers.
  2009. * src/ActivePeerConnectionCommand.cc
  2010. * src/BtRuntime.h
  2011. * src/DefaultPeerStorage.cc
  2012. * src/DefaultPeerStorage.h
  2013. * src/OptionHandlerFactory.cc
  2014. * src/RequestGroup.cc
  2015. * src/option_processing.cc
  2016. * src/prefs.cc
  2017. * src/prefs.h
  2018. * src/usage_text.h
  2019. * test/DefaultPeerStorageTest.cc
  2020. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Added --bt-hash-check-seed option. If true is given to this
  2022. option, after hash check using --check-integrity option and file
  2023. is complete, continue to seed file. If you want to check file and
  2024. download it only when it is damaged or incomplete, set this option
  2025. to false. This option has effect only on BitTorrent download.
  2026. The default value is true(This is the same behavior with the
  2027. previous release).
  2028. * src/BtCheckIntegrityEntry.cc
  2029. * src/OptionHandlerFactory.cc
  2030. * src/option_processing.cc
  2031. * src/prefs.cc
  2032. * src/prefs.h
  2033. * src/usage_text.h
  2034. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Updated copyright year.
  2036. * src/version_usage.cc
  2037. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2039. * doc/aria2c.1.txt
  2040. * src/usage_text.h
  2041. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Made the max value of split option unlimited.
  2043. * doc/aria2c.1.txt
  2044. * src/OptionHandlerFactory.cc
  2045. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Fixed compile warning/error.
  2047. * src/DownloadResult.h
  2048. * src/HttpDownloadCommand.cc
  2049. * src/ServerStat.cc
  2050. * test/RequestGroupTest.cc
  2051. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added --event-poll option to select the method for polling events.
  2053. The available methods are "select" and "epoll". "epoll" is
  2054. available on Linux only. The earlier release has the compile
  2055. option to choose from these methods.
  2056. * configure.ac
  2057. * src/RequestGroupMan.cc
  2058. * src/OptionHandlerFactory.cc
  2059. * src/EpollEventPoll.h
  2060. * src/StreamFileAllocationEntry.cc
  2061. * src/a2io.h
  2062. * src/SelectEventPoll.h
  2063. * src/option_processing.cc
  2064. * src/prefs.h
  2065. * src/EpollEventPoll.cc
  2066. * src/EventPoll.h
  2067. * src/SocketCore.h
  2068. * src/Makefile.am
  2069. * src/main.cc
  2070. * src/DownloadEngine.h
  2071. * src/SelectEventPoll.cc
  2072. * src/DownloadEngine.cc
  2073. * src/SocketCore.cc
  2074. * src/DownloadEngineFactory.cc
  2075. * src/Makefile.in
  2076. * src/prefs.cc
  2077. * src/usage_text.h
  2078. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Included RecoverableException.h from main.cc
  2080. * src/main.cc
  2081. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2083. now returns last error encountered in the HTTP/FTP downloads as a
  2084. exit status value. If all downloads finished successfully, aria2
  2085. returns 0. The error code is defined in src/DownloadResult.h.
  2086. The error occurred in the download currently in progress is not
  2087. reported as a last error. If no error has encountered but there
  2088. are in progress or waiting downloads, aria2 returns 7.
  2089. * src/AbstractCommand.cc
  2090. * src/DlAbortEx.h
  2091. * src/DlRetryEx.h
  2092. * src/DownloadCommand.cc
  2093. * src/DownloadFailureException.h
  2094. * src/DownloadResult.h
  2095. * src/FtpNegotiationCommand.cc
  2096. * src/HttpSkipResponseCommand.cc
  2097. * src/Makefile.am
  2098. * src/MultiUrlRequestInfo.cc
  2099. * src/MultiUrlRequestInfo.h
  2100. * src/RecoverableException.h
  2101. * src/RequestGroup.cc
  2102. * src/RequestGroup.h
  2103. * src/RequestGroupMan.cc
  2104. * src/RequestGroupMan.h
  2105. * src/URIResult.cc
  2106. * src/URIResult.h
  2107. * src/main.cc
  2108. * src/option_processing.cc
  2109. * test/RequestGroupTest.cc
  2110. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2112. patch adds AdaptiveURISelector, which selects one of the bests
  2113. mirrors for first and reserved connections. For supplementary
  2114. ones, it returns mirrors which has not been tested yet, and if
  2115. each of them already tested, returns mirrors which has to be
  2116. tested again. Otherwise, it doesn't return anymore mirrors.
  2117. * src/AdaptiveURISelector.cc
  2118. * src/AdaptiveURISelector.h
  2119. * src/FtpNegotiationCommand.cc
  2120. * src/HttpResponseCommand.cc
  2121. * src/Makefile.am
  2122. * src/Makefile.in
  2123. * src/OptionHandlerFactory.cc
  2124. * src/RequestGroup.cc
  2125. * src/RequestGroup.h
  2126. * src/RequestGroupMan.cc
  2127. * src/ServerStat.cc
  2128. * src/ServerStat.h
  2129. * src/ServerStatMan.cc
  2130. * src/SpeedCalc.cc
  2131. * src/URISelector.h
  2132. * src/prefs.cc
  2133. * src/prefs.h
  2134. * test/RequestGroupManTest.cc
  2135. * test/ServerStatManTest.cc
  2136. * test/ServerStatTest.cc
  2137. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Fixed unit test error.
  2139. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2140. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. * Release 1.1.2
  2142. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Updated Russian translation. Thanks to the translators.
  2144. * po/ru.po
  2145. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Added the description of --use-head option to man page.
  2147. * doc/aria2c.1.txt
  2148. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Bump up version number to 1.1.2
  2150. * configure.ac
  2151. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Added --use-head option to toggle whether HEAD method should be
  2153. used in the first HTTP request. By default aria2 uses HEAD method
  2154. as the first request. When the server doesn't recognize HEAD, then
  2155. give aria2 --use-head=false to force aria2 to use GET method
  2156. instead.
  2157. * src/OptionHandlerFactory.cc
  2158. * src/RequestGroupMan.cc
  2159. * src/option_processing.cc
  2160. * src/prefs.cc
  2161. * src/prefs.h
  2162. * src/usage_text.h
  2163. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2165. message is received before CHOKE message. The old implementation
  2166. doen't clear the use-bit of the piece when recieved REJECT
  2167. message.
  2168. * src/DefaultBtMessageDispatcher.cc
  2169. * test/DefaultBtMessageDispatcherTest.cc
  2170. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. * Release 1.1.1
  2172. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Bump up version number to 1.1.1.
  2174. * configure.ac
  2175. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2177. is printed repeatedly.
  2178. * src/ConsoleStatCalc.cc
  2179. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. * Release 1.1.0
  2181. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Added ifdef clause for conditional compilation.
  2183. * src/main.cc
  2184. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2186. translations. Thanks to all translators.
  2187. * po/ja.po
  2188. * po/ru.po
  2189. * po/uk.po
  2190. * po/zh_CN.po
  2191. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Added the preceding ">>> " before the message "Printing the
  2193. contents of file..." to make the output more readable.
  2194. * src/main.cc
  2195. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Added try-catch block in the loop in showFiles() to continue the
  2197. operation even if the exception occurred in one file.
  2198. * src/main.cc (showFiles)
  2199. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Made messages in showFiles() translatable.
  2201. * po/aria2.pot
  2202. * src/main.cc
  2203. * src/message.h
  2204. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Print the contents of Torrent/Metalink files are printed without
  2206. -T/-M options.
  2207. * src/main.cc
  2208. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Escaped '--' with '\--'
  2210. * README
  2211. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Updated "How to build" section in README. Mentioned about
  2213. --with-ca-bundle compile option.
  2214. * README
  2215. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Bump up version number to 1.1.0.
  2217. * configure.ac
  2218. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Added a note for --dht-listen-port option.
  2220. * doc/aria2c.1.txt
  2221. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Update doc for --realtime-chunk-checksum option.
  2223. * doc/aria2c.1.txt
  2224. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Update doc for --realtime-chunk-checksum option.
  2226. * src/usage_text.h
  2227. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Updated French, Japanese, Russian and Ukrainian translations.
  2229. Thanks to all translators.
  2230. * po/fr.po
  2231. * po/ja.po
  2232. * po/ru.po
  2233. * po/uk.po
  2234. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Renamed aria2c.pot to aria2.pot
  2236. * po/aria2.pot
  2237. * po/aria2c.pot: Removed.
  2238. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Removed MetaEntry.h
  2240. * src/Makefile.am
  2241. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Rename file by appending digits if a local file exists and its
  2243. file size is larger than that of remote file with --continue
  2244. option. The old implementation just throws exception in such case.
  2245. * src/RequestGroup.cc
  2246. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed the bug that download progress summary is not printed in the
  2248. interval specified by the option.
  2249. * src/ConsoleStatCalc.cc
  2250. * src/ConsoleStatCalc.h
  2251. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Fixed compiler warning
  2253. * src/Cookie.cc
  2254. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Fixed the cookie implementation based on RFC2965.
  2256. Now if a value in domain field is not started with dot, then
  2257. prepend dot. That means a cookie with domain=sf.net is sent to
  2258. wiki.sf.net.
  2259. * src/Cookie.cc
  2260. * test/CookieParserTest.cc
  2261. * test/CookieStorageTest.cc
  2262. * test/CookieTest.cc
  2263. * test/NsCookieParserTest.cc
  2264. * test/Sqlite3MozCookieParserTest.cc
  2265. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2267. is enabled and the server doesn't support keep-alive.
  2268. * src/AbstractCommand.cc
  2269. * src/DownloadCommand.cc
  2270. * src/HttpDownloadCommand.cc
  2271. * src/HttpDownloadCommand.h
  2272. * src/HttpResponseCommand.cc
  2273. * src/Request.cc
  2274. * src/Request.h
  2275. * test/RequestTest.cc
  2276. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Removed Dictionary/List/Data and its related classes.
  2278. * src/BencodeVisitor.cc: Removed.
  2279. * src/BencodeVisitor.h: Removed.
  2280. * src/Data.cc: Removed.
  2281. * src/Data.h: Removed.
  2282. * src/Dictionary.cc: Removed.
  2283. * src/Dictionary.h: Removed.
  2284. * src/List.cc: Removed.
  2285. * src/List.h: Removed.
  2286. * src/Makefile.am
  2287. * src/MetaEntry.h: Removed.
  2288. * src/MetaEntryVisitor.h: Removed.
  2289. * src/MetaFileUtil.cc: Removed.
  2290. * src/MetaFileUtil.h: Removed.
  2291. * test/BencodeVisitorTest.cc: Removed.
  2292. * test/DataTest.cc: Removed.
  2293. * test/DictionaryTest.cc: Removed.
  2294. * test/ListTest.cc: Removed.
  2295. * test/Makefile.am
  2296. * test/MetaFileUtilTest.cc: Removed.
  2297. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Removed include of MetaEntry.h
  2299. * test/DHTMessageTrackerEntryTest.cc
  2300. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Use BDE instead of Dictionary/List/Data.
  2302. * src/AnnounceList.cc
  2303. * src/AnnounceList.h
  2304. * test/AnnounceListTest.cc
  2305. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Use BDE instead of Dictionary/List/Data.
  2307. * src/DHTAbstractMessage.cc
  2308. * src/DHTAbstractMessage.h
  2309. * src/DHTAnnouncePeerMessage.cc
  2310. * src/DHTAnnouncePeerMessage.h
  2311. * src/DHTAnnouncePeerReplyMessage.cc
  2312. * src/DHTAnnouncePeerReplyMessage.h
  2313. * src/DHTFindNodeMessage.cc
  2314. * src/DHTFindNodeMessage.h
  2315. * src/DHTFindNodeReplyMessage.cc
  2316. * src/DHTFindNodeReplyMessage.h
  2317. * src/DHTGetPeersMessage.cc
  2318. * src/DHTGetPeersMessage.h
  2319. * src/DHTGetPeersReplyMessage.cc
  2320. * src/DHTGetPeersReplyMessage.h
  2321. * src/DHTMessageFactory.h
  2322. * src/DHTMessageFactoryImpl.cc
  2323. * src/DHTMessageFactoryImpl.h
  2324. * src/DHTMessageReceiver.cc
  2325. * src/DHTMessageTracker.cc
  2326. * src/DHTMessageTracker.h
  2327. * src/DHTPingMessage.cc
  2328. * src/DHTPingMessage.h
  2329. * src/DHTPingReplyMessage.cc
  2330. * src/DHTPingReplyMessage.h
  2331. * src/DHTQueryMessage.cc
  2332. * src/DHTQueryMessage.h
  2333. * src/DHTResponseMessage.cc
  2334. * src/DHTResponseMessage.h
  2335. * test/DHTAnnouncePeerMessageTest.cc
  2336. * test/DHTAnnouncePeerReplyMessageTest.cc
  2337. * test/DHTFindNodeMessageTest.cc
  2338. * test/DHTFindNodeReplyMessageTest.cc
  2339. * test/DHTGetPeersMessageTest.cc
  2340. * test/DHTGetPeersReplyMessageTest.cc
  2341. * test/DHTMessageFactoryImplTest.cc
  2342. * test/DHTMessageTrackerTest.cc
  2343. * test/DHTPingMessageTest.cc
  2344. * test/DHTPingReplyMessageTest.cc
  2345. * test/MockDHTMessageFactory.h
  2346. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Added tests the case where length < 0 is specified.
  2348. * test/BencodeTest.cc
  2349. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Fixed memory leak in decoderawstring()
  2351. * src/bencode.cc
  2352. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Added missing #ifdef guard. Added uc() function for String and
  2354. removeKey() for Dict.
  2355. * src/bencode.cc
  2356. * src/bencode.h
  2357. * test/BencodeTest.cc
  2358. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Use BDE instead of Dictionary/List/Data.
  2360. * src/HandshakeExtensionMessage.cc
  2361. * src/HandshakeExtensionMessage.h
  2362. * test/HandshakeExtensionMessageTest.cc
  2363. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Added --max-overall-upload-limit option. This option limits the
  2365. overall upload speed. Stated in help message that the existing
  2366. --max-upload-limit option limits the upload speed per each
  2367. torrent. Man page is also updated.
  2368. * doc/aria2c.1.txt
  2369. * src/DefaultBtMessageDispatcher.cc
  2370. * src/DefaultBtMessageDispatcher.h
  2371. * src/OptionHandlerFactory.cc
  2372. * src/PeerInteractionCommand.cc
  2373. * src/option_processing.cc
  2374. * src/prefs.cc
  2375. * src/prefs.h
  2376. * src/usage_text.h
  2377. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Use BDE instead of Dictionary/List/Data classes.
  2379. * src/CompactPeerListProcessor.cc
  2380. * src/CompactPeerListProcessor.h
  2381. * src/DefaultBtAnnounce.cc
  2382. * src/DefaultBtContext.cc
  2383. * src/DefaultBtContext.h
  2384. * src/DefaultPeerListProcessor.cc
  2385. * src/DefaultPeerListProcessor.h
  2386. * src/DelegatingPeerListProcessor.cc
  2387. * src/DelegatingPeerListProcessor.h
  2388. * src/PeerListProcessor.h
  2389. * src/UTPexExtensionMessage.cc
  2390. * src/Util.h
  2391. * src/message.h
  2392. * test/DefaultBtContextTest.cc
  2393. * test/DefaultPeerListProcessorTest.cc
  2394. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added bencode helper functions and BDE class.
  2396. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2397. * src/Makefile.am
  2398. * src/bencode.cc
  2399. * src/bencode.h
  2400. * test/BencodeTest.cc
  2401. * test/Makefile.am
  2402. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Fixed the bug that bad URI is sent to the tracker when the announe
  2404. URI in torrent file includes query.
  2405. * src/DefaultBtAnnounce.cc
  2406. * test/DefaultBtAnnounceTest.cc
  2407. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Added Option::blank().
  2409. Use !Option::blank(name) instead of Option::defined(name) for
  2410. the options that take filename.
  2411. * src/MultiUrlRequestInfo.cc
  2412. * src/Option.cc
  2413. * src/Option.h
  2414. * src/main.cc
  2415. * src/option_processing.cc
  2416. * test/OptionTest.cc
  2417. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Documented the default value of --check-certificate option in man
  2419. page.
  2420. * doc/aria2c.1.txt
  2421. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Enabled --check-certificate by default. Added compile
  2423. time(configure) option --with-ca-bundle to specify CA bundle.
  2424. Warn if --check-certificate=true and --ca-certificate is not
  2425. specified or loading CA certificate is failed.
  2426. * configure.ac
  2427. * src/MultiUrlRequestInfo.cc
  2428. * src/OptionHandlerFactory.cc
  2429. * src/message.h
  2430. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Mentioned https tag in help option.
  2432. * doc/aria2c.1.txt
  2433. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Added `https' tag to help option category. Added https tag to
  2435. --ca-certificate, --certificate, --check-certificate and
  2436. --private-key option.
  2437. * src/OptionHandlerFactory.cc
  2438. * src/help_tags.h
  2439. * src/option_processing.cc
  2440. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Changed the package name from `aria2c' to `aria2' in order to fix
  2442. the packaging issue in Debian and Fedora. The name of the
  2443. executable is not changed.
  2444. * configure.ac
  2445. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Fixed typos
  2447. * src/usage_text.h
  2448. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Fixed typos and updated doc.
  2450. * README
  2451. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Fixed typos
  2453. * doc/aria2c.1.txt
  2454. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Fixed typos
  2456. * src/usage_text.h
  2457. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Print a message when no files to download.
  2459. * src/download_helper.cc
  2460. * src/main.cc
  2461. * src/message.h
  2462. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. RFC3986 complied Percent-Encoding(urlencode).
  2464. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2465. ones.
  2466. * src/Request.cc
  2467. * src/Util.cc
  2468. * src/Util.h
  2469. * test/BtHandshakeMessageTest.cc
  2470. * test/DefaultBtAnnounceTest.cc
  2471. * test/DefaultBtContextTest.cc
  2472. * test/RequestTest.cc
  2473. * test/UtilTest.cc
  2474. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Fixed the bug that prevents aria2 from downloading 0-length files
  2476. via HTTP/FTP.
  2477. * src/DefaultBtContext.cc
  2478. * src/DefaultBtContext.h
  2479. * src/DownloadContext.h
  2480. * src/FtpNegotiationCommand.cc
  2481. * src/HttpResponseCommand.cc
  2482. * src/HttpResponseCommand.h
  2483. * src/RequestGroup.cc
  2484. * src/SingleFileDownloadContext.cc
  2485. * src/SingleFileDownloadContext.h
  2486. * test/BtPostDownloadHandlerTest.cc
  2487. * test/MetalinkPostDownloadHandlerTest.cc
  2488. * test/MockBtContext.h
  2489. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2491. * src/option_processing.cc
  2492. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Applied aria2-1.0.1-mingw.patch.
  2494. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2495. mingw.
  2496. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2497. * src/SocketCore.cc
  2498. * src/a2netcompat.h
  2499. * test/SocketCoreTest.cc
  2500. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. * Release 1.0.1
  2502. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Updated Ukrainian and Norwegian Nynorsk translations.
  2504. Thanks to all translators.
  2505. * po/nn.po
  2506. * po/uk.po
  2507. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2508. Don't show download result when -S option is used.
  2509. * src/main.cc
  2510. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2511. Bump up version number to 1.0.1
  2512. * configure.ac
  2513. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Closed files after the test cases in MultiDiskWriterTest::
  2515. testResetDiskWriterEntries(). This will fix the unit test error
  2516. in mingw32 build.
  2517. * test/MultiDiskWriterTest.cc
  2518. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Use HEAD method to get file size from HTTP server for segmented
  2520. downloading.
  2521. The request to the BitTorrent Tracker always uses GET method because
  2522. the response of the tracker is small and it doesn't need segmented
  2523. download.
  2524. * src/FtpNegotiationCommand.cc
  2525. * src/HttpRequest.cc
  2526. * src/HttpResponseCommand.cc
  2527. * src/HttpSkipResponseCommand.cc
  2528. * src/RequestGroup.cc
  2529. * src/RequestGroup.h
  2530. * src/TrackerWatcherCommand.cc
  2531. * test/HttpRequestTest.cc
  2532. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Fixed the bug that causes floating exception when -T option is used and
  2534. no URIs are given.
  2535. * src/download_helper.cc
  2536. * test/DownloadHelperTest.cc
  2537. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2538. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2539. errors in MinGW:
  2540. Closed file after saving server stats (RequestGroupMan.cc)
  2541. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2542. Ignored case & handled 2-digit years (strptime.c)
  2543. Added missing suseconds_t definition (a2time.h)
  2544. Fixed socket CLOSE() define (SocketCore.cc)
  2545. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2546. Changed utime() test values from x000 to x00000 as MinGW failed on
  2547. values less than timezone offset from Unix epoch
  2548. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2549. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2550. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2551. handle negative dates (CookieParserTest.cc)
  2552. * src/a2time.h
  2553. * src/FtpConnection.cc
  2554. * src/RequestGroupMan.cc
  2555. * src/SocketCore.cc
  2556. * src/strptime.c
  2557. * test/CookieParserTest.cc
  2558. * test/CopyDiskAdaptorTest.cc
  2559. * test/FileTest.cc
  2560. * test/FtpConnectionTest.cc
  2561. * test/MultiDiskAdaptorTest.cc
  2562. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2564. * doc/aria2c.1.txt
  2565. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. * Release 1.0.0
  2567. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Added '~' to reserved characters.
  2569. * src/Util.cc
  2570. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Do not urlencode Request::url in setUrl() because we want unmodified
  2572. URL using Request::getUrl()
  2573. * src/Request.cc
  2574. * src/Request.h
  2575. * test/RequestTest.cc
  2576. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2578. Thanks to all translators.
  2579. * po/bg.po
  2580. * po/fr.po
  2581. * po/ja.po
  2582. * po/ru.po
  2583. * po/uk.po
  2584. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Bump up version number to 1.0.0
  2586. * configure.ac
  2587. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Added nosqlite3 build to build_test.sh.
  2589. Renamed noxml as expat.
  2590. * build_test.sh
  2591. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Updated INPUT FILE section.
  2593. * doc/aria2c.1.txt
  2594. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2596. on big endian systems because test .aria2 files are made for little
  2597. endian systems.
  2598. * test/DefaultBtProgressInfoFileTest.cc
  2599. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Dropped ares support.
  2601. * README
  2602. * configure.ac
  2603. * m4/libares.m4: Removed.
  2604. * src/AsyncNameResolver.cc
  2605. * src/Makefile.am
  2606. * test/Makefile.am
  2607. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2609. Removed const qualifier from DiskWriter::size().
  2610. * src/AbstractDiskWriter.cc
  2611. * src/AbstractDiskWriter.h
  2612. * src/ByteArrayDiskWriter.cc
  2613. * src/ByteArrayDiskWriter.h
  2614. * src/DiskWriter.h
  2615. * test/ByteArrayDiskWriterTest.cc
  2616. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Fixed the bug that causes segmentation fault/bus error during executing
  2618. choking algorithm while seeding. This is caused by improper
  2619. implementation of compare function which returns inconsistent results
  2620. depending on the timing of last unchoke.
  2621. * src/BtSeederStateChoke.cc
  2622. * src/BtSeederStateChoke.h
  2623. * src/DefaultPeerStorage.cc
  2624. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Removed TODO
  2626. * TODO
  2627. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Added a section that explains how to pass argument to options that
  2629. takes optional arguments with its short form.
  2630. * doc/aria2c.1.txt
  2631. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Added -u for the short form of --max-upload-limit option.
  2633. * doc/aria2c.1.txt
  2634. * src/option_processing.cc
  2635. * src/usage_text.h
  2636. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Added -V for the short form of --check-integrity option.
  2638. Now the argument of --check-integrity option is optional:
  2639. if it is omitted, it is evaluated as true.
  2640. * doc/aria2c.1.txt
  2641. * src/option_processing.cc
  2642. * src/usage_text.h
  2643. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Made the default value of --ftp-pasv option set to true and it can take
  2645. true/false values.
  2646. * src/OptionHandlerFactory.cc
  2647. * src/option_processing.cc
  2648. * src/usage_text.h
  2649. * doc/aria2c.1.txt
  2650. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Given custom random number generator to std::random_shuffle.
  2652. * src/AnnounceList.cc
  2653. * src/BtLeecherStateChoke.cc
  2654. * src/BtSeederStateChoke.cc
  2655. * src/DefaultBtRequestFactory.cc
  2656. * src/MetalinkEntry.cc
  2657. * src/RarestPieceSelector.cc
  2658. * src/SimpleRandomizer.cc
  2659. * src/SimpleRandomizer.h
  2660. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Now the default value of --enable-direct-io is true.
  2662. * src/OptionHandlerFactory.cc
  2663. * doc/aria2c.1.txt
  2664. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Erase peer before executing onReturningPeer and onErasingPeer
  2666. because choking algorithm called from onReturningPeer doesn't
  2667. like erasing peer in the active peer list.
  2668. * src/DefaultPeerStorage.cc
  2669. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Instead of creating special filename in createDownloadResult() if
  2671. inMemoryDownload() is true, now it is done in getFilePath().
  2672. * src/RequestGroup.cc
  2673. * test/RequestGroupTest.cc
  2674. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2676. processed in memory. This is the fix for previous comment out.
  2677. * src/MemoryBufferPreDownloadHandler.cc
  2678. * src/RequestGroup.cc
  2679. * src/RequestGroup.h
  2680. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Commented out the code which sets virtual directory path "[MEMORY]"
  2682. propagate directory to store to following RequestGroup.
  2683. * src/MemoryBufferPreDownloadHandler.cc
  2684. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Bump up version number to 1.0.0b
  2686. * configure.ac
  2687. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Added input_uris.txt to EXTRA_DIST
  2689. * test/Makefile.am
  2690. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Removed PeerObject.h from Makefile.am
  2692. * src/Makefile.am
  2693. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Avoid slow seeding
  2695. * src/PeerInteractionCommand.cc
  2696. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Updated usage for -i option.
  2698. * src/usage_text.h (TEXT_INPUT_FILE)
  2699. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Added INPUT FILE section to man page.
  2701. Escaped fake URLs.
  2702. * doc/aria2c.1.txt
  2703. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Fixed wrong note position for -o option.
  2705. * doc/aria2c.1.txt
  2706. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Fixed compile error without SSL/XML library.
  2708. * src/DefaultBtProgressInfoFile.cc
  2709. * src/DefaultBtProgressInfoFile.h
  2710. * src/FileMetalinkParserState.cc
  2711. * src/RequestGroup.h
  2712. * src/SocketCore.cc
  2713. * src/SocketCore.h
  2714. * src/VerificationMetalinkParserState.cc
  2715. * src/download_helper.h
  2716. * src/main.cc
  2717. * test/DefaultBtProgressInfoFileTest.cc
  2718. * test/DownloadHelperTest.cc
  2719. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Rewritten URI handling functions. They are now provided as a testable
  2721. functions.
  2722. * src/Makefile.am
  2723. * src/RequestGroup.cc
  2724. * src/RequestGroup.h
  2725. * src/download_helper.cc
  2726. * src/download_helper.h
  2727. * src/main.cc
  2728. * test/DownloadHelperTest.cc
  2729. * test/Makefile.am
  2730. * test/input_uris.txt
  2731. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Quickly terminate commands when ctrl-c is pressed.
  2733. * src/DownloadEngine.cc
  2734. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Quickly terminate idle commands when download finished.
  2736. * src/AbstractCommand.cc
  2737. * src/DownloadCommand.cc
  2738. * src/DownloadEngine.cc
  2739. * src/DownloadEngine.h
  2740. * src/SleepCommand.cc
  2741. * src/SleepCommand.h
  2742. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Added the ability to specify output filename and directory in input
  2744. file.
  2745. Additional parameters are added in the following line of URIs
  2746. with proceeding white space(s), 1 parameter in 1 line.
  2747. The parameter names are the same with the command-line option name
  2748. without proceeding "--". Not all the options are available here:
  2749. at the moment, 'dir' and 'out' options are avialable.
  2750. Please note that out option has no effect against Metalink or BitTorrent
  2751. downloads.
  2752. Example input file:
  2753. http://host/foo-1.1.tar.bz2
  2754. out=foo.tar.bz2
  2755. dir=/tmp/downloads
  2756. http://host/thundermonkey-2.0.tar.bz2
  2757. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2758. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2759. thundermonkey-2.0.tar.bz2 is saved as
  2760. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2761. * src/BtPostDownloadHandler.cc
  2762. * src/Metalink2RequestGroup.cc
  2763. * src/Metalink2RequestGroup.h
  2764. * src/MetalinkPostDownloadHandler.cc
  2765. * src/UriListParser.cc
  2766. * src/UriListParser.h
  2767. * src/main.cc
  2768. * test/Metalink2RequestGroupTest.cc
  2769. * test/UriListParserTest.cc
  2770. * test/filelist1.txt
  2771. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Fixed error when SSL library is not found.
  2773. * configure.ac
  2774. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Cross referenced among -s, -C and -j options.
  2776. Updated usage of -C and -s options.
  2777. * src/usage_text.h
  2778. * doc/aria2c.1.txt
  2779. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Fixed bad cast in 32bit platforms.
  2781. * test/DefaultPieceStorageTest.cc
  2782. (DefaultPieceStorageTest::testGetCompletedLength)
  2783. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Fixed unit test fails on 32bit platforms.
  2785. * test/CookieParserTest.cc
  2786. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Show an average download speed in Download results.
  2788. * src/BtFileAllocationEntry.cc
  2789. * src/DefaultPieceStorage.cc
  2790. * src/DownloadContext.cc
  2791. * src/DownloadContext.h
  2792. * src/DownloadResult.h
  2793. * src/RequestGroup.cc
  2794. * src/RequestGroupMan.cc
  2795. * src/StreamFileAllocationEntry.cc
  2796. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Fixed the bug that metalink file is not processed if Content-Type
  2798. field has a paramter.
  2799. * src/HttpResponse.cc
  2800. * src/HttpResponse.h
  2801. * test/HttpResponseTest.cc
  2802. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Removed unused code.
  2804. * src/DefaultBtAnnounce.cc
  2805. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2807. the value larger than DefaultPieceStorage::getTotalLength() when
  2808. in flight pieces are involved.
  2809. * src/DefaultPieceStorage.cc
  2810. * test/DefaultPieceStorageTest.cc
  2811. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Bump up version number to 1.0.0a.
  2813. * configure.ac
  2814. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Updated configure.ac
  2816. * configure.ac
  2817. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added usege for proxy.
  2819. * doc/aria2c.1.txt
  2820. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Added usage for --ca-certificate, --certificate, --private-key and
  2822. --check-certificate options.
  2823. * doc/aria2c.1.txt
  2824. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Updated man page
  2826. * doc/aria2c.1.txt
  2827. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Added --no-proxy option. It receives comman separated hostname or
  2829. domains to which proxy should not be used.
  2830. aria2 honors the environment variable no_proxy to override no-proxy
  2831. value in configuration file. The user can override the environment
  2832. variable no_proxy with --no-proxy command-line option.
  2833. * src/AbstractCommand.cc
  2834. * src/OptionHandlerFactory.cc
  2835. * src/option_processing.cc
  2836. * src/prefs.cc
  2837. * src/prefs.h
  2838. * src/usage_text.h
  2839. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2841. The CA certificates are specified in --ca-certificate option.
  2842. By default, the verification is disabled. Use --check-certificate
  2843. option to enable it.
  2844. * src/HttpRequestCommand.cc
  2845. * src/LibgnutlsTLSContext.cc
  2846. * src/LibgnutlsTLSContext.h
  2847. * src/LibsslTLSContext.cc
  2848. * src/LibsslTLSContext.h
  2849. * src/MultiUrlRequestInfo.cc
  2850. * src/OptionHandlerFactory.cc
  2851. * src/SocketCore.cc
  2852. * src/SocketCore.h
  2853. * src/a2functional.h
  2854. * src/message.h
  2855. * src/option_processing.cc
  2856. * src/prefs.cc
  2857. * src/prefs.h
  2858. * src/usage_text.h
  2859. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Added client certificate authentication for SSL/TLS.
  2861. Currently a private key must be decrypted for use with aria2.
  2862. If a user accidentally gives encrypted file to aria2 then following
  2863. thing happens:
  2864. If encrypted private key is given to aria2, it behaves differently
  2865. depending on the ssl library it uses. If aria2 built with openssl then
  2866. openssl prompts the user for password. If aria2 build with gnutls then
  2867. aria2 exists with error at start up.
  2868. * src/DownloadEngineFactory.cc
  2869. * src/MultiUrlRequestInfo.cc
  2870. * src/OptionHandlerFactory.cc
  2871. * src/option_processing.cc
  2872. * src/prefs.cc
  2873. * src/prefs.h
  2874. * src/usage_text.h
  2875. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Introduced TLSContext that holds TLS related data that can be shared
  2877. with multiple SSL connections.
  2878. * src/DownloadEngineFactory.cc
  2879. * src/LibgnutlsTLSContext.cc
  2880. * src/LibgnutlsTLSContext.h
  2881. * src/LibsslTLSContext.cc
  2882. * src/LibsslTLSContext.h
  2883. * src/Makefile.am
  2884. * src/SocketCore.cc
  2885. * src/SocketCore.h
  2886. * src/TLSContext.h
  2887. * src/message.h
  2888. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Fixed the bug that the DiskWriter of the first FileEntry whose
  2890. `needsFileAllocation' property is false is not created
  2891. even if it shares a piece with next FileEntry which `requested' property
  2892. is true.
  2893. Fixed the bug that zero-length file is not created if pre file
  2894. allocation is not done.
  2895. * src/MultiDiskAdaptor.cc
  2896. * src/MultiDiskAdaptor.h
  2897. * test/MultiDiskAdaptorTest.cc
  2898. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2899. Added the ability to pool proxy connection.
  2900. The conneciton in FTP with proxy-method=GET is not pooled.
  2901. Proxy-Connection header will not be sent when sending CONNECT method.
  2902. * src/DownloadEngine.cc
  2903. * src/DownloadEngine.h
  2904. * src/FtpFinishDownloadCommand.cc
  2905. * src/FtpInitiateConnectionCommand.cc
  2906. * src/FtpNegotiationCommand.cc
  2907. * src/HttpDownloadCommand.cc
  2908. * src/HttpInitiateConnectionCommand.cc
  2909. * src/HttpRequest.cc
  2910. * src/HttpRequest.h
  2911. * src/HttpResponse.cc
  2912. * src/HttpSkipResponseCommand.cc
  2913. * test/HttpRequestTest.cc
  2914. * test/HttpResponseTest.cc
  2915. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Handle date before epoch.
  2917. To create *bad* Time object, call Time::null().
  2918. * src/CookieParser.cc
  2919. * src/FtpConnection.cc
  2920. * src/FtpConnection.h
  2921. * src/FtpNegotiationCommand.cc
  2922. * src/RequestGroup.cc
  2923. * src/TimeA2.cc
  2924. * src/TimeA2.h
  2925. * test/CookieParserTest.cc
  2926. * test/FtpConnectionTest.cc
  2927. * test/TimeTest.cc
  2928. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Added support for following envrionment variables: http_proxy,
  2930. https_proxy, ftp_proxy and all_proxy.
  2931. Each variable is equivalent to the aria2 option whose name is the
  2932. variable name with '_' replaced with '-'.
  2933. They overrides options specified in aria2.conf file.
  2934. The envrionment variables can be overrode using command-line option.
  2935. * src/option_processing.cc
  2936. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Renamed --http-proxy-method as --proxy-method.
  2938. * src/AbstractCommand.cc
  2939. * src/FtpInitiateConnectionCommand.cc
  2940. * src/HttpInitiateConnectionCommand.cc
  2941. * src/OptionHandlerFactory.cc
  2942. * src/option_processing.cc
  2943. * src/prefs.cc
  2944. * src/prefs.h
  2945. * src/usage_text.h
  2946. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2947. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2948. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2949. Above 3 options and --http-proxy option can handle proxy in URL format
  2950. like: http://user:passwd@host:port.
  2951. If a proxy requires user/password, they must be specified in a URL.
  2952. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2953. instead.
  2954. * src/AbstractCommand.cc
  2955. * src/AbstractCommand.h
  2956. * src/AbstractProxyRequestCommand.cc
  2957. * src/AbstractProxyRequestCommand.h
  2958. * src/AuthConfigFactory.cc
  2959. * src/AuthConfigFactory.h
  2960. * src/FtpFinishDownloadCommand.cc
  2961. * src/FtpInitiateConnectionCommand.cc
  2962. * src/FtpInitiateConnectionCommand.h
  2963. * src/FtpNegotiationCommand.cc
  2964. * src/FtpTunnelRequestCommand.cc
  2965. * src/FtpTunnelRequestCommand.h
  2966. * src/HttpDownloadCommand.cc
  2967. * src/HttpInitiateConnectionCommand.cc
  2968. * src/HttpInitiateConnectionCommand.h
  2969. * src/HttpProxyRequestCommand.cc
  2970. * src/HttpProxyRequestCommand.h
  2971. * src/HttpRequest.cc
  2972. * src/HttpRequest.h
  2973. * src/HttpRequestCommand.cc
  2974. * src/HttpRequestCommand.h
  2975. * src/HttpSkipResponseCommand.cc
  2976. * src/InitiateConnectionCommand.cc
  2977. * src/InitiateConnectionCommand.h
  2978. * src/OptionHandlerFactory.cc
  2979. * src/OptionHandlerImpl.h
  2980. * src/Request.cc
  2981. * src/option_processing.cc
  2982. * src/prefs.cc
  2983. * src/prefs.h
  2984. * src/usage_text.h
  2985. * test/AuthConfigFactoryTest.cc
  2986. * test/HttpRequestTest.cc
  2987. * test/OptionHandlerTest.cc
  2988. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Execute choking algorithm when unchoked and interested peer is
  2990. disconected.
  2991. * src/DefaultPeerStorage.cc
  2992. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Added testcase for BtNotInterestedMessage from unchoked peer.
  2994. * test/BtNotInterestedMessageTest.cc
  2995. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Execute choking algorithm when BtInterestedMessage arrives from
  2997. unchoked peer.
  2998. * src/BtInterestedMessage.cc
  2999. * src/BtInterestedMessage.h
  3000. * src/DefaultBtMessageFactory.cc
  3001. * test/BtInterestedMessageTest.cc
  3002. * test/MockPeerStorage.h
  3003. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. AuthConfigFactory is now part of DownloadEngine.
  3005. * src/AbstractProxyRequestCommand.cc
  3006. * src/AuthConfigFactory.h
  3007. * src/DownloadEngine.cc
  3008. * src/DownloadEngine.h
  3009. * src/FtpConnection.cc
  3010. * src/FtpConnection.h
  3011. * src/FtpNegotiationCommand.cc
  3012. * src/HttpConnection.cc
  3013. * src/HttpRequest.cc
  3014. * src/HttpRequest.h
  3015. * src/HttpRequestCommand.cc
  3016. * src/HttpResponse.cc
  3017. * src/HttpResponseCommand.cc
  3018. * src/HttpSkipResponseCommand.cc
  3019. * src/MultiUrlRequestInfo.cc
  3020. * src/main.cc
  3021. * test/FtpConnectionTest.cc
  3022. * test/HttpRequestTest.cc
  3023. * test/HttpResponseTest.cc
  3024. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. Corrected catched exception type.
  3026. * src/ServerStatMan.cc
  3027. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3028. DNSCache is now part of DownloadEngine.
  3029. * src/DNSCache.h
  3030. * src/DownloadEngine.cc
  3031. * src/DownloadEngine.h
  3032. * src/InitiateConnectionCommand.cc
  3033. * src/MultiUrlRequestInfo.cc
  3034. * test/Makefile.am
  3035. * test/Makefile.in
  3036. * test/SimpleDNSCacheTest.cc
  3037. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3039. DownloadEngine.
  3040. * src/ActivePeerConnectionCommand.cc
  3041. * src/BtSetup.cc
  3042. * src/CUIDCounter.h
  3043. * src/DHTSetup.cc
  3044. * src/DownloadCommand.cc
  3045. * src/DownloadEngine.cc
  3046. * src/DownloadEngine.h
  3047. * src/DownloadEngineFactory.cc
  3048. * src/FileAllocationDispatcherCommand.cc
  3049. * src/InitiatorMSEHandshakeCommand.cc
  3050. * src/PeerInitiateConnectionCommand.cc
  3051. * src/PeerInteractionCommand.cc
  3052. * src/PeerListenCommand.cc
  3053. * src/RequestGroup.cc
  3054. * src/StreamFileAllocationEntry.cc
  3055. * src/TrackerWatcherCommand.cc
  3056. * src/main.cc
  3057. * test/RequestGroupManTest.cc
  3058. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Implemented commented code in BtSeederStateChoke
  3060. * src/BtSeederStateChoke.cc
  3061. * src/Peer.cc
  3062. * src/Peer.h
  3063. * src/PeerInteractionCommand.cc
  3064. * src/PeerSessionResource.cc
  3065. * src/PeerSessionResource.h
  3066. * test/MockBtMessageDispatcher.h
  3067. * test/PeerSessionResourceTest.cc
  3068. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3070. its object.
  3071. * src/AbstractBtMessage.cc
  3072. * src/ActivePeerConnectionCommand.cc
  3073. * src/ActivePeerConnectionCommand.h
  3074. * src/BtContextAwareCommand.cc
  3075. * src/BtContextAwareCommand.h
  3076. * src/BtExtendedMessage.cc
  3077. * src/BtExtendedMessage.h
  3078. * src/BtInterestedMessage.cc
  3079. * src/BtInterestedMessage.h
  3080. * src/BtNotInterestedMessage.cc
  3081. * src/BtNotInterestedMessage.h
  3082. * src/BtRegistry.cc
  3083. * src/BtRegistry.h
  3084. * src/BtSeederStateChoke.cc
  3085. * src/BtSetup.cc
  3086. * src/DHTGetPeersCommand.cc
  3087. * src/DHTGetPeersCommand.h
  3088. * src/DHTPeerAnnounceEntry.cc
  3089. * src/DHTPeerAnnounceEntry.h
  3090. * src/DHTPeerAnnounceStorage.cc
  3091. * src/DHTPeerAnnounceStorage.h
  3092. * src/DHTPeerLookupTask.cc
  3093. * src/DHTPeerLookupTask.h
  3094. * src/DHTSetup.cc
  3095. * src/DHTSetup.h
  3096. * src/DHTTaskFactory.h
  3097. * src/DHTTaskFactoryImpl.cc
  3098. * src/DHTTaskFactoryImpl.h
  3099. * src/DefaultBtAnnounce.cc
  3100. * src/DefaultBtInteractive.cc
  3101. * src/DefaultBtInteractive.h
  3102. * src/DefaultBtMessageDispatcher.cc
  3103. * src/DefaultBtMessageDispatcher.h
  3104. * src/DefaultBtMessageFactory.cc
  3105. * src/DefaultBtMessageFactory.h
  3106. * src/DefaultBtMessageReceiver.cc
  3107. * src/DefaultBtProgressInfoFile.cc
  3108. * src/DefaultBtProgressInfoFile.h
  3109. * src/DefaultBtRequestFactory.cc
  3110. * src/DefaultBtRequestFactory.h
  3111. * src/DefaultExtensionMessageFactory.cc
  3112. * src/DefaultExtensionMessageFactory.h
  3113. * src/DefaultPeerStorage.cc
  3114. * src/DefaultPeerStorage.h
  3115. * src/DownloadEngine.cc
  3116. * src/DownloadEngine.h
  3117. * src/InitiatorMSEHandshakeCommand.cc
  3118. * src/InitiatorMSEHandshakeCommand.h
  3119. * src/MSEHandshake.cc
  3120. * src/MSEHandshake.h
  3121. * src/Makefile.am
  3122. * src/Makefile.in
  3123. * src/PeerChokeCommand.cc
  3124. * src/PeerChokeCommand.h
  3125. * src/PeerInitiateConnectionCommand.cc
  3126. * src/PeerInitiateConnectionCommand.h
  3127. * src/PeerInteractionCommand.cc
  3128. * src/PeerInteractionCommand.h
  3129. * src/PeerObject.h
  3130. * src/PeerReceiveHandshakeCommand.cc
  3131. * src/PeerReceiveHandshakeCommand.h
  3132. * src/ReceiverMSEHandshakeCommand.cc
  3133. * src/RequestGroup.cc
  3134. * src/RequestGroup.h
  3135. * src/RequestGroupMan.cc
  3136. * src/RequestGroupMan.h
  3137. * src/SeedCheckCommand.cc
  3138. * src/SeedCheckCommand.h
  3139. * src/ShareRatioSeedCriteria.h
  3140. * src/SimpleBtMessage.cc
  3141. * src/TrackerWatcherCommand.cc
  3142. * src/TrackerWatcherCommand.h
  3143. * src/UTPexExtensionMessage.cc
  3144. * src/UTPexExtensionMessage.h
  3145. * test/BtCancelMessageTest.cc
  3146. * test/BtChokeMessageTest.cc
  3147. * test/BtExtendedMessageTest.cc
  3148. * test/BtInterestedMessageTest.cc
  3149. * test/BtNotInterestedMessageTest.cc
  3150. * test/BtPieceMessageTest.cc
  3151. * test/BtPortMessageTest.cc
  3152. * test/BtRegistryTest.cc
  3153. * test/BtRejectMessageTest.cc
  3154. * test/BtRequestMessageTest.cc
  3155. * test/DHTPeerAnnounceEntryTest.cc
  3156. * test/DHTPeerAnnounceStorageTest.cc
  3157. * test/DefaultBtMessageDispatcherTest.cc
  3158. * test/DefaultBtMessageFactoryTest.cc
  3159. * test/DefaultBtProgressInfoFileTest.cc
  3160. * test/DefaultBtRequestFactoryTest.cc
  3161. * test/DefaultExtensionMessageFactoryTest.cc
  3162. * test/MSEHandshakeTest.cc
  3163. * test/MockDHTTaskFactory.h
  3164. * test/ShareRatioSeedCriteriaTest.cc
  3165. * test/UTPexExtensionMessageTest.cc
  3166. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Fixed compiler warning.
  3168. * test/UtilTest.cc
  3169. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. Treat Cookie object as session cookie if expiry = 0 is given.
  3171. With this change, you can specify session scoped cookies in an external
  3172. file setting expiry value to 0.
  3173. * src/Cookie.cc
  3174. * src/Cookie.h
  3175. * test/CookieParserTest.cc
  3176. * test/CookieStorageTest.cc
  3177. * test/CookieTest.cc
  3178. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Changed signature of DHTMessageFactory::createResponseMessage().
  3180. Removed unused validateIDMatch.
  3181. * src/DHTMessageFactory.h
  3182. * src/DHTMessageFactoryImpl.cc
  3183. * src/DHTMessageFactoryImpl.h
  3184. * src/DHTMessageTracker.cc
  3185. * test/DHTMessageFactoryImplTest.cc
  3186. * test/MockDHTMessageFactory.h
  3187. Dropped DHT message coming from same ID of localhost.
  3188. * src/DHTMessageReceiver.cc
  3189. Rejected adding node whose ID is the same as localhost's.
  3190. * src/DHTRoutingTable.cc
  3191. * test/BtPortMessageTest.cc
  3192. * test/DHTRoutingTableTest.cc
  3193. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Pool connection when redirection occurs with Content-Length = 0.
  3195. * src/HttpSkipResponseCommand.cc
  3196. * src/HttpSkipResponseCommand.h
  3197. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3198. Fixed the bug that causes time out when redirection occurs with
  3199. content-length 0.
  3200. * src/HttpResponseCommand.cc
  3201. * src/HttpSkipResponseCommand.cc
  3202. * src/HttpSkipResponseCommand.h
  3203. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3204. Now each status legends is shown only when it appears in Download
  3205. Result. If Download Result has no item, then status legend will not
  3206. be printed.
  3207. * src/RequestGroupMan.cc
  3208. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Removed duplicate creation of OptionHandlers.
  3210. * src/option_processing.cc
  3211. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3212. Fixed the bug that causes segmentation fault when accessing files which
  3213. don't exist or are not included in --select-file option while
  3214. validating chunk checksum.
  3215. * src/MultiDiskAdaptor.cc
  3216. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Fixed compiler warning.
  3218. * test/UtilTest.cc
  3219. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3220. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3221. * src/IteratableChecksumValidator.cc
  3222. * src/IteratableChunkChecksumValidator.cc
  3223. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. * Release 0.16.2
  3225. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Added Serbian translation. Updated Ukrainian translation.
  3227. Thanks to all translators.
  3228. * po/sr.po
  3229. * po/uk.po
  3230. * po/LINGUAS
  3231. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3232. Bump up version number to 0.16.2
  3233. * configure.ac
  3234. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3235. Added length equality test to operator== to drop a piece message
  3236. whose length does not match to the requested one.
  3237. * src/RequestSlot.cc
  3238. * test/DefaultBtMessageDispatcherTest.cc
  3239. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3241. recieved.
  3242. In this fix, if a request larger than 16KiB length is received, aria2
  3243. disconnects the peer.
  3244. * src/BtConstants.h
  3245. * src/PeerMessageUtil.cc
  3246. * src/PeerMessageUtil.h
  3247. * test/BtRequestMessageTest.cc
  3248. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3249. * Release 0.16.1
  3250. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3252. * doc/aria2c.1.txt
  3253. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3255. Updated French, Simplified Chinese and Japanese translations.
  3256. Thanks to all translators.
  3257. en@quot and en@boldquot are also added.
  3258. * po/LINGUAS
  3259. * po/fr.po
  3260. * po/ja.po
  3261. * po/uk.po
  3262. * po/vi.po
  3263. * po/zh_CN.po
  3264. * po/zh_TW.po
  3265. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Bump up version number to 0.16.1.
  3267. * configure.ac
  3268. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3269. Updated README.
  3270. * README
  3271. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3273. not to replace '--' with em dash character.
  3274. * doc/aria2c.1.txt
  3275. * doc/makeman
  3276. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3278. every SEC seconds.
  3279. * src/DownloadEngineFactory.cc
  3280. * src/OptionHandlerFactory.cc
  3281. * src/option_processing.cc
  3282. * src/usage_text.h
  3283. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Fixed compile warning on linux-amd64
  3285. * src/FtpConnection.cc
  3286. * src/IteratableChunkChecksumValidator.cc
  3287. * src/MultiDiskAdaptor.cc
  3288. Fixed the bug that unit test fails on linux-amd64
  3289. * test/UtilTest.cc
  3290. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Added --dht-file-path option to change the path to dht.dat, which is a
  3292. serialized DHT routing table.
  3293. * src/OptionHandlerFactory.cc
  3294. * src/option_processing.cc
  3295. * src/usage_text.h
  3296. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Fixed possible underflow.
  3298. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3299. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Fixed the bug that last character in URI is not encoded.
  3301. * src/Request.cc
  3302. * test/RequestTest.cc
  3303. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Fixed the bug that referer header field contains fragment.
  3305. Now Request class removes fragment part of URI and encodes it
  3306. in Request::setUri() and setReferer().
  3307. * src/Request.h
  3308. * src/Request.cc
  3309. * test/RequestTest.cc
  3310. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Added missing m4 macros.
  3312. * m4/cppunit.m4
  3313. * m4/libgcrypt.m4
  3314. * m4/libgnutls-extra.m4
  3315. * m4/libgnutls.m4
  3316. * m4/libxml2.m4
  3317. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. Fixed compile error with gcc-4.4(snapshot)
  3319. * src/File.cc
  3320. * src/FtpConnection.cc
  3321. * src/OptionHandlerImpl.h
  3322. * src/Util.cc
  3323. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Removed assert()
  3325. * src/SocketBuffer.cc (SocketBuffer::send)
  3326. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Changed the type of _numNewConnection to unsigned int.
  3328. * src/ActivePeerConnectionCommand.cc
  3329. * src/ActivePeerConnectionCommand.h
  3330. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. * Release 0.16.0
  3332. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Updated doc
  3334. * README
  3335. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3337. translations. Thanks to all translators.
  3338. * po/bg.po
  3339. * po/de.po
  3340. * po/fr.po
  3341. * po/ja.po
  3342. * po/zh_CN.po
  3343. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Bump up version number to 0.16.0.
  3345. * configure.ac
  3346. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3348. int32_t.
  3349. Changed the type of count to int32_t.
  3350. * src/Metalink2RequestGroup.cc
  3351. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Added test for Time::elapsed(time_t).
  3353. * test/TimeTest.cc
  3354. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3356. Util::difftv() should be used instead.
  3357. * src/TimeA2.cc
  3358. * src/TimeA2.h
  3359. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Made socket for dht connections non-blocking
  3361. * src/DHTAbstractMessage.cc
  3362. * src/DHTAbstractMessage.h
  3363. * src/DHTConnection.h
  3364. * src/DHTConnectionImpl.cc
  3365. * src/DHTConnectionImpl.h
  3366. * src/DHTMessage.h
  3367. * src/DHTMessageDispatcherImpl.cc
  3368. * src/DHTMessageDispatcherImpl.h
  3369. * src/DHTUnknownMessage.cc
  3370. * src/DHTUnknownMessage.h
  3371. * src/SocketCore.cc
  3372. * src/SocketCore.h
  3373. * test/MockDHTMessage.h
  3374. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Changed the type of offset to int.
  3376. * src/ParameterizedStringParser.cc
  3377. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. Made getAsInt() return int32_t
  3379. * src/Option.h
  3380. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3382. build.
  3383. * configure.ac
  3384. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3385. Use sqlite3_open if sqlite3_open_v2 is not available.
  3386. * src/Sqlite3MozCookieParser.cc
  3387. * src/Sqlite3MozCookieParser.h
  3388. * m4/sqlite3.m4
  3389. * test/Sqlite3MozCookieParserTest.cc
  3390. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3392. * src/BtPieceMessage.cc
  3393. * src/DHTPeerAnnounceStorage.cc
  3394. * src/DefaultPieceStorage.cc
  3395. * src/DownloadCommand.cc
  3396. * src/DownloadEngine.cc
  3397. * src/FtpConnection.cc
  3398. * src/PeerConnection.cc
  3399. * src/PeerMessageUtil.cc
  3400. * src/RequestGroup.cc
  3401. * src/RequestGroupMan.cc
  3402. * src/SimpleBtMessage.cc
  3403. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3404. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3405. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3406. * src/AbstractDiskWriter.cc
  3407. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Don't set Request::supportsPersistentConnection() in HttpConnection
  3409. since this code is also used in AbstractProxyResponseCommand.
  3410. Moved those code to HttpResponse.
  3411. * src/HttpResponse.cc
  3412. * src/HttpResponse.h
  3413. * src/HttpConnection.cc
  3414. * src/HttpConnection.h
  3415. * src/HttpResponseCommand.cc
  3416. * test/HttpResponseTest.cc
  3417. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3419. The configuration is minimum: no torrent, no metalink, so there may be
  3420. other compile error on their code.
  3421. * src/a2netcompat.h
  3422. * src/File.cc
  3423. * src/File.h
  3424. * src/SocketCore.cc
  3425. * src/SocketCore.h
  3426. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Made a socket of incoming peer non-blocking.
  3428. * src/PeerListenCommand.cc
  3429. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3430. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3431. whole message data is not sent in one send() call.
  3432. * src/BtPieceMessage.cc
  3433. * src/BtPieceMessage.h
  3434. * src/PeerConnection.cc
  3435. * src/PeerConnection.h
  3436. * src/SimpleBtMessage.cc
  3437. * src/SimpleBtMessage.h
  3438. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3439. Fixed the bug that aria2 downloads faster than max-download-limit when
  3440. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3441. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3442. , instead of sum of them.
  3443. * src/ActivePeerConnectionCommand.cc
  3444. * src/DefaultBtInteractive.cc
  3445. * src/DownloadCommand.cc
  3446. * src/PeerInteractionCommand.cc
  3447. * src/PeerReceiveHandshakeCommand.cc
  3448. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. Fixed the bug that HTTPS download fails.
  3450. * src/AbstractCommand.cc
  3451. * src/AbstractCommand.h
  3452. * src/DownloadCommand.cc
  3453. * src/FtpConnection.cc
  3454. * src/HttpConnection.cc
  3455. * src/HttpRequestCommand.cc
  3456. * src/HttpResponseCommand.cc
  3457. * src/HttpSkipResponseCommand.cc
  3458. * src/MSEHandshake.cc
  3459. * src/PeerConnection.cc
  3460. * src/SocketCore.cc
  3461. * src/SocketCore.h
  3462. Fixed the bug that aria2 doesn't download whole content body and cannot
  3463. reuse connection if chunked transfer encoding and gzip content encoding
  3464. are set.
  3465. * src/DownloadCommand.cc
  3466. * src/HttpSkipResponseCommand.cc
  3467. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Updated man page.
  3469. * doc/aria2c.1.txt
  3470. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. When error occurred while aria2 was parsing an .aria2.conf file, print
  3472. the usage of the option that caused error.
  3473. * src/option_processing.cc
  3474. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Fixed compile error on OptionHandlerException
  3476. * src/Makefile.am
  3477. * src/OptionHandlerException.cc
  3478. * src/OptionHandlerException.h
  3479. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Moved message of the error to OptionHandlerException.h
  3481. * src/NameMatchOptionHandler.h
  3482. * src/OptionHandlerException.h
  3483. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. When error occurs while aria2 is parsing an command-line option, print
  3485. the usage of the option.
  3486. * src/Makefile.am
  3487. * src/NameMatchOptionHandler.h
  3488. * src/OptionHandlerException.h
  3489. * src/option_processing.cc
  3490. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Reverted previous change.
  3492. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3493. username is not in URI.
  3494. * src/HttpRequest.cc
  3495. * src/Request.cc
  3496. * test/HttpRequestTest.cc
  3497. * test/RequestTest.cc
  3498. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Now colon is required for username and password in FTP URL, like:
  3500. ftp://username:password@host.
  3501. If colon is not there, aria2 don't parse it as a username. For example,
  3502. aria2 don't retrieve username from ftp://username@host.
  3503. This fix was made in order to login FTP server via non-transparent ftp
  3504. proxy.
  3505. * src/Request.cc
  3506. * test/RequestTest.cc
  3507. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Use netrc for HTTP.
  3509. Now FTP user/password is sent in Authorization header when
  3510. --ftp-via-http-proxy=get is given.
  3511. * src/AuthConfigFactory.cc
  3512. * src/HttpRequest.cc
  3513. * src/HttpRequest.h
  3514. * src/NetrcAuthResolver.cc
  3515. * src/NetrcAuthResolver.h
  3516. * src/OptionHandlerFactory.cc
  3517. * src/option_processing.cc
  3518. * src/prefs.cc
  3519. * src/prefs.h
  3520. * test/AuthConfigFactoryTest.cc
  3521. * test/HttpRequestTest.cc
  3522. * test/NetrcAuthResolverTest.cc
  3523. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3524. Issue PWD command first and get working directory and use it as a prefix
  3525. for CWD command.
  3526. * src/DownloadEngine.cc
  3527. * src/DownloadEngine.h
  3528. * src/FtpConnection.cc
  3529. * src/FtpConnection.h
  3530. * src/FtpFinishDownloadCommand.cc
  3531. * src/FtpInitiateConnectionCommand.cc
  3532. * src/FtpNegotiationCommand.cc
  3533. * src/FtpNegotiationCommand.h
  3534. * test/FtpConnectionTest.cc
  3535. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Removed default user/pass for FTP user/pass, since it should not have
  3537. precedence over netrc configuration by default.
  3538. * src/OptionHandlerFactory.cc
  3539. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Added debug log for socket event.
  3541. * src/AbstractCommand.cc
  3542. * src/PeerAbstractCommand.cc
  3543. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Log microseconds.
  3545. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3546. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3547. Replaced HelpItem.cc with OptionHandler.cc.
  3548. * po/POTFILES.in
  3549. Updated po files with 'make update-po'
  3550. * po/aria2c.pot
  3551. * po/*.po
  3552. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Removed possible values from the text.
  3554. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3555. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Removed unused preferences:
  3557. PREF_NO_PREALLOCATION
  3558. PREF_STDOUT_LOG
  3559. PREF_TRACKER_MAX_TRIES
  3560. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3561. PREF_MIN_SEGMENT_SIZE
  3562. * src/option_processing.cc
  3563. * src/prefs.cc
  3564. * src/prefs.h
  3565. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Integrated HelpItem into OptionParser to ease the workload for adding
  3567. new options. Removed default value from usage text.
  3568. * src/HelpItem.cc: Removed.
  3569. * src/HelpItem.h: Removed.
  3570. * src/HelpItemFactory.cc: Removed.
  3571. * src/HelpItemFactory.h: Removed.
  3572. * src/Makefile.am
  3573. * src/Makefile.in
  3574. * src/NameMatchOptionHandler.h
  3575. * src/OptionHandler.cc
  3576. * src/OptionHandler.h
  3577. * src/OptionHandlerFactory.cc
  3578. * src/OptionHandlerImpl.h
  3579. * src/OptionParser.cc
  3580. * src/OptionParser.h
  3581. * src/TagContainer.cc: Removed.
  3582. * src/TagContainer.h: Removed.
  3583. * src/TaggedItem.cc: Removed.
  3584. * src/TaggedItem.h: Removed.
  3585. * src/main.cc
  3586. * src/option_processing.cc
  3587. * src/usage_text.h
  3588. * src/version_usage.cc
  3589. * test/HelpItemTest.cc: Removed.
  3590. * test/Makefile.am
  3591. * test/Makefile.in
  3592. * test/OptionHandlerTest.cc
  3593. * test/OptionParserTest.cc
  3594. * test/TagContainerTest.cc: Removed.
  3595. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. Moved `TransferStat stat = ...' to inside the `if' clause.
  3597. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3598. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Fixed the bug that a block in a piece is requested when same block is
  3600. already requested to the same peer in end game mode.
  3601. * src/BtRequestFactory.h
  3602. * src/DefaultBtInteractive.cc
  3603. * src/DefaultBtRequestFactory.cc
  3604. * src/DefaultBtRequestFactory.h
  3605. * src/DefaultPieceStorage.cc
  3606. * src/DefaultPieceStorage.h
  3607. * src/PieceStorage.h
  3608. * src/UnknownLengthPieceStorage.cc
  3609. * src/UnknownLengthPieceStorage.h
  3610. * test/DefaultBtRequestFactoryTest.cc
  3611. * test/DefaultPieceStorageTest.cc
  3612. * test/MockBtRequestFactory.h
  3613. * test/MockPieceStorage.h
  3614. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. Removed _uploadLength and _downloadLength from PeerSessionResource
  3616. and use PeerStat::_sessionUploadLength and
  3617. PeerStat::_sessionDownloadLength.
  3618. * src/PeerSessionResource.cc
  3619. * src/PeerSessionResource.h
  3620. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Fixed the bug that prefixLength of split bucket which doesn't include
  3622. local node ID is incremented.
  3623. * src/DHTBucket.cc
  3624. * src/DHTBucket.h
  3625. * test/DHTBucketTest.cc
  3626. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Added cookies.sqlite to EXTRA_DIST
  3628. * test/Makefile.am
  3629. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Added Turkish translation. Updated French, German, Russian and
  3631. Simplified Chinese translations. Thanks to all translators.
  3632. * po/LINGUAS
  3633. * po/de.po
  3634. * po/fr.po
  3635. * po/ru.po
  3636. * po/tr.po
  3637. * po/zh_CN.po
  3638. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Added deliminating text to the beginning of the log so that one can find
  3640. where the log starts easily.
  3641. * src/main.cc
  3642. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3644. to fix compile error when async DNS is not enabled by configuration.
  3645. * src/AbstractCommand.cc
  3646. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. If establishing conneciton to a server is failed, then mark error on
  3648. its ServerStat.
  3649. Added the cause of error to log when error event occurred.
  3650. Moved message string to message.h for translation.
  3651. * src/AbstractCommand.cc
  3652. * src/AbstractCommand.h
  3653. * src/FtpNegotiationCommand.cc
  3654. * src/HttpRequestCommand.cc
  3655. * src/PeerAbstractCommand.cc
  3656. * src/message.h
  3657. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Added the function to get error message from socket.
  3659. * src/SocketCore.cc
  3660. * src/SocketCore.h
  3661. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3663. * src/RequestGroupMan.cc
  3664. * src/RequestGroupMan.h
  3665. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. If error event is received in epoll, then abort download immediately.
  3667. * src/AbstractCommand.cc
  3668. * src/Command.cc
  3669. * src/Command.h
  3670. * src/DownloadEngine.cc
  3671. * src/PeerAbstractCommand.cc
  3672. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Added usage message for --uri-selector, --server-stat-of,
  3674. --server-stat-in, --server-stat-timeout options.
  3675. * src/HelpItemFactory.cc
  3676. * src/usage_text.h
  3677. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Added upper limit of FTP response buffer. The current implementation
  3679. uses 4096bytes as a limit.
  3680. * src/FtpConnection.cc
  3681. * src/FtpConnection.h
  3682. * test/FtpConnectionTest.cc
  3683. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Use non-blocking socket for TCP communication to avoid possible
  3685. blocking due to buffer full.
  3686. * src/AbstractProxyRequestCommand.cc
  3687. * src/FtpConnection.cc
  3688. * src/FtpConnection.h
  3689. * src/FtpNegotiationCommand.cc
  3690. * src/FtpNegotiationCommand.h
  3691. * src/HttpConnection.cc
  3692. * src/HttpConnection.h
  3693. * src/HttpRequestCommand.cc
  3694. * src/InitiatorMSEHandshakeCommand.cc
  3695. * src/InitiatorMSEHandshakeCommand.h
  3696. * src/MSEHandshake.cc
  3697. * src/MSEHandshake.h
  3698. * src/Makefile.am
  3699. * src/PeerConnection.cc
  3700. * src/PeerConnection.h
  3701. * src/PeerInteractionCommand.cc
  3702. * src/PeerListenCommand.cc
  3703. * src/ReceiverMSEHandshakeCommand.cc
  3704. * src/ReceiverMSEHandshakeCommand.h
  3705. * src/SocketBuffer.cc
  3706. * src/SocketBuffer.h
  3707. * src/SocketCore.cc
  3708. * src/SocketCore.h
  3709. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Call setStatusRealtime() in constructor.
  3711. * src/RealtimeCommand.cc
  3712. * src/RealtimeCommand.h
  3713. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Call Download::setNoWait(true) to execute newly created command without
  3715. a pause.
  3716. * src/AbstractCommand.cc
  3717. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3719. found' error from HTTP/FTP server NUM times without getting single
  3720. bytes of data, then force the download to fail.
  3721. Basically aria2 tris all URIs available. So if long list of URIs are
  3722. specified in Metalink, then aria2 will take a long time to fail
  3723. eventually if all URIs are outdated. This option eases this situation
  3724. to limit the number of servers to try.
  3725. * src/FtpNegotiationCommand.cc
  3726. * src/HelpItemFactory.cc
  3727. * src/HttpResponseCommand.cc
  3728. * src/OptionHandlerFactory.cc
  3729. * src/PeerStat.h
  3730. * src/RequestGroup.cc
  3731. * src/RequestGroup.h
  3732. * src/SegmentMan.cc
  3733. * src/SegmentMan.h
  3734. * src/option_processing.cc
  3735. * src/prefs.cc
  3736. * src/prefs.h
  3737. * src/usage_text.h
  3738. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3740. response even if more than one response is in it.
  3741. * src/FtpConnection.cc
  3742. * src/FtpConnection.h
  3743. * test/FtpConnectionTest.cc
  3744. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Merged from stable-0.15
  3746. * m4/libcares.m4
  3747. Use pkg-config
  3748. * m4/sqlite3.m4
  3749. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Removed unnecessary if statement.
  3751. * src/DefaultPieceStorage.cc (initPieceStorage)
  3752. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Added --connect-timeout option to specify connect timeout in seconds.
  3754. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3755. connecting to BitTorrent peer is not controlled by this option.
  3756. * src/AbstractProxyRequestCommand.cc
  3757. * src/FtpNegotiationCommand.cc
  3758. * src/HelpItemFactory.cc
  3759. * src/HttpRequestCommand.cc
  3760. * src/OptionHandlerFactory.cc
  3761. * src/option_processing.cc
  3762. * src/prefs.cc
  3763. * src/prefs.h
  3764. * src/usage_text.h
  3765. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Added help message for -R option.
  3767. * src/HelpItemFactory.cc
  3768. * src/usage_text.h
  3769. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3770. Added the message that the time is in local time zone.
  3771. * src/RequestGroup.cc
  3772. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Implemented the ability to get timestamp from remote FTP server using
  3774. MDTM command described in RFC3659.
  3775. * src/FtpConnection.cc
  3776. * src/FtpConnection.h
  3777. * src/FtpNegotiationCommand.cc
  3778. * src/FtpNegotiationCommand.h
  3779. * test/FtpConnectionTest.cc
  3780. * test/Makefile.am
  3781. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3782. Implemented the ability to get timestamp from remote HTTP server and
  3783. apply it to local file. To enable this feature, --remote-time option
  3784. is added. No usage text has been written yet.
  3785. If several servers returns difference timestamp, then aria2 uses latest
  3786. one.
  3787. * src/CopyDiskAdaptor.cc
  3788. * src/CopyDiskAdaptor.h
  3789. * src/DirectDiskAdaptor.cc
  3790. * src/DirectDiskAdaptor.h
  3791. * src/DiskAdaptor.h
  3792. * src/File.cc
  3793. * src/File.h
  3794. * src/HttpHeader.cc
  3795. * src/HttpHeader.h
  3796. * src/HttpResponse.cc
  3797. * src/HttpResponse.h
  3798. * src/HttpResponseCommand.cc
  3799. * src/HttpResponseCommand.h
  3800. * src/MultiDiskAdaptor.cc
  3801. * src/MultiDiskAdaptor.h
  3802. * src/OptionHandlerFactory.cc
  3803. * src/RequestGroup.cc
  3804. * src/RequestGroup.h
  3805. * src/RequestGroupMan.cc
  3806. * src/option_processing.cc
  3807. * src/prefs.cc
  3808. * src/prefs.h
  3809. * test/CopyDiskAdaptorTest.cc
  3810. * test/FileTest.cc
  3811. * test/Makefile.am
  3812. * test/Makefile.in
  3813. * test/MultiDiskAdaptorTest.cc
  3814. * test/TestUtil.cc
  3815. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Fixed the bug that DiskWriterEntry is not created when its
  3817. FileEntry.isRequested() is false and it doesn't share a piece with
  3818. other FileEntries that are requested. This bug causes segmentation fault
  3819. in the end.
  3820. * src/MultiDiskAdaptor.cc
  3821. * src/MultiDiskAdaptor.h
  3822. * src/MultiFileAllocationIterator.cc
  3823. * test/MultiDiskAdaptorTest.cc
  3824. * test/MultiFileAllocationIteratorTest.cc
  3825. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3827. called if the number of file entries are greater than max open files.
  3828. * src/AbstractSingleDiskAdaptor.cc
  3829. * src/AbstractSingleDiskAdaptor.h
  3830. * src/DiskAdaptor.h
  3831. * src/MultiDiskAdaptor.cc
  3832. * src/MultiDiskAdaptor.h
  3833. * test/MultiDiskAdaptorTest.cc
  3834. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3835. Added a constuctor that receives struct timeval.
  3836. Added operator<.
  3837. * src/TimeA2.cc
  3838. * src/TimeA2.h
  3839. * test/TimeTest.cc
  3840. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3842. * src/CookieParser.cc
  3843. * test/CookieParserTest.cc
  3844. * test/HttpResponseTest.cc
  3845. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Implmented the functions to parse date.
  3847. * src/TimeA2.cc
  3848. * src/TimeA2.h
  3849. * test/TimeTest.cc
  3850. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Added "Firefox3 Cookie" feature to FeatureConfig
  3852. * src/FeatureConfig.cc
  3853. * src/FeatureConfig.h
  3854. * test/FeatureConfigTest.cc
  3855. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Bump up version number to 0.16.0b
  3857. * configure.ac
  3858. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Use pkg-config if is is available.
  3860. * m4/openssl.m4
  3861. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3863. * src/BtAnnounce.h
  3864. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. If an error occurred with a URI, remove identical URI from remaining
  3866. URI list because it is likely that same error occurred in the end and it
  3867. is waste of time.
  3868. * src/AbstractCommand.cc
  3869. * src/RequestGroup.cc
  3870. * src/RequestGroup.h
  3871. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Removed wrong comment.
  3873. * src/DefaultPeerStorage.cc
  3874. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3876. Added return value of getpid() to argument of srand() to achieve more
  3877. randomized value.
  3878. * src/SimpleRandomizer.cc
  3879. * src/SimpleRandomizer.h
  3880. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Contact tracker frequently when the number of connections are 0 and
  3882. download is not finished yet.
  3883. * src/ActivePeerConnectionCommand.cc
  3884. * src/BtAnnounce.h
  3885. * src/DefaultBtAnnounce.cc
  3886. * src/DefaultBtAnnounce.h
  3887. * test/MockBtAnnounce.h
  3888. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Moved threshold values to UTPexExtensionMessage.
  3890. * src/DefaultBtInteractive.cc
  3891. * src/Peer.cc
  3892. * src/Peer.h
  3893. * src/UTPexExtensionMessage.cc
  3894. * src/UTPexExtensionMessage.h
  3895. * test/UTPexExtensionMessageTest.cc
  3896. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Added _incoming member to Peer class and made it true if the peer
  3898. initiated connection. Don't add those peer to UTPex message.
  3899. If extended handshake is received, assign _incoming to false.
  3900. * src/DefaultBtInteractive.cc
  3901. * src/HandshakeExtensionMessage.cc
  3902. * src/Peer.cc
  3903. * src/Peer.h
  3904. * src/PeerListenCommand.cc
  3905. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3907. Encoding Decoder. Removed size threshold for turning off on the fly
  3908. inflation because resulting file may or may not be inflated depending
  3909. on the file size and I think it is not expected by users.
  3910. This change fixes segmentation fault when Metalink file contains gzipped
  3911. file and its filesize is provided.
  3912. * src/HttpResponseCommand.cc
  3913. * src/HttpResponseCommand.h
  3914. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Made Cookie immutable.
  3916. * src/Cookie.cc
  3917. * src/Cookie.h
  3918. * src/CookieParser.cc
  3919. * src/CookieParser.h
  3920. * src/CookieStorage.cc
  3921. * test/CookieParserTest.cc
  3922. * test/CookieStorageTest.cc
  3923. * test/NsCookieParserTest.cc
  3924. * test/Sqlite3MozCookieParserTest.cc
  3925. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Removed CookieBox, CookieBoxFactory.
  3927. * src/CookieBox.cc
  3928. * src/CookieBox.h
  3929. * src/CookieBoxFactory.cc
  3930. * src/CookieBoxFactory.h
  3931. * src/Makefile.am
  3932. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Use CookieStorage class instead of CookieBox class.
  3934. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3935. * src/AbstractProxyRequestCommand.cc
  3936. * src/CookieStorage.cc
  3937. * src/DownloadEngine.cc
  3938. * src/DownloadEngine.h
  3939. * src/HttpConnection.cc
  3940. * src/HttpConnection.h
  3941. * src/HttpRequest.cc
  3942. * src/HttpRequest.h
  3943. * src/HttpRequestCommand.cc
  3944. * src/HttpResponse.cc
  3945. * src/HttpResponseCommand.cc
  3946. * src/HttpSkipResponseCommand.cc
  3947. * src/Makefile.am
  3948. * src/MultiUrlRequestInfo.cc
  3949. * src/Request.cc
  3950. * src/Request.h
  3951. * src/main.cc
  3952. * test/AllTest.cc
  3953. * test/CookieStorageTest.cc
  3954. * test/CookieTest.cc
  3955. * test/HttpRequestTest.cc
  3956. * test/HttpResponseTest.cc
  3957. * test/Makefile.am
  3958. * test/NsCookieParserTest.cc
  3959. * test/Sqlite3MozCookieParserTest.cc
  3960. * test/nscookietest.txt
  3961. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Updated
  3963. * test/Cookies.sqlite
  3964. * test/nscookietest.txt
  3965. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Added tests for CookieStorage::load()
  3967. * test/CookieStorageTest.cc
  3968. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Added CookieStorage class which is based on RFC2109 and manages cookies
  3970. more strictly than CookieBox and CookieBoxFactory class.
  3971. * src/CookieStorage.cc
  3972. * src/CookieStorage.h
  3973. * src/Cookie.cc
  3974. * src/Cookie.h
  3975. * test/CookieStorageTest.cc
  3976. * test/CookieTest.cc
  3977. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Fixed the bug that commands are created more than the number of pieces.
  3979. * src/RequestGroup.cc
  3980. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Fixed infinite loop bug in FTP when SIZE command failed.
  3982. * src/FtpNegotiationCommand.cc
  3983. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Removed DirectDiskAdaptorTest.h
  3985. * test/Makefile.am
  3986. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3987. Fixed chunk checksum validation cannot detect trailing garbage data.
  3988. BUG#2074141
  3989. * src/AbstractSingleDiskAdaptor.cc
  3990. * src/AbstractSingleDiskAdaptor.h
  3991. * src/CheckIntegrityEntry.cc
  3992. * src/CheckIntegrityEntry.h
  3993. * src/DiskAdaptor.h
  3994. * src/MultiDiskAdaptor.cc
  3995. * src/MultiDiskAdaptor.h
  3996. * src/RequestGroup.cc
  3997. * test/DirectDiskAdaptorTest.cc
  3998. * test/MultiDiskAdaptorTest.cc
  3999. * test/TestUtil.cc
  4000. * test/TestUtil.h
  4001. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Bump up version number of dht.dat file to 3. In version 3 format, time
  4003. is stored in 64bit, network byte order.
  4004. New build can load old format(version 2) but it saves the file in new
  4005. format. It means once you used new build, your dht.dat becomes
  4006. incompatible with older build.
  4007. * src/DHTRoutingTableDeserializer.cc
  4008. * src/DHTRoutingTableSerializer.cc
  4009. * test/DHTRoutingTableSerializerTest.cc
  4010. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4012. * test/Makefile.am
  4013. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Bump up version number of .aria2 control file to 0001.
  4015. New aria2 can still load version 0000 file but it saves the file in
  4016. version 0001 format. It means that new aria2 can resume download
  4017. started by old aria2 but the opposite is not true.
  4018. * src/DefaultBtProgressInfoFile.cc
  4019. * src/DefaultBtProgressInfoFile.h
  4020. * test/DefaultBtProgressInfoFileTest.cc
  4021. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Added ntoh64 and hton64 as inline functions.
  4023. * src/Util.cc
  4024. * test/UtilTest.cc
  4025. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Added sqlite3 depenency and Firefox3 cookie support.
  4027. * README
  4028. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. State that firefox3 cookie is supported explicitly in the usage.
  4030. * src/usage_text.h
  4031. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Externalized message.
  4033. * src/RequestGroupMan.cc
  4034. * src/message.h
  4035. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Save temporary file first and rename to the destination on success.
  4037. Added test cases.
  4038. * src/RequestGroupMan.cc
  4039. * test/RequestGroupManTest.cc
  4040. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Fixed the bug that the number of connected peer is exceeding the limit
  4042. (55 by default) in seeding mode.
  4043. Multiplied 0.8 to _maxUploadSpeedLimit.
  4044. * src/ActivePeerConnectionCommand.cc
  4045. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Clear table item.
  4047. * src/Dictionary.cc
  4048. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4049. Fixed error handling of lseek.
  4050. * src/AbstractDiskWriter.cc
  4051. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4053. style cookie file.
  4054. * src/usage_text.h
  4055. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4057. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4058. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4059. * src/Util.cc
  4060. * src/Util.h
  4061. * src/CookieParser.cc
  4062. * test/UtilTest.cc
  4063. * test/CookieParserTest.cc
  4064. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Separate the implementation to load old mozilla format of cookie to
  4066. NsCookieParser class.
  4067. * src/CookieBoxFactory.cc
  4068. * src/CookieBoxFactory.h
  4069. * src/NsCookieParser.cc
  4070. * src/NsCookieParser.h
  4071. * test/NsCookieParserTest.cc
  4072. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Made parse() const
  4074. * src/Sqlite3MozCookieParser.cc
  4075. * src/Sqlite3MozCookieParser.h
  4076. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Added firefox3 cookie support based on the patch submitted by
  4078. tizianomueller.
  4079. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4080. this functionality.
  4081. * configure.ac
  4082. * m4/sqlite3.m4
  4083. * src/CookieBoxFactory.cc
  4084. * src/CookieBoxFactory.h
  4085. * src/Makefile.am
  4086. * src/Makefile.in
  4087. * src/Sqlite3MozCookieParser.cc
  4088. * src/Sqlite3MozCookieParser.h
  4089. * src/main.cc
  4090. * test/CookieBoxFactoryTest.cc
  4091. * test/Makefile.am
  4092. * test/Makefile.in
  4093. * test/Sqlite3MozCookieParserTest.cc
  4094. * test/badcookies.sqlite
  4095. * test/cookies.sqlite
  4096. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Added Danish and Greek translations.
  4098. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4099. Great thanks to all translators.
  4100. * po/LINGUAS
  4101. * po/el.po
  4102. * po/da.po
  4103. * po/es.po
  4104. * po/ca.po
  4105. * po/nn.po
  4106. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Fixed man page: --follow-bittorrent should be --follow-torrent
  4108. * doc/aria2c.1.txt
  4109. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Fixed: numCommand is less than the value specified in -C option.
  4111. * src/RequestGroup.cc
  4112. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Fixed occasional assertion failure in PieceSegment.
  4114. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4115. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4116. creation of duplicate segments and one of the segment was finished then
  4117. assertion failure was caused.
  4118. * src/SegmentMan.cc
  4119. * test/SegmentManTest.cc
  4120. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Added options to load/save the server's performance/status to a file
  4122. and the timeout to drop their data.
  4123. --server-stat-of=FILE specifies the file to which performance data
  4124. is saved.
  4125. --server-stat-if=FILE specifies the file to read previously saved
  4126. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4127. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4128. TIMEOUT is specified in seconds and the default value is 24hours.
  4129. * src/MultiUrlRequestInfo.cc
  4130. * src/OptionHandlerFactory.cc
  4131. * src/RequestGroupMan.cc
  4132. * src/RequestGroupMan.h
  4133. * src/ServerStatMan.cc
  4134. * src/ServerStatMan.h
  4135. * src/option_processing.cc
  4136. * src/prefs.cc
  4137. * src/prefs.h
  4138. * test/ServerStatManTest.cc
  4139. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4141. * src/ServerStatMan.cc
  4142. * src/ServerStatMan.h
  4143. * test/ServerStatManTest.cc
  4144. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4145. Implemented ServerStatMan::load(...) function and its test case.
  4146. * src/ServerStat.cc
  4147. * src/ServerStat.h
  4148. * src/ServerStatMan.cc
  4149. * test/ServerStatManTest.cc
  4150. * test/ServerStatTest.cc
  4151. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Use time_t instead of int32_t. Use int64_t where milli second is
  4153. expected.
  4154. * src/TimeA2.cc
  4155. * src/TimeA2.h
  4156. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Implemented ServerStatMan::save(...) function and its test case.
  4158. * src/ServerStat.cc
  4159. * src/ServerStat.h
  4160. * src/ServerStatMan.cc
  4161. * src/ServerStatMan.h
  4162. * test/ServerStatManTest.cc
  4163. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Now aria2 uses name attribute in Metalink as local filename in
  4165. BitTorrent downloads. BUG#2033999
  4166. * src/BtContext.h
  4167. * src/BtDependency.cc
  4168. * src/DefaultBtContext.cc
  4169. * src/DefaultBtContext.h
  4170. * src/SingleFileDownloadContext.cc
  4171. * src/SingleFileDownloadContext.h
  4172. * test/BtDependencyTest.cc
  4173. * test/DefaultBtContextTest.cc
  4174. * test/MockBtContext.h
  4175. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Added AC_C_BIGENDIAN
  4177. * src/configure.ac
  4178. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Limited numCommand less than or equal to the number of piece.
  4180. * src/RequestGroup.cc
  4181. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4183. directive.
  4184. * test/DefaultPieceStorageTest.cc
  4185. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Fixed memory leak in test code
  4187. * test/AnnounceListTest.cc
  4188. * test/DefaultPeerListProcessorTest.cc
  4189. * test/DefaultPeerStorageTest.cc
  4190. * test/MetaFileUtilTest.cc
  4191. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4193. * src/DefaultPieceStorage.cc
  4194. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Initialized _directIOAllowed
  4196. * src/MultiDiskAdaptor.cc
  4197. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Fixed memory leak
  4199. * src/GZipDecoder.cc
  4200. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Fixed memory leak
  4202. * src/MetalinkParserStateMachine.cc
  4203. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Fixed memory leak
  4205. * src/Dictionary.cc
  4206. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Fixed memory leak
  4208. * src/IteratableChunkChecksumValidator.h
  4209. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Fixed unmatched malloc/free.
  4211. * src/IteratableChunkChecksumValidator.cc
  4212. * src/IteratableChecksumValidator.cc
  4213. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Removed max chunk size check. This change fixes BUG#2040169
  4215. * src/ChunkedDecoder.cc
  4216. * src/ChunkedDecoder.h
  4217. * test/ChunkedDecoderTest.cc
  4218. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Implemented download speed based URI selection algorithm.
  4220. Introduced new option --uri-selector.
  4221. If --uri-selector=feedback is given, aria2 uses download speed observed
  4222. in the previous downloads and chooses fastest server in the URI list.
  4223. Currently at most 10 URIs are considered to introduce randomeness for
  4224. finding better servers. The speed is average download speed in the
  4225. downloads.
  4226. On the other hand, if --uri-selector=inorder is given, which is default,
  4227. URI is tried in order in URI list.
  4228. The usage text for the new option has not been written yet.
  4229. * src/AbstractCommand.cc
  4230. * src/DownloadCommand.cc
  4231. * src/DownloadEngine.cc
  4232. * src/DownloadEngineFactory.cc
  4233. * src/InOrderURISelector.cc
  4234. * src/InOrderURISelector.h
  4235. * src/OptionHandlerFactory.cc
  4236. * src/PeerStat.h
  4237. * src/RequestGroup.cc
  4238. * src/RequestGroup.h
  4239. * src/RequestGroupMan.cc
  4240. * src/RequestGroupMan.h
  4241. * src/SegmentMan.cc
  4242. * src/SegmentMan.h
  4243. * src/ServerStat.cc
  4244. * src/ServerStat.h
  4245. * src/ServerStatMan.cc
  4246. * src/ServerStatMan.h
  4247. * src/ServerStatURISelector.cc
  4248. * src/ServerStatURISelector.h
  4249. * src/URISelector.h
  4250. * src/option_processing.cc
  4251. * src/prefs.cc
  4252. * src/prefs.h
  4253. * test/InOrderURISelectorTest.cc
  4254. * test/RequestGroupManTest.cc
  4255. * test/ServerStatManTest.cc
  4256. * test/ServerStatURISelectorTest.cc
  4257. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. * Release 0.15.1+2
  4259. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Bump up version number to 0.15.1+2
  4261. * configure.ac
  4262. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4264. * m4/aria2_arg.m4
  4265. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4266. * Release 0.15.1+1
  4267. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Bump up version number to 0.15.1+1
  4269. * configure.ac
  4270. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. Fixed the bug that causes segmentaion fault when resuming download
  4272. using metalink without size tag. Reproducible only using HTTP URI.
  4273. * src/HttpResponseCommand.cc
  4274. * src/FtpNegotiationCommand.cc
  4275. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. * Release 0.15.1
  4277. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Updated Bulgarian and French translations, thanks to all translators.
  4279. * po/bg.po
  4280. * po/fr.po
  4281. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4282. Bump up version number to 0.15.1
  4283. * configure.ac
  4284. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Avoid repeated call of gettimeofday() when calculating speed.
  4286. * src/SpeedCalc.cc
  4287. * src/SpeedCalc.h
  4288. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Removed writable check when socket's send buffer is full in BitTorrent
  4290. downloads to lower CPU usage.
  4291. * src/PeerInteractionCommand.cc
  4292. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Fixed broken gzip inflation.
  4294. Turn off segmented downloading if gzip content is smaller than or equal
  4295. to 1MiB and inflate the data on the fly, because HTTP response header
  4296. doesn't contain the length of inflated file we can't determin where
  4297. the chunk of data should be written.
  4298. On the other hand, if gzip content is larger than 1MB, then turn off
  4299. on the fly inflation, because some servers returns "content-type: gzip"
  4300. for *.tgz, *.gz files.
  4301. * src/DownloadCommand.cc
  4302. * src/HttpResponseCommand.cc
  4303. * src/HttpResponseCommand.h
  4304. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Applied tizianomueller's patch to fix compile error.
  4306. * test/BitfieldManTest.cc
  4307. * test/BtRequestMessageTest.cc
  4308. * test/DefaultBtContextTest.cc
  4309. * test/DefaultDiskWriterTest.cc
  4310. * test/DefaultPieceStorageTest.cc
  4311. * test/HttpHeaderProcessorTest.cc
  4312. * test/HttpResponseTest.cc
  4313. * test/Metalink2RequestGroupTest.cc
  4314. * test/MetalinkParserControllerTest.cc
  4315. * test/MetalinkProcessorTest.cc
  4316. * test/PeerSessionResourceTest.cc
  4317. * test/UtilTest.cc
  4318. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4319. * Release 0.15.0
  4320. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Reordered src files in POTFILES.in so that usage text appears first.
  4322. * po/POTFILES.in
  4323. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Bump up version number to 0.15.0
  4325. * configure.ac
  4326. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Added Bulgarian translation.
  4328. Updated Catalan, Spanish, French and Japanese translations.
  4329. Thanks to all translators.
  4330. * po/LINGUAS
  4331. * po/bg.po
  4332. * po/ca.po
  4333. * po/es.po
  4334. * po/fr.po
  4335. * po/ja.po
  4336. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Updated feature list. Added libz for dependency section.
  4338. Added a description about unit testing using CppUnit.
  4339. * README
  4340. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Added a test for libz. Quoted where it is necessary.
  4342. * build_test.sh
  4343. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Added GZip to `Enabled Features' list.
  4345. * src/FeatureConfig.cc
  4346. * src/FeatureConfig.h
  4347. * test/FeatureConfigTest.cc
  4348. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4350. the transfer has not yet started.
  4351. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4352. * src/SegmentMan.cc
  4353. * src/SegmentMan.h
  4354. * test/SegmentManTest.cc
  4355. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Cache last calculated average download/upload speed.
  4357. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4358. cached value.
  4359. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4360. * src/PeerStat.h
  4361. * src/SpeedCalc.cc
  4362. * src/SpeedCalc.h
  4363. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Call parseUrl directly.
  4365. * src/Request.cc (resetUrl)
  4366. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. Supported absolute/relative path in Location header field.
  4368. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4369. * src/HttpHeader.cc
  4370. * src/HttpHeader.h
  4371. * src/HttpResponse.cc
  4372. * src/HttpSkipResponseCommand.cc
  4373. * src/Request.cc
  4374. * test/HttpHeaderTest.cc
  4375. * test/HttpResponseTest.cc
  4376. * test/RequestTest.cc
  4377. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Changed help text for --load-cookie option.
  4379. * doc/aria2c.1.txt
  4380. * src/usage_text.h
  4381. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4382. Regenerated test/Makefile.in to remove stale ChangeLog.
  4383. * test/Makefile.in
  4384. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Updated po files.
  4386. * po/aria2c.pot
  4387. * po/*.po
  4388. * po/*.gmo
  4389. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Bump up version number to 0.15.0b
  4391. * configure.ac
  4392. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Externalize messages.
  4394. * src/RequestGroupMan.cc
  4395. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4396. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Use File::exists() instead of File::isFile() to allow non-regular file
  4398. such as block special files.
  4399. * src/AbstractDiskWriter.cc
  4400. * src/MultiDiskWriter.cc
  4401. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4403. * src/gai_strerror.h
  4404. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Fixed compile error. Thanks gknauf for the patch.
  4406. * src/asctime_r.c
  4407. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Included asctime_r.h from a2time.h.
  4409. * src/a2time.h
  4410. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Added a message "aria2 doesn't verify signature" to log message when
  4412. signature file is saved.
  4413. * src/RequestGroupMan.cc
  4414. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Added the ability to save signature when download is completed if
  4416. signature is available. The filename of signature file is the path to
  4417. download file followed by ".sig". If it already exists, then signature
  4418. will not be saved.
  4419. * src/RequestGroupMan.cc
  4420. * src/Signature.cc
  4421. * test/SignatureTest.cc
  4422. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Updated the descriptions for --bt-seed-unverified.
  4424. * doc/aria2c.1
  4425. * doc/aria2c.1.html
  4426. * doc/aria2c.1.txt
  4427. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4429. that this is not going to verify files using piece hashes.
  4430. * src/HelpItemFactory.cc
  4431. * src/OptionHandlerFactory.cc
  4432. * src/RequestGroup.cc
  4433. * src/option_processing.cc
  4434. * src/prefs.cc
  4435. * src/prefs.h
  4436. * src/usage_text.h
  4437. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Added the ability to retrieve signature from Metalink file.
  4439. A retrieved signature is stored in Signature class and it is held by
  4440. DownloadContext class. Note that aria2 doesn't verify signature.
  4441. * src/DownloadContext.cc
  4442. * src/DownloadContext.h
  4443. * src/Makefile.am
  4444. * src/Makefile.in
  4445. * src/Metalink2RequestGroup.cc
  4446. * src/MetalinkEntry.cc
  4447. * src/MetalinkEntry.h
  4448. * src/MetalinkParserController.cc
  4449. * src/MetalinkParserController.h
  4450. * src/MetalinkParserStateMachine.cc
  4451. * src/MetalinkParserStateMachine.h
  4452. * src/Signature.cc
  4453. * src/Signature.h
  4454. * src/SignatureMetalinkParserState.cc
  4455. * src/SignatureMetalinkParserState.h
  4456. * src/VerificationMetalinkParserState.cc
  4457. * src/VerificationMetalinkParserState.h
  4458. * test/Metalink2RequestGroupTest.cc
  4459. * test/MetalinkParserControllerTest.cc
  4460. * test/MetalinkProcessorTest.cc
  4461. * test/test.xml
  4462. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4463. Close DiskAdaptor after renaming file.
  4464. * src/RequestGroup.cc
  4465. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Corrected indentation
  4467. * src/DefaultBtProgressInfoFile.cc
  4468. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Moved the calls of std::ios::exceptions() inside of try-catch block
  4470. because if an error occurred in constructor of std::fstream, then
  4471. exception is thrown immediately when std::ios::exceptions() is called
  4472. which results unhandled exception and aria2c aborts.
  4473. * src/DefaultBtProgressInfoFile.cc
  4474. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Added the test for the previous change in DefaultBtContext.cc
  4476. * test/DefaultBtContextTest.cc
  4477. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Fixed the bug that causes infinite loop when the number of pieces are
  4479. fewer than allowed fast set size which is 10 by default.
  4480. * src/DefaultBtContext.cc
  4481. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. Updated the descriptions for -j, -s. Added --bt-seed.
  4483. * doc/aria2c.1
  4484. * doc/aria2c.1.html
  4485. * doc/aria2c.1.txt
  4486. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4487. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4488. aria2 seeds previously downloaded files without validating piece hashs.
  4489. * src/HelpItemFactory.cc
  4490. * src/OptionHandlerFactory.cc
  4491. * src/RequestGroup.cc
  4492. * src/option_processing.cc
  4493. * src/prefs.cc
  4494. * src/prefs.h
  4495. * src/usage_text.h
  4496. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Updated DESCRIPTION of man page.
  4498. * doc/aria2c.1
  4499. * doc/aria2c.1.html
  4500. * doc/aria2c.1.txt
  4501. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4503. Don't define `struct addrinfo' when __sun is defined.
  4504. * src/getaddrinfo.h
  4505. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4507. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4508. second argument is of type `struct _stati64'. Otherwise it is defined as
  4509. `struct stat'.
  4510. * src/AbstractDiskWriter.cc
  4511. * src/File.cc
  4512. * src/File.h
  4513. * src/a2io.h
  4514. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Fixed the compile error in hurd-i386
  4516. See the original bug report:
  4517. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4518. * src/a2io.h
  4519. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Code cleanup.
  4521. * src/PeerAbstractCommand.cc
  4522. * src/PeerAbstractCommand.h
  4523. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Removed TransferEncoding.
  4525. * src/DownloadCommand.cc
  4526. * src/DownloadCommand.h
  4527. * src/HttpResponseCommand.cc
  4528. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Updated po files.
  4530. * po/aria2c.pot
  4531. * po/*.po
  4532. * po/*.gmo
  4533. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4535. * src/A2STR.cc
  4536. * src/A2STR.h
  4537. * src/ChunkedDecoder.cc
  4538. * src/ChunkedDecoder.h
  4539. * src/ChunkedEncoding.cc: Removed
  4540. * src/ChunkedEncoding.h: Removed
  4541. * src/DownloadCommand.cc
  4542. * src/DownloadCommand.h
  4543. * src/HttpDownloadCommand.cc
  4544. * src/HttpResponse.cc
  4545. * src/HttpResponse.h
  4546. * src/HttpResponseCommand.cc
  4547. * src/HttpSkipResponseCommand.cc
  4548. * src/HttpSkipResponseCommand.h
  4549. * src/Makefile.am
  4550. * src/TransferEncoding.h: Removed
  4551. * test/ChunkedDecoderTest.cc
  4552. * test/ChunkedEncodingTest.cc: Removed
  4553. * test/HttpResponseTest.cc
  4554. * test/Makefile.am
  4555. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Use append instead of insert.
  4557. * src/GZipDecoder.cc
  4558. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Updated doc
  4560. * src/Decoder.h
  4561. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Updated usage text for -s option.
  4563. * src/usage_text.h
  4564. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4566. * src/Request.cc
  4567. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Cleaned up configure.ac.
  4569. * configure.ac
  4570. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4572. AC_ARG_ENABLE.
  4573. * configure.ac
  4574. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4576. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4577. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4578. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4579. fly and writes decoded data to a local disk.
  4580. * README
  4581. * README.html
  4582. * configure.ac
  4583. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4584. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4585. * m4/libz.m4
  4586. * src/Decoder.h
  4587. * src/DownloadCommand.cc
  4588. * src/DownloadCommand.h
  4589. * src/Exception.h
  4590. * src/GZipDecoder.cc
  4591. * src/GZipDecoder.h
  4592. * src/HttpHeader.cc
  4593. * src/HttpHeader.h
  4594. * src/HttpRequest.cc
  4595. * src/HttpRequest.h
  4596. * src/HttpResponse.cc
  4597. * src/HttpResponse.h
  4598. * src/HttpResponseCommand.cc
  4599. * src/Makefile.am
  4600. * test/GZipDecoderTest.cc
  4601. * test/HttpRequestTest.cc
  4602. * test/HttpResponseTest.cc
  4603. * test/Makefile.am
  4604. * test/Makefile.in
  4605. * test/gzip_decode_test.gz
  4606. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Clarified usage of -j option.
  4608. * src/usage_text.h
  4609. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Disabled getting size from the response of RETR.
  4611. If SIZE command failed, then disable resuming and segmented downloading.
  4612. * src/FtpConnection.cc
  4613. * src/FtpConnection.h
  4614. * src/FtpNegotiationCommand.cc
  4615. * src/FtpNegotiationCommand.h
  4616. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4617. Use digits to find first byte of file size, which makes the intention
  4618. of the code clearer.
  4619. * src/FtpConnection.cc
  4620. Don't call validateTotalLength() when size is 0.
  4621. * src/FtpNegotiationCommand.cc
  4622. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Updated po files.
  4624. * po/aria2c.pot
  4625. * po/*.gmo
  4626. * po/*.po
  4627. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Clarified usage text for --split option.
  4629. * src/usage_text.h
  4630. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Bump up version number to 0.15.0dev. "dev" means "development"
  4632. version, which means I started the development of the next release!
  4633. * src/configure.ac
  4634. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. If FTP server returns negative response with REST raw command and
  4636. requested range is not 0, throw exception. If requested range is 0,
  4637. continue download a file from 0 byte.
  4638. * src/FtpNegotiationCommand.cc
  4639. * src/FtpNegotiationCommand.h
  4640. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Supported FTP server which don't recognize SIZE raw command.
  4642. If SIZE raw command is failed, aria2 will try to get file size
  4643. from the response of RETR raw command. If both attempts are failed,
  4644. then resuming and segmented downloading are disabled.
  4645. * src/FtpConnection.cc
  4646. * src/FtpConnection.h
  4647. * src/FtpNegotiationCommand.cc
  4648. * src/FtpNegotiationCommand.h
  4649. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. * Release 0.14.0+1
  4651. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Bump up version number to 0.14.0+1
  4653. * src/configure.ac
  4654. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Fixed the code that refers static member variable from non-static
  4656. context.
  4657. * src/DefaultPeerStorage.cc
  4658. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. * Release 0.14.0
  4660. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Added build test script
  4662. * build_test.sh
  4663. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4664. Updated ja.po
  4665. * src/ja.po
  4666. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Bump up version number to 0.14.0
  4668. * src/configure.ac
  4669. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. Updated ja.po and fr.po. Great thanks for french translators and
  4671. Sebastien WILLEMIJNS.
  4672. * po/fr.po
  4673. * po/ja.po
  4674. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Added configure option to enable/disable epoll support.
  4676. * configure.ac
  4677. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Updated man page.
  4679. * doc/aria2c.1.txt
  4680. * doc/aria2c.1
  4681. * doc/aria2c.1.html
  4682. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Added missing default value '5' to the usage of --split option.
  4684. * src/HelpItemFactory.cc
  4685. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Filled up pieces based on the number of missing blocks, rather than
  4687. simplay the number of piece * block length.
  4688. * src/BtRequestFactory.h
  4689. * src/DefaultBtInteractive.cc
  4690. * src/DefaultBtInteractive.h
  4691. * src/DefaultBtRequestFactory.cc
  4692. * src/DefaultBtRequestFactory.h
  4693. * src/Piece.cc
  4694. * src/Piece.h
  4695. * test/BitfieldManTest.cc
  4696. * test/DefaultBtRequestFactoryTest.cc
  4697. * test/MockBtRequestFactory.h
  4698. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. Made _epEvents a member variable.
  4700. * src/DownloadEngine.cc
  4701. * src/DownloadEngine.h
  4702. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Cancel download if http redirect is bounded more than 20 times.
  4704. * src/AbstractCommand.cc
  4705. * src/HttpSkipResponseCommand.cc
  4706. * src/Request.cc
  4707. * src/Request.h
  4708. * test/RequestTest.cc
  4709. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Fixed unhandled exception(removed keyword `new').
  4711. * src/SocketCore.cc (initEPOLL)
  4712. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Removed visit(const MetaEntry*)
  4714. * src/MetaEntryVisitor.h:
  4715. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4716. and made them virtual.
  4717. * src/BencodeVisitor.h
  4718. * src/BencodeVisitor.cc
  4719. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Updated po files.
  4721. * po/aria2c.pot
  4722. * po/*.po
  4723. * po/*.gmo
  4724. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4726. the number of socket to watch out.
  4727. * src/PeerInteractionCommand.cc
  4728. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. When there is not enough space in disk when writing a chunk of data,
  4730. aria2 now prints the message to the console to warn user and aborts
  4731. its download. Not all downloads are canceled because some downloads
  4732. may use another disk or partition. BUG#1640332
  4733. * src/AbstractDiskWriter.cc
  4734. * src/PeerAbstractCommand.cc
  4735. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4736. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4737. setHaltRequested(true) to cancel download.
  4738. * src/PeerInteractionCommand.h
  4739. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4741. socket from int to sock_t as sockets are unsigned in Windows.
  4742. For AsyncNameResolver, DownloadEngine, I did additional modification
  4743. for the portion of the code changed according to epoll support.
  4744. I defined sock_t in a2netcompat.h to use sock_t without including
  4745. SocketCore.h.
  4746. * src/AsyncNameResolver.cc
  4747. * src/AsyncNameResolver.h
  4748. * src/DownloadEngine.cc
  4749. * src/DownloadEngine.h
  4750. * src/SocketCore.cc
  4751. * src/SocketCore.h
  4752. * src/a2netcompat.h
  4753. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4755. changes in the patch were applied.
  4756. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4757. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4758. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4759. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4760. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4761. a2io.h and common.h were modified.
  4762. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4763. MinGW.
  4764. * src/common.h: Changed off_t to 64 bit in MinGW.
  4765. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4767. only a2netcompat.h is modified.
  4768. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4769. directives.
  4770. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4772. only gai_strerror.h is modified.
  4773. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4774. winsock errors in MinGW.
  4775. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4777. follow sources are applied.
  4778. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4779. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4780. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4781. I included locale.h from Platform.cc.
  4782. * src/main.cc: Moved common setup/teardown code to Platform class.
  4783. * test/AllTest.cc: Use Platform class.
  4784. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4785. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4787. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4788. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4789. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4791. aria2-0.13.2+1-mingw-2.patch.
  4792. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4793. systems which don't have termious.h. I moved the directive inside of
  4794. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4795. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4796. anyway.
  4797. * src/asctime_r.h
  4798. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4799. I added 2nd argument to the prototype declaration.
  4800. * src/StringFormat.cc: Get rid of vasprintf.
  4801. * src/getaddrinfo.h: Fixed constants.
  4802. * configure.ac: Added the check for asctime_r function.
  4803. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4804. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Added writable test for Socket when the sending message is in progress.
  4806. Usually the sending message is piece message. Without wriable check,
  4807. upload latency is dropped to more than 1sec.
  4808. * src/PeerInteractionCommand.cc
  4809. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Create only requested files and files which shares a piece with
  4811. requested file in multi-torrent downloads. Directory structures are
  4812. also created in the same rule.
  4813. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4814. DiskWriterEntry as in the previous implementation.
  4815. * src/MultiDiskWriter.cc
  4816. * src/MultiFileAllocationIterator.cc
  4817. * src/MultiFileAllocationIterator.h
  4818. * test/MultiFileAllocationIteratorTest.cc
  4819. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4820. Commented out -lprofiler
  4821. * src/Makefile.am
  4822. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Bump up version number to 0.14.0b.
  4824. * src/configure.ac
  4825. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4826. Actively establish connection to peers in seeding, when peer cache
  4827. is not full and max upload speed limit is not reached.
  4828. * src/ActivePeerConnectionCommand.cc
  4829. * src/ActivePeerConnectionCommand.h
  4830. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4831. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4832. to make room more fleshy, recently found peers.
  4833. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4834. it.
  4835. * src/DefaultPeerStorage.cc
  4836. * test/DefaultPeerStorageTest.cc
  4837. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Returns cached data only when the previous receiveHandshake() is called
  4839. with peek = true.
  4840. * src/PeerConnection.cc (receiveHandshake)
  4841. * src/PeerConnection.h (receiveHandshake)
  4842. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Changed default value of -s option from 1 to 5.
  4844. Also max value of -s option is changed from 5 to 16.
  4845. * src/HelpItemFactory.cc
  4846. * src/OptionHandlerFactory.cc
  4847. * src/option_processing.cc
  4848. * src/usage_text.h
  4849. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Changed -s options behavior. Now it means the number of connections
  4851. made simultaneously in each http/ftp download.
  4852. If 1 URL is specified, the behavior is the same with old implementation.
  4853. If -s N is given and more than N URLs are specified, first N URLs are
  4854. used and remaining URLs are used for backup. If less than N URLs are
  4855. specified, some of URLs are used more than once so that totally N
  4856. connections are made simultaneously.
  4857. * src/main.cc
  4858. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Included missing iosfwd or ostream header.
  4860. * src/RequestGroupMan.cc
  4861. * src/TaggedItem.cc
  4862. * src/TaggedItem.h
  4863. * src/Util.cc
  4864. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4866. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4867. * src/HttpConnection.cc: Included missing sstream.
  4868. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Added --bt-max-open-files option.
  4870. * src/DefaultPieceStorage.cc
  4871. * src/HelpItemFactory.cc
  4872. * src/MultiDiskAdaptor.cc
  4873. * src/MultiDiskAdaptor.h
  4874. * src/OptionHandlerFactory.cc
  4875. * src/option_processing.cc
  4876. * src/prefs.cc
  4877. * src/prefs.h
  4878. * src/usage_text.h
  4879. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Fixed the bug that aria2 aborts when a path to a directory is given
  4881. in command-line.
  4882. * src/ProtocolDetector.cc
  4883. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Limited the number files opened in each BitTorrent download. The default
  4885. value is 100. The option to change this value will be added.
  4886. * src/MultiDiskAdaptor.cc
  4887. * src/MultiDiskAdaptor.h
  4888. * src/MultiFileAllocationIterator.cc
  4889. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. Fixed the bug that HTTP downloads don't start with old libraries.
  4891. * src/HttpHeaderProcessor.cc
  4892. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4893. Use empty() instead of size() > 0.
  4894. * src/HttpConnection.cc
  4895. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Drop connection if the incoming peer ID is the same with localhost's
  4897. one. The previous implementation drops connection when incoming peer's
  4898. IP address is the same with localhost's one.
  4899. * src/PeerListenCommand.cc
  4900. * src/DefaultBtInteractive.cc
  4901. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Returns cached data without checking whether socket is readable
  4903. if the cache is available.
  4904. * src/PeerConnection.cc (receiveHandshake)
  4905. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Included stdint.h
  4907. * src/common.h
  4908. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Removed duplicate HAVE_GETTIMEOFDAY
  4910. * src/Makefile.am
  4911. * src/Makefile.in
  4912. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. Use interval as a minInterval when minInterval is not supplied.
  4914. * src/DefaultBtAnnounce.cc
  4915. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4917. attempt is failed, then 2nd attempt get kicked out more quickly.
  4918. And it is now static const member of DefaultBtAnnounce.
  4919. * src/DefaultBtAnnounce.h
  4920. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4922. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4923. * src/ActivePeerConnectionCommand.cc
  4924. * src/BtConstants.h
  4925. * src/BtRuntime.h
  4926. * src/DHTGetPeersCommand.cc
  4927. * src/DefaultBtAnnounce.cc
  4928. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4929. BtRuntime::MAX_PEERS.
  4930. * src/DefaultPeerStorage.h
  4931. * src/InitiatorMSEHandshakeCommand.cc
  4932. * src/PeerInitiateConnectionCommand.cc
  4933. * src/PeerInteractionCommand.cc
  4934. * src/PeerReceiveHandshakeCommand.cc
  4935. * src/TrackerWatcherCommand.cc
  4936. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Always Connect to _numNewConnection
  4938. * src/ActivePeerConnectionCommand.cc
  4939. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Made `begin' unsigned int.
  4941. * src/GrowSegment.h
  4942. * src/Piece.cc
  4943. * src/Piece.h
  4944. * src/PiecedSegment.cc
  4945. * src/PiecedSegment.h
  4946. * src/Segment.h
  4947. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Calculate piece hash when data is arrived if the data is arrived in
  4949. order. This removes additional read operation for hash calculation.
  4950. If the data is arrived in out of order, the hash is calucated when the
  4951. piece is completed. This is the same behavior as the old implementation.
  4952. * src/BtPieceMessage.cc
  4953. * src/DefaultBtProgressInfoFile.cc
  4954. * src/DefaultPieceStorage.cc
  4955. * src/DownloadCommand.cc
  4956. * src/DownloadCommand.h
  4957. * src/DownloadEngine.cc
  4958. * src/GrowSegment.cc
  4959. * src/GrowSegment.h
  4960. * src/Piece.cc
  4961. * src/Piece.h
  4962. * src/PiecedSegment.cc
  4963. * src/PiecedSegment.h
  4964. * src/Segment.h
  4965. * test/PieceTest.cc
  4966. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Try to keep the ordering of outgoing piece message.
  4968. * src/DefaultBtMessageDispatcher.cc
  4969. (DefaultBtMessageDispatcher::sendMessages)
  4970. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Fixed busy loop when error/hup epoll events occur.
  4972. * src/AbstractCommand.cc
  4973. * src/PeerAbstractCommand.cc
  4974. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Added --bt-request-peer-speed-limit option, which was a constant
  4976. SLOW_SPEED_THRESHOLD.
  4977. * src/ActivePeerConnectionCommand.cc
  4978. * src/ActivePeerConnectionCommand.h
  4979. * src/BtConstants.h
  4980. * src/HelpItemFactory.cc
  4981. * src/OptionHandlerFactory.cc
  4982. * src/PeerReceiveHandshakeCommand.cc
  4983. * src/option_processing.cc
  4984. * src/prefs.cc
  4985. * src/prefs.h
  4986. * src/usage_text.h
  4987. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Removed repeated call of getTopDirPath(). Instead, call it once and
  4989. cache the result.
  4990. * src/MultiDiskAdaptor.cc
  4991. * src/MultiDiskAdaptor.h
  4992. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4993. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Fixed compile error on debian etch.
  4995. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4996. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4997. it is undefined.
  4998. * src/Util.cc (ULLONG_MAX)
  4999. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Added epoll support. Use epoll if it is available. If not, use select.
  5001. When async dns is enabled in compile time, epoll support is enabled
  5002. only when aria2 is built with c-ares. This condition statement is
  5003. defined in a2io.h.
  5004. Currently aria2 supports both c-ares and ares, but ares is maintained
  5005. for quite a while and debian already has c-ares package, ares support
  5006. will be dropped in the future version.
  5007. * configure.ac
  5008. * src/AbstractCommand.cc
  5009. * src/AsyncNameResolver.cc
  5010. * src/AsyncNameResolver.h
  5011. * src/Command.cc
  5012. * src/Command.h
  5013. * src/DownloadEngine.cc
  5014. * src/DownloadEngine.h
  5015. * src/PeerAbstractCommand.cc
  5016. * src/SocketCore.cc
  5017. * src/SocketCore.h
  5018. * src/a2io.h
  5019. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5021. directive.
  5022. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Do not do write operation to /dev/null file.
  5024. * src/LogFactory.cc
  5025. * src/SimpleLogger.cc
  5026. Replaced vasprintf with vsnprintf
  5027. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5028. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. * src/BtRequestMessage.cc
  5030. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5031. for segmentation fault caused by previous commit.
  5032. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Reduced the usage of gettimeofday().
  5034. * src/DefaultBtMessageDispatcher.cc
  5035. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5036. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5037. * src/RequestSlot.cc
  5038. * src/RequestSlot.h
  5039. (RequestSlot::isTimeout)
  5040. Made RequestSlot have a reference to Piece object to avoid find
  5041. Piece repeatedly.
  5042. * src/DefaultBtMessageDispatcher.cc
  5043. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5044. * src/RequestSlot.cc
  5045. * src/RequestSlot.h
  5046. (RequestSlot::getPiece)
  5047. * test/DefaultBtMessageDispatcherTest.cc
  5048. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. * src/TimeA2.cc
  5050. * src/TimeA2.h
  5051. (Time::difference): New function.
  5052. (Time::elapsed): Done optimization.
  5053. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5055. directive.
  5056. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. * src/option_processing.cc: Added missing `defined' keyword to #if
  5058. directive.
  5059. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Bump up version number to 0.13.2+1
  5061. * src/configure.ac
  5062. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Refactored broken outstanding piece handling.
  5064. * src/DefaultPieceStorage.cc
  5065. * src/DefaultPieceStorage.h
  5066. * src/Piece.cc
  5067. * src/Piece.h
  5068. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5070. name collision of static variable and predefined macro.
  5071. * src/BtContext.cc
  5072. * src/BtContext.h
  5073. * src/CookieBoxFactory.cc
  5074. * src/CookieBoxFactory.h
  5075. * src/CookieParser.cc
  5076. * src/CookieParser.h
  5077. * src/DefaultBtContext.cc
  5078. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. * src/RequestGroup.cc
  5080. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5081. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. * Release 0.13.2
  5083. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5085. * po/fr.po
  5086. * po/ja.po
  5087. * po/aria2c.pot
  5088. * po/*.po
  5089. * po/*.gmo
  5090. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Bump up version number to 0.13.2
  5092. * src/configure.ac
  5093. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Refactord.
  5095. * src/RequestGroupMan.cc
  5096. (removeStoppedGroup)
  5097. (fillRequestGroupFromReserver)
  5098. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Fixed compile error on Ubuntu.
  5100. * src/BtPieceMessage.cc
  5101. * src/MessageDigestHelper.cc
  5102. * src/Util.cc
  5103. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Fixed compile error when configured with --disable-bittorrent
  5105. * test/DownloadHandlerFactoryTest.cc
  5106. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. Done make update-po
  5108. * po/aria2c.pot
  5109. * po/*.po
  5110. * po/*.gmo
  5111. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Bump up version number to 0.13.2rc.
  5113. * src/configure.ac
  5114. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Made option name bold. Updated SYNOPSIS to make it more readable.
  5116. * doc/aria2c.1.txt
  5117. * doc/aria2c.1
  5118. * doc/aria2c.1.html
  5119. * src/version_usage.cc
  5120. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Refactored. Use std::string instead of size and char*.
  5122. * Data.cc
  5123. * Data.h
  5124. * test/Data.cc
  5125. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Added trimSelf(). Rewritten trim() to use trimSelf().
  5127. * Util.cc
  5128. * Util.h
  5129. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5131. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Fixed compile error when configured with --disable-metalink.
  5133. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5134. * test/FeatureConfigTest.cc
  5135. * test/DownloadHandlerFactoryTest.cc
  5136. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5137. Fixed compile error when configured with --without-gnutls
  5138. --without-openssl
  5139. * src/main.cc
  5140. * test/DefaultBtProgressInfoFileTest.cc
  5141. * test/SegmentManTest.cc
  5142. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Fixed compile error with OpenSSL.
  5144. * src/IteratableChunkChecksumValidator.cc
  5145. * src/LibsslDHKeyExchange.h
  5146. * src/MessageDigestHelper.cc
  5147. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Revert the default value of --max-concurrent-downloads to 5.
  5149. Revert the default value of --metalink-servers to 5.
  5150. Man pages was also updated.
  5151. * src/option_processing.cc
  5152. * doc/aria2c.1.txt
  5153. * doc/aria2c.1.html
  5154. * doc/aria2c.1
  5155. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Returns const reference:
  5157. DownloadContext::getPieceHash, DownloadContext::getName,
  5158. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5159. BtContext::getInfoHashAsString,
  5160. * src/BtContext.h
  5161. * src/DefaultBtContext.cc
  5162. * src/DefaultBtContext.h
  5163. * src/DownloadContext.h
  5164. * src/SingleFileDownloadContext.h
  5165. * test/MockBtContext.h
  5166. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5167. * src/RequestGroup.h (getDir): Removed.
  5168. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Returns const reference. The internal urlencode function was optimized
  5170. a little bit.
  5171. * src/Request.cc
  5172. * src/Request.h
  5173. * src/HttpRequest.cc
  5174. * src/HttpRequest.h
  5175. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Defined option name and possible values as std::string to reduce
  5177. temporary string object creation in runtime.
  5178. * src/HelpItemFactory.cc
  5179. * src/LogFactory.cc
  5180. * src/Option.cc
  5181. * src/OptionHandlerFactory.cc
  5182. * src/option_processing.cc
  5183. * src/prefs.cc
  5184. * src/prefs.h
  5185. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Return const reference.
  5187. * src/DownloadHandlerConstants.cc
  5188. * src/DownloadHandlerConstants.h
  5189. (getMetalinkExtensions)
  5190. (getMetalinkContentTypes)
  5191. (getBtExtensions)
  5192. (getBtContentTypes)
  5193. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5194. * src/HttpHeader.cc (get): Rewritten.
  5195. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Make HttpHeader::getFirst(...) return const reference.
  5197. * src/HttpHeader.cc
  5198. * src/HttpHeader.h
  5199. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5201. it with V_TRUE.
  5202. * src/DefaultPieceStorage.cc
  5203. * src/DownloadCommand.cc
  5204. * src/FtpNegotiationCommand.cc
  5205. * src/HttpRequest.cc
  5206. * src/InitiateConnectionCommand.cc
  5207. * src/RequestGroup.cc
  5208. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Made Option::get(...) return const reference of std::string.
  5210. * src/Option.cc
  5211. * src/Option.h
  5212. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Replaced std:copy with insert.
  5214. * src/DefaultBtMessageDispatcher.cc
  5215. * src/DefaultPieceStorage.cc
  5216. * src/DownloadEngineFactory.cc
  5217. * src/RequestGroup.cc
  5218. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Included SocketCore.h to fix compiler warning.
  5220. * src/InitiateConnectionCommand.cc
  5221. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Put piece selection strategy algorithm to RarestPieceSelector class,
  5223. Added a switch to choose whether randomized selection so that unit
  5224. tests emit same results in, possibly, win32.
  5225. * src/DefaultPieceStorage.cc
  5226. * src/DefaultPieceStorage.h
  5227. * src/RarestPieceSelector.cc
  5228. * src/RarestPieceSelector.h
  5229. * test/DefaultPieceStorageTest.cc
  5230. * test/RarestPieceSelectorTest.cc
  5231. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Don't pool connection if HTTP proxy is enabled.
  5233. * src/FtpFinishDownloadCommand.cc
  5234. * src/FtpNegotiationCommand.cc
  5235. * src/HttpSkipResponseCommand.cc
  5236. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5238. * src/AbstractCommand.cc
  5239. * src/AbstractCommand.h
  5240. * src/ActivePeerConnectionCommand.cc
  5241. * src/FtpInitiateConnectionCommand.cc
  5242. * src/HttpInitiateConnectionCommand.cc
  5243. * src/InitiateConnectionCommandFactory.cc
  5244. * src/PeerAbstractCommand.cc
  5245. * src/PeerAbstractCommand.h
  5246. * src/PeerInitiateConnectionCommand.cc
  5247. * src/TrackerWatcherCommand.cc
  5248. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Sort RequestSlot in ascending order and manipulate them using
  5250. lower_bound.
  5251. * src/DefaultBtMessageDispatcher.cc
  5252. * src/DefaultBtMessageDispatcher.h
  5253. (getMessageQueue): Added const qualifier.
  5254. (getRequestSlots): Added const qualifier.
  5255. (sendMessages): Use empty() instead of size().
  5256. (doCancelSendingPieceAction): Use HandleEvent object.
  5257. (doAbortOutstandingRequestAction): Rewritten.
  5258. (doChokedAction): Rewritten.
  5259. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5260. (isOutstandingRequest): Rewritten.
  5261. (getOutstandingRequest): Rewritten.
  5262. (removeOutstandingRequest): Rewritten.
  5263. (addOutstandingRequest): Rewritten.
  5264. * src/RequestSlot.cc
  5265. * src/RequestSlot.h
  5266. (operator=): Rewritten.
  5267. (operator!=): New function.
  5268. (operator<): New function.
  5269. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. * src/DefaultBtRequestFactory.cc
  5271. (doChokedAction): Rewritten.
  5272. (removeCompletedPiece): Rewritten.
  5273. (removeTargetPiece): Rewritten.
  5274. (createRequestMessages): Added the debug log.
  5275. (createRequestMessagesOnEndGame: Added the debug log.
  5276. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Added the debug log message.
  5278. * src/BtPieceMessage.cc (doReceivedAction)
  5279. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5281. used lower_bound to process them rather than linear search.
  5282. * src/DHTPeerAnnounceStorage.cc
  5283. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5285. peer has at least one completed piece.
  5286. * src/Peer.cc
  5287. * src/Peer.h
  5288. * src/PeerInteractionCommand.cc
  5289. * src/PeerSessionResource.cc
  5290. * src/PeerSessionResource.h
  5291. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Removed unnecessary sorting
  5293. * src/DefaultPieceStorage (DefaultPieceStorage)
  5294. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Rewritten the portion of the code that mangaes allowed fast indexes.
  5296. * src/PeerSessionResource.cc
  5297. * src/PeerSessionResource.h
  5298. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Removed the invalid string including '\r' from ru.po and
  5300. did make update-po.
  5301. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Added --log-level and --summary-interval to man page.
  5303. * doc/aria2c.1.txt
  5304. * doc/aria2c.1.html
  5305. * doc/aria2c.1
  5306. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Added --log-level option to specify log level. Log messages under
  5308. the specified level are not output. Default value is `debug'.
  5309. * src/HelpItemFactory.cc
  5310. * src/LogFactory.cc
  5311. * src/LogFactory.h
  5312. * src/Logger.h
  5313. * src/OptionHandlerFactory.cc
  5314. * src/SimpleLogger.cc
  5315. * src/SimpleLogger.h
  5316. * src/main.cc
  5317. * src/option_processing.cc
  5318. * src/prefs.h
  5319. * src/usage_text.h
  5320. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Print download progress summary of all parallel downloads in specified
  5322. interval, default 60 secs. While aria2 could download several files
  5323. in parallel (see -j option), it displayed just first download progress,
  5324. and the other downloads are hidden from the users. This new feature
  5325. prints all downloads currently in-progress to the console so that you
  5326. can check the status of all downloads. The interval can be adjusted
  5327. by --summary-interval option.
  5328. The progress readout is now cut so that all fits in the one line of
  5329. console.
  5330. * src/ConsoleStatCalc.cc
  5331. * src/ConsoleStatCalc.h
  5332. * src/HelpItemFactory.cc
  5333. * src/OptionHandlerFactory.cc
  5334. * src/RequestGroupMan.cc
  5335. * src/RequestGroupMan.h
  5336. * src/main.cc
  5337. * src/option_processing.cc
  5338. * src/prefs.h
  5339. * src/usage_text.h
  5340. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5342. * src/DownloadEngine.cc (DownloadEngine)
  5343. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5345. defined.
  5346. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5347. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Use erase+lower_bound+insert instead of sort.
  5349. * src/DefaultPieceStorage.cc (addPieceStats)
  5350. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5352. * src/A2STR.cc
  5353. * src/A2STR.h
  5354. * src/OptionParser.cc (parse)
  5355. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Defined fake filename `[tracker.announce]' as static const std::string.
  5357. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5358. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Defined default filename `index.html' as static const std::string
  5360. * src/SingleFileDownloadContext.cc
  5361. * src/SingleFileDownloadContext.h
  5362. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Defined "[MEMORY]" as static const std::string.
  5364. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5365. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Defined control file's version number as static const std::string.
  5367. * src/DefaultBtProgressInfoFile.cc
  5368. * src/DefaultBtProgressInfoFile.h
  5369. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Use Request::METHOD_GET
  5371. * src/RequestGroup.cc (createNextCommandWithAdj)
  5372. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Defined "OK", "ERR", "INPR" as static const std::string
  5374. * src/RequestGroupMan.cc (showDownloadResults)
  5375. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Defined default client used in extended handshake as static const
  5377. std::string
  5378. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5379. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5381. * src/HttpConnection.cc (eraseConfidentialInfo)
  5382. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Defined default ftp user and password as static const std::string
  5384. * src/AuthConfigFactory.cc
  5385. * src/AuthConfigFactory.h
  5386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Defined strings used in netrc as static const std::string
  5388. * src/Netrc.cc
  5389. * src/Netrc.h
  5390. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Defined HTTP status as static const std::string
  5392. * src/AbstractProxyResponseCommand.cc
  5393. * src/HttpHeader.cc
  5394. * src/HttpHeader.h
  5395. * src/HttpResponse.cc
  5396. * src/HttpResponseCommand.cc
  5397. * src/HttpSkipResponseCommand.cc
  5398. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Defined "\r\n", "A", "I" as static const std::string
  5400. * src/A2STR.cc
  5401. * src/A2STR.h
  5402. * src/FtpConnection.cc
  5403. * src/FtpConnection.h
  5404. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Added COLON_C(".") and used it in Request::parseUrl()
  5406. * src/A2STR.cc
  5407. * src/A2STR.h
  5408. * src/Request.cc (parseUrl)
  5409. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Changed the type of padName from `const std::string&' to `const char*'.
  5411. * src/MSEHandshake.cc (verifyPadLength)
  5412. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Defined "sha1" as static const std::string.
  5414. * src/MetalinkParserController.cc
  5415. * src/MetalinkParserController.h
  5416. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Defined message digest algorithm name as static const std::string
  5418. * src/DHTTokenTracker.cc
  5419. * src/DHTUtil.cc
  5420. * src/DefaultBtContext.cc
  5421. * src/MSEHandshake.cc
  5422. * src/MessageDigestHelper.cc
  5423. * src/Peer.cc
  5424. * src/messageDigest.cc
  5425. * src/messageDigest.h
  5426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Made string literals used in SAX parser static const std::string.
  5428. * src/FileMetalinkParserState.cc
  5429. * src/FileMetalinkParserState.h
  5430. * src/FilesMetalinkParserState.cc
  5431. * src/FilesMetalinkParserState.h
  5432. * src/InitialMetalinkParserState.cc
  5433. * src/InitialMetalinkParserState.h
  5434. * src/MetalinkMetalinkParserState.cc
  5435. * src/MetalinkMetalinkParserState.h
  5436. * src/PiecesMetalinkParserState.cc
  5437. * src/PiecesMetalinkParserState.h
  5438. * src/ResourcesMetalinkParserState.cc
  5439. * src/ResourcesMetalinkParserState.h
  5440. * src/VerificationMetalinkParserState.cc
  5441. * src/VerificationMetalinkParserState.h
  5442. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5444. * src/A2STR.cc
  5445. * src/A2STR.h
  5446. * src/File.cc
  5447. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Defined static const std::string IP("ip"), PORT("port") and use them
  5449. instead of string literals.
  5450. * src/DefaultPeerListProcessor.cc
  5451. * src/DefaultPeerListProcessor.h
  5452. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Made string literals for torrent file processing static const
  5454. std::string.
  5455. * src/BtContext.cc
  5456. * src/BtContext.h
  5457. * src/DefaultBtContext.cc
  5458. * src/DefaultBtContext.h
  5459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Made string literal for tracker response static const std::string
  5461. * src/BtAnnounce.cc
  5462. * src/BtAnnounce.h
  5463. * src/DefaultBtAnnounce.cc
  5464. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Use DHTMessage::T instead of "t".
  5466. * src/DHTMessageTracker.cc (messageArrived)
  5467. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Made keyName static const. Made trimmed charset static const
  5469. std::string.
  5470. * src/Util.cc (getContentDispositionFilename)
  5471. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5472. Made USER_AGENT const. Made "/" static const std::string.
  5473. * src/A2STR.cc
  5474. * src/A2STR.h
  5475. * src/HttpRequest.cc
  5476. * src/HttpRequest.h
  5477. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Made string listeral to static const std::string:
  5479. "Content-Range", "Content-Length"
  5480. * src/HttpHeader.cc
  5481. * src/HttpHeader.h
  5482. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Made string listeral to static const std::string.
  5484. * src/HttpConnection.cc
  5485. * src/HttpHeader.cc
  5486. * src/HttpHeader.h
  5487. * src/HttpResponse.cc
  5488. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Made string listeral to static const std::string.
  5490. * src/A2STR.cc
  5491. * src/A2STR.h
  5492. * src/SimpleLogger.cc
  5493. * src/SimpleLogger.h
  5494. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Made string literal to static const std::string.
  5496. Rewritten CookieParser::setField.
  5497. * src/A2STR.cc
  5498. * src/A2STR.h
  5499. * src/CookieBoxFactory.cc
  5500. * src/CookieBoxFactory.h
  5501. * src/CookieParser.cc
  5502. * src/CookieParser.h
  5503. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Made string literal to static const std::string
  5505. * src/DHTAbstractMessage.cc
  5506. * src/DHTAnnouncePeerMessage.cc
  5507. * src/DHTAnnouncePeerMessage.h
  5508. * src/DHTAnnouncePeerReplyMessage.cc
  5509. * src/DHTAnnouncePeerReplyMessage.h
  5510. * src/DHTFindNodeMessage.cc
  5511. * src/DHTFindNodeMessage.h
  5512. * src/DHTFindNodeReplyMessage.cc
  5513. * src/DHTFindNodeReplyMessage.h
  5514. * src/DHTGetPeersMessage.cc
  5515. * src/DHTGetPeersMessage.h
  5516. * src/DHTGetPeersReplyMessage.cc
  5517. * src/DHTGetPeersReplyMessage.h
  5518. * src/DHTMessage.cc
  5519. * src/DHTMessage.h
  5520. * src/DHTMessageFactoryImpl.cc
  5521. * src/DHTMessageReceiver.cc
  5522. * src/DHTPingMessage.cc
  5523. * src/DHTPingMessage.h
  5524. * src/DHTPingReplyMessage.cc
  5525. * src/DHTPingReplyMessage.h
  5526. * src/DHTQueryMessage.cc
  5527. * src/DHTQueryMessage.h
  5528. * src/DHTResponseMessage.cc
  5529. * src/DHTResponseMessage.h
  5530. * src/DHTUnknownMessage.cc
  5531. * src/DHTUnknownMessage.h
  5532. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Made string literal to static const std::string
  5534. * src/BtChokeMessage.cc (toString)
  5535. * src/BtHaveAllMessage.cc (toString)
  5536. * src/BtHaveNoneMessage.cc (toString)
  5537. * src/BtInterestedMessage.cc (toString)
  5538. * src/BtNotInterestedMessage.cc (toString)
  5539. * src/BtUnchokeMessage.cc (toString)
  5540. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. Replaced "" with static const variable A2STR::NIL.
  5542. Replaced string comparison against "" with std::string::empty().
  5543. Added PROTO_* to Request class and use them as a protocol string
  5544. constant.
  5545. Made "started", "stopped", "completed" static const variable in
  5546. AnnounceList class.
  5547. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Updated translations. Great thanks to translators.
  5549. * po/ca.po
  5550. * po/de.po
  5551. * po/fr.po
  5552. * po/it.po
  5553. * po/ja.po
  5554. * po/ru.po
  5555. * po/zh_CN.po
  5556. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Updated man page; categorized options and fixed typo.
  5558. * doc/aria2c.1.txt
  5559. * doc/aria2c.1.html
  5560. * doc/aria2c.1
  5561. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5562. Removed const ref
  5563. * src/MetalinkEntry.cc (AddProtocolPreference)
  5564. * src/RequestGroup.cc (FindServerHostByHostname)
  5565. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Rewritten Accept-Features handling.
  5567. * src/HttpRequestCommand.cc (createHttpRequest)
  5568. * src/a2functional.h
  5569. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Changed method signature:
  5571. DHTAbstractNodeLookupTask::toEntries
  5572. * src/DHTAbstractNodeLookupTask.cc
  5573. * src/DHTAbstractNodeLookupTask.h
  5574. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Changed method signature:
  5576. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5577. * src/BtContext.h
  5578. * src/DefaultBtContext.cc
  5579. * src/DefaultBtContext.h
  5580. * src/DefaultBtInteractive.cc
  5581. * test/DefaultBtContextTest.cc
  5582. * test/MockBtContext.h
  5583. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5584. Changed method signature:
  5585. MultiFileAllocationIterator::makeDiskWriterEntries
  5586. * src/MultiFileAllocationIterator.cc
  5587. * src/MultiFileAllocationIterator.h
  5588. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Changed method sinature:
  5590. MetalinkEntry::toFileEntry,
  5591. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5592. Metalinker::queryEntry
  5593. * src/Metalink2RequestGroup.cc
  5594. * src/MetalinkEntry.cc
  5595. * src/MetalinkEntry.h
  5596. * src/MetalinkHelper.cc
  5597. * src/MetalinkHelper.h
  5598. * src/Metalinker.cc
  5599. * src/Metalinker.h
  5600. * src/main.cc
  5601. * test/MetalinkHelperTest.cc
  5602. * test/MetalinkerTest.cc
  5603. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Changed method sinature:
  5605. RequestGroup::getURIs
  5606. * src/RequestGroup.cc
  5607. * src/RequestGroup.h
  5608. * test/Metalink2RequestGroupTest.cc
  5609. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Changed method signature:
  5611. PeerListProcessor::extractPeer
  5612. * src/CompactPeerListProcessor.cc
  5613. * src/CompactPeerListProcessor.h
  5614. * src/DefaultBtAnnounce.cc
  5615. * src/DefaultPeerListProcessor.cc
  5616. * src/DefaultPeerListProcessor.h
  5617. * src/DelegatingPeerListProcessor.cc
  5618. * src/DelegatingPeerListProcessor.h
  5619. * src/PeerListProcessor.h
  5620. * src/UTPexExtensionMessage.cc
  5621. * test/DefaultPeerListProcessorTest.cc
  5622. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Changed method signature:
  5624. BtRequestFactory::createRequestMessages,
  5625. BtRequestFactory::createRequestMessagesOnEndGame
  5626. * src/BtRequestFactory.h
  5627. * src/DefaultBtInteractive.cc
  5628. * src/DefaultBtRequestFactory.cc
  5629. * src/DefaultBtRequestFactory.h
  5630. * test/DefaultBtRequestFactoryTest.cc
  5631. * test/MockBtRequestFactory.h
  5632. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Changed method signature:
  5634. PieceStorage::getInFlightPieces
  5635. * src/DefaultBtProgressInfoFile.cc
  5636. * src/DefaultPieceStorage.cc
  5637. * src/DefaultPieceStorage.h
  5638. * src/PieceStorage.h
  5639. * src/UnknownLengthPieceStorage.cc
  5640. * src/UnknownLengthPieceStorage.h
  5641. * test/DefaultBtProgressInfoFileTest.cc
  5642. * test/MockPieceStorage.h
  5643. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Changed method signature:
  5645. PostDownloadHandler::getNextRequestGroups
  5646. Metalink2RequestGroup::generate
  5647. RequestGroup::postDownloadProcessing
  5648. * src/BtPostDownloadHandler.cc
  5649. * src/BtPostDownloadHandler.h
  5650. * src/Metalink2RequestGroup.cc
  5651. * src/Metalink2RequestGroup.h
  5652. * src/MetalinkPostDownloadHandler.cc
  5653. * src/MetalinkPostDownloadHandler.h
  5654. * src/PostDownloadHandler.h
  5655. * src/RequestGroup.cc
  5656. * src/RequestGroup.h
  5657. * src/RequestGroupMan.cc
  5658. * src/main.cc
  5659. * test/BtPostDownloadHandlerTest.cc
  5660. * test/Metalink2RequestGroupTest.cc
  5661. * test/MetalinkPostDownloadHandlerTest.cc
  5662. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Rewritten AccRequestGroup
  5664. * src/main.cc
  5665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Rewritten.
  5667. * src/TaggedItem.cc (toTagString)
  5668. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Rewritten Accept-Features handling.
  5670. * src/HttpRequestCommand.cc (createHttpRequest)
  5671. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Rewritten accept types handling.
  5673. * HttpRequest.cc (createRequest)
  5674. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Rewritten
  5676. * src/FeatureConfig.cc (featureSummary)
  5677. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Changed method signature:
  5679. PeerStorage::getActivePeers
  5680. * src/DHTPeerAnnounceEntry.cc
  5681. * src/DefaultPeerStorage.cc
  5682. * src/DefaultPeerStorage.h
  5683. * src/PeerStorage.h
  5684. * test/DefaultPeerStorageTest.cc
  5685. * test/MockPeerStorage.h
  5686. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Changed method signature:
  5688. DHTPeerAnnounceStorage::getPeers,
  5689. DHTPeerAnnounceEntry::getPeers
  5690. * src/DHTGetPeersMessage.cc
  5691. * src/DHTPeerAnnounceEntry.cc
  5692. * src/DHTPeerAnnounceEntry.h
  5693. * src/DHTPeerAnnounceStorage.cc
  5694. * src/DHTPeerAnnounceStorage.h
  5695. * test/DHTAnnouncePeerMessageTest.cc
  5696. * test/DHTPeerAnnounceEntryTest.cc
  5697. * test/DHTPeerAnnounceStorageTest.cc
  5698. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Changed method signature:
  5700. NameResolver::resolve
  5701. * src/DHTEntryPointNameResolveCommand.cc
  5702. * src/InitiateConnectionCommand.cc
  5703. * src/NameResolver.cc
  5704. * src/NameResolver.h
  5705. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Changed method signature:
  5707. PieceStorage::getAdvertisedPieceIndexes
  5708. * src/DefaultBtInteractive.cc
  5709. * src/DefaultPieceStorage.cc
  5710. * src/DefaultPieceStorage.h
  5711. * src/PieceStorage.h
  5712. * src/UnknownLengthPieceStorage.h
  5713. * test/MockPieceStorage.h
  5714. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Changed method signature:
  5716. SegmentMan::getInFlightSegment
  5717. * src/AbstractCommand.cc
  5718. * src/SegmentMan.cc
  5719. * src/SegmentMan.h
  5720. * test/SegmentManTest.cc
  5721. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Changed method signature:
  5723. DHTAbstractNodeLookupTask::getNodesFromMessage
  5724. * src/DHTAbstractNodeLookupTask.cc
  5725. * src/DHTAbstractNodeLookupTask.h
  5726. * src/DHTNodeLookupTask.cc
  5727. * src/DHTNodeLookupTask.h
  5728. * src/DHTPeerLookupTask.cc
  5729. * src/DHTPeerLookupTask.h
  5730. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5732. * src/AbstractCommand.cc
  5733. * src/BtCheckIntegrityEntry.cc
  5734. * src/BtCheckIntegrityEntry.h
  5735. * src/BtFileAllocationEntry.cc
  5736. * src/BtFileAllocationEntry.h
  5737. * src/BtSetup.cc
  5738. * src/BtSetup.h
  5739. * src/CheckIntegrityCommand.cc
  5740. * src/CheckIntegrityEntry.h
  5741. * src/ChecksumCheckIntegrityEntry.cc
  5742. * src/ChecksumCheckIntegrityEntry.h
  5743. * src/DHTSetup.cc
  5744. * src/DHTSetup.h
  5745. * src/DownloadEngine.cc
  5746. * src/FileAllocationCommand.cc
  5747. * src/FileAllocationEntry.h
  5748. * src/RequestGroup.cc
  5749. * src/RequestGroup.h
  5750. * src/RequestGroupMan.cc
  5751. * src/RequestGroupMan.h
  5752. * src/StreamCheckIntegrityEntry.cc
  5753. * src/StreamCheckIntegrityEntry.h
  5754. * src/StreamFileAllocationEntry.cc
  5755. * src/StreamFileAllocationEntry.h
  5756. * src/TrackerWatcherCommand.cc
  5757. * src/a2functional.h
  5758. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Changed method signature:
  5760. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5761. DHTBucket::getGoodNodes,
  5762. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5763. * src/BNode.cc
  5764. * src/BNode.h
  5765. * src/DHTAbstractNodeLookupTask.cc
  5766. * src/DHTAutoSaveCommand.cc
  5767. * src/DHTBucket.cc
  5768. * src/DHTBucket.h
  5769. * src/DHTBucketRefreshTask.cc
  5770. * src/DHTFindNodeMessage.cc
  5771. * src/DHTGetPeersMessage.cc
  5772. * src/DHTRoutingTable.cc
  5773. * src/DHTRoutingTable.h
  5774. * test/BNodeTest.cc
  5775. * test/DHTBucketTest.cc
  5776. * test/DHTRoutingTableTest.cc
  5777. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. In piece selection functions, Pass std::deque<...> by reference rather
  5779. than returning it.
  5780. * src/BitfieldMan.cc
  5781. * src/BitfieldMan.h
  5782. * src/DefaultBtRequestFactory.cc
  5783. * src/DefaultPieceStorage.cc
  5784. * src/Piece.cc
  5785. * src/Piece.h
  5786. * test/BitfieldManTest.cc
  5787. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Implemented rarest piece first piece selection strategy.
  5789. * src/AbstractBtMessage.cc
  5790. * src/AbstractBtMessage.h
  5791. * src/BitfieldMan.cc
  5792. * src/BitfieldMan.h
  5793. * src/BtBitfieldMessage.cc
  5794. * src/BtHaveAllMessage.cc
  5795. * src/BtHaveMessage.cc
  5796. * src/DefaultPieceStorage.cc
  5797. * src/DefaultPieceStorage.h
  5798. * src/PeerInteractionCommand.cc
  5799. * src/PieceStorage.h
  5800. * src/UnknownLengthPieceStorage.h
  5801. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Rewritten readData and writeData.
  5803. * src/MultiDiskAdaptor.cc
  5804. * src/MultiDiskAdaptor.h
  5805. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. Move \n out of the message "Usage: ...".
  5807. * src/version_usage.cc
  5808. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Bump up version number to 0.13.2b.
  5810. * configure.ac
  5811. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Added const qualifier to argument Exception& e.
  5813. * src/Logger.h
  5814. * src/SimpleLogger.cc
  5815. * src/SimpleLogger.h
  5816. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Pool connection when CWD, SIZE command fails.
  5818. * src/FtpNegotiationCommand.cc
  5819. * src/FtpNegotiationCommand.h
  5820. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5822. * src/HttpResponseCommand.cc
  5823. * src/HttpSkipResponseCommand.cc
  5824. * src/HttpSkipResponseCommand.h
  5825. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Pool connection when a server returns 4xx, 5xx responses.
  5827. * src/HttpNullDownloadCommand.cc
  5828. * src/HttpNullDownloadCommand.h
  5829. * src/HttpResponse.cc
  5830. * src/HttpResponse.h
  5831. * src/HttpResponseCommand.cc
  5832. * src/HttpResponseCommand.h
  5833. * test/HttpResponseTest.cc
  5834. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Print usage when no URL is specifed or bad command-line option is
  5836. specified.
  5837. * src/HelpItemFactory.cc
  5838. * src/help_tags.h
  5839. * src/option_processing.cc
  5840. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Removed duplicate log message.
  5842. * src/AbstractCommand.cc (asyncResolveHostname)
  5843. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5845. Changed -j option's default value from 5 to 1.
  5846. Added new examples using protocol auto detection feature.
  5847. Removed -T, -M usage where it can be omitted.
  5848. * doc/aria2c.1.txt
  5849. * doc/aria2c.1.html
  5850. * doc/aria2c.1.txt
  5851. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Updated command-line usage text, so that it tells users that they
  5853. can specify any number of torrent files and metalink files in
  5854. command-line.
  5855. * src/version_usage.cc
  5856. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Changed the default value of -j option to 1.
  5858. * src/HelpItemFactory.cc
  5859. * src/option_processing.cc
  5860. * src/usage_text.h
  5861. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Added the ability to reuse connection in FTP and it is enabled by
  5863. default. It can be disabled by --ftp-reuse-connection=false option.
  5864. * src/Command.cc
  5865. * src/DownloadCommand.cc
  5866. * src/FtpDownloadCommand.cc
  5867. * src/FtpDownloadCommand.h
  5868. * src/FtpFinishDownloadCommand.cc
  5869. * src/FtpFinishDownloadCommand.h
  5870. * src/FtpInitiateConnectionCommand.cc
  5871. * src/FtpNegotiationCommand.cc
  5872. * src/FtpNegotiationCommand.h
  5873. * src/HelpItemFactory.cc
  5874. * src/Makefile.am
  5875. * src/Makefile.in
  5876. * src/OptionHandlerFactory.cc
  5877. * src/option_processing.cc
  5878. * src/prefs.h
  5879. * src/usage_text.h
  5880. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Call Command::transitStatus() before calling Command::execute(),
  5882. so that the status change made in execute() is not cleared.
  5883. * src/DownloadEngine.cc
  5884. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Removed forward declaration of SocketCore class.
  5886. * src/HttpDownloadCommand.h
  5887. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5889. in InitiateConnectionCommandFactory. They should be set only when
  5890. the protocol is HTTP or HTTPS.
  5891. * src/InitiateConnectionCommandFactory.cc
  5892. * src/RequestGroup.cc
  5893. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Fixed infinite loop in checksum checking.
  5895. * src/IteratableChecksumValidator.cc
  5896. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Set _supportsPersistentConnection to true by default.
  5898. * src/Request.cc
  5899. * src/RequestGroup.cc
  5900. * test/HttpRequestTest.cc
  5901. * test/RequestTest.cc
  5902. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Added timeout to socket pool. The default timeout is 15 seconds,
  5904. which is the same value Apache uses.
  5905. * src/DownloadEngine.cc
  5906. * src/DownloadEngine.h
  5907. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Fixed misuse of multimap::find()
  5909. * src/HttpHeader.cc
  5910. * test/HttpHeaderTest.cc
  5911. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5913. option.
  5914. The asynchronous DNS is not capable of IPv6 yet.
  5915. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5916. least for HTTP download.
  5917. * src/AbstractCommand.cc
  5918. * src/AbstractCommand.h
  5919. * src/AsyncNameResolver.cc
  5920. * src/AsyncNameResolver.h
  5921. * src/DHTEntryPointNameResolveCommand.cc
  5922. * src/DHTEntryPointNameResolveCommand.h
  5923. * src/DownloadEngine.cc
  5924. * src/DownloadEngine.h
  5925. * src/FtpInitiateConnectionCommand.cc
  5926. * src/FtpInitiateConnectionCommand.h
  5927. * src/HelpItemFactory.cc
  5928. * src/HttpInitiateConnectionCommand.cc
  5929. * src/HttpInitiateConnectionCommand.h
  5930. * src/InitiateConnectionCommand.cc
  5931. * src/InitiateConnectionCommand.h
  5932. * src/Makefile.am
  5933. * src/Makefile.in
  5934. * src/NameResolver.cc
  5935. * src/NameResolver.h
  5936. * src/OptionHandlerFactory.cc
  5937. * src/SocketCore.cc
  5938. * src/SocketCore.h
  5939. * src/Util.cc
  5940. * src/Util.h
  5941. * src/option_processing.cc
  5942. * src/prefs.h
  5943. * src/usage_text.h
  5944. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Updated man page: --quiet, --header were added.
  5946. --metalink-servers and --enable-http-keep-alive option were updated.
  5947. * doc/aria2c.1
  5948. * doc/aria2c.1.html
  5949. * doc/aria2c.1.txt
  5950. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Enable HTTP keep-alive by default.
  5952. * src/HelpItemFactory.cc
  5953. * src/option_processing.cc
  5954. * src/usage_text.h
  5955. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Disable http keep-alive if the remote server is not HTTP/1.1.
  5957. * src/HttpConnection.cc
  5958. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Receive content body of 302 response so that the connection can be
  5960. reused later when http keep-alive is enabled.
  5961. * src/HttpNullDownloadCommand.cc
  5962. * src/HttpNullDownloadCommand.h
  5963. * src/HttpResponseCommand.cc
  5964. * src/HttpResponseCommand.h
  5965. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. const SharedHandle<Request> -> const SharedHandle<Request>&
  5967. * src/FtpDowndloadCommand.cc
  5968. * src/FtpDowndloadCommand.h
  5969. * src/HttpDownloadCommand.cc
  5970. * src/HttpDownloadCommand.h
  5971. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Fixed the bug that the control file(.aria2 file) is not renamed
  5973. according to tryAutoFileRenaming().
  5974. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5975. its control file exist, use them and continue download.
  5976. The old implementation didn't take into account of control file's
  5977. existence, so basically you couldn't continue download of renamed file.
  5978. * src/BtProgressInfoFile.h
  5979. * src/DefaultBtProgressInfoFile.cc
  5980. * src/DefaultBtProgressInfoFile.h
  5981. * src/NullProgressInfoFile.h
  5982. * src/RequestGroup.cc
  5983. * test/DefaultBtProgressInfoFileTest.cc
  5984. * test/MockBtProgressInfoFile.h
  5985. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Change the default value of --metalink-servers option from `5' to `1'.
  5987. * src/HelpItemFactory.cc
  5988. * src/option_processing.cc
  5989. * src/usage_text.h
  5990. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Reimplemented transparent metalink using Accept request header.
  5992. * src/HttpRequest.cc
  5993. * src/HttpRequest.h
  5994. * src/HttpRequestCommand.cc
  5995. * src/Metalink2RequestGroup.cc
  5996. * src/RequestGroup.cc
  5997. * src/RequestGroup.h
  5998. * test/HttpRequestTest.cc
  5999. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Bump up version number to 0.13.2a
  6001. * configure.ac
  6002. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Updated configure.ac using the result of autoscan.
  6004. * configure.ac
  6005. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Fixed compilation error without gcrypt/openssl.
  6007. * src/DownloadCommand.cc
  6008. * src/DownloadCommand.h
  6009. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6010. Reorganized version information so that it can be displayed in a
  6011. standard terminal screen without scrolling.
  6012. Removed http, ftp from Configuration section, because they are always
  6013. enabled.
  6014. * src/FeatureConfig.cc
  6015. * src/FeatureConfig.h
  6016. * src/main.cc
  6017. * src/messageDigest.cc
  6018. * src/messageDigest.h
  6019. * src/version_usage.cc
  6020. * test/FeatureConfigTest.cc
  6021. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Masked user ID in log.
  6023. * src/FtpConnection.cc (sendUser)
  6024. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Removed query part from filename in HTTP download. The query part means
  6026. the substring after "?" in URL. Firefox seems do the same thing.
  6027. A query part is sometimes very long and not suitable to filename,
  6028. so I think it is better to remove it from filename.
  6029. * src/HttpRequest.cc
  6030. * src/HttpRequest.h
  6031. * src/Request.cc
  6032. * src/Request.h
  6033. * test/HttpRequestTest.cc
  6034. * test/RequestTest.cc
  6035. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Rewritten Exception class. Throw exception object, not its pointer and
  6037. catch by reference, so that remove problematic delete operator for
  6038. catched exception.
  6039. * src/Exception.cc
  6040. * src/Exception.h
  6041. * test/ExceptionTest.cc
  6042. * src/*: All files throwing/catching exception.
  6043. * test/*: All files throwing/catching exception.
  6044. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6045. Now auto protocol detection is enabled without -Z option.
  6046. But there is a important difference between with/without -Z optoin.
  6047. For example, if you type:
  6048. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6049. then, aria2 interprets there are 3 request groups:
  6050. (1) http://host/file, http://mirror/file <-- multi-source download
  6051. (2) file1.torrent
  6052. (3) file2.metalink
  6053. On the other hand, if you invoke above command with -Z option, it is
  6054. interpreted as 4 request groups:
  6055. (1) http://host/file
  6056. (2) file1.torrent
  6057. (3) file2.metalink
  6058. (4) http://mirror/file
  6059. I think usually user don't mix multi-source URLs and torrent files, so
  6060. there is no big problem here.
  6061. * src/main.cc
  6062. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Fixed the bug that causes segmentaion fault when reading XML containing
  6064. unescapsed character like '&'.
  6065. Also a modification was made which avoids adding unnecessary
  6066. characters stack and appending unused string.
  6067. * src/ExpatMetalinkProcessor.cc
  6068. * src/FileMetalinkParserState.h
  6069. * src/FilesMetalinkParserState.h
  6070. * src/FinMetalinkParserState.h
  6071. * src/HashMetalinkParserState.h
  6072. * src/InitialMetalinkParserState.h
  6073. * src/LanguageMetalinkParserState.h
  6074. * src/MetalinkMetalinkParserState.h
  6075. * src/MetalinkParserState.h
  6076. * src/MetalinkParserStateMachine.cc
  6077. * src/MetalinkParserStateMachine.h
  6078. * src/OSMetalinkParserState.h
  6079. * src/PieceHashMetalinkParserState.h
  6080. * src/PiecesMetalinkParserState.h
  6081. * src/ResourcesMetalinkParserState.h
  6082. * src/SizeMetalinkParserState.h
  6083. * src/SkipTagMetalinkParserState.h
  6084. * src/URLMetalinkParserState.h
  6085. * src/VerificationMetalinkParserState.h
  6086. * src/VersionMetalinkParserState.h
  6087. * src/XML2SAXMetalinkProcessor.cc
  6088. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Added StringFormat class, which internally calls vasprintf.
  6090. operator<< is defined for this class, so it can be used with iostream
  6091. classes nicely. SimpleLogger and following functions are rewritten
  6092. using StringFormat class.
  6093. Besides, now Logger class's methods are non-const, many classes
  6094. that has a const Logger* as a member variable are modified to remove
  6095. const qualifier from the variable declaration.
  6096. * src/HelpItemFactory.cc
  6097. * src/Request.cc
  6098. * src/SimpleLogger.cc
  6099. * src/StringFormat.cc
  6100. * src/StringFormat.h
  6101. * src/Util.cc
  6102. * src/option_processing.cc
  6103. * src/version_usage.cc
  6104. * test/StringFormatTest.cc
  6105. * src/*.h: The classes that has const Logger* as a member variable.
  6106. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6108. failed. Also fixed memory link when exception is thrown there.
  6109. * src/main.cc (AccRequestGroup)
  6110. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Added build-in "Accept-Features" support. For now only "metalink" is
  6112. used in this header field.
  6113. This "metalink" value is removed from the list when connecting URLs
  6114. fed by metalink file to avoid loop in "transparent" metlaink.
  6115. * src/HttpRequest.cc
  6116. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6117. header is also held in this variable. Also renamed setUserHeaders as
  6118. addHeader and it was rewritten to add header not just to clear the old
  6119. value.
  6120. * src/HttpRequestCommand.cc
  6121. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6122. from "Accept-Features" list.
  6123. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6124. default.
  6125. * src/RequestGroup.h
  6126. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6127. * src/a2functional.h: Included <string> because Concat class depends on
  6128. it.
  6129. * test/HttpRequestTest.cc
  6130. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Added comment
  6132. * src/RequestGroup.cc (createNextCommand)
  6133. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Capitalized METHOD_GET and METHOD_HEAD
  6135. * src/Request.cc
  6136. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Added getDownloadResults() method
  6138. * src/RequestGroupMan.cc
  6139. * src/RequestGroupMan.h
  6140. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Fixed the bug that aria2 exits when commands is empty() but
  6142. _routineCommands are not.
  6143. * src/DownloadEngine.cc
  6144. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Use the default value pulled from Option object in HelpItemFactory.
  6146. except options whose defualt value is embedded in a usage text.
  6147. * src/HelpItemFactory.cc
  6148. * src/HelpItemFactory.h
  6149. * src/option_processing.cc
  6150. * src/version_usage.cc
  6151. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Added --quiet option to make aria2 quiet (no console output).
  6153. --quiet option is tagged with ADVANCED.
  6154. * src/HelpItemFactory.cc
  6155. * src/LogFactory.cc
  6156. * src/LogFactory.h
  6157. * src/MultiUrlRequestInfo.cc
  6158. * src/MultiUrlRequestInfo.h
  6159. * src/NullStatCalc.h: New class. This class prints nothing.
  6160. * src/OptionHandlerFactory.cc
  6161. * src/main.cc
  6162. * src/option_processing.cc
  6163. * src/prefs.h
  6164. * src/usage_text.h
  6165. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6167. * src/HelpItemFactory.cc (createHelpItems):
  6168. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Fixed compilation error in ExpatMetalinkProcessor.cc
  6170. * src/ExpatMetalinkProcessor.cc
  6171. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Reuse socket if the origin server supports HTTP keep-alive and
  6173. --enable-http-keep-alive or --enable-http-pipelining is given.
  6174. The current implementation doesn't reuse the connections established
  6175. against proxy server.
  6176. * src/AbstractCommand.cc
  6177. * src/DownloadEngine.cc
  6178. * src/DownloadEngine.h
  6179. * src/HttpDownloadCommand.cc
  6180. * src/HttpInitiateConnectionCommand.cc
  6181. * src/HttpResponseCommand.cc
  6182. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Rewritten HTTP keep-alive and pipelining routine.
  6184. * src/AbstractCommand.cc
  6185. * src/HttpConnection.cc
  6186. * src/HttpDownloadCommand.cc
  6187. * src/HttpRequest.cc
  6188. * src/HttpRequestCommand.cc
  6189. * src/HttpResponseCommand.cc
  6190. * src/Request.cc
  6191. * src/Request.h
  6192. * src/RequestGroup.cc
  6193. * test/HttpRequestTest.cc
  6194. * test/HttpResponseTest.cc
  6195. * test/RequestTest.cc
  6196. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Added missing setUserHeaders call
  6198. * src/HttpRequestCommand.cc
  6199. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6201. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6202. waste of time because it is more likey false.
  6203. * src/FileAllocationDispatcherCommand.cc (execute)
  6204. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Now HTTP status and version are a member variable of HttpHeader.
  6206. HTTP status is processed as a string, not integer.
  6207. * src/AbstractProxyResponseCommand.cc
  6208. * src/HttpConnection.cc
  6209. * src/HttpHeader.cc
  6210. * src/HttpHeader.h
  6211. * src/HttpHeaderProcessor.cc
  6212. * src/HttpHeaderProcessor.h
  6213. * src/HttpResponse.cc
  6214. * src/HttpResponse.h
  6215. * test/HttpHeaderProcessorTest.cc
  6216. * test/HttpResponseTest.cc
  6217. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Added --header option. You can specify any number of additional HTTP headers
  6219. like:
  6220. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6221. Unlike other commad-line option, you can use --header option multiple times.
  6222. * src/HelpItemFactory.cc
  6223. * src/HttpRequest.{cc, h}
  6224. * src/HttpRequestCommand.cc
  6225. * src/OptionHandlerFactory.cc
  6226. * src/OptionHandlerImpl.h
  6227. * src/option_processing.cc
  6228. * src/prefs.h
  6229. * src/usage_text.h
  6230. * test/HttpRequestTest.cc (testUserHeaders)
  6231. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Eliminates the time lag between sequential downloads and commands in
  6233. the same RequestGroup.
  6234. In old implementation, aria2 occasionally waits 1 seconds before
  6235. executing next command or RequestGroup.
  6236. This is really a waste of time, and new implementation eliminates
  6237. this unnecessary time lag.
  6238. * src/AbstractCommand.cc
  6239. * src/AutoSaveCommand.cc
  6240. * src/CheckIntegrityCommand.cc
  6241. * src/Command.{cc, h}
  6242. * src/DownloadEngine.{cc, h}
  6243. * src/DownloadEngineFactory.cc
  6244. * src/FileAllocationCommand.cc
  6245. * src/FileAllocationDispatcherCommand.cc
  6246. * src/FillRequestGroupCommand.cc
  6247. * src/FtpInitiateConnectionCommand.cc
  6248. * src/HaveEraseCommand.cc
  6249. * src/HttpInitiateConnectionCommand.cc
  6250. * src/HttpResponseCommand.cc
  6251. * src/RealtimeCommand.cc
  6252. * src/RequestGroup.cc
  6253. * src/RequestGroupMan.cc
  6254. * src/StreamFileAllocationEntry.cc
  6255. * src/TimeBasedCommand.{cc, h}
  6256. * src/TimedHaltCommand.cc
  6257. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6259. keyword explicit and SharedHandle's default constructor initializes
  6260. its internal obj to null, old implementation initializes it using
  6261. obj's default constructor.
  6262. To assign null, write SharedHandle<T> x(...); x.reset();
  6263. TODO: test/SharedHandleTest.cc needs more tests.
  6264. * src/SharedHandle.h
  6265. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Fixed type in man page.
  6267. * doc/aria2c.1.txt
  6268. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6270. * src/SimpleLogger.{cc, h}
  6271. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Implemented auto protocol detection.
  6273. Now you can do:
  6274. aria2c -Z http://host/file file1.torrent file2.metalink
  6275. (Note: -Z option is required for auto protcol detection.)
  6276. Then aria2c downloads 3 files simultaneously:
  6277. 1. http://host/file
  6278. 2. file1.torrent <-- read local torrent file
  6279. 3. file2.metalink <-- read local Metalink file.
  6280. Same thing goes with -i option. Assume your uris.txt contans:
  6281. http://host/file
  6282. file1.torrent
  6283. file2.metalink
  6284. Then you can do: aria2c -i uris.txt
  6285. (Note: -Z option is not needed if -i option is given.)
  6286. * src/main.cc
  6287. * src/ProtocolDetector.{cc, h}
  6288. * test/ProtocolDetectorTest.cc
  6289. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6291. installed
  6292. * src/ARC4Encryptor.h
  6293. * src/ARC4Decryptor.h
  6294. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Renamed argument from 'errno' to 'err', since errno is confused with
  6296. errno defined in errno.h.
  6297. * src/LibgcryptARC4Decryptor.h
  6298. * src/LibgcryptARC4Context.h
  6299. * src/LibgcryptDHKeyExchange.h
  6300. * src/LibgcryptARC4Encryptor.h
  6301. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Rewritten choking algorithm.
  6303. * src/PeerChokeCommand.{cc, h}
  6304. * src/BtInterestedMessage.cc
  6305. * src/PeerSessionResource.{cc, h}
  6306. * src/DefaultPeerStorage.{cc, h}
  6307. * src/BtNotInterestedMessage.cc
  6308. * src/DefaultBtMessageDispatcher.{cc, h}
  6309. * src/BtMessageDispatcher.h
  6310. * src/Peer.{cc, h}
  6311. * src/BtLeecherStateChoke.{cc, h}
  6312. * src/BtSetup.cc
  6313. * src/BtSeederStateChoke.{cc, h}
  6314. * src/PeerStorage.h
  6315. * test/MockPeerStorage.h
  6316. * test/MockBtMessageDispatcher.h
  6317. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Fixed compilation error on x84-64 platform.
  6319. * src/AuthConfig.cc: Included ostream.
  6320. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Rewritten getBasename() and getDirname(), without standard library
  6322. basename(), dirname().
  6323. * src/File.cc
  6324. * test/FileTest.cc
  6325. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Added Simplified Chinese translation. Also updated the following
  6327. translations: Polish, Dutch, German. Great thanks to all translators.
  6328. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Suppress content-range error when 'Content-Range' response header
  6330. doesn't contains bytes-unit specifier 'bytes'
  6331. * src/HttpHeader.cc (getRange)
  6332. * test/HttpHeaderTest.cc
  6333. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Fixed compilation error with g++-4.3
  6335. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Added missing include files for MinGW
  6337. * test/HttpHeaderProcessorTest.cc
  6338. * test/DHTRoutingTableSerializerTest.cc
  6339. * test/DHTRoutingTableDeserializerTest.cc
  6340. * test/UriListParserTest.cc
  6341. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Now download line is printed nicely with no garbage at the end of
  6343. line. I use ioctl to get the columns of terminal.
  6344. If stdout is redirected to another device, instead of carriage return,
  6345. end of line '\n' character is used. This is feature request#1909659
  6346. * src/ConsoleStatCalc.cc (calculateStat)
  6347. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Included a2time.h
  6349. * src/DHTMessageDispatcher.h
  6350. * src/DHTMessageEntry.h
  6351. * src/DHTReplaceNodeTask.h
  6352. * src/DHTMessageTracker.h
  6353. * src/Util.h
  6354. * src/CookieBox.h
  6355. * src/SocketCore.h
  6356. * src/DefaultBtMessageDispatcher.h
  6357. * src/SocketCore.cc
  6358. * src/Util.cc
  6359. * src/DHTPingTask.h
  6360. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Fixed high memory footprint when DHT is enabled.
  6362. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6363. queued than it is processed and the queue is getting longer. As a
  6364. consequence, momory usage is increased.
  6365. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6366. replacement cache in DHTBucket which is described in Kademlia paper.
  6367. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6368. DHTReplaceNodeTask.
  6369. * src/DHTBucket.{h, cc}
  6370. (cacheNode): New function.
  6371. (getCachedNodes): New function.
  6372. (dropNode): Push back cached node to _nodes.
  6373. * test/DHTBucketTest.cc
  6374. (testCacheNode): New test
  6375. (testDropNode): New test
  6376. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6378. the unused 4KB memory when ssl is not used.
  6379. * src/SocketCore.cc
  6380. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Added summary log for peer announce storage.
  6382. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6383. Removed cast
  6384. * src/DefaultPeerStorage.cc (addPeer)
  6385. Log exception message
  6386. * src/DHTMessageTracker.cc (handleTimeout)
  6387. Fixed casting
  6388. * test/HttpRequestTest.cc
  6389. * test/MetalinkProcessorTest.cc
  6390. * test/PieceTest.cc
  6391. * test/MetalinkEntryTest.cc
  6392. * test/SequenceTest.cc
  6393. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. * src/ParameterizedStringParser.cc (createLoop):
  6395. Removed unused variable sstep.
  6396. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6397. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. * src/Util.{h, cc}
  6399. (parseUInt): New function.
  6400. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6401. The actual range is uint32_t.
  6402. * test/UtilTest.cc
  6403. * src/ParameterizedStringParser.cc:
  6404. Use Util::parseUInt() for loop variables.
  6405. * test/ParameterizedStringParserTest.cc
  6406. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6407. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Rewritten the functions for binding port.
  6409. * src/DHTConnectionImpl.{h, cc}
  6410. * src/PeerListenCommand.{h, cc}
  6411. * src/DHTSetup.cc
  6412. * src/BtSetup.cc
  6413. * test/DHTConnectionImplTest.cc
  6414. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. type cleanup for allmost all remaining files.
  6416. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Type clarification
  6418. * src/PeerSessionResource.{h, cc}
  6419. * src/DefaultPieceStorage.{h, cc}
  6420. * src/Peer.{h, cc}
  6421. * test/PeerSessionResourceTest.cc
  6422. Use div function
  6423. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6424. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Type clarification
  6426. * src/DefaultPeerStorage.{h, cc}
  6427. * test/DefaultPeerStorageTest.cc
  6428. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Type clarification: size_t for length or size, uint64_t for file
  6430. length, off_t for file offset.
  6431. * src/DefaultBtProgressInfoFile.cc
  6432. * src/DefaultBtContext.{h, cc}
  6433. * src/DefaultBtInteractive.cc
  6434. * src/DownloadCommand.{h, cc}
  6435. * src/IteratableChunkChecksumValidator.{h, cc}
  6436. * src/SegmentMan.{h, cc}
  6437. * src/SingleFileDownloadContext.{h, cc}
  6438. * src/IteratableChecksumValidator.{h, cc}
  6439. * src/BtContext.h
  6440. * src/IteratableValidator.h
  6441. * src/DownloadContext.h
  6442. * test/SingleFileDownloadContextTest.cc
  6443. * test/DefaultBtContextTest.cc
  6444. * test/MockBtContext.h
  6445. * test/Metalink2RequestGroupTest.cc
  6446. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Type clarification: size_t for length or size, uint64_t for file
  6448. length, off_t for file offset.
  6449. * src/PiecedSegment.cc
  6450. * src/GrowSegment.h
  6451. * src/DefaultBtRequestFactory.h
  6452. * src/DefaultBtProgressInfoFile.cc
  6453. * src/UnknownLengthPieceStorage.h
  6454. * src/DefaultPieceStorage.cc
  6455. * src/UnknownLengthPieceStorage.cc
  6456. * src/DefaultBtInteractive.cc
  6457. * src/GrowSegment.cc
  6458. * src/BitfieldMan.h
  6459. * src/DownloadCommand.cc
  6460. * src/BtRequestFactory.h
  6461. * src/PiecedSegment.h
  6462. * src/DefaultPieceStorage.h
  6463. * src/Piece.cc
  6464. * src/DefaultBtRequestFactory.cc
  6465. * src/PieceStorage.h
  6466. * src/Segment.h
  6467. * src/Piece.h
  6468. * src/BitfieldMan.cc
  6469. * src/Util.cc
  6470. * test/DefaultBtProgressInfoFileTest.cc
  6471. * test/DefaultPieceStorageTest.cc
  6472. * test/MockPieceStorage.h
  6473. * test/BtRequestMessageTest.cc
  6474. * test/DefaultBtMessageDispatcherTest.cc
  6475. * test/BitfieldManTest.cc
  6476. * test/GrowSegmentTest.cc
  6477. * test/PieceTest.cc
  6478. * test/SegmentTest.cc
  6479. * test/SegmentManTest.cc
  6480. * test/DefaultBtRequestFactoryTest.cc
  6481. * test/MockBtRequestFactory.h
  6482. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Fixed compilation error with --disable-nls
  6484. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6485. in gettext.h causes the problem.
  6486. * src/common.h
  6487. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Removed subPiece related functions.
  6489. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6490. * src/DefaultPieceStorage.{h, cc}
  6491. * test/PieceTest.cc
  6492. * test/DefaultPieceStorageTest.cc
  6493. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Use unsigned char for data store.
  6495. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Bump up version number to 0.13.0+1
  6497. * configure.ac
  6498. * Release 0.13.0+1
  6499. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Changed inactive connection timeout to 120.
  6501. To accept more mulually interested peers, disconnect peer when there
  6502. is no interest between us after certain time passed.
  6503. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6504. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6506. when compiled with async DNS support.
  6507. * src/DownloadEngine.cc
  6508. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6509. value '10' will be a little bit short when some DNS servers are
  6510. offline and several DNS servers are tried. It should be configured
  6511. by command-line option.
  6512. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Merged Ross's mingw patch.
  6514. * src/DHTRoutingTableDeserializer.cc
  6515. * src/DHTRoutingTableSerializer.cc
  6516. * src/Platform.{h, cc}
  6517. * src/timegm.h
  6518. * src/gettimeofday.h
  6519. * src/getaddrinfo.h
  6520. * src/SocketCore.h
  6521. * src/common.h
  6522. * src/inet_aton.h
  6523. * src/DownloadEngine.h
  6524. * src/gai_strerror.h
  6525. * src/a2netcompat.h
  6526. * configure.ac
  6527. * configure
  6528. * aclocal.m4
  6529. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Included missing iostream.
  6531. * test/AllTest.cc
  6532. * test/BtDependencyTest.cc
  6533. * test/BtExtendedMessageTest.cc
  6534. * test/DHTConnectionImplTest.cc
  6535. * test/DHTMessageFactoryImplTest.cc
  6536. * test/DHTMessageTrackerEntryTest.cc
  6537. * test/DHTNodeTest.cc
  6538. * test/DHTRoutingTableSerializerTest.cc
  6539. * test/DefaultBtAnnounceTest.cc
  6540. * test/DefaultBtContextTest.cc
  6541. * test/DefaultBtMessageFactoryTest.cc
  6542. * test/DefaultExtensionMessageFactoryTest.cc
  6543. * test/HandshakeExtensionMessageTest.cc
  6544. * test/HttpResponseTest.cc
  6545. * test/MetalinkProcessorTest.cc
  6546. * test/MultiFileAllocationIteratorTest.cc
  6547. * test/SocketCoreTest.cc
  6548. * test/UTPexExtensionMessageTest.cc
  6549. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Reorganized includes.
  6551. * src/NameResolver.cc
  6552. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Fixed compilation error without ares/c-ares
  6554. * src/NameResolver.h:
  6555. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Added a test for large file.
  6557. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6558. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Fixed the bug that file size is ignored if size > INT32_MAX
  6560. * src/SizeMetalinkParserState.cc (endElement):
  6561. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Bump up version number to 0.13.0
  6563. * configure.ac
  6564. * Release 0.13.0
  6565. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Updated Makfefile.am to make 'make dist' work.
  6567. Now packaged filename is aria2c-VERSION.tar.bz2.
  6568. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6569. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6570. Large file support is now configured by configure script.
  6571. * configure.ac
  6572. Removed unsused source files
  6573. * src/
  6574. * test/
  6575. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6576. Peer.h and BtContext.h respectively.
  6577. * src/Peer.h
  6578. * src/BtContext.h
  6579. Updated translations.
  6580. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6581. translations. Great thanks to all translators!;)
  6582. * po/*.{po, gmo}
  6583. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6585. statically declared sha1 MessageDigestContext.
  6586. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6587. initialization of short-lived MessageDigestContext.
  6588. * src/MessageDigestHelper.{h, cc}
  6589. * src/main.cc
  6590. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6591. the initialization of MessageDigestContext every time in validating
  6592. chunk checksum.
  6593. * src/DownloadCommand.{h, cc}
  6594. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Add a file descriptor which connected to fast peer(latency<1500) to
  6596. select(). This change reduced CPU load.
  6597. * src/PeerInteractionCommand.cc
  6598. * src/DefaultBtInteractive.{h, cc}
  6599. * src/BtInteractive.h
  6600. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Fixed the previous insufficient fix for possible busy loop.
  6602. * src/MSEHandshake.cc (identifyHandshakeType)
  6603. Removed unused functions.
  6604. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6605. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Fixed possible busy loop if first 20 bytes are not received for a few
  6607. minutes.
  6608. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6609. * src/ReceiverMSEHandshakeCommand.cc
  6610. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Fixed compilation error
  6612. * src/ExpatMetalinkProcessor.cc
  6613. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6615. * src/DHTBucket.cc
  6616. Removed unnecessary cast.
  6617. * src/HandshakeExtensionMessage.cc
  6618. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6620. is missing.
  6621. * src/OptionHandlerFactory.cc
  6622. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Fixed the bug that HAVE message is not sent for a piece they are
  6624. downloaded fom http/ftp server before any BitTorrent handshake is done
  6625. with peers.
  6626. * src/DefaultBtInteractive.cc
  6627. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6629. * src/Makefile.am
  6630. * src/Makefile.in
  6631. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Updated README. Added html version of README and man page.
  6633. * README
  6634. * README.html
  6635. * readme2html: Shell script to generate README.html from README using
  6636. asciidoc.
  6637. * doc/aria2c.1.html
  6638. * doc/makeman: Added the line to generate aria2c.1.html
  6639. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Fixed offset calculation.
  6641. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6642. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Rewritten itos and uitos using template. llitos and ullitos are
  6644. replaced with itos and uitos respectively.
  6645. * src/Util.{h, cc}
  6646. * test/UtilTest.cc
  6647. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6649. of the number of bytes required for storing public key and shared
  6650. secret.
  6651. * src/LibgcryptDHKeyExchange.h
  6652. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6653. * src/MSEHandshake.cc
  6654. * test/DHKeyExchangeTest.cc
  6655. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Removed since they are not used.
  6657. * src/Xml2MetalinkProcessor.{h, cc}
  6658. * src/Socket.cc
  6659. * src/SegmentSplitter.{h, cc}
  6660. * test/Xml2MetalinkProcessorTest.cc
  6661. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Fixed the bug that prevents aria2 from stopping other than by pressing
  6663. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6664. option. aria2 doesn't stop even after --seed-time is satisfied and
  6665. continues to output blank lines in the console.
  6666. * src/ReceiverMSEHandshakeCommand.cc
  6667. * src/PeerReceiveHandshakeCommand.cc
  6668. * src/PeerListenCommand.cc
  6669. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Bump up version number to 0.13.0rc
  6671. * configure.ac
  6672. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Updated man page and some usage text.
  6674. * doc/aria2c.1.txt
  6675. * src/usage_text.h
  6676. * po/*.{po, gmo}
  6677. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Updated translations. Added Finnish and Hebrew translations.
  6679. Great thanks to all translators!
  6680. * po/*.{po, gmo}
  6681. * po/LINGUAS
  6682. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Log more detailed information about each message.
  6684. * src/DHTQueryMessage.{h, cc}
  6685. * src/DHTGetPeersMessage.{h, cc}
  6686. * src/DHTFindNodeReplyMessage.{h, cc}
  6687. * src/DHTGetPeersReplyMessage.{h, cc}
  6688. * src/DHTAnnouncePeerMessage.{h, cc}
  6689. * src/DHTResponseMessage.{h, cc}
  6690. * src/DHTFindNodeMessage.{h, cc}
  6691. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Use constants defined in prefs.h
  6693. * src/option_processing.cc
  6694. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6696. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Make room for future enchancements for IPv6 addresses.
  6698. Bump up version number of dht.dat file format to 2.
  6699. Not compatible with previous version.
  6700. * src/DHTRoutingTableSerializer.cc
  6701. * src/DHTRoutingTableDeserializer.cc
  6702. * test/DHTRoutingTableSerializerTest.cc
  6703. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6704. Added handling for the return values from
  6705. PeerMessageUtil::createcompact().
  6706. * src/DefaultBtContext.cc (computeFastSet):
  6707. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Fixed abort when peer's ip address is IPv4-mapped address.
  6709. * src/DefaultBtContext.cc (computeFastSet)
  6710. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6711. cannot handle IPv4-mapped addresses.
  6712. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6713. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Proper return value handling for OpenSSL functions.
  6715. * src/LibsslDHKeyExchange.h
  6716. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Random bytes generation using libgcrypt and OpenSSL.
  6718. * src/DHTUtil.{h, cc}
  6719. * test/DHTUtilTest.cc
  6720. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6722. received.
  6723. * src/DHTMessageReceiver.cc (receiveMessage)
  6724. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Fixed the bug that a return code is always 0. BUG#1897704
  6726. If error occurred during the download or there exist unfinished
  6727. downloads, aria2 returns with code 1.
  6728. * src/RequestGroupMan.{h, cc}
  6729. * src/MultiUrlRequestInfo.{h, cc}
  6730. * src/main.cc
  6731. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. IPv6 support for SocketCore class.
  6733. TODO: In SocketCore::establishConnection(), this is insufficient to
  6734. determin the failure of connect() here because the socket is
  6735. non-blocking state. The next addresses should be tried after select().
  6736. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6737. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6738. instead which address family independent.
  6739. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6740. information in a compact peer format which is for IPv4 only.
  6741. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6742. this is a spec of BitTorrent protocol.
  6743. * src/SocketCore.{h, cc}
  6744. * src/PeerMessageUtil.cc
  6745. * test/SocketCoreTest.cc
  6746. * test/PeerMessageUtilTest.cc
  6747. * test/DHTConnectionImplTest.cc
  6748. Handle IPv4-mapped addresses.
  6749. * src/DHTNode.cc: Now identity is determined by node id.
  6750. * src/DHTMessageTrackerEntry.cc
  6751. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6752. should handle it.
  6753. * src/DHTRoutingTableDeserializer.cc
  6754. * src/DHTMessageFactoryImpl.cc
  6755. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. Change the unit of --stop option from a minute to a second.
  6757. * src/usage_text.h
  6758. * src/DownloadEngineFactory.cc
  6759. * src/OptionHandlerFactory.cc
  6760. * src/message.h
  6761. * src/TimedHaltCommand.cc
  6762. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Make listening socket non-block mode.
  6764. * src/FtpConnection.cc
  6765. * src/FtpNegotiationCommand.{h, cc}
  6766. * src/PeerListenCommand.cc
  6767. Fixed the bug that cause slow ftp negotiation.
  6768. * src/FtpNegotiationCommand.{h, cc}
  6769. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Added basic tag to --enable-dht, --dht-listen-port option.
  6771. * src/HelpItemFactory.cc (createHelpItems)
  6772. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Updated text.
  6774. * src/usage_text.h
  6775. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6777. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Determin _threadtholdSpeed in each constructor for
  6779. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6780. * src/ActivePeerConnectionCommand.{h, cc}
  6781. * src/PeerReceiveHandshakeCommand.{h, cc}
  6782. * src/BtSetup.cc
  6783. * src/BtConstants.h
  6784. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Added --bt-min-crypto-level and --bt-require-crypto options.
  6786. * src/OptionHandlerFactory.cc
  6787. * src/MSEHandshake.cc
  6788. * src/HelpItemFactory.cc
  6789. * src/option_processing.cc
  6790. * src/ReceiverMSEHandshakeCommand.cc
  6791. * src/prefs.h
  6792. * src/DefaultBtAnnounce.cc
  6793. * src/InitiatorMSEHandshakeCommand.cc
  6794. * src/usage_text.h
  6795. * test/MSEHandshakeTest.cc
  6796. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Bump version number to 0.13.0b
  6798. * configure.ac
  6799. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Updated doc.
  6801. * src/MessageDigestHelper.h:
  6802. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Use raw message digest as a token instead of its hexadecimal
  6804. representation.
  6805. * src/DHTTokenTracker.cc (generateToken)
  6806. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Added Message Stream Encryption(MSE) support.
  6808. Currently, aria2 accepts incoming connections with Obfuscation Header
  6809. and legacy BitTorrent Header and establishes connections with
  6810. Obfuscation Header first and if failed then retry with legacy
  6811. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6812. choose ARC4. The new option to change the default behavior is planned.
  6813. For tracker extension, "supportcrypto=1" is added statically.
  6814. * src/PeerInitiateConnectionCommand.{h, cc}
  6815. * src/PeerConnection.{h, cc}
  6816. * src/HandleRegistry.h
  6817. * src/SocketCore.h
  6818. * src/PeerReceiveHandshakeCommand.{h, cc}
  6819. * src/BtRegistry.{h, cc}
  6820. * src/PeerListenCommand.cc
  6821. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6822. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6823. * src/MSEHandshake.{h, cc}
  6824. * src/ARC4Encryptor.h
  6825. * src/ARC4Decryptor.h
  6826. * src/LibgcryptARC4Encryptor.h
  6827. * src/LibgcryptARC4Decryptor.h
  6828. * src/LibgcryptARC4Context.h
  6829. * src/LibsslARC4Encryptor.h
  6830. * src/LibsslARC4Decryptor.h
  6831. * src/LibsslARC4Context.h
  6832. * src/DHKeyExchange.h
  6833. * src/LibgcryptDHKeyExchange.h
  6834. * src/LibsslDHKeyExchange.h
  6835. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6836. * test/DefaultBtAnnounceTest.cc
  6837. * test/ARC4Test.cc
  6838. * test/DHKeyExchangeTest.cc
  6839. Removed prepareForRetry() because it is not used.
  6840. * src/PeerAbstractCommand.{h, cc}
  6841. * src/PeerInteractionCommand.{h, cc}
  6842. * src/PeerInitiateConnectionCommand.{h, cc}
  6843. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Added the ability to load nodes from torrent file. These nodes are
  6845. added to the routing table when downloading that torrent.
  6846. * src/BtContext.h
  6847. * src/DefaultBtContext.{h, cc}
  6848. * src/DHTSetup.cc
  6849. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6850. hostname and port pair, and resolves all of them.
  6851. * src/NameResolver.{h, cc}: Added reset().
  6852. * src/RequestGroup.cc
  6853. * test/DefaultBtContextTest.cc
  6854. * test/MockBtContext.h
  6855. Removed assert() from DefaultBtContext and throw exception instead.
  6856. * src/DefaultBtContext.cc
  6857. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Fixed segmentation fault bug when exiting if dht is disabled.
  6859. * src/RequestGroup.cc
  6860. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Fixed typo in log message and define the message in message.h
  6862. * src/TimedHaltCommand.cc
  6863. * src/message.h
  6864. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Included RecoverableException.h to fix compilation error.
  6866. * test/DHTMessageFactoryImplTest.cc
  6867. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6869. * test/DHTPingMessageTest.cc
  6870. * test/DHTGetPeersMessageTest.cc
  6871. * test/DHTFindNodeMessageTest.cc
  6872. * test/DHTAnnouncePeerMessageTest.cc
  6873. * test/MockDHTMessage.h
  6874. * test/MockDHTMessageFactory.h
  6875. * test/MockDHTMessageDispatcher.h: New class.
  6876. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6878. virtual.
  6879. * src/DHTMessageDispatcher.h
  6880. * src/DHTMessageDispatcherImpl.{h, cc}
  6881. * src/DHTSetup.cc
  6882. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Adding handling of DHT error message. Just log error message and
  6884. throw exception.
  6885. * src/DHTMessageFactoryImpl.cc
  6886. * test/DHTMessageFactoryImplTest.cc
  6887. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Added handling of dynamic cast failure.
  6889. * src/DHTNodeLookupTask.cc
  6890. * src/DHTPeerLookupTask.cc
  6891. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Added the ability to stop aria2 itself when given time has passed
  6893. from start. Use --stop option to specify time in minutes.
  6894. When 0 is given, this feature is disabled.
  6895. * src/OptionHandlerFactory.cc
  6896. * src/TimeBasedCommand.h: Make _interval protected scope.
  6897. * src/HelpItemFactory.cc
  6898. * src/option_processing.cc
  6899. * src/prefs.h
  6900. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6901. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6902. Without this modification, the result list shows "ERR" when aria2 is
  6903. stopped by --stop option. It should be "INPR".
  6904. * src/DownloadEngine.{h, cc}
  6905. * src/DownloadEngineFactory.cc
  6906. * src/usage_text.h
  6907. * src/TimedHaltCommand.{h, cc}: New class.
  6908. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Bootstrap through node added by port message.
  6910. Currently bootstrap is executed if the number of buckets in routing
  6911. table is 1.
  6912. * src/BtPortMessage.{h, cc}
  6913. * src/DefaultBtMessageFactory.{h, cc}
  6914. * src/PeerInteractionCommand.cc
  6915. * test/BtPortMessageTest.cc
  6916. * test/MockDHTTask.h
  6917. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Extract the Peer class's member variables, which are only needed after
  6919. PeerInteractionCommand, into PeerSessionResource class.
  6920. This class is instantiated in PeerInteractionCommand class's ctor and
  6921. released in its dtor.
  6922. This will make Peer class lightweight and uses less memory for peers
  6923. which are not connected and wait in the queue.
  6924. * src/PeerChokeCommand.cc
  6925. * src/PeerSessionResource.{h, cc}
  6926. * src/PeerInteractionCommand.cc
  6927. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6928. * src/DefaultBtInteractive.cc
  6929. * src/BtPieceMessage.cc
  6930. * src/BtInterestedMessage.cc
  6931. * src/BtUnchokeMessage.cc
  6932. * src/DefaultPeerStorage.{h, cc}
  6933. * src/PeerInitiateConnectionCommand.cc
  6934. * src/ActivePeerConnectionCommand.cc
  6935. * src/BtNotInterestedMessage.cc
  6936. * src/DefaultBtMessageDispatcher.cc
  6937. * src/BtChokeMessage.cc
  6938. * src/BtRequestMessage.cc
  6939. * src/Peer.{h, cc}
  6940. * src/BtRegistry.h
  6941. * src/TrackerWatcherCommand.cc
  6942. * src/PeerReceiveHandshakeCommand.cc
  6943. * test/BtExtendedMessageTest.cc
  6944. * test/BtAllowedFastMessageTest.cc
  6945. * test/BtCancelMessageTest.cc
  6946. * test/DefaultPieceStorageTest.cc
  6947. * test/BtBitfieldMessageTest.cc
  6948. * test/BtHaveMessageTest.cc
  6949. * test/BtNotInterestedMessageTest.cc
  6950. * test/BtRequestMessageTest.cc
  6951. * test/PeerSessionResourceTest.cc
  6952. * test/DefaultBtMessageDispatcherTest.cc
  6953. * test/PeerTest.cc
  6954. * test/BtInterestedMessageTest.cc
  6955. * test/BtRejectMessageTest.cc
  6956. * test/BtChokeMessageTest.cc
  6957. * test/DefaultPeerStorageTest.cc
  6958. * test/BtHaveNoneMessageTest.cc
  6959. * test/BtHaveAllMessageTest.cc
  6960. * test/DefaultExtensionMessageFactoryTest.cc
  6961. * test/BtUnchokeMessageTest.cc
  6962. * test/DefaultBtMessageFactoryTest.cc
  6963. * test/HandshakeExtensionMessageTest.cc
  6964. * test/UTPexExtensionMessageTest.cc
  6965. * test/DefaultBtRequestFactoryTest.cc
  6966. * test/BtPieceMessageTest.cc
  6967. Removed typedef PeerStats.
  6968. * src/PeerStat.h
  6969. * src/SegmentMan.cc
  6970. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Added std namespace to copy, remove_copy, back_inserter,
  6972. front_inserter.
  6973. * src/RequestGroupMan.cc
  6974. * src/DefaultPieceStorage.cc
  6975. * src/StreamFileAllocationEntry.cc
  6976. * src/BtFileAllocationEntry.cc
  6977. * src/RequestGroup.cc
  6978. * src/MetalinkEntry.cc
  6979. * src/DelegatingPeerListProcessor.cc
  6980. * src/DefaultBtRequestFactory.cc
  6981. * src/DefaultBtMessageDispatcher.cc
  6982. * src/version_usage.cc: Included <algorithm>
  6983. * src/main.cc
  6984. * src/MetalinkParserController.cc
  6985. * src/DefaultBtContext.cc
  6986. * src/DownloadEngineFactory.cc
  6987. * src/a2algo.h
  6988. Removed.
  6989. * test/StreamUriListParserTest.cc
  6990. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6992. ActivePeerConnectionCommand when it is given and
  6993. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6994. * src/ActivePeerConnectionCommand.{h, cc}
  6995. * src/BtSetup.cc
  6996. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Only add socket to DownloadEngine's select routine when peer or
  6998. localhost is unchoked and interested. This lowers CPU usage a
  6999. little bit.
  7000. * src/PeerInteractionCommand.cc
  7001. * src/PeerAbstractCommand.{h, cc}
  7002. * src/BtInteractive.h
  7003. * src/DefaultBtInteractive.{h, cc}
  7004. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Revert previous change because get_peers message is needed for
  7006. announce_peer anyway.
  7007. * src/DHTGetPeersCommand.cc
  7008. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Request peers thought DHT only when download hasn't finished.
  7010. * src/DHTGetPeersCommand.cc
  7011. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7013. * src/DHTBucketRefreshTask.{h, cc}
  7014. * src/DHTSetup.cc
  7015. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7017. standard classes.
  7018. Included string.h where mem* function are used.
  7019. Added namespace aria2.
  7020. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Create directory before saving DHT routing table.
  7022. Now ios::failure is now handled properly.
  7023. * src/DHTAutoSaveCommand.cc
  7024. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Removed unnecessary cerr.
  7026. * src/DownloadEngine.cc
  7027. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Catch exception inside DHTMessageReceiver::receiveMessage().
  7029. Log unknown message.
  7030. * src/DHTMessageReceiver.{h, cc}
  7031. * src/DHTMessageFactory.h
  7032. * src/DHTMessageFactoryImpl.{h, cc}
  7033. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7034. * src/DHTInteractionCommand.cc
  7035. * src/DHTUnknownMessage.{h, cc}
  7036. * test/DHTUnknownMessageTest.cc
  7037. * test/MockDHTMessageFactory.h
  7038. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Commented out ip address comparison because a host can have multiple
  7040. ip addresses and it is hard to predict the hostname is resolved into
  7041. which one.
  7042. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7043. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7044. * po/Makefile.in: Removed since this is generated by configure.
  7045. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Fixed compiler warning about redefinition of SIZE_MAX.
  7047. Use common.h instead of config.h directly here.
  7048. * src/Platform.{h, cc}
  7049. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7050. here.
  7051. * common.h
  7052. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7053. Updated gettext related files.
  7054. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7055. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7056. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Added DHT functionality, compatible with mainline.
  7058. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7059. You may need to specify entry point to DHT network using
  7060. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7061. Use --dht-listen-port to specify port number. Make sure that your
  7062. firewall configuration can pass through UDP traffic to the port.
  7063. The routing table is saved in $HOME/.aria2/dht.dat.
  7064. * src/DHT*
  7065. * src/BNode.{h, cc}
  7066. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7067. particular torrent.
  7068. * src/Data.cc: Rewritten ctor.
  7069. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7070. --dht-entry-point.
  7071. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7072. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7073. ends, remove BtContext from DHTPeerAnnounceStorage.
  7074. * src/BtPortMessage.{h, cc}: Rewritten.
  7075. * src/message.h
  7076. * src/OptionHandlerImpl.cc
  7077. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7078. --dht-entry-point.
  7079. * src/Dictionary.{h, cc} (remove): New function.
  7080. * src/prefs.h
  7081. * src/DefaultBtMessageFactory.h
  7082. * src/BtHandshakeMessage.cc
  7083. * src/ActivePeerConnectionCommand.cc
  7084. * src/SocketCore.{h, cc}: Added datagram socket support.
  7085. * src/DefaultBtMessageFactory.cc
  7086. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7087. Create DHT commands.
  7088. * src/BtMessageFactory.h
  7089. * src/PeerMessageUtil.{h, cc}
  7090. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Fixed the bug that log file is not written when configuration file doesn't exist.
  7092. This is caused by using Logger class before LogFactory is not configured.
  7093. BUG #1875079
  7094. * src/option_processing.cc
  7095. Warning message "configuration doesn't exist" is only printed when --conf is
  7096. given.
  7097. * src/option_processing.cc
  7098. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7100. ShaVisitor is now deprecated and slated to be removed.
  7101. * src/DefaultBtContext.cc
  7102. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Externalize message to message.h
  7104. * src/Platform.cc
  7105. * src/message.h
  7106. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Set default domain and default path to cookie.
  7108. * src/HttpResponse.cc
  7109. * src/CookieBox.{h, cc}
  7110. * src/CookieParser.{h, cc}
  7111. * test/CookieParserTest.cc
  7112. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Added --no-conf and --conf-path command-line option.
  7114. --no-conf option disables loading aria2.conf file.
  7115. --conf-path option changes the configuration file path. The default
  7116. file path is $HOME/.aria2/aria2.conf
  7117. Added a warning message when the configuration file is not found.
  7118. * src/HelpItemFactory.cc
  7119. * src/option_processing.cc
  7120. * src/prefs.h
  7121. * src/usage_text.h
  7122. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Added the message to inform users that other help categories are
  7124. available in -h option.
  7125. * src/version_usage.cc
  7126. * src/TagContainer.{h, cc}
  7127. * test/TagContainerTest.cc
  7128. * src/TaggedItem.{h, cc}
  7129. * test/TaggedItemTest.cc
  7130. * src/HelpItem.h
  7131. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7133. from PiecedSegment's ctor.
  7134. Previously Piece::getAllMissingBlockIndexes() is called from
  7135. PiecedSegment() but it is rather expensive since only first element is
  7136. used.
  7137. * src/PiecedSegment.cc
  7138. * src/Piece.{h, cc}
  7139. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7141. each time these functions are called.
  7142. * src/BitfieldMan.{h, cc}
  7143. * test/BitfieldManTest.cc
  7144. * src/array_fun.h
  7145. * test/array_funTest.cc
  7146. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7147. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7148. filtered. Removed unnecessary cast to int32_t.
  7149. * src/BitfieldMan.{h, cc}
  7150. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7152. payload length(4bytes) are received. This happens because lenbufLength
  7153. is not updated in this particular case and successive call of
  7154. receiveMessage() overwrites payload length with bytes recieved which
  7155. are payload body.
  7156. * src/PeerConnection.{h, cc}
  7157. * src/message.h
  7158. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7160. peer if there are peers that have same ipaddr and port.
  7161. I've experiened segmentation fault and "pure virtual function was
  7162. called" error.
  7163. * src/Peer.h
  7164. * test/PeerTest.cc
  7165. * src/DefaultPeerStorage.cc
  7166. * test/DefaultPeerStorageTest.cc
  7167. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Removed a call to isPowerOf() because it is no longer necessary here
  7169. and a request block is not always power of 2.
  7170. BUG#1866924
  7171. * src/PeerMessageUtil.cc (checkLength)
  7172. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Fixed the bug that always first found Segment is removed from
  7174. usedSegmentEntries. Removed unused functions.
  7175. * src/SegmentMan.{h, cc}
  7176. * test/SegmentManTest.cc
  7177. Fixed the bug that ServerHost is not removed.
  7178. * src/RequestGroup.cc
  7179. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Fixed the bug that SegmentMan::completeSegment() is not called
  7181. even if Segment is complete when --lowest-speed-limit is enabled.
  7182. BUG#1864525
  7183. * src/DownloadCommand.{h, cc}
  7184. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Fixed: hash algorithm 'sha1' is always used.
  7186. * src/DownloadCommand.cc (validatePieceHash)
  7187. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7188. Added --enable-peer-exchange command-line option.
  7189. * src/OptionHandlerFactory.cc
  7190. * src/HelpItemFactory.cc
  7191. * src/option_processing.cc
  7192. * src/usage_text.h
  7193. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Move extension from BtRuntime to ExtensionMessageFactory, because
  7195. extension can be specified per peer, not per torrent.
  7196. * src/DefaultBtInteractive.cc
  7197. * src/BtRuntime.h
  7198. * src/ExtendedMessagingAware.h
  7199. * src/ExtensionMessageFactory.h
  7200. * src/DefaultExtensionMessageFactory.cc
  7201. * test/DefaultExtensionMessageFactoryTest.cc
  7202. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Added categorized option help. Specify category using --help option.
  7204. Also added the ability to search options in forward match.
  7205. * src/HelpItem.{h, cc}
  7206. * test/HelpItemTest.cc
  7207. * src/HelpItemFactory.{h, cc}
  7208. * src/TagContainer.{h, cc}
  7209. * test/TagContainerTest.cc
  7210. * src/option_processing.cc
  7211. * src/prefs.h
  7212. * src/TaggedItem.{h, cc}
  7213. * test/TaggedItemTest.cc
  7214. * src/version_usage.cc
  7215. * src/help_tags.h
  7216. * src/usage_text.h
  7217. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Fixed segmentation fault when bad torrent metainfo is parsed.
  7219. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7220. and then throw exception or skip it.
  7221. * src/DefaultBtContext.{h, cc}
  7222. * test/DefaultBtContextTest.cc
  7223. * src/AnnounceList.cc
  7224. * src/CompactPeerListProcessor.cc
  7225. * src/message.h
  7226. * src/DefaultBtAnnounce.{h, cc}
  7227. * test/DefaultBtAnnounceTest.cc
  7228. * src/BencodeVisitor.cc
  7229. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Added missing "B"(=Byte). So now the message looks like this:
  7231. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7232. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7233. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Show the seed ratio after torrent downloads.
  7235. For example, after torrent download completed and --seed-time and
  7236. --seed-ratio conditions are fulfilled, following message is printed
  7237. right after "Download complete: .....":
  7238. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7239. * src/RequestGroupMan.cc
  7240. * src/RequestGroup.{h, cc}
  7241. * src/message.h
  7242. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Remove a defunct control file. A defunct control file means that while
  7244. it exists, but the corresponding download file is missing.
  7245. After its removal, a download restarts from the beginning.
  7246. * src/RequestGroup.cc
  7247. * src/message.h
  7248. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Allocate bitfield in Peer when it is really used. More specifically,
  7250. bitfield in Peer is allocated after the connection is established and
  7251. deallocated when the connection is dropped.
  7252. Since 2 parameters(piece length and total length) was removed from the
  7253. constructor of Peer class, many test classes were modified accordingly.
  7254. See svn log for more detailed information.
  7255. * src/PeerInteractionCommand.cc
  7256. * src/CompactPeerListProcessor.cc
  7257. * src/Peer.cc
  7258. * src/DefaultPeerListProcessor.cc
  7259. * src/PeerListenCommand.cc
  7260. * src/PeerReceiveHandshakeCommand.cc
  7261. Fixed memory leak
  7262. * src/Piece.cc
  7263. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7265. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7266. command-line options.
  7267. * src/option_processing.cc
  7268. * src/ActivePeerConnectionCommand.cc
  7269. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Send have message to peer if it already has the piece.
  7271. * src/BtHaveMessage.{h, cc}
  7272. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7274. port.
  7275. * src/DefaultPeerStorage.{h, cc}
  7276. * test/DefaultPeerStorageTest.cc
  7277. * src/HandshakeExtensionMessage.cc
  7278. * test/HandshakeExtensionMessageTest.cc
  7279. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7280. * src/PeerStorage.h
  7281. * test/MockPeerStorage.h
  7282. * src/PeerListenCommand.cc
  7283. * src/PeerReceiveHandshakeCommand.cc
  7284. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Added --metalink-enable-unique-protocol option.
  7286. * src/Metalink2RequestGroup.cc
  7287. * src/option_processing.cc
  7288. * src/prefs.h
  7289. * src/version_usage.cc
  7290. * doc/aria2c.1.txt
  7291. * doc/aria2c.1
  7292. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Allow a peer in incomingPeer to be added peers.
  7294. * src/DefaultPeerStorage.cc
  7295. * test/DefaultPeerStorageTest.cc
  7296. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7298. I could reproduce this bug in following procedure:
  7299. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7300. 2. Restart aria2.
  7301. 3. You see the download stopped around 99%.
  7302. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7303. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7304. If timeout is reached, then _nextCommand is unused and it may contains
  7305. segments and they won't be canceled. Actually, timeout is not needed
  7306. here because if the server dropped connection, then retry is made.
  7307. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Added uTorrent compatible Peer Exchange.
  7309. * src/BencodeVisitor.{h, cc}
  7310. * test/BencodeVisitorTest.cc
  7311. * src/BtConstants.h
  7312. * src/BtContext.h: Added 'private' flag.
  7313. * src/BtExtendedMessage.{h, cc}
  7314. * test/BtExtendedMessageTest.cc
  7315. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7316. reserved field.
  7317. * test/BtHandshakeMessageTest.cc
  7318. * src/BtMessageFactory.h
  7319. * src/BtRegistry.h
  7320. * src/BtRuntime.h: This class holds default extension message IDs for
  7321. aria2. By default, aria2 uses ID 8 for ut_pex.
  7322. * src/DefaultBtContext.cc
  7323. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7324. When it is true, aria2 enables ut_pex. This value is set by
  7325. PeerInteractionCommand.
  7326. * src/DefaultBtMessageFactory.{h, cc}
  7327. * test/DefaultBtMessageFactoryTest.cc
  7328. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7329. handling to DefaultBtInteractive class.
  7330. * src/DefaultExtensionMessageFactory.{h, cc}
  7331. * test/DefaultExtensionMessageFactoryTest.cc
  7332. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7333. the container(peers and incomingPeers. The equality is determined by
  7334. Peer::id).
  7335. * test/DefaultPeerStorageTest.cc
  7336. * src/ExtensionMessage.h
  7337. * test/MockExtensionMessage.h
  7338. * src/ExtensionMessageFactory.h
  7339. * test/MockExtensionMessageFactory.h
  7340. * src/HandshakeExtensionMessage.{h, cc}
  7341. * test/HandshakeExtensionMessageTest.cc
  7342. * src/MetaEntry.h
  7343. * src/Peer.{h, cc}
  7344. * src/PeerInteractionCommand.cc
  7345. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7346. addIncomingPeer.
  7347. * src/PeerMessageUtil.{h, cc}
  7348. * src/PeerObject.h
  7349. * src/UTPexExtensionMessage.{h, cc}
  7350. * test/UTPexExtensionMessageTest.cc
  7351. * src/message.h
  7352. * src/prefs.h
  7353. Fixed the bug that returns incomplete data when it contains null
  7354. character. A convenient constructor was also added.
  7355. * src/Data.{h, cc}
  7356. Rewritten.
  7357. * src/CompactPeerListProcessor.cc
  7358. Fixed typos.
  7359. * src/message.h
  7360. * src/MetaFileUtil.cc
  7361. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Added "Status Legend" label to the explanation text of 'stat' in
  7363. download result and moved it to the last. BUG#1848214
  7364. * src/RequestGroupMan.cc
  7365. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7367. * src/Makefie.am
  7368. * test/Makefile.am
  7369. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Fixed the bug that prevents aria2 from loading cookie file when expire
  7371. value is greater than 2^31-1. BUG#1851066
  7372. * src/CookieBoxFactory.cc
  7373. * test/CookieBoxFactoryTest.cc
  7374. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Fixed possible memory leak when an exception is thrown.
  7376. * src/XML2SAXMetalinkProcessor.cc
  7377. Added Expat support. If both libxml2 and Expat are installed, then
  7378. libxml2 is used by default.
  7379. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7380. ExpatMetalinkProcessor according to the configuration.
  7381. * src/ExpatMetalinkProcessor.{h, cc}
  7382. * src/main.cc: Removed libxml2 specific header and init/free function.
  7383. * src/MetalinkProcessorFactory.{h, cc}
  7384. * src/MetalinkHelper.cc
  7385. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7386. * src/MetalinkProcessor.h
  7387. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7388. MetalinkProcessorTest is used instead.
  7389. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7390. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7391. MetalinkProcessorFactory::newInstance().
  7392. * m4/libexpat.m4
  7393. * configure.ac: Added configuration options for libexpat.
  7394. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Disabled -s option in metalink download.
  7396. * src/Metalink2RequestGroup.cc
  7397. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. If several protocols are available for a mirror in metalink file,
  7399. aria2 now use one of them. --metalink-preferred-protocol option was
  7400. added to specify the preference of protocol.
  7401. * src/AbstractCommand.cc
  7402. * src/OptionHandlerFactory.cc
  7403. * src/ServerHost.{h, cc}
  7404. * src/Metalink2RequestGroup.cc
  7405. * src/RequestGroup.{h, cc}
  7406. * test/RequestGroupTest.cc
  7407. * src/option_processing.cc
  7408. * src/prefs.h
  7409. * src/HttpResponseCommand.cc
  7410. * src/MetalinkResource.{h, cc}
  7411. * src/FtpNegotiationCommand.cc
  7412. * src/MetalinkEntry.{h, cc}
  7413. * src/MetalinkEntryTest.cc
  7414. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Code cleanup and added debug log.
  7416. * src/PeerConnection.cc
  7417. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Compiler error fix: applied the patch by Tiziano Mueller
  7419. * src/RequestGroup.cc
  7420. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7422. in stopped and completed event.
  7423. * src/AnnounceList.{h, cc}
  7424. * test/AnnounceListTest.cc
  7425. * src/DefaultBtAnnounce.cc
  7426. * test/DefaultBtAnnounceTest.cc
  7427. Sorted URLs.
  7428. * test/Metalink2RequestGroupTest.cc
  7429. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Removed unnecessary string copy. Updated doc and corrected indentation.
  7431. * src/Base64.cc
  7432. Fixed compilation warnings
  7433. * test/DataTest.cc
  7434. * test/HttpRequestTest.cc
  7435. * test/MetaFileUtilTest.cc
  7436. * test/RequestTest.cc
  7437. * Release 0.12.0
  7438. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Updated translations
  7440. * po/{de,fr,ja,nl,ru}.po
  7441. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7442. translations. Many thanks to translators.
  7443. * po/{ca,es,it,pt_BR,sv}.po
  7444. * po/LINGUAS
  7445. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Added a notice about URL
  7447. * src/version_usage.cc
  7448. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7449. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7450. aria2 repeatedly sends stopped request when tracker returns error code.
  7451. * src/AnnounceList.cc
  7452. * test/AnnounceListTest.cc
  7453. * src/AnnounceTier.h
  7454. Added a message when ctrl-c is hit.
  7455. Now second ctrl-c is also handled in signal handler.
  7456. * src/RequestGroupMan.{h, cc}
  7457. * src/RequestGroup.{h, cc}
  7458. * src/MultiUrlRequestInfo.cc
  7459. * src/DownloadEngine.cc
  7460. * src/TrackerWatcherCommand.cc
  7461. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Code cleanup
  7463. * src/Base64.cc (encode)
  7464. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Changed Direct/IO enable/disable procesure in file allocation routine.
  7466. * src/SingleFileAllocationIterator.cc
  7467. (SingleFileAllocationIterator):
  7468. Disable directIO if offset is not multiple of 512.
  7469. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7470. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7471. Enable created SingleFileAllocationIterator's directIO.
  7472. * src/FileAllocationEntry.cc
  7473. (FileAllocationEntry): Enable directIO here.
  7474. (~FileAllocationEntry): Disable directIO here.
  7475. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7477. * src/Peer.{h, cc}
  7478. * src/DefaultPieceStorage.cc
  7479. * test/DefaultPieceStorageTest.cc
  7480. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Rewritten direct I/O support routine
  7482. * src/SingleFileAllocationIterator.cc
  7483. * src/MultiDiskAdaptor.{h, cc}
  7484. * src/ByteArrayDiskWriter.h
  7485. * src/AbstractSingleDiskAdaptor.h
  7486. * src/AbstractDiskWriter.cc
  7487. * src/DefaultPieceStorage.cc
  7488. * src/DiskWriter.h
  7489. * src/BinaryStream.h
  7490. * src/IteratableChunkChecksumValidator.cc
  7491. * src/IteratableChecksumValidator.cc
  7492. * src/CheckIntegrityEntry.cc
  7493. * src/FileAllocationEntry.cc
  7494. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Fixed typo
  7496. * src/version_usage.cc
  7497. Updated doc
  7498. * doc/aria2c.1.txt
  7499. * doc/aria2c.1
  7500. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Fixed compile error without message digest support.
  7502. * src/FileMetalinkParserState.cc
  7503. * src/MetalinkParserController.{h, cc}
  7504. * test/XML2SAXMetalinkProcessorTest.cc
  7505. * test/MetalinkParserControllerTest.cc
  7506. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Enable direct I/O support in checksum checking.
  7508. * src/IteratableChunkChecksumValidator.{h, cc}
  7509. * test/IteratableChunkChecksumValidatorTest.cc
  7510. * src/CheckIntegrityEntry.cc
  7511. * src/PieceHashCheckIntegrityEntry.cc
  7512. * src/IteratableChecksumValidator.{h, cc}
  7513. * src/BtCheckIntegrityEntry.cc: Added doc.
  7514. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Added --allow-piece-length-change option.
  7516. * src/DefaultBtProgressInfoFile.cc
  7517. * test/DefaultBtProgressInfoFileTest.cc
  7518. * src/OptionHandlerFactory.cc
  7519. * src/option_processing.cc
  7520. * src/prefs.h
  7521. * src/version_usage.cc
  7522. * doc/aria2c.1.txt
  7523. * doc/aria2c.1
  7524. Fixed: duplicated result entry appears when exception is thrown in
  7525. RequestGroup::createInitiateConnectionCommand().
  7526. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7527. Add RequestGroup to _requestGroup after RequetGroup::
  7528. createInitiateConnectionCommand() succeeds.
  7529. Externalized message
  7530. * src/XML2SAXMetalinkProcessor.cc
  7531. * src/message.h
  7532. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Forced download abort when received negative response from http/ftp
  7534. server.
  7535. * src/HttpResponseCommand.cc
  7536. * src/FtpNegotiationCommand.cc
  7537. * src/HttpResponse.cc
  7538. * src/FtpConnection.cc
  7539. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7541. the predecessor, Xml2MetalinkParser class.
  7542. I tested them against 94KB metalink file with 1234 chunk checksums.
  7543. The new one parsed it in 22msec, while it took 6000msec with old one.
  7544. * src/XML2SAXMetalinkProcessor.{h, cc}
  7545. * test/XML2SAXMetalinkProcessorTest.cc
  7546. * src/MetalinkParserController.{h, cc}
  7547. * test/MetalinkParserControllerTest.cc
  7548. * src/MetalinkParserState.h: Also added 16 subclasses.
  7549. * src/main.cc
  7550. * src/Metalink2RequestGroup.cc
  7551. * src/MetalinkHelper.cc
  7552. * src/MetalinkEntry.cc
  7553. * src/ChunkChecksum.h
  7554. Rewritten Base64 class for better performance.
  7555. * src/Base64.{h, cc}
  7556. * test/Base64Test.cc
  7557. * src/HttpRequest.cc
  7558. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Fixed the bug#1841757: aria2 will connect to server to only get
  7560. file size.
  7561. * src/StreamFileAllocationEntry.cc
  7562. * src/option_processing.cc
  7563. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7564. downloads.
  7565. * src/FtpNegotiationCommand.cc
  7566. Suppressed wrong message when finding PreDownloadHandler
  7567. * src/RequestGroup.cc
  7568. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Updated usage
  7570. * src/version_usage.cc
  7571. Updated man page
  7572. * doc/aria2c.1.txt
  7573. * doc/aria2c.1
  7574. Updated po files
  7575. * po/aria2c.pot
  7576. * po/*.po
  7577. * po/*.gmo
  7578. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Eliminated g++-4.2 warning
  7580. * src/DownloadHandlerConstants.{h, cc}
  7581. * src/Util.cc
  7582. * test/MetaFileUtilTest.cc
  7583. * test/PStringBuildVisitorTest.cc
  7584. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7585. * src/RequestGroup.cc
  7586. * src/BtCheckIntegrityEntry.cc
  7587. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Fixed a2io.h
  7589. * src/a2io.h
  7590. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Added direct I/O support. The current implementation uses O_DIRECT,
  7592. which is not posix standard and is tested on linux 2.6.21.
  7593. Currently only file allocation uses direct I/O.
  7594. * src/SingleFileAllocationIterator.{h, cc}
  7595. * test/SingleFileAllocationIteratorTest.cc
  7596. * src/MultiFileAllocationIterator.{h, cc}
  7597. * test/MultiFileAllocationIteratorTest.cc
  7598. * src/BinaryStream.h
  7599. * src/DiskWriter.h
  7600. * src/AbstractDiskWriter.{h, cc}
  7601. * src/ByteArrayDiskWriter.h
  7602. * src/DiskAdaptor.h
  7603. * src/AbstractSingleDiskAdaptor.{h, cc}
  7604. * src/MultiDiskAdaptor.{h, cc}
  7605. * src/FileAllocationEntry.cc
  7606. * src/Util.{h, cc}
  7607. * src/OptionHandlerFactory.cc
  7608. * src/prefs.h
  7609. * src/version_usage.cc
  7610. * src/option_processing.cc
  7611. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7612. handleException.
  7613. * src/MultiFileAllocationIterator.cc
  7614. Added EINTR handling
  7615. * src/SocketCore.cc
  7616. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Updated usage
  7618. * src/version_usage.cc
  7619. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. Applied Ross's patch for MinGW port.
  7621. * src/DownloadEngine.h
  7622. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. Set Content-Type to SingleFileDownloadContext when http response is
  7624. received.
  7625. * src/HttpResponseCommand.cc
  7626. * src/HttpResponse.{h, cc}
  7627. * test/HttpResponseTest.cc
  7628. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Rewritten to add content-type support.
  7630. * src/DownloadHandler.{h, cc}
  7631. * src/BtPostDownloadHandler.{h, cc}
  7632. * test/BtPostDownloadHandlerTest.cc
  7633. * src/MetalinkPostDownloadHandler.{h, cc}
  7634. * test/MetalinkPostDownloadHandlerTest.cc
  7635. * src/PostDownloadHandler.{h, cc}
  7636. * src/DownloadHandlerConstants.{h, cc}
  7637. * src/RequestGroup.cc
  7638. * src/HttpResponseCommand.cc
  7639. * src/FtpNegotiationCommand.cc
  7640. * src/SingleFileDownloadContext.{h, cc}
  7641. * src/RequestGroup.h
  7642. * src/RequestGroupCriteria.h
  7643. * src/ContentTypeRequestGroupCriteria.h
  7644. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7645. If it is give, metalink/torrent file is not written to the disk, but
  7646. just is kept in memory. Parsing is occurred on memory.
  7647. * src/MetalinkHelper.{h, cc}
  7648. * src/MetalinkProcessor.h
  7649. * src/Xml2MetalinkProcessor.{h, cc}
  7650. * test/Xml2MetalinkProcessorTest.cc
  7651. * src/DownloadHandlerFactory.{h, cc}
  7652. * test/DownloadHandlerFactoryTest.cc
  7653. * src/PreDownloadHandler.{h, cc}
  7654. * src/OptionHandlerFactory.cc
  7655. * src/DefaultBtContext.{h, cc}
  7656. * test/DefaultBtContextTest.cc
  7657. * src/version_usage.cc
  7658. * src/Metalink2RequestGroup.{h, cc}
  7659. * src/RequestGroup.{h, cc}
  7660. * src/a2functional.h
  7661. * test/a2functionalTest.cc
  7662. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7663. * src/OptionHandlerImpl.h
  7664. * src/prefs.h
  7665. * src/Util.{h, cc}
  7666. * test/UtilTest.cc
  7667. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7668. memory usage.
  7669. * src/RequestGroupMan.{h, cc}
  7670. * src/DownloadEngine.cc
  7671. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7672. WeakHandle to SharedHandle because WeakHandle could be null.
  7673. * src/RequestGroup.{h, cc}
  7674. * src/DownloadEngineFactory.cc
  7675. * src/DownloadResult.h
  7676. Set totalLength after download finished
  7677. * src/UnknownLengthPieceStorage.{h, cc}
  7678. Keep torrent file specified in metalink in memory.
  7679. * src/Metalink2RequestGroup.cc
  7680. * src/BtDependency.cc
  7681. * src/TrueRequestGroupCriteria.h
  7682. Fixed the bug: seekg is used where seekp should be used.
  7683. * src/ByteArrayDiskWriter.cc
  7684. * test/ByteArraydiskWriterTest.cc
  7685. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Fixed syntax error
  7687. * test/SequenceTest.cc
  7688. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7690. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7691. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7692. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7693. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Added the check to see whether ares_host_callback accepts timeouts
  7695. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7696. * src/NameResolver.{h, cc}
  7697. * m4/libcares.m4
  7698. * configure.ac: Set C++ for language choice.
  7699. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Fixed: compilation fails without c-ares/ares
  7701. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7702. Generate http/ftp commands only when download is incomplete.
  7703. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7704. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Corrected typo. Examples are removed since they are available in man
  7706. page.
  7707. * src/version_usage.cc
  7708. Updated man page.
  7709. * doc/aria2c.1
  7710. * doc/aria2c.1.txt
  7711. * doc/makeman: Commented out sed command.
  7712. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Throw DlAbortEx when a remote file is not found.
  7714. * src/HttpResponse.cc
  7715. * src/FtpNegotiationCommand.cc
  7716. * src/message.h
  7717. Overwrite an existing file if --allow-overwrite=true is given.
  7718. * src/RequestGroup.cc
  7719. Removed unused functions
  7720. * src/AbstractCommand.h
  7721. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Removed 'extern' from 'extern typedef ...' in src/*.h
  7723. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Updated usage
  7725. * src/version_usage.cc
  7726. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Trim announce URL
  7728. * src/DefaultBtContext.cc
  7729. * test/ShaVisitorTest.cc
  7730. Trim argument s. Give trimed s to exception constructor.
  7731. * src/Util.cc (parseInt)(parseLLInt)
  7732. * test/UtilTest.cc
  7733. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Set precision back to 1.
  7735. * src/ConsoleStatCalc.cc (calculateStat)
  7736. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Replaced strtol with Util::parseInt
  7738. * src/ChunkedEncoding.cc
  7739. * src/HttpConnection.cc
  7740. * src/CookieBoxFactory.cc
  7741. * src/ParameterizedStringParser.cc
  7742. * src/Util.cc
  7743. * test/UtilTest.cc
  7744. * test/OptionHandlerTest.cc
  7745. * src/Request.cc
  7746. Throw exception when empty string is given. The message for exception
  7747. changed.
  7748. * src/Util.cc (parseInt)(parseLLInt)
  7749. * src/message.h
  7750. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7752. set to 1.
  7753. * src/ConsoleStatCalc.cc (calculateStat)
  7754. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Preallocate non-requested file which is adjacent forward to requested
  7756. file('requested' files means the files given in --select-file option)
  7757. if they share a same piece.
  7758. This fixes long pause in the file system which doesn't support sparse
  7759. files like FAT32 while downloading.
  7760. * src/MultiFileAllocationIterator.{h, cc}
  7761. * test/MultiFileAllocationIteratorTest.cc
  7762. * src/FileEntry.{h, cc}
  7763. Removed unused _option.
  7764. * src/MultiDiskAdaptor.h
  7765. * test/MultiDiskAdaptorTest.cc
  7766. * src/DefaultPieceStorage.cc
  7767. Set the default value of --seed-ratio to 1.0.
  7768. If 0.0 is given, then seeding continues regardless of share ratio.
  7769. * src/version_usage.cc
  7770. * src/option_processing.cc
  7771. * src/BtSetup.cc
  7772. * doc/aria2c.1.txt
  7773. * doc/aria2c.1
  7774. Fixed: Selective download is not working in BitTorrent
  7775. * src/RequestGroup.cc
  7776. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7777. * src/PieceStorage.h
  7778. * test/MockPieceStorage.h
  7779. * src/UnknownLengthPieceStorage.h
  7780. * src/DefaultPieceStorage.{h, cc}
  7781. * src/Metalink2RequestGroup.cc
  7782. * src/RequestGroup.cc
  7783. * src/Sequence.h
  7784. * test/SequenceTest.cc
  7785. * src/IntSequence.h
  7786. * src/message.h
  7787. * src/Util.{h, cc}
  7788. * test/UtilTest.cc
  7789. Added new function 'parse' to catch exception thrown by subclass's
  7790. parseArg
  7791. * src/OptionHandler.h
  7792. * src/OptionParser.cc
  7793. * src/NameMatchOptionHandler.h
  7794. * src/OptionHandlerImpl.h
  7795. * test/OptionHandlerTest.cc
  7796. Added IntegerRangeOptionHandler. Used for --listen-port and
  7797. --select-file. Now --listen-port accepts range of port.
  7798. * src/OptionHandlerFactory.cc
  7799. * src/version_usage.cc
  7800. * src/OptionHandlerImpl.h
  7801. * src/option_processing.cc
  7802. * src/BtSetup.cc
  7803. * src/PeerListenCommand.{h, cc}
  7804. * doc/aria2c.1.txt
  7805. * doc/aria2c.1
  7806. Implemented operator< for Exception class to provide easy way to print
  7807. exception stack trace.
  7808. * src/Exception.{h, cc}
  7809. * src/main.cc
  7810. * src/option_processing.cc
  7811. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. * src/version_usage.cc
  7813. (showVersion): Reworked.
  7814. (showUsage): Added examples.
  7815. Removed Hint for total length and file name.
  7816. * src/Metalink2RequestGroup.cc
  7817. * src/RequestGroup.{h, cc}
  7818. * src/HttpResponseCommand.cc
  7819. * src/FtpNegotiationCommand.cc
  7820. Now --follow-torrent and --follow-metalink option work properly.
  7821. * src/RequestGroup.cc
  7822. Updated man page
  7823. * doc/aria2c.1.txt
  7824. * doc/aria2c.1
  7825. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Removed.
  7827. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7828. Use Segment::operator==()
  7829. * src/HttpConnection.cc
  7830. * src/Segment.h
  7831. Updated usage
  7832. * src/version_usage.cc
  7833. Added EINTR treatment.
  7834. * src/SocketCore.cc
  7835. * src/AbstractDiskWriter.cc
  7836. Rewritten.
  7837. * src/Util.cc (rangedFileCopy)
  7838. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Fixed typo.
  7840. * src/version_usage.cc
  7841. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Implemented. Now -c option works fine.
  7843. * src/DefaultPieceStorage.cc (markPiecesDone)
  7844. * test/DefaultPieceStorageTest.cc
  7845. Removed.
  7846. * src/SegmentMan.{h, cc}
  7847. (markAllPiecesDone)
  7848. (markPieceDone)
  7849. Synchronized po files with
  7850. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7851. * src/fr.po
  7852. * src/ru.po
  7853. * src/de.po
  7854. * src/ja.po
  7855. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Added ifdef and some modifications to compile without BitTorrent,
  7857. Metalink, MessageDigest
  7858. support.
  7859. * src/PieceHashCheckIntegrityEntry.cc
  7860. * src/MetalinkEntry.h
  7861. * src/version_usage.cc
  7862. * src/main.cc
  7863. * src/DownloadEngine.{h, cc}
  7864. * src/Metalink2RequestGroup.cc
  7865. * src/Peer.cc
  7866. * src/RequestGroup.cc
  7867. * src/MetalinkHelper.cc
  7868. * test/DefaultPieceStorageTest.cc
  7869. * test/MetalinkPostDownloadHandlerTest.cc
  7870. * test/Metalink2RequestGroupTest.cc
  7871. Hide TOTAL SPD when all downloads complete.
  7872. * src/ConsoleStatCalc.cc
  7873. Log target system information.
  7874. * src/main.cc
  7875. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Now --metalink-location accepts a comma-deliminated list of locations.
  7877. * src/MetalinkEntry.{h, cc}
  7878. * test/MetalinkEntryTest.cc
  7879. * src/version_usage.cc
  7880. * src/Metalink2RequestGroup.cc
  7881. * src/Xml2MetalinkProcessor.cc
  7882. * test/Xml2MetalinkProcessorTest.cc
  7883. * doc/aria2c.1.txt
  7884. * doc/aria2c.1
  7885. * src/Util.cc (toUpper)(toLower): Rewritten.
  7886. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Added the ability to detect duplicate download entry which is about to
  7888. download the same file other RequestGroup is downloading.
  7889. * src/RequestGroup.cc
  7890. * src/HttpResponseCommand.cc
  7891. * src/FtpNegotiationCommand.cc
  7892. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Recalculates download progress when loading a control file,
  7894. if the piece length of DownloadContext is different from the one saved
  7895. in the control file. Currently in-flight pieces are ignored.
  7896. * src/DefaultBtProgressInfoFile.cc
  7897. * test/DefaultBtProgressInfoFileTest.cc
  7898. * src/Util.{h, cc}
  7899. * test/UtilTest.cc
  7900. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Do not rotate tiers in announce-list.
  7902. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7903. AnnounceList::allTiersFailed() used instead to detect whether all
  7904. tiers are tried and failed.
  7905. * test/DefaultBtAnnounceTest.cc
  7906. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7907. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7908. * test/AnnounceListTest.cc
  7909. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7910. clause. Catch RecoverableException instead of DlRetryEx instead.
  7911. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Implemented checksum validation feature(1 checksum for each file)
  7913. The validation takes place after the download.
  7914. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7915. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7916. * src/CheckIntegrityCommand.cc: Changed log message.
  7917. * src/Metalink2RequestGroup.cc: Set checksum to
  7918. SingleFileDownloadContext.
  7919. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7920. PieceHashCheckIntegrity class.
  7921. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7922. PieceHashCheckIntegrity class.
  7923. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7924. * src/IteratableValidator.h: New class.
  7925. * src/message.h
  7926. * src/CheckIntegrityEntry.{h, cc}
  7927. * src/IteratableChunkChecksumValidator.{h, cc}
  7928. * src/SingleFileDownloadContext.h
  7929. * src/DownloadCommand.cc
  7930. --allow-overwrite=true is no longer needed to check file integrity
  7931. before download in BitTorrent download.
  7932. * src/RequestGroup.cc (getInitialCommand)
  7933. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7934. throws exception.
  7935. * src/RequestGroupMan.cc (getInitialCommands)
  7936. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. urlencode the given url inside Request::parseUrl(...)
  7938. * src/Request.{h, cc}
  7939. * src/Util.{h, cc}
  7940. * test/RequestTest.cc
  7941. Removed #!metalink3! notation support because it is deleted from
  7942. the metalink specification.
  7943. * src/Request.{h, cc}
  7944. * test/RequestTest.cc
  7945. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Don't connect server before checking file integrity at startup, if
  7947. filesize and output file path are known.
  7948. * src/AbstractCommand.cc
  7949. * src/StreamFileAllocationEntry.cc
  7950. * src/Metalink2RequestGroup.cc
  7951. * src/RequestGroup.{h, cc}
  7952. * src/HttpResponseCommand.cc
  7953. * src/FtpNegotiationCommand.cc
  7954. Added DownloadFailureException. If it is thrown, RequestGroup should
  7955. halt.
  7956. * src/AbstractCommand.cc
  7957. * src/DownloadFailureException.h
  7958. * src/RequestGroup.cc
  7959. Catch RecoverableException, instead of DlAbortEx.
  7960. * src/RequestGroupMan.cc
  7961. * src/FillRequestGroupCommand.cc
  7962. * src/MetaFileUtil.cc
  7963. * src/IteratableChunkChecksumValidator.cc
  7964. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7965. getGID())
  7966. * src/CheckIntegrityCommand.cc
  7967. * src/message.h
  7968. Print gid instead of idx.
  7969. * src/RequestGroupMan.cc
  7970. Removed exception throwers declaration.
  7971. * src/DirectDiskAdaptor.{h, cc}
  7972. * src/SocketCore.{h, cc}
  7973. * src/MultiDiskAdaptor.{h, cc}
  7974. * src/HttpConnection.{h, cc}
  7975. * src/HttpResponse.{h, cc}
  7976. * src/DiskAdaptor.{h, cc}
  7977. * src/CopyDiskAdaptor.{h, cc}
  7978. * src/MultiDiskAdaptor.{h, cc}
  7979. * src/HttpHeaderProcessor.{h, cc}
  7980. * src/AbstractSingleDiskAdaptor.{h, cc}
  7981. * src/Util.{h, cc}
  7982. * test/UtilTest.cc
  7983. * src/DefaultDiskWriter.{h, cc}
  7984. * src/FtpConnection.{h, cc}
  7985. * src/AbstractDiskWriter.{h, cc}
  7986. Removed duplicate code.
  7987. * src/StreamCheckIntegrityEntry.cc
  7988. Removed unnecessary include.
  7989. * src/DiskWriter.h
  7990. Included Exception.h
  7991. * src/option_processing.cc
  7992. Included 2 files and added doc
  7993. * src/TrackerWatcherCommand.cc
  7994. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7995. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Changed CheckIntegrityEntry interface so that it can define
  7997. the action when all the chunk checksums are valid.
  7998. * src/CheckIntegrityEntry.h
  7999. * src/StreamCheckIntegrityEntry.{h, cc}
  8000. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8001. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8002. to exit rather than doing seeding. So, it would be good to toggle this
  8003. behavior.
  8004. * src/CheckIntegrityCommand.cc
  8005. * src/AbstractCommand.cc
  8006. * src/RequestGroup.cc
  8007. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Reflect the download length of in-flight pieces.
  8009. It makes the download length readout more precise.
  8010. * src/DefaultPieceStorage.{h, cc}
  8011. * test/DefaultPieceStorageTest.cc
  8012. * src/a2functional.h
  8013. * test/a2functionalTest.cc
  8014. Lower CPU load when --max-download-limit is used.
  8015. There is up and down in speed indicator when enabling
  8016. http-pipelining but a download goes well. I think the problem is that
  8017. because http-pipelining is enabled, DownloadCommand is created for
  8018. each segment and in its constructor, PeerStat::downloadStart() is
  8019. called. In PeerStat::downloadStart(), speed calculation object is
  8020. reseted, which makes download speed zero.
  8021. * src/DownloadCommand.cc
  8022. Rewritten using accumulate.
  8023. * src/RequestGroupMan.cc (calculateStat)
  8024. Code clearnup.
  8025. * src/FtpNegotiationCommand.cc
  8026. * src/HttpResponseCommand.cc
  8027. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Fixed: Can not resume: aria2 reports download already finished.
  8029. * src/AbstractCommand.{h, cc}
  8030. * src/HttpResponseCommand.cc
  8031. * src/FtpNegotiateCommand.cc
  8032. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Now a file is stored in the directory specified in .metalnk file
  8034. (file[@name]).
  8035. * src/Metalink2RequestGroup.cc
  8036. Create the directory structure when opening the file if it doesn't
  8037. exist.
  8038. * src/AbstractDiskWriter.cc
  8039. * src/Util.{h, cc}
  8040. * src/File.h
  8041. * test/UtilTest.cc
  8042. Removed file name comparison
  8043. * src/Metalink2RequestGroup.cc
  8044. * src/HttpResponseCommand.cc
  8045. Rewritten using Util::mkdirs()
  8046. * src/FileEntry.cc (setupDir)
  8047. * test/FileEntryTest.cc
  8048. Updated doc
  8049. * src/SingleFileDownloadContext.h
  8050. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Now SleepCommand dispatches nextCommand when halt is requested.
  8052. It avoids a possible long wait after hitting CTRL-C.
  8053. * src/SleepCommand.{h, cc}
  8054. * src/RequestGroupAware.{h, cc}
  8055. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8057. to open listen port, then remove the port number from the tracker
  8058. request.
  8059. * src/DefaultBtAnnounce.cc
  8060. * test/DefaultBtAnnounceTest.cc
  8061. * test/MockPieceStorage.h
  8062. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8063. them more testable.
  8064. * src/DefaultBtAnnounce.{h, cc}
  8065. * src/DefaultBtContext.{h, cc}
  8066. * src/Util.{h, cc}
  8067. * test/DefaultBtAnnounceTest.cc
  8068. * test/DefaultBtContextTest.cc
  8069. * test/UtilTest.cc
  8070. Added 'B' to upload bytes readout.
  8071. * src/ConsoleStatCalc.cc
  8072. Now the listen port for BitTorrent download is opened when it is
  8073. needed.
  8074. * src/DownloadEngineFactory.cc
  8075. * src/BtSetup.{h, cc}
  8076. * src/PeerListenCommand.{h, cc}
  8077. Now an exception thrown while parsing tracker response is now logged.
  8078. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8079. called, which means no retry is made in this case, assuming a tracker
  8080. has a problem.
  8081. * src/TrackerWatcherCommand.cc
  8082. Fixed: downloading a file whose length is unkown fails.
  8083. * src/DownloadCommand.cc
  8084. Simplified prepareForNextSegment()
  8085. * src/DownloadCommand.cc
  8086. Updated
  8087. * po/POTFILES.in
  8088. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Re-implemented a file listing for Metalink, which was dropped while
  8090. http/ftp/torrent integration was being implemented.
  8091. * src/MetalinkHelper.{h, cc}: New class.
  8092. * test/MetalinkHelperTest.cc
  8093. * src/main.cc
  8094. * src/Metalink2RequestGroup.cc
  8095. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Added the ability to display the detailed torrent file information.
  8097. Now -S option gives not only a file listing, but also total download
  8098. length, info hash, announce URI, piece length, the number of pieces,
  8099. and mode(single or multi-torrent).
  8100. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8101. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8102. KiB)
  8103. * test/UtilTest.cc
  8104. * src/main.cc
  8105. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Added ftp://USER:PASSWD@Servername automatic parsing.
  8107. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8108. _password. Recognize username and password in URI.
  8109. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8110. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8111. * src/RequestFactory.{h, cc}: Removed.
  8112. * src/AuthConfigFactory.{h, cc}: New class.
  8113. * src/FtpConnection.cc: Use AuthConfigFactory.
  8114. * src/HttpRequest.cc: Use AuthConfigFactory.
  8115. * test/HttpRequestTest.cc: Updated.
  8116. * test/RequestTest.cc: Updated.
  8117. * test/AuthConfigFactoryTest.cc: New class.
  8118. * test/RequestFactoryTest.cc: Removed.
  8119. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Use RequestGroup::allDownloadFinished() to decide whether the control
  8121. file should be removed or saved.
  8122. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8123. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8124. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Use File::renameTo()
  8126. * src/DefaultBtProgressInfoFile.cc
  8127. Added --no-file-allocation-limit command-line option.
  8128. * src/version_usage.cc
  8129. * src/option_processing.cc
  8130. * src/OptionHandlerFactory.cc
  8131. * src/RequestGroup.{h, cc}
  8132. * src/BtCheckIntegrityEntry.cc
  8133. * src/StreamCheckIntegrityEntry.cc
  8134. * src/prefs.h
  8135. * doc/aria2c.1.txt
  8136. * doc/aria2c.1
  8137. Now prealloc is the default value for --file-allocation option.
  8138. * src/version_usage.cc
  8139. * src/option_processing.cc
  8140. * doc/aria2c.1.txt
  8141. * doc/aria2c.1
  8142. Don't URL-encode user-agent.
  8143. * src/HttpRequest.cc
  8144. Updated translations
  8145. * po/LINGUAS: Added nl for Dutch translation.
  8146. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8147. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8148. * po/POTFILES.in: Updated.
  8149. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Added the ability to recognize url-list in a torrent file.
  8151. The retrieved URLs are attached to the corresponding FileEntry.
  8152. * src/DefaultBtContext.{h, cc}
  8153. * src/FileEntry.{h, cc}
  8154. * test/DefaultBtContextTest.cc
  8155. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8157. after the download finishes.
  8158. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8160. the data smaller than block length.
  8161. A block length can be specified by constructor's argument.
  8162. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8163. Get a missing piece in the range of given FileEntry. This function is
  8164. not used in the program yet.
  8165. * src/Util.h: Added some macros.
  8166. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Added HTTP/1.1 keep alive and pipelining support.
  8168. See --enable-http-keep-alive and --enable-http-pipelining option.
  8169. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8170. Segment.
  8171. * src/HttpDownloadCommand.{h, cc}
  8172. * src/OptionHandlerFactory.cc
  8173. * src/HttpConnection.{h, cc}
  8174. * src/version_usage.cc
  8175. * src/HttpInitiateConnectionCommand.cc
  8176. * src/FtpInitiateConnectionCommand.cc
  8177. * src/Segment.h
  8178. * src/HttpRequestCommand.{h, cc}
  8179. * src/option_processing.cc
  8180. * src/prefs.h
  8181. * src/HttpResponseCommand.cc
  8182. * src/SegmentMan.{h, cc}
  8183. * src/FtpNegotiateCommand.cc
  8184. * src/HttpProxyResponseCommand.cc
  8185. * src/Request.cc
  8186. * src/HttpRequest.cc
  8187. * src/DownloadCommand.cc
  8188. * test/HttpRequestTest.cc
  8189. * test/RequestTest.cc
  8190. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8192. finished.
  8193. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8195. catching it inside the method.
  8196. When no file entry is found in a metalink without querying user
  8197. preferences, throw the exception with the error message that suggests
  8198. metalink file is probably broken.
  8199. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8200. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8202. processed.
  8203. * src/RequestGroupMan.cc (removeStoppedGroup)
  8204. Added debug message.
  8205. * src/BtPostDownloadHandler.cc
  8206. * src/MetalinkPostDownloadHandler.cc
  8207. * src/PostDownloadHandler.{h, cc}
  8208. * src/RequestGroup.cc
  8209. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8211. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8213. stops and there are any unfinished or in-progress downloads.
  8214. Added the legend of "stat".
  8215. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Throw exception when chunck checksum verification fails.
  8217. * src/DownloadCommand.cc (validatePieceHash): New function.
  8218. * src/PiecedSegment.{h, cc} (clear): New function.
  8219. * src/GrowSegment.{h, cc} (clear): New function.
  8220. * src/Segment.h (clear): New function.
  8221. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8222. * test/SegmentTest.cc
  8223. * test/GrowSegmentTest.cc
  8224. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. Do not send referer when redirected.
  8226. * src/Request.cc (redirectUrl)
  8227. * test/RequestTest.cc
  8228. * test/HttpRequestTest.cc
  8229. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Implemented BitTorrent/http/ftp integrated download.
  8231. I've rewritten lots of files and now some headers have forward
  8232. class declarations to reduce compile time.
  8233. The implementation is extremely alpha stage, I recommend to use this
  8234. for testing purpose only.
  8235. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Fixed the compilation error on 64bit platform.
  8237. * test/HttpHeaderProcessorTest.cc
  8238. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Merged Ross's patch that fixes compilation problem in MinGW
  8240. * test/DefaultBtProgressInfoFileTest.cc
  8241. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Updated fr.po by sebone
  8243. * po/fr.po
  8244. Updated man page.
  8245. * doc/aria2c.1.txt
  8246. * Release 0.11.3
  8247. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8249. failure in Metalink.
  8250. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Automatically save *.aria2 control file of http/ftp download in every
  8252. 60 seconds.
  8253. * src/AutoSaveCommand.{h, cc}: New class.
  8254. * src/TimeBasedCommand.{h, cc}: New class.
  8255. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8256. Disable parameterized URI support by default. Added -P option to
  8257. enable the feature.
  8258. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8259. * src/OptionHandlerFactory.cc
  8260. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8261. Updated Japanese translation.
  8262. * po/ja.po
  8263. Updated man page.
  8264. * doc/aria2c.1.txt
  8265. * Release 0.11.3-rc
  8266. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8268. it is successful, then renamed to *.aria2.
  8269. This prevents *.aria2 file from being truncated or corrupted when
  8270. file system becomes out of space.
  8271. * src/DefaultBtProgressInfoFile.cc (save)
  8272. * src/SegmentMan.cc (save)
  8273. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8274. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Reduced the fragmentation of bitfield in http/ftp download.
  8276. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8277. * test/BitfieldManTest.cc
  8278. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Added the ability to disable segmented download in .metalink.
  8280. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8281. 'url' tag.
  8282. * src/MetalinkEntry.{h, cc}
  8283. * src/RequestResource.{h, cc}
  8284. * src/MetalinkRequestInfo.cc
  8285. * src/Xml2MetalinkProcessor.cc
  8286. * test/Xml2MetalinkProcessorTest.cc
  8287. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Added parameterized URI support.
  8289. * src/main.cc: -Z option added.
  8290. * src/OptionHandlerFactory.cc
  8291. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8292. * src/PStringDatum.h: New class.
  8293. * src/PStringSegment.{h,cc}: New class.
  8294. * src/PStringNumLoop.h: New class.
  8295. * src/PStringSelect.h: New class.
  8296. * src/NumberDecorator.h: New class.
  8297. * src/FixedWidthNumberDecorator.h: New class.
  8298. * src/AlphaNumberDecorator.h: New class.
  8299. * src/PStringVisitor.h: New class.
  8300. * src/PStringBuildVisitor.{h,cc}: New class.
  8301. * src/ParameterizedStringParser.{h,cc}: New class.
  8302. * src/Util.{h,cc}
  8303. (isNumber): New function.
  8304. (isLowercase): New function.
  8305. (isUppercase): New function.
  8306. (alphaToNum): New function.
  8307. * test/ParameterizedStringParserTest.cc: New class.
  8308. * test/AlphaNumberDecoratorTest.cc: New class.
  8309. * test/PStringBuildVisitorTest.cc: New class.
  8310. * test/UtilTest.cc
  8311. (testIsNumber): New function.
  8312. (testIsLowercase): New function.
  8313. (testIsUppercase): New function.
  8314. (testAlphaToNum): New function.
  8315. Added '\n' after the error message
  8316. * src/RequestInfo.h (printDownloadAbortMessage)
  8317. Added auto file renaming feature in http(s)/ftp download.
  8318. * src/main.cc: Added --auto-file-renaming command-line option.
  8319. * src/OptionHandlerFactory.cc
  8320. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8321. * src/RequestGroup.{h, cc}
  8322. (shouldCancelDownloadForSafety): Rewritten
  8323. (tryAutoFileRenaming): New function.
  8324. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8325. * src/HttpResponseCommand.cc
  8326. (executeInternal): Removed the call to RequestGroupMan::
  8327. isSameFileBeingDownloaded()
  8328. * src/FtpNegotiateCommand.cc
  8329. (recvSize): Removed the call to RequestGroupMan::
  8330. isSameFileBeingDownloaded()
  8331. * test/RequestGroupTest.cc: New class.
  8332. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8334. IO.
  8335. * src/DefaultBtProgressInfoFile.cc
  8336. * src/MetaFileUtil.cc
  8337. * src/SimpleLogger.cc
  8338. * src/SegmentMan.cc
  8339. * src/Util.cc
  8340. * src/Platform.cc
  8341. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8343. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8345. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8346. Fixed the bug that prevents file allocation is not done when
  8347. dowloading multi-torrent file.
  8348. * src/AbstractDiskWriter.cc (openFile)
  8349. Increase the maximum number of -j option from 15 to 45.
  8350. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8351. Added fr.po, thanks to Charles Landemaine.
  8352. * po/fr.po
  8353. * po/LINGUAS
  8354. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8355. gcc 3.4.4 support:
  8356. * src/DefaultBtContext.cc: int32_t -> int
  8357. * src/main.cc: int -> int32_t, int32_t -> int
  8358. * src/messageDigest.h: uint32_t -> unsigned int
  8359. * src/NameResolver.h: int32_t -> int
  8360. * src/PeerConnection.cc: int -> int32_t
  8361. * src/SpeedCalc.cc: int32_t -> int
  8362. * src/TrackerUpdateCommand.h: int -> int32_t
  8363. * src/Util.cc: int32_t -> int
  8364. * src/Util.h: int32_t -> int
  8365. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8366. * test/AnnounceListTest.cc: int -> int32_t
  8367. * test/ChunkedEncodingTest.cc: int -> int32_t
  8368. * test/DataTest.cc: int -> int32_t
  8369. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8370. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8371. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8372. * test/FeatureConfigTest.cc: int -> int32_t
  8373. * test/MetalinkEntryTest.cc: int -> int32_t
  8374. * test/MockBtRequestFactory.h: int -> int32_t
  8375. * test/MockPieceStorage.h: int -> int32_t
  8376. * test/OptionTest.cc: int -> int32_t
  8377. * test/RequestTest.cc: int -> int32_t
  8378. * test/SegmentManTest.cc: int -> int32_t
  8379. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8380. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8381. Move sleep functions to Util class:
  8382. * src/Util.cc
  8383. (sleep): New function.
  8384. (usleep): New function.
  8385. * src/DownloadCommand.cc: sleep -> Util::sleep
  8386. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8387. MinGW build enhancements. The following files are added:
  8388. * src/timegm.{c,h}
  8389. Changes to support the above new files:
  8390. * configure.ac
  8391. * src/Makefile.am
  8392. * src/a2time.h
  8393. * src/Util.cc:
  8394. * src/strptime.c: Added support for %Z option.
  8395. Fixed MinGW non-blocking bug.
  8396. * src/SocketCore.cc
  8397. * src/HttpRequestCommand.cc
  8398. Miscellenous build fixes/enhancements.
  8399. * configure.ac: Added summary report.
  8400. * src/Platform.h: Tweaked #include's.
  8401. * src/a2netcompat.h: Tweaked #include's.
  8402. * src/strptime.h: Tweaked #include's.
  8403. * src/gai_strerror.c: Tweaked #include's.
  8404. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8405. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8406. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8407. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Increased the initial connection size in BitTorrent download to 40.
  8409. * src/BtRuntime.h
  8410. Added the usage message of --peer-id-prefix option.
  8411. * src/main.cc
  8412. * Release 0.11.2
  8413. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. MessageDigestHelper is introduced in order to simplify the use
  8415. of message digest. Removed repeated code.
  8416. The message digest algorithm is now specified by string, like "sha1",
  8417. "md5".
  8418. * src/messageDigest.{h, cc}
  8419. * src/MessageDigestHelper.{h, cc}: New class.
  8420. * src/DefaultPieceStorage.cc
  8421. * src/DefaultBtContext.{h, cc}
  8422. (computeFastSet): New function.
  8423. (setInfoHash): Added for unit testing.
  8424. (setNumPieces): Added for unit testing.
  8425. * src/DefaultBtInteractive.cc
  8426. * src/BtPieceMessage.cc
  8427. * src/Peer.cc
  8428. * src/Checksum.h
  8429. * src/message.h
  8430. * src/IteratableChecksumValidator.h
  8431. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8432. inside it.
  8433. * src/SegmentMan.{h, cc}
  8434. (checkIntegrity): Removed.
  8435. * src/IteratableChunkChecksumValidator.{h, cc}
  8436. * src/Util.h
  8437. (sha1Sum): Removed.
  8438. (simpleMessageDigest): Removed.
  8439. (fileChecksum): Removed.
  8440. (computeFastSet): Removed.
  8441. * src/ShaVisitor.cc
  8442. * src/ChunkChecksum.h
  8443. * src/DownloadCommand.cc
  8444. Removed messageDigest virtual functions.
  8445. * src/MultiDiskAdaptor.{h, cc}
  8446. * src/DiskAdaptor.h
  8447. * src/ByteArrayDiskWriter.h
  8448. * src/DiskWriter.h
  8449. * src/DiskAdaptorWriter.h
  8450. * src/AbstractSingleDiskAdaptor.{h, cc}
  8451. * src/AbstractDiskWriter.{h, cc}
  8452. Fixed comilation error when message digest is disabled.
  8453. * src/MetalinkEntry.{h, cc}
  8454. * src/MetalinkRequestInfo.cc
  8455. Removed srandom and random.
  8456. * src/SimpleRandomizer.h
  8457. Added size() virtual function to DiskAdaptor
  8458. * src/MultiDiskAdaptor.h
  8459. Fixed the bug that causes that files are not opened correctly in
  8460. multi-file torrent.
  8461. * src/TorrentRequestInfo.cc
  8462. * src/MultiDiskAdaptor.cc
  8463. Added SHA256 support
  8464. * src/messageDigest.cc
  8465. * src/Xml2MetalinkProcessor.cc
  8466. Show supported message digest algorithms
  8467. * src/main.cc
  8468. Updated contact info.
  8469. * src/main.cc
  8470. Applied Ross's patch
  8471. * src/a2netcompat.h
  8472. * src/main.cc
  8473. Fixed the bug that prevents a remote metalink from not being processed
  8474. even if '-o foo.metalink' is specified.
  8475. * src/MetalinkRequestInfo.cc
  8476. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Merged Dan's patch:
  8478. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8479. Use va_copy to avoid core dump on amd64:
  8480. * src/SimpleLogger.cc
  8481. Updated contact info.
  8482. * src/main.cc
  8483. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8484. digest is not available.
  8485. * src/MetalinkEntry.h
  8486. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Make a2netcompat.h include a2io.h to fix compilation error:
  8488. * src/a2netcompat.h
  8489. * src/SocketCore.cc: Removed include of a2io.h
  8490. * src/Util.cc: Removed include of a2io.h
  8491. Gather time related functions to a2time.h:
  8492. * src/a2time.h: New file.
  8493. * src/DefaultPeerStorage.cc
  8494. * src/SimpleLogger.cc
  8495. * src/Util.{h, cc}
  8496. * src/SimpleRandomizer.h
  8497. * src/TimeA2.{h,cc}
  8498. * src/DownloadCommand.cc
  8499. * src/main.cc
  8500. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8501. a2netcompat.h:
  8502. * src/NameResolver.cc
  8503. Fixed compilation error without openssl:
  8504. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8505. Added default block to suppress compiler warnings:
  8506. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8507. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8508. MinGW build enhancements. The following files are added:
  8509. * src/gai_strerror.{c,h}
  8510. * src/gettimeofday.{c,h}
  8511. Changes to support the above new files:
  8512. * configure.ac
  8513. * src/Makefile.am
  8514. * src/a2netcompat.h
  8515. * src/TimeA2.cc
  8516. * src/DefaultPeerStorage.cc
  8517. * src/NameResolver.cc: removed mingw_strerror() function.
  8518. * src/SocketCore.cc: removed mingw_strerror() function.
  8519. Miscellaneous MinGW build fixes.
  8520. * src/a2io.h: Use _lseeki64() instead of lseek()
  8521. * src/common.h
  8522. * src/DefaultFileAllocator.cc
  8523. * src/GlowFileAllocator.cc
  8524. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8525. * src/NameResolver.cc
  8526. (callback): Changed int32_t to int.
  8527. (resolve): Changed int32_t to int.
  8528. * src/Platform.cc
  8529. * src/Platform.h
  8530. * test/MultiDiskWriterTest.cc
  8531. * test/PeerMessageUtilTest.cc
  8532. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8533. Other enhancements and fixes.
  8534. * src/HttpRequestCommand.cc
  8535. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8536. * src/SocketCore.cc:
  8537. (error): New function to abstract errno/WSAGetLastError().
  8538. (errorMsg): New function to abstract errno/WSAGetLastError().
  8539. (initiateSecureConnection): Added more detailed error reporting.
  8540. * src/SocketCore.h: Added private variable blocking, to allow
  8541. proper handling of OpenSSL psuedo-errors.
  8542. * src/message.h
  8543. (EX_SSL_INIT_FAILURE)
  8544. (EX_SSL_IO_ERROR)
  8545. (EX_SSL_PROTOCOL_ERROR)
  8546. (EX_SSL_UNKNOWN_ERROR)
  8547. (EX_SSL_CONNECT_ERROR)
  8548. (EX_SOCKET_BLOCKING)
  8549. (EX_SOCKET_NONBLOCKING)
  8550. (EX_SOCKET_UNKNOWN_ERROR)
  8551. * src/Util.cc
  8552. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8553. reserved name.
  8554. (httpGMT): Fixed typo.
  8555. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Merged Ross's win32 patch(manually)
  8557. In the course of merging, following files are added.
  8558. * src/strptime.{h,c}
  8559. * src/libgen.{h,c}
  8560. * src/inet_aton.{h,c}
  8561. * src/Platform.{h,cc}
  8562. * src/localtime_r.{h,c}
  8563. * src/getaddrinfo.{h,c}
  8564. I've gethered network related things, and put them to following file:
  8565. * src/a2netcompat.h
  8566. Also io related things are put to following file:
  8567. * src/a2io.h
  8568. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8569. * src/message.h
  8570. (MSG_ALLOCATION_COMPLETED)
  8571. (EX_TOO_LARGE_FILE)
  8572. (EX_SIZE_MISMATCH)
  8573. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8574. (EX_INVALID_CHUNK_CHECKSUM)
  8575. (EX_INVALID_RANGE_HEADER)
  8576. * src/FileAllocationCommand.cc
  8577. * src/HttpResponse.cc
  8578. * src/RequestGroup.cc
  8579. * src/MultiDiskAdaptor.cc
  8580. * src/OptionHandlerImpl.h
  8581. * src/HttpResponseCommand.cc
  8582. * src/FtpNegotiateCommand.cc
  8583. * src/IteratableChecksumValidator.cc
  8584. * src/SegmentMan.cc
  8585. * src/ChunkChecksumValidator.cc
  8586. Added Randomizer::getRandomNumber(long int)
  8587. * src/Randomizer.h (getRandomNumber)
  8588. * src/SimpleRandomizer.h (getRandomNumber)
  8589. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8590. * src/Util.cc (randomAlpha): Use this new function.
  8591. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Converted int's to in32_t. long long int's are also converted to
  8593. int64_t
  8594. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Fixed the bug that prevents cookies from being sent to the server
  8596. if the domain of cookie is FQDN and starts with ".".
  8597. * src/Cookie.cc (match)
  8598. To add the ability to change peer id.
  8599. * src/DefaultBtContext.h
  8600. (_peerIdPrefix): New variable
  8601. (setPeerIdPrefix): New function.
  8602. * src/torrentRequestInfo.cc
  8603. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8604. DefaultBtContext.
  8605. * src/main.cc (main): Added peer-id-prefix command-line option.
  8606. The usage message is not added yet.
  8607. * src/DefaultBtContext.cc
  8608. (generatePeerId): Use _peerIdPrefix.
  8609. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8610. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Fixed the bug that prevents filename in content-disposition from
  8612. being retrieved when filename is not quoted.
  8613. * src/Util.cc (getContentDispositionFilename)
  8614. Fixed the bug that causes infinate loop and memory leak when file open
  8615. operation failed.
  8616. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8617. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Fixed the bug that causes segfault when all URIs specified are
  8619. unsupported.
  8620. * src/RequestGroupMan.cc (getInitialCommands)
  8621. Check if RequestGroup::createNextCommand() returns empty list of
  8622. commands.
  8623. * src/RequestGroup.cc (createNextCommand)
  8624. Change log level from info to error so that users can notice that
  8625. an error occurred.
  8626. Fixed the bug that causes segfault when a zero-sized file is
  8627. downloaded.
  8628. * src/BitfieldMan.cc (isAllBitSet)
  8629. Return true if bitfieldLength is 0.
  8630. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. * src/main.cc
  8632. (showUsage): Added 3 usage examples for metalink download.
  8633. Replace MetalinkChunkChecksum with ChunkChecksum.
  8634. * src/MetalinkChunkChecksum.h: Removed.
  8635. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8636. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8637. * src/Xml2MetalinkProcessor.cc
  8638. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8639. * src/MetalinkRequestInfo.cc (execute)
  8640. * Release 0.11.1
  8641. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Reads URIs from stdin when "-i -" is specified.
  8643. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8644. * src/UriListParser.h, src/UriListParser.cc: New class.
  8645. * src/StreamUriListParser.h: New class.
  8646. * src/FileUriListParser.h: New class.
  8647. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8648. instead of UriFileListParser.
  8649. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Made console readout more readable.
  8651. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8652. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Fix the bug that causes -s option not to work.
  8654. * src/main.cc (main)
  8655. * src/a2algo.h: New file.
  8656. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Create directory structure specified in metalink file.
  8658. * src/RequestGroup.h, src/RequestGroup.cc
  8659. (initAndOpenFile): Create a directory to store files if it does not
  8660. exist.
  8661. (getDir): New function.
  8662. Added ETA and download speed for an individual file to readout.
  8663. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8664. * src/RequestGroup.h
  8665. (calculateDownloadSpeed): New function.
  8666. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Made -S option work with metalink file and provided selective download
  8668. to metalink.
  8669. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8670. (filename): Removed.
  8671. (file): New variable.
  8672. (size): Removed.
  8673. (operator=): Updated.
  8674. (getPath): New function.
  8675. (getLength): New function.
  8676. (toFileEntry): New function.
  8677. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8678. (execute): Use toStream.
  8679. (showFileEntry): Removed.
  8680. * src/MetalinkRequestInfo.h
  8681. (targetFiles): New variable.
  8682. (setTargetFiles): New variable.
  8683. * src/MetalinkRequestInfo.cc
  8684. (execute): Added the ability to print file information included in
  8685. a metalink file.
  8686. Added selective download mode to metalink.
  8687. * src/main.cc
  8688. (showUsage): Updated to denote that -S and --select-file options are
  8689. applicable to metalink.
  8690. * src/FileEntry.h
  8691. (operator=): New function.
  8692. (getBasename): New function.
  8693. (getDirname): New function.
  8694. * src/Util.h, src/Util.cc
  8695. (toStream): New function.
  8696. * src/Xml2MetalinkProcessor.cc: Updated.
  8697. Made aria2 work with metalink with directory structure.
  8698. * src/File.h, src/File.cc
  8699. (getBasename): New function.
  8700. (getDirname): New function.
  8701. * src/RequestGroup.h, src/RequestGroup.cc
  8702. (_topDir): New variable.
  8703. (setTopDir): New function.
  8704. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8705. Rewrote HTTP header parsing with stringstream.
  8706. * src/HttpConnection.h, src/HttpConnection.cc
  8707. (HttpRequestEntry): New class.
  8708. (headerBuf): Removed.
  8709. (headerBufLength): Removed.
  8710. (outstandingHttpRequests): Now its element type is
  8711. HttpRequestEntryHandle.
  8712. (findEndOfHeader): Removed.
  8713. (receiveResponse): Rewritten.
  8714. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8715. Updated doc for -j option to notice that it should be used with -i
  8716. option.
  8717. * src/main.cc (showUsage)
  8718. Removed unused classes.
  8719. * src/RequestInfo.h
  8720. (FileInfo): Removed.
  8721. (checksum): Removed.
  8722. (fileInfo): Removed.
  8723. (setChecksum): Removed.
  8724. (getChecksum): Removed.
  8725. (getFileInfo): Removed.
  8726. Use ISO units.
  8727. * src/ConsoleDownloadEngine.cc
  8728. * src/TorrentConsoleDownloadEngine.cc
  8729. * src/Util.cc (abbrevSize)
  8730. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Added the default listening ports to the help message.
  8732. * src/main.cc (showUsage)
  8733. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Reduce the number of calls to gettimeofday to lower CPU load.
  8735. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8736. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8737. * src/Peer.h (calculateUploadSpeed): New function.
  8738. (calculateDownloadSpeed): New function.
  8739. * src/DefaultPeerStorage.cc
  8740. (CalculateStat): Added _now variable.
  8741. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8742. and Peer::calculateUploadSpeed(const struct timeval&)
  8743. Drop connection if no request or piece message is exchanged in
  8744. a certain interval.
  8745. * src/DefaultBtInteractive.h
  8746. (btRuntime): New variable.
  8747. (inactiveCheckPoint): New variable.
  8748. (checkActiveInteraction): New function.
  8749. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8750. request or piece message is received.
  8751. (checkActiveInteraction): New function.
  8752. (doInteractionProcessing): Call checkActiveInteraction.
  8753. Fixed the bug that causes remote Metalink and Torrent files are not
  8754. processed.
  8755. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8756. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Changed format of log file.
  8758. * src/SimpleLogger.cc
  8759. * Release 0.11.0
  8760. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. * src/AbstractCommand.cc
  8762. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8763. MSG_MAX_TRY from error to info.
  8764. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8765. * src/message.h
  8766. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8767. (MSG_DOWNLOAD_ABORTED): Added %s.
  8768. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8769. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8770. * src/PeerAbstractCommand.cc
  8771. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8772. * src/Request.h
  8773. (cookieBox): Made ShardHandle.
  8774. * src/RequestGroup.h, src/RequestGroup.cc
  8775. (createNextCommandWithAdj): New function.
  8776. * src/FileAllocationCommand.cc
  8777. (executeInternal): Use createNextCommandWithAdj().
  8778. * src/CheckIntegrityCommand.cc
  8779. (executeInternal): Use createNextCommandWithAdj().
  8780. Added --load-cookies command-option.
  8781. * src/OptionHandlerFactory.cc
  8782. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8783. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8784. Now aria2 can handle cookie's expiration date.
  8785. * src/Cookie.h (expires): Changed its type to time_t.
  8786. * src/main.cc: Added --load-cookies command-line option.
  8787. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8788. * src/Util.h, src/Util.cc (httpGMT): New function.
  8789. * src/Request.cc (Request): Initialize cookieBox using
  8790. CookieBoxFactory.
  8791. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8792. * src/CookieParser.h, src/CookieParser.cc: New class.
  8793. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8794. * src/HttpResponseCommand.cc
  8795. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8796. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8797. download.
  8798. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Added -j command-line option.
  8800. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8801. * src/main.cc
  8802. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8803. Rewritten using stringstream.
  8804. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8805. Rewritten using stringstream.
  8806. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Make download size shown in MB, KB.
  8808. * src/ConsoleDownloadEngine.h (sendStatistics)
  8809. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8810. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Accept incoming connections if download rate is low.
  8812. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8813. (_lowestSpeedLimit): New variable.
  8814. (setLowestSpeedLimit): New function.
  8815. (execute): Accept incoming connections if download rate is low.
  8816. MAX_PEERS is ignored in this case.
  8817. Disable PREF_OUT in multiple concurrent download:
  8818. * src/RequestGroup.h, src/RequestGroup.cc
  8819. (setUserDefinedFilename): New function.
  8820. * src/DownloadEngineFactory.cc
  8821. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8822. concurrent download.
  8823. * src/DefaultSegmentManFactory.cc
  8824. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8825. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8827. Added its overloaded method.
  8828. * src/RequestGroup.h
  8829. (_numConcurrentCommand): New variable.
  8830. (setNumConcurrentCommand): New function.
  8831. * src/RequestGroup.cc
  8832. Abort download if same file is being downloaded concurrently.
  8833. * src/RequestGroup.h, src/RequestGroupMan.cc
  8834. (isSameFileBeingDownloaded): New function.
  8835. * src/HttpResponseCommand.cc (executeInternal)
  8836. * src/FtpNegotiateCommand.cc (recvSize)
  8837. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8838. * main.cc: Added help message for -i option.
  8839. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8841. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8842. * src/MetalinkEntry.h
  8843. (checksum): Changed to ChecksumHandle
  8844. * src/MetalinkRequestInfo.cc
  8845. (checksum): Changed to ChecksumHandle
  8846. * src/File.cc
  8847. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8848. * src/common.h
  8849. (DIR_OPEN_MODE): New definition
  8850. * src/RequestGroup.cc
  8851. (prepareForNextAction): Added an argument.
  8852. * src/message.h
  8853. (MSG_GOOD_CHECKSUM): New definition
  8854. (MSG_BAD_CHECKSUM): New definition
  8855. * src/HttpResponseCommand.cc
  8856. (handleDefaultEncoding): Continue download sequence in new
  8857. non-segmented download.
  8858. * src/FileAllocationEntry.h
  8859. (_nextDownloadCommand): New variable.
  8860. * src/DownloadCommand.cc
  8861. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8862. available.
  8863. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8864. * src/IteratableChecksumValidator.h,
  8865. src/IteratableChecksumValidator.cc: New class.
  8866. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8867. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Change file mode to 666:
  8869. * src/common.h (OPEN_MODE): New definition.
  8870. * src/File.cc
  8871. * src/Util.cc
  8872. * src/Directry.cc
  8873. * src/AbstractDiskWriter.cc
  8874. Change the level of log message "download aborted" to debug:
  8875. * src/PeerAbstractCommand.cc (execute)
  8876. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8877. * src/TrackerWatcherCommand.cc
  8878. (createCommand): Sleep some seconds after request failed.
  8879. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8880. then abort tracker request.
  8881. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. * Added the simultaneous download feature.
  8883. * src/main.cc: Print "Exception caught: " when exception is caught.
  8884. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8885. * src/ActivePeerConnectionCommand.cc
  8886. * src/PeerInteractionCommand.cc
  8887. * src/BtRuntime.h
  8888. (cuidCounter): Removed.
  8889. (getNewCuid): Removed.
  8890. * src/DownloadEngineFactory.cc
  8891. * src/PeerListenCommand.cc
  8892. * src/TrackerUpdateCommand.cc
  8893. * src/PeerInitiateConnectionCommand.cc
  8894. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. * src/PeerAbstractCommand.cc
  8896. (onAbort): Call PeerStorage::returnPeer()
  8897. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8898. (incomingPeers): New variable.
  8899. (addIncomingPeer): New function.
  8900. (returnPeer): New function.
  8901. (onErasingPeer): New function.
  8902. (addPeer): push_back -> push_front
  8903. (getActivePeers): Rewritten.
  8904. (calculateStat): Rewritten.
  8905. * src/PeerStorage.h
  8906. (TransferStat::copy): New function.
  8907. (TransferStat::TransferStat): New function.
  8908. (TransferStat::operator=): New function.
  8909. (addIncomingPeer): New function.
  8910. (returnPeer): New function.
  8911. * src/PeerListenCommand.cc
  8912. (execute): Use PeerStorage::addIncomingPeer() instead of
  8913. Peer::addPeer().
  8914. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Connect to a peer actively when download speed is lower than specified
  8916. speed in torrent download:
  8917. * src/ActivePeerConnectionCommand.h: New class.
  8918. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8920. * src/main.cc: Fixed the bug that prevents download if .netrc
  8921. doesn't exist.
  8922. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. To cache resolved hostname:
  8924. * src/AbstractCommand.h, src/AbstractCommand.cc
  8925. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8926. Added dns cache.
  8927. * src/FtpInitiateConnectionCommand.cc
  8928. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8929. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8930. NameResolver working without ares.
  8931. * src/TorrentRequestInfo.cc
  8932. (execute): Don't cache dns in torrent download.
  8933. * src/HttpInitiateConnectionCommand.cc
  8934. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8935. * src/DNSCache.h: New class.
  8936. * src/UrlRequestInfo.cc
  8937. (execute): Use dns cache.
  8938. In http request, suppress port number in http request header if port
  8939. is 80 or 443:
  8940. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8941. request header if port is 80 or 443.
  8942. (createProxyRequest): Allways send port number.
  8943. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. To add the command-line option which disables netrc support:
  8945. * src/OptionHandlerFactory.cc
  8946. (createOptionHandlers): Added PREF_NO_NETRC.
  8947. * src/main.cc: Added -n option.
  8948. * src/prefs.h (PREF_NO_NETRC): New definition.
  8949. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8950. V_TRUE.
  8951. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8952. is V_FALSE. This may get configurable in the future release.
  8953. To clear peer's error status by time basis:
  8954. * src/PeerAbstractCommand.cc
  8955. (onAbort): Call Peer::startBadCondition().
  8956. * src/Peer.h, src/Peer.cc
  8957. (error): Removed.
  8958. (_badConditionStartTime): New variable.
  8959. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8960. (startBadCondition): New function.
  8961. (isGood): New function.
  8962. * src/DefaultPeerStorage.cc
  8963. (addPeer): Use Peer::isGood().
  8964. (FindFinePeer): Use Peer::isGood().
  8965. Always include port number in http request header:
  8966. * src/HttpRequest.cc (getHostText): Always include port number in
  8967. http request header.
  8968. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. To the ability to read options from a config file:
  8970. * src/main.cc: Command-line parameter validation is delegated to
  8971. OptionHandler class.
  8972. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8973. * src/Option.h, src/Option.cc (clear): New function.
  8974. * src/OptionParser.h, src/OptionParser.cc: New class.
  8975. * src/OptionHandler.h: New class.
  8976. * src/NameMatchOptionHandler.h: New class.
  8977. * src/OptionHandlerImpl.h: New classes.
  8978. * src/prefs.h: '_' -> '-'
  8979. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8980. (FTP_PASV): New definition.
  8981. * src/Util.h, src/Util.cc (getRealSize): New function.
  8982. To disable netrc support if .netrc file does not have correct
  8983. permissions:
  8984. * src/File.h, src/File.cc (mode): New function.
  8985. To prevent confidential information to be logged:
  8986. * src/HttpConnection.h, src/HttpConnection.cc
  8987. (eraseConfidentialInfo): New function.
  8988. (sendRequest): Call eraseConfidentialInfo().
  8989. (sendProxyRequest): Call eraseConfidentialInfo().
  8990. * src/main.cc: Validate permissions of .netrc file.
  8991. To add --user-agent command-line option:
  8992. * src/main.cc: Added new command line option: --user-agent
  8993. * src/prefs.h (PREF_USER_AGENT): New definition.
  8994. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8995. parameter to HttpRequest object.
  8996. * src/AbstractProxyRequestCommand.cc
  8997. (executeInternal): Set user-agent option parameter to HttpRequest
  8998. object.
  8999. Marged the patches from Dan Fandrich.
  9000. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Use filename and size from Metalink file instead of sending HEAD
  9002. request:
  9003. * src/UrlRequestInfo.h
  9004. (_filename): New variable.
  9005. (_totalLength): New variable.
  9006. (setTotalLength): New variable.
  9007. (setFilename): New variable.
  9008. * src/MetalinkRequestInfo.cc
  9009. (execute): Set filename and size to UrlRequestInfo
  9010. * src/UrlRequestInfo.cc
  9011. (execute): Use filename and size from Metalink instead of seding
  9012. HEAD request to servers.
  9013. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. To add the ability to resume downloading a partially downloaded file
  9015. which is downloaded from the beginning:
  9016. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9017. takes this role.
  9018. * src/main.cc: Added -c option.
  9019. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9020. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9021. * src/prefs.h (PREF_CONTINUE): New definition.
  9022. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9023. * src/DefaultDiskWriter.cc
  9024. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9025. * src/AbstractDiskWriter.h
  9026. (glowFileAllocator): New variable.
  9027. * src/AbstractDiskWriter.cc
  9028. (openExistingFile): Now preallocate file space from the end of the
  9029. existing file if totalLength argument is specified and grater than 0.
  9030. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9031. to download exists in local, continue the download of the file.
  9032. --allow-overwrite=true is assumed in this context.
  9033. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9034. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9035. Throw exception if --check-integrity=true is specified but chunk
  9036. checksums are not provided:
  9037. * src/UrlRequestInfo.cc
  9038. Do not print URLs to stdout:
  9039. * src/UrlRequestInfo.cc
  9040. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. * src/Request.h: Use AuthResolver to get authentication information.
  9042. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9043. set to RequestFactory object.
  9044. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9045. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9046. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9047. create Request object.
  9048. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9049. To integrate Netrc into exsiting classes:
  9050. * src/Request.h
  9051. (_userDefinedAuthConfig): New variable.
  9052. (findNetrcAuthenticator): New function.
  9053. (segment): Removed.
  9054. (setUserDefinedAuthConfig): New function.
  9055. (resolveHttpAuthConfigItem): New function.
  9056. (resolveFtpAuthConfigItem): New function.
  9057. (resolveHttpProxyAuthConfigItem): New function.
  9058. * src/HttpRequest.h
  9059. (authConfig): Removed.
  9060. (proxyAuthConfig): Removed.
  9061. (setAuthConfig): Removed.
  9062. (setProxyAuthConfig): Removed.
  9063. * src/UrlRequest.h
  9064. (getHeadResult): Added a parameter: authConfigHandle
  9065. * src/common.h
  9066. (SingletonHolder.h): New include.
  9067. * src/main.cc
  9068. (Netrc.h): New include.
  9069. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9070. Added initial value of PREF_NETRC_PATH.
  9071. Added the initialization of netrc.
  9072. * src/AuthConfig.h: New class.
  9073. * src/prefs.h
  9074. (PREF_NETRC_PATH): New definition.
  9075. * src/HttpAuthConfig.h: Removed.
  9076. * src/Netrc.cc
  9077. (getRequiredNextToken): New function.
  9078. (skipMacdef): New function.
  9079. (parse): Rewritten.
  9080. * src/Netrc.h
  9081. (getRequiredNextToken): New function.
  9082. (skipMacdef): New function.
  9083. * src/Util.h, src/Util.cc
  9084. (getHomeDir): New function.
  9085. * src/TrackerWatcherComand.cc
  9086. (createRequestCommand): Use AuthConfig.
  9087. * src/FtpConnection.cc
  9088. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9089. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9090. * src/Request.cc
  9091. (findNetrcAuthenticator): New function.
  9092. (resolveHttpAuthConfigItem): New function.
  9093. (resolveFtpAuthConfigItem): New function.
  9094. (resolveHttpProxyAuthConfigItem): New function.
  9095. * src/UrlRequestInfo.cc: Use AuthConfig.
  9096. * src/HttpRequest.cc
  9097. (createRequest): Use authConfig.
  9098. (getProxyAuthString): Use authConfig.
  9099. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9100. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9101. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. To reduce overhead to find commands whose socket is either
  9103. readable or writable in the download engine loop:
  9104. * src/Command.h, src/Command.cc
  9105. (STATUS): New enum.
  9106. (status): New variable.
  9107. (statusMatch): New function.
  9108. (setStatusActive): New function.
  9109. (setStatusInactive): New function.
  9110. * src/DownloadEngine.h, src/DownloadEngine.cc
  9111. (executeCommand): New function.
  9112. (run): Simplified.
  9113. (waitData): Call Command::setStatusActive() when command's socket is
  9114. readable or writable.
  9115. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. To handle Segment as SegmentHandle:
  9117. * src/AbstractCommand.cc (execute): Rewritten.
  9118. * src/SegmentMan.h: Segment -> SegmentHandle
  9119. Introducded HttpResponse class, HttpRequest class to improve code
  9120. extensiveness and make it clear:
  9121. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9122. HttpResponse class.
  9123. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9124. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9125. * src/HttpConnection.cc: Contruction of http request were moved to
  9126. HttpRequest class.
  9127. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9128. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9129. * src/HttpAuthConfig.h: New class.
  9130. * src/Range.h: New class.
  9131. To make FtpTunnel{Request, Response}Command and
  9132. HttpProxy{Request, Response}Command derived from
  9133. AbstractProxy{Request, Response}Command:
  9134. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9135. Derived from AbstractProxyRequestCommand class.
  9136. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9137. Derived from AbstractProxyResponseCommand class.
  9138. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9139. Derived from AbstractProxyRequestCommand class.
  9140. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9141. Derived from AbstractProxyResponseCommand class.
  9142. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9143. : New class.
  9144. * src/AbstractProxyResponseCommand.h,
  9145. src/AbstractProxyResponseCommand.cc: New class.
  9146. To add netrc support:
  9147. * src/Netrc.h, src/Netrc.cc: New class.
  9148. * src/Util.h, src/Util.cc (split): New function.
  9149. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9150. "Content-Range" header instead of "Range" header.
  9151. * src/HttpHeader.h
  9152. (getStatus): Removed.
  9153. (setStatus): Removed.
  9154. * src/Segment.h
  9155. (getPositionToWrite): New function.
  9156. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. * src/HttpHeader.h
  9158. (Range.h): New include.
  9159. (status): New variable.
  9160. (HttpHeader): Initialized status with 0.
  9161. (getStatus): New function.
  9162. (setStatus): New function.
  9163. (getRange): New function.
  9164. (HttpHeaderHandle): New function.
  9165. * src/HttpHeader.cc
  9166. (getRange): New function.
  9167. * src/Request.h
  9168. (RequestWeakHandle): New definition.
  9169. * src/HttpConnection.h
  9170. (HttpConnectionHandle): New type definition.
  9171. * src/HttpConnection.cc
  9172. (receiveResponse): Set HTTP status to headers.
  9173. * src/main.cc
  9174. (showUsage): Fixed typo.
  9175. * src/Segment.h
  9176. (SegmentHandle): New type definition.
  9177. * src/BitfieldMan.h
  9178. (getMissingUnusedLength): New function.
  9179. * src/BitfieldMan.cc
  9180. (getMissingUnusedLength): New function.
  9181. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. To fix static initialization order problem:
  9183. * src/BitfieldManFactory.h
  9184. (defaultRandomizer): Removed.
  9185. (factory): New variable.
  9186. (getNewFactory): Removed.
  9187. (getFactoryInstance): New function.
  9188. (setDefaultRandomizer): Rewritten.
  9189. (getDefaultRandomizer): Rewritten.
  9190. * src/BitfieldManFactory.cc
  9191. (defaultRandomizer): Removed.
  9192. (factory): Initialized to 0.
  9193. (BitfieldManFactory): Initialized randomizer to 0.
  9194. * src/DefaultPieceStorage.cc
  9195. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9196. * src/Peer.cc
  9197. (Peer): getNewFactory() -> getFactoryInstance()
  9198. * src/SegmentMan.cc
  9199. (initBitfield): getNewFactory() -> getFactoryInstance()
  9200. * src/Piece.cc
  9201. (Piece): getNewFactory() -> getFactoryInstance()
  9202. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. To fix the bug that causes crash on Max OS X:
  9204. * src/SimpleRandomizer.h
  9205. (getInstance): Create new instance if the static variable is null.
  9206. * src/SimpleRandomizer.cc
  9207. (randomizer): Initialized to 0.
  9208. * src/BitfieldManFactory.h
  9209. (getNewFactory): Removed the call to setRandomizer().
  9210. To fix the miscalculation of the range of checksum:
  9211. * src/BitfieldMan.h
  9212. (isBitSetOffsetRange): New function.
  9213. * src/BitfieldMan.cc
  9214. (isBitSetOffsetRange): New function.
  9215. * src/SegmentMan.cc
  9216. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9217. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9218. * Release 0.10.1
  9219. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. To lower CPU usage in BitTorrent download when --max-upload-limit
  9221. command-line option specified:
  9222. * src/DefaultBtMessageDispatcher.cc
  9223. (sendMessages): Calculate uploading speed only when current message
  9224. is uploading data and is not sent yet.
  9225. * src/DefaultPeerStorage.h
  9226. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9227. * src/HttpResponseCommand.cc
  9228. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9229. This fixes compile error in Soralis 10.
  9230. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. To fix segfault in Metalink download:
  9232. * src/UrlRequestInfo.h
  9233. (filename): Removed.
  9234. (totalLength): Removed.
  9235. (setTotalLength): Removed.
  9236. (setFilename): Removed.
  9237. * src/MetalinkRequestInfo.cc
  9238. (execute): Do not set filename and totalLength to reqInfo.
  9239. Set chunk checksum to reqInfo if it is not null.
  9240. * src/HttpResponseCommand.cc
  9241. (executeInternal): Fixed filename in log.
  9242. (handleDefaultEncoding): Removed the call to initBitfield() and
  9243. markAllPiecesDone().
  9244. (handleOtherEncoding): Added HEAD method handling.
  9245. * src/FtpNegotiateCommand.cc
  9246. (executeInternal): Added SEQ_HEAD_OK handling.
  9247. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9248. return false.
  9249. * src/FtpNegotiateCommand.h
  9250. (SEQ_HEAD_OK): New definition.
  9251. * src/SegmentMan.cc
  9252. (initBitfield): Delete bitfield.
  9253. (isChunkChecksumValidationReady): Fixed the condition.
  9254. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9255. works fine.
  9256. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. * src/Xml2MetalinkProcessor.h
  9258. (xpathExists): New function.
  9259. * src/Xml2MetalinkProcessor.cc
  9260. (xpathExists): New function.
  9261. Not to send HEAD request if filename and size are available in Metalink
  9262. file:
  9263. * src/UrlRequestInfo.h
  9264. (filename): New variable.
  9265. (totalLength): New variable.
  9266. (setTotalLength): New function.
  9267. (setFilename): New function.
  9268. * src/MetalinkRequestInfo.cc
  9269. (execute): Set filename and size to UrlRequestInfo.
  9270. * src/MetalinkEntry.cc
  9271. (MetalinkEntry): Initialize size with 0.
  9272. * src/UrlRequestInfo.cc
  9273. (execute): Set filename and size to SegmentMan.
  9274. Not to download rest of the files after selected files are downloaded
  9275. in BitTorrent:
  9276. * src/PieceStorage.h
  9277. (allDownloadFinished): New function.
  9278. * src/DefaultBtAnnounce.cc
  9279. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9280. downloadFinished.
  9281. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9282. * src/DefaultPieceStorage.cc
  9283. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9284. Commented out the call to finishSelectiveDownloadingMode().
  9285. (downloadFinished): Call isFilteredAllBitSet() instead of
  9286. isAllBitSet().
  9287. (allDownloadFinished): New function.
  9288. * src/DefaultBtInteractive.cc
  9289. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9290. downloadFinished().
  9291. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9292. * src/TorrentDownloadEngine.cc
  9293. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9294. * src/BitfieldMan.h
  9295. (isFilteredAllBitSet): New function.
  9296. * src/ShareRatioSeedCriteria.h
  9297. (PieceStorage.h): New include.
  9298. (pieceStorage): New variable.
  9299. (evaluate):
  9300. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9301. * src/BitfieldMan.cc
  9302. (isFilteredAllBitSet): New function.
  9303. (isAllBitSet): Filter is not took into account.
  9304. Rename --force-truncate as --allow-overwrite:
  9305. * src/TorrentRequestInfo.cc
  9306. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9307. * src/main.cc
  9308. (showUsage): --force-truncate -> --allow-overwrite
  9309. * src/message.h
  9310. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9311. * src/prefs.h
  9312. (PREF_FORCE_TRUNCATE): Removed.
  9313. (PREF_ALLOW_OVERWRITE): New definition.
  9314. * src/SegmentMan.cc
  9315. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9316. * src/MetalinkRequestInfo.cc
  9317. (execute): Queueing message are now logged in info level.
  9318. * src/common.h
  9319. (LONG_LONG_MAX): Removed.
  9320. (LONG_LONG_MIN): Removed.
  9321. * src/HttpResponseCommand.cc
  9322. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9323. * src/FtpNegotiateCommand.cc
  9324. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9325. * src/main.cc
  9326. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9327. command-line option.
  9328. (main): Added --check-integriy and --realtime-chunk-checksum
  9329. command-line option.
  9330. --force-truncate -> --allow-overwrite
  9331. Set initial value of --check-integrity option to false.
  9332. Don't show usage when error occurs while persing command-line options.
  9333. Removed deprecated --upload-limit option.
  9334. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9336. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9337. * src/BtAllowedFastMessage.cc:
  9338. * src/BtBitfieldMessage.cc
  9339. * src/BtCancelMessage.cc
  9340. * src/BtChokeMessage.cc
  9341. * src/BtHaveAllMessage.cc
  9342. * src/BtHaveMessage.cc
  9343. * src/BtHaveNoneMessage.cc
  9344. * src/BtInterestedMessage.cc
  9345. * src/BtNotInterestedMessage.cc
  9346. * src/BtPieceMessage.cc
  9347. * src/BtPortMessage.cc
  9348. * src/BtRejectMessage.cc
  9349. * src/BtRequestMessage.cc
  9350. * src/BtSuggestPieceMessage.cc
  9351. * src/BtUnchokeMessage.cc
  9352. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9353. files are affected.
  9354. * src/ChunkChecksumValidator.cc
  9355. * src/SegmentMan.cc
  9356. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. To add chunk checksum validation:
  9358. * src/MetalinkEntry.h
  9359. (MetalinkChunkChecksum.h): New include.
  9360. (chunkChecksum): New variable.
  9361. * src/Request.h
  9362. (method): New variable.
  9363. (setMethod): New function.
  9364. (getMethod): New function.
  9365. (METHOD_GET): New static constant.
  9366. (METHOD_HEAD): New static constant.
  9367. * src/Xml2MetalinkProcessor.h
  9368. (getPieceHash): New function.
  9369. * src/PieceStorage.h
  9370. (markAllPiecesDone): New function.
  9371. (checkIntegrity): New function.
  9372. * src/FileAllocator.h
  9373. (NullFileAllocationMonitor.h): New include.
  9374. (FileAllocator): Initialize fileAllocationMonitor with new
  9375. NullFileAllocationMonitor().
  9376. * src/MultiDiskAdaptor.h
  9377. (messageDigest.h): Remove include.
  9378. (ctx): Removed.
  9379. (hashUpdate): Added ctx.
  9380. (MultiDiskAdaptor): Removed ctx.
  9381. (sha1Sum): Renamed as messageDigest.
  9382. (messageDigest): New function.
  9383. * src/UrlRequestInfo.h
  9384. (HeadResult): New class.
  9385. (digestAlgo): New variable.
  9386. (chunkChecksumLength): New variable.
  9387. (chunkChecksums): New variable.
  9388. (getHeadResult): New function.
  9389. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9390. (setDigestAlgo): New function.
  9391. (setChunkChecksumLength): New function.
  9392. (setChunkChecksums): New function.
  9393. * src/DefaultPieceStorage.cc
  9394. (DiskAdaptorWriter.h): New include.
  9395. (ChunkChecksumValidator.h): New include.
  9396. (markAllPiecesDone): New function.
  9397. (checkIntegrity): New function.
  9398. * src/DefaultBtContext.h
  9399. (getPieceHashes): New function.
  9400. * src/TorrentRequestInfo.cc
  9401. (execute): Try to validate chunk checksum if file already exists and
  9402. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9403. * src/messageDigest.h
  9404. (~MessageDigestContext): Added digestFree().
  9405. * src/MetalinkRequestInfo.cc
  9406. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9407. * src/DiskAdaptor.h
  9408. (messageDigest.h): New include.
  9409. (sha1Sum): Renamed as messageDigest.
  9410. (messageDigest): New function.
  9411. * src/DownloadCommand.h
  9412. (PeerStat.h): New include.
  9413. (maxDownloadSpeedLimit): New variable.
  9414. (startupIdleTime): New variable.
  9415. (lowestDownloadSpeedLimit): New variable.
  9416. (peerStat): New variable.
  9417. (setMaxDownloadSpeedLimit): New function.
  9418. (setStartupIdleTime): New function.
  9419. (setLowestDownloadSPeedLimit): New function.
  9420. * src/BtContext.h
  9421. (getPieceHashes): New function.
  9422. * src/main.cc
  9423. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9424. option to true for testing purpose.
  9425. * src/BtPieceMessage.cc
  9426. (checkPieceHash): Use messageDigest
  9427. * src/DownloadEngine.cc
  9428. (SetDescriptor): Removed.
  9429. (AccumulateActiveCommand): Removed.
  9430. (waitData): Rewritten.
  9431. (updateFdSet): Rewritten.
  9432. * src/MultiDiskAdaptor.cc
  9433. (hashUpdate): Added ctx.
  9434. (sha1Sum): Renamed as messageDigest.
  9435. (messageDigest): New function.
  9436. * src/BitfieldMan.h
  9437. (isBitRangeSet): New function.
  9438. (unsetBitRange): New function.
  9439. * src/ByteArrayDiskWriter.h
  9440. (sha1Sum): Renamed as messageDigest.
  9441. (messageDigest): New function.
  9442. * src/ConsoleDownloadEngine.cc
  9443. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9444. * src/DiskWriter.h
  9445. (messageDigest.h): New include.
  9446. (sha1Sum): Renamed as messageDigest.
  9447. (messageDigest): New function.
  9448. * src/ChunkChecksumValidator.h: New class.
  9449. * src/DiskAdaptorWriter.h: New class.
  9450. * src/prefs.h
  9451. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9452. (PREF_CHECK_INTEGRITY): New definition.
  9453. * src/HttpResponseCommand.cc
  9454. (handleDefaultEncoding): Added method "HEAD" handling.
  9455. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9456. (handleOtherEncoding):
  9457. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9458. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9459. startupIdleTime, lowestDownloadSpeedLimit to command.
  9460. * src/SegmentMan.h
  9461. (getSegmentEntryByIndex): New function.
  9462. (getSegmentEntryByCuid): New function.
  9463. (getSegmentEntryIteratorByCuid): New function.
  9464. (diskWriter): DiskWriter -> DiskWriterHandle
  9465. (pieceHashes): New variable.
  9466. (chunkHashLength): New variable.
  9467. (digestAlgo): New variable.
  9468. (FindPeerStat): Removed.
  9469. (getPeerStat): Rewritten.
  9470. (markAllPiecesDone): New function.
  9471. (checkIntegrity): New function.
  9472. (tryChunkChecksumValidation): New function.
  9473. (isChunkChecksumValidationReady): New function.
  9474. * src/BitfieldMan.cc
  9475. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9476. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9477. blocks to 0.
  9478. (isBitRangeSet): New function.
  9479. (unsetBitRange): New function.
  9480. * src/FtpNegotiateCommand.cc
  9481. (executeInternal): Set maxDownloadSpeedLimit,
  9482. startupIdleTime, lowestDownloadSpeedLimit to command.
  9483. (recvSize): Added method "HEAD" handling.
  9484. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9485. * src/AbstractSingleDiskAdaptor.cc
  9486. (sha1Sum): Renamed as messageDigest.
  9487. (messageDigest): New function.
  9488. * src/AbstractSingleDiskAdaptor.h
  9489. (sha1Sum): Renamed as messageDigest.
  9490. (messageDigest): New function.
  9491. * src/Util.h
  9492. (indexRange): New function.
  9493. * src/MetalinkEntry.cc
  9494. (MetalinkEntry): Initialized chunkChecksum to 0.
  9495. * src/ShaVisitor.cc
  9496. (~ShaVisitor): Removed the call to ctx.digestFree().
  9497. * src/SegmentMan.cc
  9498. (ChunkChecksumValidator.h): New include.
  9499. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9500. to DIGEST_ALGO_SHA1.
  9501. (~SegmentMan): Removed diskWriter.
  9502. (FindSegmentEntryByIndex): Removed.
  9503. (FindSegmentEntryByCuid): Removed.
  9504. (checkoutSegment): Rewritten.
  9505. (findSlowerSegmentEntry): Rewritten.
  9506. (getSegment): Rewritten.
  9507. (updateSegment): Rewritten.
  9508. (completeSegment): Rewritten.
  9509. (markAllPiecesDone): New function.
  9510. (checkIntegrity): New function.
  9511. (isChunkChecksumValidationReady): New function.
  9512. (tryChunkChecksumValidation): New function.
  9513. * src/Xml2MetalinkProcessor.cc
  9514. (getEntry): Get size and set it to entry.
  9515. Get chunk checksum and set it to entry.
  9516. (getPieceHash): New function.
  9517. * src/Util.cc
  9518. (sha1Sum): Removed ctx.digestFree()
  9519. (fileChecksum): Removed ctx.digestFree()
  9520. (indexRange): New function.
  9521. * src/Request.cc
  9522. (METHOD_GET): New variable.
  9523. (METHOD_HEAD): New variable.
  9524. (Request): Added method.
  9525. * src/UrlRequestInfo.cc
  9526. (FatalException.h): New include.
  9527. (message.h): New include.
  9528. (operator<<): Added operator<< for class HeadResult.
  9529. (getHeadResult): New function.
  9530. (execute): Get filename and size in separate download engine.
  9531. * src/ChunkChecksumValidator.cc: New class.
  9532. * src/DownloadCommand.cc:
  9533. (DownloadCommand): Added peerStat.
  9534. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9535. the value from Option.
  9536. The buffer size is now 16KB.
  9537. Use peerStat member instead of getting it from SegmentMan.
  9538. Use startupIdleTime member instead of gettingit from Option.
  9539. Added chunk checksum validation.
  9540. * src/AbstractDiskWriter.cc
  9541. (AbstractDiskWriter): Removed ctx.
  9542. (~AbstractDiskWriter): Removed ctx.digestFree()
  9543. (writeDataInternal): Returns the return value of write.
  9544. (readDataInternal): Returns the return value of read.
  9545. (sha1Sum): Renamed as messageDigest
  9546. (messageDigest): New function.
  9547. * src/AbstractDiwkWriter.h
  9548. (messageDigest.h): Removed include.
  9549. (ctx): Removed.
  9550. (sha1Sum): Renamed as messageDigest
  9551. (messageDigest): New function.
  9552. * src/DefaultPieceStorage.h
  9553. (markAllPiecesDone): New function.
  9554. (checkIntegrity): New function.
  9555. * src/NullFileAllocationMonitor.h: New class.
  9556. * src/MetalinkChunkChecksum.h: New class.
  9557. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. To decrease CPU usage in bittorrent download, calculation results in
  9559. BitfieldMan were cached and realtime fetching PeerObject was removed
  9560. with WeakHandle introduced. Option values are set to the objects
  9561. by setter before download begins.
  9562. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9563. * src/DefaultBtRequestFactory.h
  9564. (dispatcher): BtMessageDispatcherHandle ->
  9565. BtMessageDispatcherWeakHandle.
  9566. (messageFactory): New variable.
  9567. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9568. BtMessageDispatcherWeakHandle.
  9569. (setBtMessageFactory): New function.
  9570. * src/DefaultBtMessageDispatcher.cc:
  9571. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9572. from Option.
  9573. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9574. feating the value from Option.
  9575. Use messageFactory member.
  9576. * src/PeerInteractionCommand.cc
  9577. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9578. Add reverse dependencies to factory object.
  9579. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9580. dispatcher.
  9581. Set messageFactory to receiver.
  9582. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9583. btInteractive.
  9584. Set receiver to peerObject.
  9585. Set maxDownloadSpeedLimit to this.
  9586. (executeInternal): Use maxDownloadSpeedLimit member.
  9587. * src/BtChokeMessage.cc
  9588. (doReceivedAction): Use dispatcher, requestFactory member.
  9589. (onSendComplete): Use dispatcher member.
  9590. * src/PeerInteractionCommand.h
  9591. (maxDownloadSpeedLimit): New variable.
  9592. * src/DefaultBtMessageReceiver.h
  9593. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9594. (dispatcher):
  9595. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9596. (messageFactory): New variable.
  9597. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9598. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9599. (setDispatcher):
  9600. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9601. (setBtMessageFactory): New function.
  9602. * src/DefaultBtInteractive.cc
  9603. (initiateHandshake): Use messageFactory member.
  9604. (addBitfieldMessageToQueue): Use messageFactory member.
  9605. (addAllowedFastMessageToQueue): Use messageFactory member.
  9606. (decideChoking): Use messageFactory member.
  9607. (checkHave): Use messageFactory member.
  9608. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9609. (receiveMessages): Use maxDownloadSpeedLimit member.
  9610. (decideInterest): Use messageFactory member.
  9611. * src/BtRequestMessage.cc
  9612. (doReceivedAction): Use messageFactory, dispatcher member.
  9613. (onQueued): Use dispatcher member.
  9614. * src/BtPieceMessage.cc
  9615. (doReceivedAction): Use dispatcher member.
  9616. (send): Use peerConnection member.
  9617. (onWrongPiece): Use requestFactory member.
  9618. (handleChokingEvent): Use messageFactory, dispatcher member.
  9619. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9620. * src/BtMessageDispatcher.h
  9621. (BtMessageDispatcherWeakHandle): New type definition.
  9622. * src/SimpleBtMessage.cc
  9623. (send): Use peerConnection member.
  9624. * src/BtRejectMessage.cc
  9625. (doReceivedAction): Use dispatcher member.
  9626. * src/DefaultBtMessageDispatcher.h
  9627. (Option.h): Removed include.
  9628. (messageFactory): New variable.
  9629. (option): Removed.
  9630. (maxUploadSpeedLimit): New variable.
  9631. (requestTimeout): New variable.
  9632. (DefaultBtMessageDispatcher): Removed option.
  9633. Added maxUploadSpeedLimit, requestTimeout.
  9634. (setOption): Removed.
  9635. (getOption): Removed.
  9636. (setMaxUploadSpeedLimit): New function.
  9637. (setRequestTimeout): New function.
  9638. (setBtMessageFactory): New function.
  9639. * src/DefaultBtInteractive.h
  9640. (btMessageReceiver):
  9641. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9642. (dispatcher):
  9643. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9644. (btRequestFactory):
  9645. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9646. (peerConnection):
  9647. PeerConnectionHandle -> PeerConnectionWeakHandle
  9648. (messageFactory): New variable.
  9649. (option): Removed.
  9650. (keepAliveInterval): New variable.
  9651. (maxDownloadSpeedLimit): New variable.
  9652. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9653. (setBtMessageReceiver):
  9654. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9655. (setDispatcher):
  9656. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9657. (setBtRequestFactory):
  9658. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9659. (setPeerConnection):
  9660. PeerConnectionHandle -> PeerConnectionWeakHandle
  9661. (setOption): Removed.
  9662. (setKeepAliveInterval): New function.
  9663. (setMaxDownloadSpeedLimit): New function.
  9664. (setBtMessageFactory): New function.
  9665. * src/BitfieldMan.h
  9666. (cachedNumMissingBlock): New variable.
  9667. (cachedNumFilteredBlock): New variable.
  9668. (cachedCompletedLength): New variable.
  9669. (cachedFilteredComletedLength): New variable.
  9670. (cachedFilteredTotalLength): New variable.
  9671. (countMissingBlockNow): New function.
  9672. (countFilteredBlockNow): New function.
  9673. (getFilteredTotalLengthNow): New function.
  9674. (getCompletedLengthNow): New function.
  9675. (getFilteredCompletedLengthNow): New function.
  9676. (updateCache): New function.
  9677. * src/AbstractBtMessage.h
  9678. (BtMessageDispatcher.h): New include.
  9679. (PeerConnection.h): New include.
  9680. (BtRequestFactory.h): New include
  9681. (BtMessageFactory.h): New include.
  9682. (dispatcher): New variable.
  9683. (messageFactory): New variable.
  9684. (peerConnection: New variable.
  9685. (setBtMessageDispatcher): New function.
  9686. (setPeerConnection): New function.
  9687. (setBtMessageFactory): New function.
  9688. (setBtRequestFactory): New function.
  9689. * src/DefaultBtMessageFactory.cc
  9690. (setCommonProperty): Set dispatcher, requestFactory, this,
  9691. peerConnection to msg.
  9692. * src/BtRegistry.h
  9693. (BT_MESSAGE_RECEIVER): New macro.
  9694. * src/PeerConnection.h
  9695. (PeerConnectionWeakHandle): New type definition.
  9696. * src/BtMessageFactory.h
  9697. (BtMessageFactoryWeakHandle): New type definition.
  9698. * src/BitfieldMan.cc
  9699. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9700. cachedCompletedLength, cachedFilteredComletedLength,
  9701. cachedFilteredTotalLength.
  9702. Call updateCache().
  9703. (countMissingBlock): Return cachedNumMissingBlock.
  9704. (countMissingBlockNow): New function.
  9705. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9706. (countFilteredBlockNow): New function.
  9707. (setBit): Call updateCache().
  9708. (unsetBit): Call updateCache().
  9709. (setBitfield): Call updateCache().
  9710. (clearAllBit): Call updateCache().
  9711. (setAllBit): Use setBitInternal instead of setBit.
  9712. Call updateCache().
  9713. (addFilter): Call updateCache().
  9714. (enableFilter): Call updateCache().
  9715. (disableFilter): Call updateCache().
  9716. (clearFilter): Call updateCache().
  9717. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9718. (getFilteredTotalLengthNow): New function.
  9719. (getCompletedLength): Return cachedCompletedLength.
  9720. (getCompletedLengthNow): New function.
  9721. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9722. (getFilteredCompletedLengthNow): New function.
  9723. (updateCache): New function.
  9724. * src/BtMessageReceiver.h
  9725. (BtMessageReceiverWeakHandle): New type definition.
  9726. * src/DefaultBtMessageReceiver.cc
  9727. (receiveHandshake): Use messageFactory member.
  9728. (sendHandshake): Use messageFactory member.
  9729. (receiveMessage): Use messageFactory member.
  9730. * src/DefaultBtMessageFactory.h
  9731. (dispatcher): New variable.
  9732. (requestFactory): New variable.
  9733. (peerConnection): New variablle.
  9734. (setBtMessageDispatcher): New function.
  9735. (setBtRequestFactory): New function.
  9736. (setPeerConnection): New function.
  9737. * src/SharedHandle.h
  9738. (RefCount): New class.
  9739. (WeakHandle): New class.
  9740. * src/PeerObject.h
  9741. (BtMessageReceiver.h): New include.
  9742. (PeerObject): Added btMessageReceiver.
  9743. (btMessageReceiver): New variable.
  9744. * src/Util.cc
  9745. (countBit): Simplified.
  9746. * src/BtCancelMessage.cc
  9747. (doReceivedAction): Use dispatcher member.
  9748. * src/BtRequestFactory.h
  9749. (BtRequestFactoryWeakHandle): New type definition.
  9750. * src/PeerStorage.h
  9751. (downloadSpeed): int -> uint32_t
  9752. (uploadSpeed): int -> uint32_t
  9753. (sessionDownloadLength): long long int -> uint64_t
  9754. (sessionUploadLength): long long int -> uint64_t
  9755. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. To add RecoverableException, FatalException:
  9757. * src/AbstractCommand.cc
  9758. (onAbort): Exception -> RecoverableException
  9759. * src/PeerAbstractCommand.h
  9760. (RecoverableException.h): New include.
  9761. (onAbort): Exception -> RecoverableException.
  9762. * src/PeerInteractionCommand.cc
  9763. (onAbort): Exception -> RecoverableException.
  9764. * src/PeerAbstractCommand.cc
  9765. (execute): Exception -> RecoverableException.
  9766. (onAbort): Exception -> RecoverableException.
  9767. * src/TorrentRequestInfo.cc
  9768. (execute): Exception -> RecoverableException.
  9769. * src/MetalinkRequestInfo.cc
  9770. (execute): Exception -> RecoverableException.
  9771. * src/MetaFileUtil.cc: RecoverableException.
  9772. * src/AbstractCommand.h
  9773. (onAbort): Exception -> RecoverableException.
  9774. * src/DlRetryEx.h: Exception -> RecoverableException.
  9775. * src/DlAbortEx.h: Exception -> RecoverableException.
  9776. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9777. * src/Util.cc: Exception -> RecoverableException.
  9778. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9779. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9780. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9781. To make ID static const int
  9782. * src/BtInterestedMessage.h
  9783. (ID_t): Removed.
  9784. (ID): New variable.
  9785. (getId): Made non-const.
  9786. * src/BtPieceMessage.h
  9787. (ID_t): Removed.
  9788. (ID): New variable.
  9789. (getId): Made non-const.
  9790. * src/BtChokeMessage.h
  9791. (ID_t): Removed.
  9792. (ID): New variable.
  9793. (getId): Made non-const.
  9794. * src/BtHaveAllMessage.h
  9795. (ID_t): Removed.
  9796. (ID): New variable.
  9797. (getId): Made non-const.
  9798. * src/BtKeepAliveMessage.h
  9799. (ID_t): Removed.
  9800. (ID): New variable.
  9801. (getId): Made non-const.
  9802. * src/BtHandshakeMessage.h
  9803. (ID): New variable.
  9804. (getId): Made non-const.
  9805. * src/BtSuggestPieceMessage.h
  9806. (ID_t): Removed.
  9807. (ID): New variable.
  9808. (getId): Made non-const.
  9809. * src/BtPortMessage.h
  9810. (ID_t): Removed.
  9811. (ID): New variable.
  9812. (getId): Made non-const.
  9813. * src/AbstractBtMessage.h
  9814. (id): Removed.
  9815. (AbstractBtMessage): Removed id.
  9816. (getId): Removed.
  9817. * src/BtHaveMessage.h
  9818. (ID_t): Removed.
  9819. (ID): New variable.
  9820. (getId): Made non-const.
  9821. * src/BtAllowedFastMessage.h
  9822. (ID_t): Removed.
  9823. (ID): New variable.
  9824. (getId): Made non-const.
  9825. * src/BtCancelMessage.h
  9826. (ID_t): Removed.
  9827. (ID): New variable.
  9828. (getId): Made non-const.
  9829. * src/BtNotInterestedMessage.h
  9830. (ID_t): Removed.
  9831. (ID): New variable.
  9832. (getId): Made non-const.
  9833. * src/BtChokeMessage.h
  9834. (ID_t): Removed.
  9835. (ID): New variable.
  9836. (getId): Made non-const.
  9837. * src/BtRejectMessage.h
  9838. (ID_t): Removed.
  9839. (ID): New variable.
  9840. (getId): Made non-const.
  9841. * src/BtBitfieldMessage.h
  9842. (ID_t): Removed.
  9843. (ID): New variable.
  9844. (getId): Made non-const.
  9845. * src/BtUnchokeMessage.h
  9846. (ID_t): Removed.
  9847. (ID): New variable.
  9848. (getId): Made non-const.
  9849. * src/BtRequestMessage.h
  9850. (ID_t): Removed.
  9851. (ID): New variable.
  9852. (getId): Made non-const.
  9853. * src/BtHaveMessage.h
  9854. (ID_t): Removed.
  9855. (ID): New variable.
  9856. (getId): Made non-const.
  9857. To add --force-truncate command-line option and a check whether
  9858. the file already exists:
  9859. * src/DirectDiskAdaptor.h
  9860. (getFilePath): Made virtual public.
  9861. * src/MultiDiskAdaptor.h
  9862. (File.h): New include.
  9863. (DiskWriterEntry::fileEntry): Made private.
  9864. (DiskWriterEntry::fileExists): New function.
  9865. (DiskWriterEntry::getFileEntry): New function.
  9866. (fileExists): New function.
  9867. (getFilePath): New function.
  9868. * src/TorrentRequestInfo.cc
  9869. (FatalException.h): New include.
  9870. (message.h): New include.
  9871. (RecoverableException.h): New include.
  9872. (execute): Added a check whether file is already exists or not.
  9873. * src/DiskAdaptor.h
  9874. (fileExists): New function.
  9875. (getFilePath): New function.
  9876. * src/main.cc
  9877. (showUsage): Added an explanation of --force-truncate command-line
  9878. option.
  9879. (main): Added --force-truncate command-line option.
  9880. * src/Exception.h
  9881. (setMsg): buf[256] -> buf[1024]
  9882. * src/CopyDiskWriter.h
  9883. (getFilePath): Made public virtual.
  9884. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9885. (fileExists): New function.
  9886. * src/DownloadEngineFactory.cc
  9887. (newTorrentConsoleEngine): Don't open file here.
  9888. * src/message.h
  9889. (EX_FILE_ALREADY_EXISTS): New definition.
  9890. * src/prefs.h
  9891. (PREF_FOECE_TRUNCATE): New definition.
  9892. * src/HttpResponseCommand.cc
  9893. (handleDefaultEncoding): Added a check whether the file already exists.
  9894. * src/SegmentMan.h
  9895. (fileExists): New function.
  9896. (shouldCancelDownloadForSafety): New function.
  9897. * src/FtpNegotiateCommand.cc
  9898. (recvSize): Added a check whether the file already exists.
  9899. * src/AbstractSingleDiskAdaptor.cc
  9900. (File.h): New include.
  9901. (fileExists): New function.
  9902. * src/AbstractSingleDiskAdaptor.h
  9903. (getFilePath): Removed.
  9904. (fileExists): New function.
  9905. * src/SegmentMan.cc
  9906. (fileExists): New function.
  9907. (shouldCancelDownloadForSafety): New function.
  9908. To fix regression bug in torrent downloading:
  9909. * src/DefaultBtRequestFactory.cc
  9910. (doChokedAction): New function.
  9911. * src/DefaultBtRequestFactory.h
  9912. (doChokedAction): New function.
  9913. * src/DefaultBtMessageDispatcher.cc
  9914. (doChokedAction): Do not delete request if its target is in allowed
  9915. fast set.
  9916. * src/DefaultBtInteractive.cc
  9917. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9918. (sendKeepAlive): Send keep alive message even if the outgoing message
  9919. queue is not empty.
  9920. (decideInterest): Simplified the code.
  9921. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9922. it is already called when BtChokeMessage is received from a peer.
  9923. * src/BtRequestFactory.h
  9924. (doChokedAction): New function.
  9925. To clean up code:
  9926. * src/PeerInteractionCommand.h
  9927. (executeInternal): Added virtual keyword explicitly.
  9928. (prepareForRetry): Added virtual keyword explicitly.
  9929. (prepareForNextPeer): Added virtual keyword explicitly.
  9930. (onAbort): Added virtual keyword explicitly.
  9931. * src/RequestSlot.cc
  9932. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9933. * src/BtPieceMessage.cc
  9934. (doReceivedAction): Added a debug log of piece's bitfield.
  9935. * src/Piece.h
  9936. (getBitfieldLength): New function.
  9937. * src/ByteArrayDiskWriter.cc
  9938. (clear): Added buf = 0 to avoid double free corruption.
  9939. * src/FileAllocator.cc
  9940. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9941. Added cp.reset().
  9942. * src/BitfieldMan.h
  9943. (operator=): Rewritten.
  9944. * src/BitfieldMan.cc
  9945. (BitfieldMan): Initialized bitfield, useBitfield.
  9946. * src/PeerConnection.cc
  9947. (receiveMessage): Added a call to socket->readable() after getting
  9948. message length to avoid possible EOF.
  9949. * src/Util.cc
  9950. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9951. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. To add an ability to pre-allocate file space:
  9953. * src/DirectDiskAdaptor.h: Rewritten.
  9954. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9955. * src/MultiDiskAdaptor.h: Rewritten.
  9956. * src/DefaultPieceStorage.cc
  9957. (MultiDiskWriter.h): Removed include.
  9958. (PreAllocationDiskWriter.h): Removed include.
  9959. (FileAllocationMonitor.h): New include.
  9960. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9961. (initStorage): Rewritten.
  9962. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9963. * src/FileAllocator.h: New class.
  9964. * src/FileAllocator.cc: New class.
  9965. * src/FileAllocationMonitor.h: New class.
  9966. * src/FileAllocationMonitor.cc: New class.
  9967. * src/ConsoleFileAllocationMonitor.h: New class.
  9968. * src/ConsoleFileAllocationMonitor.cc: New class.
  9969. * src/AbstractSingleDiskAdaptor.h: New class.
  9970. * src/AbstractSingleDiskAdaptor.cc: New class.
  9971. * src/DiskAdaptor.h
  9972. (Directory.h): Removed include.
  9973. (DiskWriter.h): Removed include.
  9974. (FileEntry.h): Removed include.
  9975. (diskWriter): Removed.
  9976. (DiskAdaptor): Removed diskWriter.
  9977. (openFile): Made pure virtual.
  9978. (closeFile): Made pure virtual.
  9979. (openExistingFile): Made pure virtual.
  9980. (initAndOpenFile): Made pure virtual.
  9981. (writeData): Made pure virtual.
  9982. (readData): Made pure virtual.
  9983. (sha1Sum): Made pure virtual.
  9984. (getStoreDir): Returns const reference of storeDir.
  9985. (DiskAdaptorHandle): New type definition.
  9986. * src/main.cc
  9987. (ConsoleFileAllocationMonitor.h): New include.
  9988. (showUsage): Added default value description of -s option.
  9989. Added the description of --file-allocation option.
  9990. (main): Set default value of --file-allocation option to 'none'.
  9991. Added --file-allocation command-line option.
  9992. Setup FileAllocationMonitorFactory.
  9993. * src/FtpInitiateConnectionCommand.cc
  9994. (executeInternal): Removed diskWriter related processing, which was
  9995. moved to FtpNegotiationCommand.cc.
  9996. * src/DirectDiskAdaptor.cc
  9997. (getFilePath): Made non-const.
  9998. * src/CopyDiskAdaptor.h
  9999. (DiskAdaptor.h): Removed include.
  10000. (DiskWriter.h): Removed include.
  10001. (AbstractSingleDiskAdaptor.h): New include.
  10002. (getFilePath): Made non-const. Added virtual keyword.
  10003. (CopyDiskAdaptor): Removed diskWriter.
  10004. (getTempFile): Returns const reference.
  10005. (CopyDiskAdaptorHandle): New type definition.
  10006. * src/ByteArrayDiskWriter.cc
  10007. (clear): Simplified.
  10008. (initAndOpenFile): Rewritten.
  10009. (openFile): Call initAndOpenFile()
  10010. * src/MultiDiskAdaptor.cc: Rewritten.
  10011. * src/DownloadEngineFactory.cc
  10012. (FileAllocator.h): New include.
  10013. (FileAllocationMonitor.h): New include.
  10014. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10015. create DefaultDiskWriter with file allocator.
  10016. * src/DiskWriter.h
  10017. (initAndOpenFile): Added totalLength argument.
  10018. (openFile): Added totalLength argument.
  10019. * src/prefs.h
  10020. (PREF_FILE_ALLOCATION): New definition.
  10021. (V_PREALLOC): New definition.
  10022. (V_NONE): New definition.
  10023. * src/HttpResponseCommand.cc
  10024. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10025. size.
  10026. * src/FtpNegotiateCommand.cc
  10027. (Util.h): New include.
  10028. (recvSize): Open file here.
  10029. * src/Util.h
  10030. (ullitos): New function.
  10031. * src/CopyDiskWriter.h
  10032. (getFilePath): Made non-const.
  10033. * src/DefaultDiskWriter.h
  10034. (Option.h): New include.
  10035. (totalLength): Removed.
  10036. (DefaultDiskWriter): Removed totalLength.
  10037. (initAndOpenFile): Added totalLength argument.
  10038. (DefaultDiskWriterHandle): New type definition.
  10039. (createNewDiskWriter): New function.
  10040. * src/Util.cc
  10041. (ullitos): New function.
  10042. * src/DefaultDiskWriter.cc
  10043. (message.h): New include.
  10044. (FileAllocator.h): New include.
  10045. (prefs.h): New include.
  10046. (Util.h): New include.
  10047. (DefaultDiskWriter): Removed totalLength.
  10048. (initAndOpenFile): Added file allocation.
  10049. (createNewDiskWriter): New function. Just for temporary solution.
  10050. It will be rewritten later.
  10051. * src/DiskAdaptor.cc
  10052. (DiskAdaptor): Removed diskWriter.
  10053. * src/AbstractDiskWriter.cc
  10054. (LogFactory.h): New include.
  10055. (AbstractDiskWriter): Added fileAllocator, logger.
  10056. (openFile): Added totalLength argument.
  10057. * src/AbstractDiskWriter.h
  10058. (FileAllocator.h): New include.
  10059. (Logger.h): New include.
  10060. (fileAllocator): New variable.
  10061. (logger): New variable.
  10062. (openFile): Added totalLength argument. Added virtual keyword
  10063. explicitly.
  10064. (openExistingFile): Added totalLength argument. Added virtual keyword
  10065. explicitly.
  10066. (closeFile): Added virtual keyword explicitly.
  10067. (sha1Sum): Added virtual keyword explicitly.
  10068. (writeData): Added virtual keyword explicitly.
  10069. (readData): Added virtual keyword explicitly.
  10070. (setFileAllocator): New function.
  10071. * src/DefaultPieceStorage.h
  10072. (FileAllocator.h): New include.
  10073. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10074. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10075. * src/FileProgressMonitor.h: New class.
  10076. To compile aria2 on PC-BSD:
  10077. * src/DefaultBtContext.cc
  10078. (libgen.h): New include.
  10079. To fix memory leak:
  10080. * src/Exception.h
  10081. (~Exception): Delete cause. Fixed memory leak.
  10082. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Rewritten a portion of bittorrent implementation:
  10084. * src/BtMessageValidator.h: New class.
  10085. * src/BtBitfieldMessageValidator.h: New class.
  10086. * src/BtHandshakeMessageValidator.h: New class.
  10087. * src/BtRequestMessageValidator.h: New class.
  10088. * src/BtSuggestPieceMessageValidator.h: New class.
  10089. * src/BtAllowedFastMessageValidator.h: New class.
  10090. * src/BtRejectMessageValidator.h: New class.
  10091. * src/BtCancelMessageValidator.h: New class.
  10092. * src/BtPieceMessageValidator.h: New class.
  10093. * src/BtHaveMessageValidator.h: New class.
  10094. * src/BtEventListener.h: New class.
  10095. * src/AbstractBtEventListener.h: New class.
  10096. * src/BtEvent.h: New class.
  10097. * src/BtChokingEvent.h: New class.
  10098. * src/BtChokedEvent.h: New class.
  10099. * src/BtCancelSendingPieceEvent.h: New class.
  10100. * src/BtAbortOutstandingRequestEvent.h: New class.
  10101. * src/Randomizer.h: New class.
  10102. * src/SimpleRandomizer.h: New class.
  10103. * src/BtMessage.h: New class.
  10104. * src/AbstractBtMessage.h: New class.
  10105. * src/SimpleBtMessage.h: New class.
  10106. * src/BtHaveMessage.h: New class.
  10107. * src/BtInterestedMessage.h: New class.
  10108. * src/BtAllowedFastMessage.h: New class.
  10109. * src/BtUnchokeMessage.h: New class.
  10110. * src/BtCancelMessage.h: New class.
  10111. * src/BtNotInterestedMessage.h: New class.
  10112. * src/BtChokeMessage.h: New class.
  10113. * src/BtHaveNoneMessage.h: New class.
  10114. * src/BtHandshakeMessage.h: New class.
  10115. * src/BtSuggestPieceMessage.h: New class.
  10116. * src/BtHaveMessage.h: New class.
  10117. * src/BtPieceMessage.h: New class.
  10118. * src/BtHaveAllMessage.h: New class.
  10119. * src/BtKeepAliveMessage.h: New class.
  10120. * src/BtPortMessage.h: New class.
  10121. * src/BtRejectMessage.h: New class.
  10122. * src/BtBitfieldMessage.h: New class.
  10123. * src/BtRequestMessage.h: New class.
  10124. * src/DefaultBtRequestFactory.h: New class.
  10125. * src/DefaultBtMessageReceiver.h: New class.
  10126. * src/BtInteractive.h: New class.
  10127. * src/BtMessageDispatcher.h: New class.
  10128. * src/DefaultBtMessageDispatcher.h: New class.
  10129. * src/DefaultBtInteractive.h: New class.
  10130. * src/BitfieldManFactory.h: New class.
  10131. * src/HandleRegistry.h: New class.
  10132. * src/BtMessageFactory.h: New class.
  10133. * src/BtMessageReceiver.h: New class.
  10134. * src/DefaultBtMessageFactory.h: New class.
  10135. * src/PeerObject.h: New class.
  10136. * src/BtRequestFactory.h: New class.
  10137. * src/SuggestPieceMessage.h: Removed.
  10138. * src/PortMessage.h: Removed.
  10139. * src/SuggestPieceMessage.h: Removed.
  10140. * src/KeepAliveMessage.h: Removed.
  10141. * src/HandshakeMessage.h: Removed.
  10142. * src/PeerInteraction.h: Removed.
  10143. * src/UnchokeMessage.h: Removed.
  10144. * src/PieceMessage.h: Removed.
  10145. * src/RequestMessage.h: Removed.
  10146. * src/InterestedMessage.h: Removed.
  10147. * src/HaveMessage.h: Removed.
  10148. * src/CancelMessage.h: Removed.
  10149. * src/RejectMessage.h: Removed.
  10150. * src/AllowedFastMessage.h: Removed.
  10151. * src/HaveNoneMessage.h: Removed.
  10152. * src/SimplePeerMessage.h: Removed.
  10153. * src/HaveAllMessage.h: Removed.
  10154. * src/BitfieldMessage.h: Removed.
  10155. * src/PeerMessageFactory.h: Removed.
  10156. * src/NotInterestedMessage.h: Removed.
  10157. * src/ChokeMessage.h: Removed.
  10158. * src/PeerMessage.h: Removed.
  10159. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. To know root cause of exception:
  10161. * src/Exception.h
  10162. (cause): New variable.
  10163. (Exception): Added a parameter.
  10164. (getMsg): Return const reference to msg.
  10165. (getCause): New function.
  10166. * src/DlRetryEx.h
  10167. (DlRetryEx): Added a parameter 'cause'.
  10168. Added an overloaded constructor.
  10169. (DlAbortEx): Added a parameter 'cause'.
  10170. Added an overloaded constructor.
  10171. * src/SimpleLogger.cc
  10172. (writeLog): Log nested exception messages recursively.
  10173. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10174. * src/DefaultBtProgressInfoFile.cc
  10175. (load): Fixed memory leak when the infohash doesn't match.
  10176. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. * src/DefaultPeerStorage.cc
  10178. (calculateStat): Simplified the code by combining 2 loops into 1.
  10179. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10181. for BitTorrent download:
  10182. * src/PeerAbstractCommand.cc
  10183. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10184. * src/main.cc:
  10185. (timeoutSpecified): Removed.
  10186. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10187. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10188. * src/TorrentRequestInfo.cc
  10189. (timeoutSpecified): Removed.
  10190. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10191. timeout value.
  10192. * src/prefs.h
  10193. (PREF_BT_TIMEOUT): New definition.
  10194. Delete unused variables:
  10195. * src/TorrentRequestInfo.cc
  10196. (requestInfo): Removed.
  10197. Move setSignalHander to Util::setGlobalSignalHandler:
  10198. * src/TorrentRequestInfo.cc:
  10199. setSignalHander -> Util::setGlobalSignalHandler
  10200. * src/main.cc
  10201. (setSignalHander): Removed.
  10202. (main): setSignalHander -> Util::setGlobalSignalHandler
  10203. * src/Util.h
  10204. (setGlobalSignalHandler): New function.
  10205. * src/Util.cc
  10206. (setGlobalSignalHandler): New function.
  10207. * src/UrlRequestInfo.cc:
  10208. setSignalHander -> Util::setGlobalSignalHandler
  10209. Reset peer status in order to exit gracefully:
  10210. * src/PeerAbstractCommand.cc
  10211. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10212. To fix the bug that causes the number of bytes uploaded is not saved
  10213. to .aria2 file:
  10214. * src/DefaultPeerStorage.h
  10215. (removedPeerSessionDownloadLength): New variable.
  10216. (removedPeerSessionUploadLength): New variable.
  10217. * src/DefaultPeerStorage.cc
  10218. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10219. removedPeerSessionUploadLength(0).
  10220. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10221. through all peers, and then add removedPeerSessionDownloadLength(
  10222. removedPeerSessionUploadLength) to it.
  10223. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10224. (to) the peer to removedPeerSessionDownloadLength
  10225. (removedPeerSessionUploadLength).
  10226. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. To add Metalink location option:
  10228. * src/MetalinkRequestInfo.cc
  10229. (execute): Call MetalinkEntry::setLocationPreference()
  10230. * src/main.cc
  10231. (showUsage): Added the help message for --metalink-location option.
  10232. (main): Added --metalink-location option.
  10233. * src/prefs.h
  10234. (PREF_METALINK_LOCATION): New definition.
  10235. * src/MetalinkEntry.cc
  10236. (AddLocationPreference): New function object.
  10237. (setLocationPreference): New function.
  10238. * src/Xml2MetalinkProcessor.cc
  10239. (getResource): Set location attribute to MetalinkResource
  10240. To show URLs to download
  10241. * src/UrlRequestInfo.h
  10242. (printUrls): New function.
  10243. To add multiple <file> Metalink support:
  10244. * src/MetalinkEntry.h
  10245. (MetalinkResources): Removed.
  10246. (setLocationPreference): New function.
  10247. (MetalinkEntryHandle): New type definition.
  10248. (MetalinkEntries): New type definition.
  10249. * src/Xml2MetalinkProcessor.h
  10250. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10251. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10252. (parseFile): Metalinker* -> MetalinkerHandle
  10253. * src/UrlRequestInfo.h
  10254. (execute): RequestInfo* -> RequestInfos
  10255. * src/MetalinkRequestInfo.cc
  10256. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10257. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10258. (execute): RequestInfo* -> RequestInfos
  10259. Added multiple <file> support. Print filename when it is queued.
  10260. * src/MetalinkRequestInfo.h
  10261. (execute): RequestInfo* -> RequestInfos
  10262. (getDownloadEngine): Removed.
  10263. * src/RequestInfo.h
  10264. (RequestInfoHandle): New type definition.
  10265. (RequestInfos): New type definition.
  10266. (execute): RequestInfo* -> RequestInfos
  10267. (getDownloadEngine): Removed.
  10268. * src/MetalinkResource.h
  10269. (MetalinkResourceHandle): New type definition.
  10270. (MetalinkResources): New type definition.
  10271. * src/MetalinkEntry.cc
  10272. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10273. because the element is now of type MetalinkResourceHandle.
  10274. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10275. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10276. (dropUnsupportedResource): Removed the deletion of the elements of
  10277. resources because the element is now of type MetalinkResourceHandle.
  10278. * src/Xml2MetalinkProcessor.cc
  10279. (parseFile): Metalinker* -> MetalinkerHandle
  10280. MetalinkEntry* -> MetalinkEntryHandle
  10281. Removed try-catch block.
  10282. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10283. MetalinkResource* -> MetalinkResourceHandle
  10284. Removed try-catch block.
  10285. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10286. Free result by using xmlXPathFreeObject()
  10287. * src/Metalinker.cc
  10288. (~Metalinker): Removed the deletion of entries.
  10289. MetalinkEntry* -> MetalinkEntryHandle
  10290. (queryEntry): Add multiple <file> Metalink support.
  10291. * src/Metalinker.h
  10292. (MetalinkEntries): Removed.
  10293. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10294. * src/MetalinkProcessor.h
  10295. (parseFile): Metalinker* -> MetalinkerHandle
  10296. Bug fixes:
  10297. * src/PeerChokeCommand.cc
  10298. (execute): cat01->cat02
  10299. * src/DefaultPieceStorage.cc
  10300. (DefaultPieceStorage): Added diskAdaptor(0)
  10301. * src/TrackerWatcherComand.cc:
  10302. (execute): Use btAnnounce->noMoreAnnounce()
  10303. to determin whether the function returns true or not.
  10304. * src/TrackerUpdateCommand.cc:
  10305. (execute): Use btAnnounce->noMoreAnnounce()
  10306. to determin whether the function returns true or not.
  10307. * src/FtpConnection.cc
  10308. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10309. This is the fix of the busy loop bug.
  10310. * src/DownloadCommand.cc
  10311. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10312. cached PeerStat.
  10313. The value of "name" entry in torrent file is now set by
  10314. *DiskAdaptor::setTopDir(...) methods.
  10315. * src/MultiDiskAdaptor.h
  10316. (topDir): New variable.
  10317. (setTopDir): New function.
  10318. (getTopDir): New function.
  10319. * src/MultiDiskAdaptor.cc
  10320. (getFilePath): Concat storDir, "/" and topDir.
  10321. (mkdir): Use getFilePath() to get the directory path for output.
  10322. * src/DefaultPieceStorage.cc
  10323. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10324. CopyDiskAdaptor.
  10325. * src/CopyDiskAdaptor.h
  10326. (topDir): New variable.
  10327. (setTopDir): New function.
  10328. (getTopDir): New function.
  10329. * src/CopyDiskAdaptor.cc
  10330. (fixFilename): Updated.
  10331. Misc
  10332. * src/UrlRequestInfo.h
  10333. (e): Removed.
  10334. (UrlRequestInfo): Removed e.
  10335. (getDownloadEngine): Removed.
  10336. * src/UrlRequestInfo.cc
  10337. (handler): Rewritten.
  10338. (printUrls): New function.
  10339. (execute): Call printUrls().
  10340. * src/HandshakeMessage.cc
  10341. (check): peerinteraction->getBtContext() -> btContext
  10342. * src/PeerInteraction.h
  10343. (getBtContext): Removed.
  10344. * src/TorrentRequestInfo.h
  10345. (execute): RequestInfo* -> RequestInfos
  10346. (getDownloadEngine): Removed.
  10347. * src/TorrentRequestInfo.cc
  10348. (haltRequested): Removed.
  10349. (btHaltRequested): New variable.
  10350. (torrentHandler): haltRequested -> btHaltRequested
  10351. (execute): RequestInfo* -> RequestInfos
  10352. * src/TorrentConsoleDownloadEngine.cc
  10353. (afterEachIteration): haltRequested -> btHaltRequested.
  10354. * src/ConsoleDownloadEngine.h
  10355. (initStatistics): Added virtual.
  10356. (calculateStatistics): Added virtual.
  10357. (onEndOfRun): Added virtual.
  10358. (afterEachIteration): Added virtual.
  10359. * src/ConsoleDownloadEngine.cc
  10360. (haltRequested): New variable.
  10361. (afterEachIteration): New function.
  10362. * src/main.cc
  10363. (requestInfo): Removed.
  10364. * src/SegmentMan.cc
  10365. (findSlowerSegmentEntry): Refactored.
  10366. * Release 0.9.0
  10367. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10369. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10370. * src/TorrentMan.h: Removed.
  10371. * src/TorrentMan.cc: Removed.
  10372. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10373. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10374. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10375. * src/PeerAbstractCommand.cc: Use btRuntime.
  10376. * src/BtContextAwareCommand.h: New class.
  10377. * src/FileEntry.h: Added accessor methods for following variables.
  10378. (path): Made private.
  10379. (length): Made private.
  10380. (offset): Made private.
  10381. (extracted): Made private.
  10382. (requested): Made private.
  10383. (FileEntries): New definition.
  10384. (FileEntryHandle): New definition.
  10385. * src/FileEntry.cc: New file.
  10386. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10387. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10388. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10389. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10390. * src/PieceStorage.h: New file.
  10391. * src/PeerInteractionCommand.h: Use btContext.
  10392. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10393. btRuntime.
  10394. * src/DefaultBtProgressInfoFile.h: New file.
  10395. * src/DefaultBtProgressInfoFile.cc: New file.
  10396. * src/File.cc
  10397. (Util.h): New include.
  10398. (mkdirs): New function.
  10399. * src/MultiDiskAdaptor.h
  10400. (mkdir): New function.
  10401. * src/PeerListProcessor.h
  10402. (Peers): Removed.
  10403. * src/PeerInteraction.h
  10404. (torrentMan): Removed.
  10405. (btContext): New variable.
  10406. (peerStorage): New variable.
  10407. (pieceStorage): New variable.
  10408. (btAnnounce): New variable.
  10409. (getTorrentMan): Removed.
  10410. (getBtContext): New function.
  10411. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10412. btAnnounce.
  10413. * src/HandshakeMessage.h
  10414. (TorrentMan.h): Removed.
  10415. * src/HandshakeMessage.cc: Use btContext.
  10416. * src/DefaultBtAnnounce.cc: New file.
  10417. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10418. * src/DefaultPieceStorage.cc: New file.
  10419. * src/DefaultBtContext.h: New file.
  10420. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10421. Use the accessor methods of FileEntry.
  10422. * src/CookieBox.cc: Updated to use Util::slice().
  10423. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10424. * src/common.h (SharedHandle.h): New include.
  10425. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10426. pieceStorage.
  10427. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10428. * src/DiskAdaptor.h
  10429. (topDir): Removed.
  10430. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10431. (setTopDir): Removed.
  10432. (getTopDir): Removed.
  10433. * src/BtContext.h: New file.
  10434. * src/DefaultPeerStorage.h: New file.
  10435. * src/PieceMessage.h (TorrentMan.h): Removed.
  10436. * src/RequestMessage.h (TorrentMan.h): Removed.
  10437. * src/TorrentDownloadEngine.h
  10438. (uploadLength): New variable.
  10439. (btContext): New variable.
  10440. (btRuntime): New variable.
  10441. (pieceStorage): New variable.
  10442. (peerStorage): New variable.
  10443. (btAnnounce): New variable.
  10444. (btProgressInfoFile): New variable.
  10445. (torrentMan): Removed.
  10446. (setBtContext): New function.
  10447. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10448. peerStorage, btAnnounce, btProgressInfoFile.
  10449. * src/Piece.h
  10450. (toString): New function.
  10451. (Pieces): New type definition.
  10452. * src/Peer.h
  10453. (active): New variable.
  10454. (Peer): Added active.
  10455. (activate): Set active to true.
  10456. (deactivate): Set active to false.
  10457. (isActive): New function.
  10458. (Peers): New type definition.
  10459. * src/DirectDiskAdaptor.cc
  10460. (getFilePath): Use the accessor methods of FileEntry.
  10461. * src/TorrentConsoleDownloadEngine.h
  10462. (afterEachIteration): New function.
  10463. * src/TorrentConsoleDownloadEngine.cc
  10464. (haltRequested): New variable.
  10465. (sendStatistics): Use pieceStorage, btRuntime.
  10466. (afterEachIteration): New function.
  10467. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10468. * src/Directry.h
  10469. (Directory): New function.
  10470. (DirectoryHandle): New type definition.
  10471. * src/BtProgressInfoFile.h: New file.
  10472. * src/RequestMessage.cc: Use pieceStorage.
  10473. * src/BtRuntime.h: New file.
  10474. * src/DefaultBtContext.cc: New file.
  10475. * src/BitfieldMan.h
  10476. (getCompletedLength): New function(private).
  10477. (getCompletedLength): New function.
  10478. (getFilteredCompletedLength): New function.
  10479. * src/BitfieldMan.h
  10480. (getCompletedLength): New function(private).
  10481. (getCompletedLength): New function.
  10482. (getFilteredCompletedLength): New function.
  10483. * src/MultiDiskAdaptor.cc
  10484. (mkdir): New function.
  10485. (openFile): Call mkdir().
  10486. (initAndOpenFile): Call mkdir().
  10487. * src/CancelMessage.h
  10488. (TorrentMan.h): Removed.
  10489. * src/RejectMessage.h
  10490. (TorrentMan.h): Removed.
  10491. * src/DownloadEngineFactory.cc
  10492. (DefaultPieceStorage.h): New include.
  10493. (DefaultPeerStorage.h): New include.
  10494. (DefaultBtAnnounce.h): New include.
  10495. (DefaultBtProgressInfoFile.h): New include.
  10496. (newTorrentConsoleEngine): Rewritten.
  10497. * src/ShareRatioSeedCriteria.h
  10498. (torrentMan): Removed.
  10499. (btContext): New variable.
  10500. (peerStorage): New variable.
  10501. (btRuntime): New variable.
  10502. (evaluate): Use btContext, btRuntime, peerStorage.
  10503. * src/AnnounceTier.h: New file.
  10504. * src/BtAnnounce.h: New file.
  10505. * src/BtRegistry.h: New file.
  10506. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10507. * src/PeerConnection.h (TorrentMan.h): Removed.
  10508. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10509. * src/Util.h
  10510. (slice): Added an argument.
  10511. * src/Util.cc
  10512. (slice): Added an argument to control whether trim is made or not.
  10513. * src/PeerStorage.h: New file.
  10514. * src/BtRegistry.cc: New file.
  10515. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10516. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10517. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10518. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10519. * src/TorrentRequestInfo.h
  10520. (e): Removed.
  10521. (showFileEntry): Added an argument.
  10522. (getDownloadEngine): Return 0.
  10523. * src/DefaultBtAnnounce.h: New file.
  10524. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10525. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10526. * src/PeerMessageFactory.h
  10527. (btContext): New variable.
  10528. (pieceStorage): New variable.
  10529. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10530. btAnnounce.
  10531. * src/DiskAdaptor.cc
  10532. (DiskAdaptor): Removed topDir.
  10533. (~DiskAdaptor): Removed topDir.
  10534. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10535. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10536. * src/File.h (mkdirs): New function.
  10537. * src/DefaultPeerStorage): New file.
  10538. * src/DownloadEngineFactory.h
  10539. (newTorrentConsoleEngine): Use btContext.
  10540. * src/BtContextAwareCommand.cc: New file.
  10541. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10542. * src/PeerMessage.h
  10543. (btContext): New variable.
  10544. (peerStorage): New variable.
  10545. (pieceStorage): New variable.
  10546. (setBtContext): New function.
  10547. * src/Directry.cc
  10548. (Directory): New function.
  10549. (createDir): Do nothing if name.size() == 0.
  10550. * src/AnnounceList.h
  10551. (AnnounceTier): Removed.
  10552. (AnnounceTiers): Removed.
  10553. * src/DefaultPieceStorage.h: New file.
  10554. * src/Piece.cc (toString): New function.
  10555. To fix typo:
  10556. * src/main.cc (showVersion): Fixed typo.
  10557. To fix compile warning:
  10558. * src/DelegatingPeerListProcessor.cc
  10559. (canHandle): Added "return false".
  10560. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10562. make the process of announce request testable.
  10563. * src/TrackerWatcherCommand.h
  10564. (TimeA2.h): Removed.
  10565. (interval): Removed.
  10566. (checkPoint): Removed.
  10567. (createRequestCommand): Added an argument 'url'.
  10568. (TrackerWatherCommand): Removed interval.
  10569. (createCommand): New function.
  10570. * src/DownloadEngineFactory.cc
  10571. (newTorrentConsoleEngine): Updated according to the changes in
  10572. TrackerWatherCommand.
  10573. * src/TorrentMan.cc
  10574. (DelegatingPeerListProcessor.h): New includes.
  10575. (TorrentMan): Added the initialization of announceInterval.
  10576. (isStoppedAnnounceReady): New function.
  10577. (isCompletedAnnounceReady): New function.
  10578. (isDefaultAnnounceReady): New function.
  10579. (isAnnounceReady): New function.
  10580. (getAnnounceUrl): New function.
  10581. (announceStart): New function.
  10582. (announceFailure): New function.
  10583. (announceSuccess): New function.
  10584. (isAllAnnounceFailed): New function.
  10585. (resetAnnounce): New function.
  10586. (processAnnounceResponse): New function.
  10587. (needMorePeerConnection): New function.
  10588. (noMoreAnnounce): New function.
  10589. * src/TrackerUpdateCommand.h
  10590. (getTrackerResponse): int->size_t
  10591. * src/TorrentMan.h
  10592. (isStoppedAnnounceReady): New function.
  10593. (isCompletedAnnounceReady): New function.
  10594. (isDefaultAnnounceReady): New function.
  10595. (announceInterval): New variable.
  10596. (isAnnounceReady): New function.
  10597. (getAnnounceUrl): New function.
  10598. (announceStart): New function.
  10599. (announceFailure): New function.
  10600. (announceSuccess): New function.
  10601. (isAllAnnounceFailed): New function.
  10602. (resetAnnounce): New function.
  10603. (processAnnounceResponse): New function.
  10604. (needMorePeerConnection): New function.
  10605. (noMoreAnnounce): New function.
  10606. * src/TrackerWatcherCommand.cc
  10607. (TrackerWatherCommand): Removed interval and checkPoint.
  10608. (execute): Rewritten.
  10609. (createCommand): New function.
  10610. (createRequestCommand): Rewritten.
  10611. * src/TrackerUpdateCommand.cc
  10612. (MetaFileUtil.h): Removed.
  10613. (DelegatingPeerListProcessor.h): Removed.
  10614. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10615. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Request -> RequestHandle:
  10617. * src/HttpResponseCommand.h: Request->RequestHandle
  10618. * src/AbstractCommand.cc: Request->RequestHandle
  10619. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10620. * src/HttpRequestCommand.cc: Request->RequestHandle
  10621. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10622. * src/AbstractCommand.h: Request->RequestHandle
  10623. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10624. * src/HttpResponseCommand.cc: Request->RequestHandle
  10625. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10626. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10627. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10628. * src/HttpConnection.h: Request->RequestHandle
  10629. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10630. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10631. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10632. * src/DownloadCommand.h: Request->RequestHandle
  10633. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10634. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10635. * src/HttpRequestCommand.h: Request->RequestHandle
  10636. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10637. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10638. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10639. * src/HttpDownloadCommand.h: Request->RequestHandle
  10640. * src/FtpConnection.cc: Request->RequestHandle
  10641. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10642. * src/UrlRequestInfo.cc: Request->RequestHandle
  10643. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10644. * src/HttpConnection.h: Request->RequestHandle
  10645. * src/DownloadCommand.cc: Request->RequestHandle
  10646. * src/FtpConnection.h: Request->RequestHandle
  10647. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10648. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10649. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10650. * src/Request.h
  10651. (SharedHandle.h): New include.
  10652. (RequestHandle): New type definition.
  10653. (Requests): Redefined.
  10654. To add MULTITRACKER support:
  10655. * src/TrackerWatcherCommand.h
  10656. (createRequestCommand): New function.
  10657. * src/DownloadEngineFactory.cc
  10658. (newTorrentConsoleEngine): Removed req.
  10659. * src/prefs.h
  10660. (PREF_TRACKER_MAX_TRIES): New definition.
  10661. * src/TorrentMan.cc
  10662. (TorrentMan): Removed req. Added trackerNumTry.
  10663. (~TorrentMan): Removed req.
  10664. (setupInternal1): Added announceList.
  10665. * src/TorrentRequestInfo.cc
  10666. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10667. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10668. * src/main.cc
  10669. (main): Added PREF_TRACKER_MAX_TRIES.
  10670. * src/TorrentMan.h
  10671. (Request.h): Removed.
  10672. (AnnounceList.h): New include.
  10673. (trackerNumTry): New variable.
  10674. (req): Removed.
  10675. (announceList): New variable.
  10676. * src/TrackerWatcherCommand.cc
  10677. (execute): Rewritten.
  10678. (createRequestCommand): New function.
  10679. * src/TrackerUpdateCommand.cc
  10680. (execute): Updated with the use of AnnounceList.
  10681. * src/AnnounceList.cc: New class.
  10682. * src/AnnounceList.h: New class.
  10683. To fix typo:
  10684. * src/prefs.h
  10685. (PREF_MAX_TRIES): max_try->max_tries
  10686. To not to decode "+" as space in URL decode:
  10687. * src/Util.cc
  10688. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10689. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. To add timeout to async name resolution:
  10691. * src/AbstractCommand.h
  10692. (nameResolveFinished): New function. This is not elegant way. It needs
  10693. to be more refined.
  10694. (nameResolverCheck): New variable.
  10695. * src/AbstractCommand.cc
  10696. (AbstractCommand): Added nameResolverCheck.
  10697. (execute): Added the check whether the name resolution has finished.
  10698. (setNameResolverCheck): Set nameResolverCheck to true.
  10699. (disableNameResolverCheck): Set nameResolverCheck to false.
  10700. (nameResolverFinished): New function.
  10701. * src/FtpInitiateConnectionCommand.h
  10702. (nameResolverFinished): New function.
  10703. * src/FtpInitiateConnectionCommand.cc
  10704. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10705. * src/HttpInitiateConnectionCommand.h
  10706. (nameResolverFinished): New function.
  10707. * src/HttpInitiateConnectionCommand.cc
  10708. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10709. * src/prefs.h
  10710. (PREF_DNS_TIMEOUT): New definition.
  10711. * src/main.cc
  10712. (main): Added PREF_DNS_TIMEOUT.
  10713. To add the support for a non-compact response from a tracker:
  10714. * src/PeerListProcessor.h: New class.
  10715. * src/DefaultPeerListProcessor.h: New class.
  10716. * src/DefaultPeerListProcessor.cc: New class.
  10717. * src/CompactPeerListProcessor.h: New class.
  10718. * src/CompactPeerListProcessor.cc: New class.
  10719. * src/DelegatingPeerListProcessor.h: New class.
  10720. * src/DelegatingPeerListProcessor.cc: New class.
  10721. * src/TorrentMan.cc
  10722. (addPeer): New function(overload).
  10723. (addPeer): Delete unused peers only when new peer is added.
  10724. * src/TorrentMan.h
  10725. (PeerListProcessor.h): Included.
  10726. (Peers): Removed.
  10727. (addPeer): New function(overload).
  10728. * src/TrackerUpdateCommand.cc
  10729. (netinet/in.h): Removed.
  10730. (DelegatingPeerListProcessor.h): Included.
  10731. (execute): Updated to use DelegatingPeerListProcessor.
  10732. To fix the memory leak in TorrentMan::peers:
  10733. * src/PeerAbstractCommand.cc
  10734. (onAbort): Added peer->resetStatus().
  10735. * src/Peer.h
  10736. (resetStatus): Made public.
  10737. To improve the precision of the speed calculation:
  10738. * src/SpeedCalc.h
  10739. (nextInterval): New variable.
  10740. * src/SpeedCalc.cc
  10741. (reset): Added nextInterval.
  10742. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10743. (changeSw): Set nextInterval to 15 seconds relative to the current
  10744. instant time.
  10745. * src/main.cc
  10746. (showVersion): Updated.
  10747. (showUsage): Updated.
  10748. * Release 0.8.1
  10749. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. * src/main.cc
  10751. (showUsage): Commented out --min-segment-size option.
  10752. (main): Commented out --min-segment-size option.
  10753. * Release 0.8.0
  10754. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. * src/*.{h,cc}:
  10756. Added an exception to the license which allows linking with OpenSSL.
  10757. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. * src/AbstractCommand.cc
  10759. (execute): Check whether the download has finished before checking
  10760. socket status.
  10761. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10762. Do not exit even if no segment is available.
  10763. * src/prefs.h
  10764. (PREF_STARTUP_IDLE_TIME): New definition.
  10765. * src/PeerInteractionCommand.cc
  10766. (executeInternal): Removed max speed limit. Because it performs bad.
  10767. (receiveMessages): Added max speed limit. This was better than above,
  10768. but still a little bit to be desired. Sometimes the download speed
  10769. became much faster than I specified.
  10770. * src/SpeedCalc.h
  10771. (start): New variable.
  10772. (accumulatedLength): New variable.
  10773. (getAvgSpeed): New function.
  10774. * src/SpeedCalc.cc
  10775. (reset): Added start, accumulatedLength.
  10776. (update): Added calculation of an average speed.
  10777. (getAvgSpeed): New function.
  10778. * src/DownloadCommand.h
  10779. (sw): Removed.
  10780. * src/main.cc
  10781. (main): Added PREF_STARTUP_IDLE_TIME.
  10782. * src/PeerStat.h
  10783. (STATUS): Added REQUEST_IDLE.
  10784. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10785. (getAvgDownloadSpeed): New function
  10786. (requestIdle): New function.
  10787. * src/SegmentMan.h
  10788. (SegmentEntryHandle): New type definition.
  10789. (SegmentEntries): Now holds SegmentEntryHandle.
  10790. (findSlowerSegmentEntry): New funtion.
  10791. * src/SegmentMan.cc
  10792. (save): Updated according to the changes in SegmentEntries.
  10793. (read): Updated according to the changes in SegmentEntries.
  10794. (FindSegmentEntryByIndex): Updated according to the changes in
  10795. SegmentEntries.
  10796. (FindSegmentEntryByCuid): Updated according to the changes in
  10797. SegmentEntries.
  10798. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10799. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10800. Renamed uitr as itr.
  10801. (findSlowerSegmentEntry): New function.
  10802. (getSegment): Updated according to the changes in SegmentEntries.
  10803. Added the feature that cancels the segment with slow server and fast
  10804. one takes it over.
  10805. (cancelSegment): Updated according to the changes in SegmentEntries.
  10806. (getDownloadLength): Updated according to the changes in
  10807. SegmentEntries.
  10808. (init): Assigned 0 to bitfield after deleting it.
  10809. * src/DownloadCommand.cc
  10810. (STARTUP_IDLE_TIME): Removed.
  10811. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10812. * src/PeerChokeCommand.cc
  10813. (optUnchokingPeer): Updated according to the changes in Peer.
  10814. (ResetDelta): Removed.
  10815. (UploadFaster): Updated according to the changes in Peer.
  10816. (DownloadFaster): Updated according to the changes in Peer.
  10817. (execute): I clarify the meaning of "upload" and "download" here.
  10818. "upload" means the transfer from localhost to remote host.
  10819. "download" means the transfer from remote host to localhost.
  10820. Based on this rule, I swapped orderByUploadRate and
  10821. orderByDownloadRate.
  10822. * src/PeerInteractionCommand.cc
  10823. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10824. (executeInternal): Removed the argument of
  10825. peerInteraction->sendMessages().
  10826. (receiveMessages): Rewritten download speed limit.
  10827. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10828. * src/HttpResponseCommand.cc
  10829. (handleDefaultEncoding): If file size is unknown in torrent request,
  10830. do not call segmentMan->initBitfield() here.
  10831. Disabled persistent connection feature in torrent request.
  10832. * src/UrlRequestInfo.h
  10833. (UrlRequestInfo): Removed const qualifier from option.
  10834. * src/TorrentMan.h
  10835. (TransferStat): New class.
  10836. (deltaDownloadLength): Removed.
  10837. (deltaUploadLength): Removed.
  10838. (addDeltaDownloadLength): Removed.
  10839. (getDeltaDownloadLength): Removed.
  10840. (resetDeltaDownloadLength): Removed.
  10841. (addDeltaUploadLength): Removed.
  10842. (getDeltaUploadLength): Removed.
  10843. (resetDeltaUploadLength): Removed.
  10844. (addActivePeer): Added peer->activate().
  10845. (deleteActivePeer): Added peer->deactivate().
  10846. (calculateStat): New function.
  10847. * src/TorrentMan.cc
  10848. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10849. (calculateStat): New function.
  10850. * src/PeerInteraction.h
  10851. (uploadLimit): Removed.
  10852. (option): New variable.
  10853. (setUploadLimit): Removed.
  10854. (getUploadSpeed): Removed.
  10855. (sendMessages): Removed the argument "currentUploadSpeed".
  10856. * src/PeerInteraction.cc
  10857. (prefs.h): Included.
  10858. (PeerInteraction): Removed uploadLimit. Added option.
  10859. (sendMessages): Rewritten upload speed limit.
  10860. (sendHandshake): Removed the argument from sendMessages().
  10861. (sendBitfield): Removed the argument from sendMessages().
  10862. * src/PeerAbstractCommand.cc
  10863. (execute): Commented out the portion of upload limit.
  10864. (onAbort): Removed peer->resetStatus().
  10865. * src/TorrentRequestInfo.cc
  10866. (timeoutSpecified): Declared extern.
  10867. (execute): Set timeout to 180 if timeout is not specified by.
  10868. command-line.
  10869. * src/PieceMessage.cc
  10870. (receivedAction): Added peer->updateDownloadLength().
  10871. Removed peer->addPeerUpload().
  10872. Removed torrentMan->addDeltaDownloadLength().
  10873. (send): Added peer->updateUploadLength().
  10874. Removed peer->addPeerDownload().
  10875. Removed torrentMan->addDeltaUploadLength().
  10876. * src/main.cc
  10877. (timeoutSpecified): New variable.
  10878. (main): Set timeoutSpecified to false.
  10879. If the command-line option "--upload-limit" is specified, then
  10880. timeoutSpecified is set to true. This option will remain in the next
  10881. release, but be deprecated in the future release.
  10882. * src/TorrentRequestInfo.h
  10883. (TorrentRequestInfo): Removed const qualifier from op.
  10884. * src/PeerStat.h
  10885. (uploadSpeed): New variable.
  10886. (PeerStat): Added default value to cuid.
  10887. (calculateUploadSpeed): New function.
  10888. (updateUploadLength): New function.
  10889. (getMaxUploadSpeed): New function.
  10890. (getAvgUploadSpeed): New function.
  10891. (reset): Added uploadSpeed. Set status to IDLE.
  10892. * src/TorrentDownloadEngine.h
  10893. (cp): Declared as Time.
  10894. (sessionDownloadLengthArray): Removed.
  10895. (sessionUploadLengthArray): Removed.
  10896. (currentCp): Removed.
  10897. (lastCalcStat): New variable
  10898. (lastElapsed): Removed.
  10899. (sessionDownloadLength): Removed.
  10900. (calculateStat): New function.
  10901. * src/TorrentDownloadEngine.cc
  10902. (initStatistics): Removed lastElapsed, cp[],
  10903. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10904. currentCp, sessionDownloadLength.
  10905. Added cp.reset() and lastCalcStat.reset().
  10906. (calculateSpeed): Changed the name of the argument.
  10907. (calculateStatistics): Rewritten.
  10908. (calculateStat): New function.
  10909. * src/Peer.h
  10910. (PeerStat.h): Included.
  10911. (peerUpload): Removed.
  10912. (peerDownload): Removed.
  10913. (peerStat): New variable.
  10914. (sessionUploadLength): New variable.
  10915. (sessionDownloadLength): New variable.
  10916. (deltaUpload): Removed.
  10917. (deltaDownload): Removed.
  10918. (resetStatus): Made private.
  10919. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10920. Removed peerUpload, peerDownload.
  10921. (updateUploadLength): New function.
  10922. (addDeltaUpload): Removed.
  10923. (updateDownloadLength): New function.
  10924. (resetDeltaUpload): Removed.
  10925. (getDeltaUpload): Removed.
  10926. (addDeltaDownload): Removed.
  10927. (calculateUploadSpeed): New function.
  10928. (resetDeltaDownload): Removed.
  10929. (getDeltaDownload): Removed.
  10930. (calculateDownloadSpeed): New function.
  10931. (getSessionUploadLength): New function.
  10932. (getSessionDownloadLength): New function.
  10933. (activate): New function.
  10934. (deactivate): New function.
  10935. (addPeerUpload): Removed.
  10936. (setPeerUpload): Removed.
  10937. (getPeerUpload): Removed.
  10938. (addPeerDownload): Removed.
  10939. (setPeerDownload): Removed.
  10940. (getPeerDownload): Removed.
  10941. * src/Peer.cc
  10942. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10943. * src/MetalinkRequestInfo.h
  10944. (MetalinkRequestInfo): Removed const qualifier from op.
  10945. * src/RequestInfo.h
  10946. (op): Removed const qualifier.
  10947. (RequestInfo): Removed const qualifier from op.
  10948. * src/prefs.h
  10949. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10950. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10951. * src/PeerInteractionCommand.cc
  10952. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10953. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10954. * src/PeerInteraction.cc
  10955. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10956. * src/main.cc
  10957. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10958. Added the description of "--max-download-limit" option.
  10959. Removed the description of "--upload-limit" option.
  10960. Added the description of "--max-upload-limit" option.
  10961. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10962. Added "--max-download-limit" option and "--max-upload-limit" option.
  10963. Added the warning message if "--upload-limit" option is used.
  10964. * src/DownloadCommand.cc
  10965. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10966. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. To rewrite segment download mechanism for HTTP/FTP download.
  10968. Use BitfieldMan to manage segment download.
  10969. * src/HttpResponseCommand.h
  10970. (executeInternal): Pass the reference of segment.
  10971. * src/AbstractCommand.cc
  10972. (prepareForRetry): Call segmentMan->cancelSegment here.
  10973. (onAbort): Call segmentMan->cancelSegment here.
  10974. * src/HttpDownloadCommand.cc
  10975. (prepareForNextSegment): New function.
  10976. * src/DownloadEngineFactory.cc
  10977. (newConsoleEngine): Removed splitter.
  10978. (newTorrentConsoleEngine): Removed splitter.
  10979. * src/Request.h
  10980. (segment): Renamed from seg.
  10981. * src/FtpInitiateConnectionCommand.h
  10982. (executeInternal): Pass the reference of segment.
  10983. * src/AbstractCommand.h
  10984. (executeInternal): Pass the reference of segment.
  10985. * src/pref.h
  10986. (PREF_SEGMENT_SIZE): New definition.
  10987. * src/HttpProxyRequestCommand.h
  10988. (executeInternal): Pass the reference of segment.
  10989. * src/HttpResponseCommand.cc
  10990. (checkResponse): Allowed status 206 when a request range starts 0.
  10991. (handleDefaultEncoding): Rewritten the code related to Segment.
  10992. (handleOtherEncoding): Rewritten the code related to Segment.
  10993. * src/SegmentMan.h
  10994. (SegmentEntry): New class.
  10995. (SegmentEntries): New type definition.
  10996. (bitfield): New variable.
  10997. (usedSegmentEntries): New variable.
  10998. (onNullBitfield): New function.
  10999. (checkoutSegment): New function.
  11000. (segments): Removed.
  11001. (splitter): Removed.
  11002. (unregisterId): Removed.
  11003. (getSegment): New function(overload)
  11004. (getDownloadedSize): Removed.
  11005. (cancelSegment): New function.
  11006. (completeSegment): New function.
  11007. (initBitfield): New function.
  11008. (hasSegment): New function.
  11009. (getDownloadLength): New function.
  11010. * src/BitfieldMan.h
  11011. (getStartIndex): New function.
  11012. (getEndIndex): New function.
  11013. (getMissingUnusedIndex): New function(overload).
  11014. (getSparseMissingUnusedIndex): New function.
  11015. * src/BitfieldMan.cc
  11016. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11017. (getMissingUnusedIndex): New function(overload).
  11018. (Range): New class.
  11019. (getStartIndex): New function.
  11020. (getEndIndex): New function.
  11021. (getSparseMissingUnusedIndex): New function.
  11022. (isBitSetInternal): Return false if the given index is less than 0.
  11023. * src/HttpInitiateConnectionCommand.h
  11024. (executeInternal): Pass the reference of segment.
  11025. * src/FtpNegotiateCommand.h
  11026. (executeInternal): Pass the reference of segment.
  11027. * src/FtpNegotiateCommand.cc
  11028. (recvSize): Initialize bitfield here.
  11029. * src/FtpTunnelResponseCommand.h
  11030. (executeInternal): Pass the reference of segment.
  11031. * src/HttpConnection.cc
  11032. (createRequest): Rewritten range header processing.
  11033. * src/DownloadCommand.h
  11034. (executeInternal): Pass the reference of segment.
  11035. (prepareForRetry): Removed.
  11036. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11037. function.
  11038. * src/main.cc
  11039. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11040. * src/SegmentMan.cc
  11041. (SegmentMan): Added bitfield. Removed splitter.
  11042. (~SegmentMan): Added bitfield. Removed splitter.
  11043. (unregisterId): Removed.
  11044. (getSegment): Rewritten.
  11045. (updateSegment): Rewritten.
  11046. (save): Rewritten.
  11047. (read): Rewritten.
  11048. (finished): Rewritten.
  11049. (getDownloadedSize): Removed.
  11050. (initBitfield): New function.
  11051. (FindSegmentEntryByIndex): New function object.
  11052. (FindSegmentEntryByCuid): New function object.
  11053. (checkoutSegment): New function.
  11054. (onNullBitfield): New function.
  11055. (getSegment): New function(overload).
  11056. (CancelSegment): New function object.
  11057. (cancelSegment): New function.
  11058. (completeSegment): New function.
  11059. (hasSegment): New function.
  11060. (getDownloadLength): New function.
  11061. * src/FtpInitiateConnectionCommand.cc
  11062. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11063. * src/Segment.h: Rewritten.
  11064. * src/Segment.cc (operator<<): New function.
  11065. * src/HttpDownloadCommand.h
  11066. (prepareForNextSegment): New function.
  11067. * src/Request.cc
  11068. (resetUrl): Made segment null.
  11069. * src/DownloadEngine.cc
  11070. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11071. * src/HttpProxyRequestCommand.h
  11072. (executeInternal): Pass the reference of segment.
  11073. * src/DownloadCommand.cc
  11074. (executeInternal): Rewritten the code related to Segment.
  11075. (prepareForRetry): Removed.
  11076. (prepareForNextSegment): Rewritten.
  11077. * src/FtpTunnelResponseCommand.h
  11078. (executeInternal): Pass the reference of segment.
  11079. To add HTTP 1.1 persistent connection support(experimental)
  11080. * src/HttpRequestCommand.cc
  11081. (executeInternal): Disable keep alive if it is disabled by
  11082. configuration.
  11083. * src/Request.h
  11084. (keepAlive): New variable.
  11085. (isKeepAlive): New function.
  11086. (setKeepAlive): New function.
  11087. * src/pref.h
  11088. (PREF_HTTP_KEEP_ALIVE): New definition.
  11089. * src/HttpResponseCommand.cc
  11090. (executeInternal): Check the remote server supports keep alive.
  11091. * src/HttpConnection.cc
  11092. (createRequest): Send "Connection: close" only if keep alive is
  11093. disabled.
  11094. * src/main.cc
  11095. (main):
  11096. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11097. To add max download speed limit:
  11098. * src/pref.h
  11099. (PREF_MAX_SPEED_LIMIT): New definition.
  11100. * src/PeerInteractionCommand.cc
  11101. (executeInternal): Added max download speed limit. Not tested yet.
  11102. * src/SegmentMan.h
  11103. (PeerStats): New type definition.
  11104. (peerStats): New variable.
  11105. (registerPeerStat): New function.
  11106. (FindPeerStat): New function object.
  11107. (getPeerStat): New function.
  11108. (calculateDownloadSpeed): New function.
  11109. * src/SpeedCalc.h: New class.
  11110. * src/SpeedCalc.cc: New class.
  11111. * src/main.cc
  11112. (main):
  11113. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11114. download speed is not restricted).
  11115. * src/PeerStat.h: New class.
  11116. * src/SegmentMan.cc
  11117. (registerPeerStat): New function.
  11118. (calculateDownloadSpeed): New function.
  11119. * src/DownloadCommand.cc
  11120. (STARTUP_IDLE_TIME): New definition.
  11121. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11122. downloadStart.
  11123. (~DownloadCommand): Call peerStat->downloadStop.
  11124. (executeInternal): Added download speed limitter. Rewritten lowest
  11125. speed limitter.
  11126. * src/HttpConnection.cc
  11127. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11128. * src/AbstractCommand.cc
  11129. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11130. Added hostname to the error message.
  11131. * src/ConsoleDownloadEngine.cc
  11132. (calculateStatistics): Initialize psize with dlSize.
  11133. * src/PieceMessage.cc
  11134. (receivedAction): Do not call peerInteraction->abortPiece here.
  11135. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11136. * src/BitfieldMan.h
  11137. (clearAllUseBit): New function.
  11138. (setAllUseBit): New function.
  11139. * src/BitfieldMan.cc
  11140. (clearAllBit): Do not clear useBitfield here.
  11141. (clearAllUseBit): New function.
  11142. (setAllUseBit): New function.
  11143. * src/Piece.cc
  11144. (clearAllBlock): Call bitfield->clearAllUseBit().
  11145. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. To make filename URL-decoded:
  11147. * src/HttpResponseCommand.h: Updated doc.
  11148. * src/HttpResponseCommand.cc
  11149. (determinFilename): Made filename URL-decoded.
  11150. * src/FtpInitiateConnectionCommand.cc
  11151. (executeInternal): Made filename URL-decoded.
  11152. * src/Util.h (urldecode): New function.
  11153. * src/Util.cc (urldecode): New function.
  11154. To fix a bug that caused assertion failure in ares_strerror:
  11155. * src/NameResolver.cc (callback): Fixed the bug.
  11156. * Release 0.7.3
  11157. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. To add --seed-time and --seed-ratio command-line option:
  11159. * src/Option.h (getAsDouble): New function.
  11160. * src/Option.cc (getAsDouble): New function.
  11161. * src/SeedCheckCommand.h: New class.
  11162. * src/SeedCheckCommand.cc: New class.
  11163. * src/DownloadEngineFactory.cc
  11164. (SeedCheckCommand.h): Included.
  11165. (UnionSeedCriteria.h): Included.
  11166. (TimeSeedCriteria.h): Included.
  11167. (ShareRatioSeedCriteria.h): Included.
  11168. (newTorrentConsoleEngine): Added the processing of seed option.
  11169. * src/SeedCriteria.h: New class.
  11170. * src/ShareRatioSeedCriteria.h: New class.
  11171. * src/TimeSeedCriteria.h: New class.
  11172. * src/UnionSeedCriteria.h: New class.
  11173. * src/prefs.h
  11174. (PREF_SEED_TIME): New definition.
  11175. (PREF_SEED_RATIO): New definition.
  11176. * src/main.cc
  11177. (showUsage): Added --seed-time and --seed-ratio option.
  11178. (main): Added --seed-time and --seed-ratio option.
  11179. Made default log file name "/dev/null".
  11180. * src/SharedHandle.h
  11181. (SharedHandle): Copy constructor. Made it assignable from the
  11182. SharedHandle of the subclasses.
  11183. (operator=): Made it assignable from the SharedHandle of the
  11184. subclasses.
  11185. (getRefCount): New function.
  11186. To add notice log level and the switch to write log to stdout. This
  11187. switch is configurable per log level.
  11188. * src/Logger.h
  11189. (notice): New function.
  11190. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11191. constant.
  11192. * src/LogFactory.cc
  11193. (getInstance): The use of NullLogger was removed. A log message with
  11194. notice log level was made written to stdout along with log file.
  11195. * src/NullLogger.h
  11196. (notice): New function.
  11197. * src/SimpleLogger.h
  11198. (writeHeader): Added the 'file' argument.
  11199. (writeLog): Added the 'file' argument.
  11200. (writeFile): New function.
  11201. (stdoutField): New variable.
  11202. (SimpleLogger): Removed the default constructor.
  11203. (SimpleLogger): Made the default value of logfile 0.
  11204. (debug): Added 'virtual' keyword.
  11205. (info): Added 'virtual' keyword.
  11206. (warn): Added 'virtual' keyword.
  11207. (error): Added 'virtual' keyword.
  11208. (notice): New function.
  11209. (setStdout): New function.
  11210. * src/SimpleLogger.cc
  11211. (WRITE_LOG): Replaced writeLog with writeFile.
  11212. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11213. (SimpleLogger): Removed the default constructor.
  11214. (setStdout): New function.
  11215. (writeLog): Added the handling of NOTICE log level.
  11216. (writeFile): New function.
  11217. (notice): New function.
  11218. * src/TorrentMan.h: Updated doc.
  11219. * src/BitfieldMan.h: Updated doc.
  11220. * src/TrackerWatcherCommand.cc
  11221. (execute): Return true if error occurred in the request to the tracker
  11222. and halt is requested.
  11223. * src/TrackerUpdateCommand.cc
  11224. (execute): Return true if error occurred in the request to the tracker
  11225. and halt is requested.
  11226. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11227. DownloadEngine:
  11228. * src/TorrentConsoleDownloadEngine.h
  11229. (onSelectiveDownloadingCompletes): Removed.
  11230. * src/TorrentConsoleDownloadEngine.cc
  11231. (onSelectiveDownloadingCompletes): Removed.
  11232. * src/TorrentDownloadEngine.h
  11233. (onEndOfRun): Added 'virtual' keyword.
  11234. (afterEachIteration): Removed.
  11235. (onSelectiveDownloadingCompletes): Removed.
  11236. * src/TorrentDownloadEngine.cc
  11237. (onEndOfRun): Removed filenameFixed.
  11238. (afterEachIteration): Removed.
  11239. * src/TorrentMan.cc
  11240. (completePiece): Call onDownloadComplete here.
  11241. (onDownloadComplete): Added 2 log messages.
  11242. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11243. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11244. * src/NameResolver.h: Added the prototype declaration of callback().
  11245. To support c-ares library:
  11246. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11247. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11248. * src/FtpInitiateConnectionCommand.h:
  11249. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11250. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11251. * src/HttpInitiateConnectionCommand.h:
  11252. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11253. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11254. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11255. #1542285 by tizianomueller)
  11256. * src/HttpInitiateConnectionCommand.cc:
  11257. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11258. * src/FtpInitiateConnectionCommand.cc:
  11259. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11260. * src/DownloadEngine.h:
  11261. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11262. * src/DownloadEngine.cc:
  11263. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11264. To fix the bug that causes compilation failure with metalink-support
  11265. disabled(bug#1543587):
  11266. * src/main.cc: Fixed with the patch by tizianomueller.
  11267. * Release 0.7.2
  11268. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. * src/main.cc
  11270. (main): Added a message to inform users that aria2 is starting to
  11271. verify checksum.
  11272. * src/RequestInfo.cc
  11273. (printDownloadAbortMessage): Added a message to inform users that
  11274. transfer can be resumed.
  11275. * src/FeatureConfig.cc
  11276. (FEATURE_ASYNC_DNS): New definition.
  11277. (FeatureConfig): Added aysnc DNS entry.
  11278. To replace CommandUuid with Command* in SocketEntry and
  11279. NameResolverEntry:
  11280. * src/DownloadEngine.h
  11281. (CommandUuids): Removed.
  11282. (SocketEntry::commandUuid): Removed.
  11283. (SocketEntry::command): New variable.
  11284. (SocketEntry::SocketEntry): Updated.
  11285. (SocketEntry::operator==): Updated.
  11286. (NameResolverEntry::commandUuid): Removed.
  11287. (NameResolverEntry::command): New variable.
  11288. (NameResolverEntry::NameResolverEntry): Updated.
  11289. (NameResolverEntry::operator==): Updated.
  11290. (waitData): Changed the argument type.
  11291. (addSocketForReadCheck): Changed the argument type.
  11292. (deleteSocketForReadCheck): Changed the argument type.
  11293. (addSocketForWriteCheck): Changed the argument type.
  11294. (deleteSocketForWriteCheck): Changed the argument type.
  11295. (addNameResolverCheck): Changed the argument type.
  11296. (deleteNameResolverCheck): Changed the argument type.
  11297. * src/DownloadEngine.cc
  11298. (FindCommand): Removed.
  11299. (run): Removed activeUuid. Added activeCommands instead.
  11300. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11301. (AccumulateActiveCommand): New function object.
  11302. (waitData): Use AccumulateActiveCommand.
  11303. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11304. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11305. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11306. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11307. (addNameResolverCheck): Use Command instead of CommandUuid.
  11308. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11309. * src/AbstractCommand.cc
  11310. (disableReadCheckSocket): Updated according to the changes in
  11311. DownloadEngine.
  11312. (setReadCheckSocket): Updated according to the changes in
  11313. DownloadEngine.
  11314. (disableWriteCheckSocket): Updated according to the changes in
  11315. DownloadEngine.
  11316. (setWriteCheckSocket): Updated according to the changes in
  11317. DownloadEngine.
  11318. (setNameResolverCheck): Updated according to the changes in
  11319. DownloadEngine.
  11320. (disableNameResolverCheck): Updated according to the changes in
  11321. DownloadEngine.
  11322. * src/AbstractCommand.cc
  11323. (disableReadCheckSocket): Updated according to the changes in
  11324. DownloadEngine.
  11325. (setReadCheckSocket): Updated according to the changes in
  11326. DownloadEngine.
  11327. (disableWriteCheckSocket): Updated according to the changes in
  11328. DownloadEngine.
  11329. (setWriteCheckSocket): Updated according to the changes in
  11330. DownloadEngine.
  11331. * release 0.7.1
  11332. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. To handle the case where some BitTorrent tracker requires all letters
  11334. except for [A-Za-z0-9] is URL encoded.
  11335. * src/Util.h
  11336. (torrentUrlencode): New function.
  11337. * src/Util.cc
  11338. (ctype.h): Included.
  11339. (torrentUrlencode): New function.
  11340. * src/TrackerWatcherCommand.cc
  11341. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11342. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. To add asynchronous DNS support(libares):
  11344. * src/AbstractCommand.h
  11345. (setNameResolverCheck): New function.
  11346. (disableNameResolverCheck): New function
  11347. (resolveHostname): New function.
  11348. * src/AbstractCommand.cc
  11349. (setNameResolverCheck): New function.
  11350. (disableNameResolverCheck): New function
  11351. (resolveHostname): New function.
  11352. * src/FtpInitiateConnectionCommand.h
  11353. (nameResolver): New function.
  11354. * src/FtpInitiateConnectionCommand.cc
  11355. (Util.h): Included.
  11356. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11357. disableWriteCheckSocket.
  11358. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11359. (executeInternal): Added async DNS support.
  11360. * src/HttpInitiateConnectionCommand.h
  11361. (nameResolver): New function.
  11362. * src/HttpInitiateConnectionCommand.cc
  11363. (DlRetryEx.h): Included.
  11364. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11365. disableWriteCheckSocket.
  11366. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11367. (executeInternal): Added async DNS support.
  11368. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11369. by extern "C" declaration.
  11370. * src/NameResolver.cc: New class.
  11371. * src/Util.h:
  11372. (isNumberAndDotsNotation): New function
  11373. * src/Util.cc
  11374. (isNumberAndDotsNotation): New function.
  11375. * src/DownloadEngine.h
  11376. (NameResolver.h): Included.
  11377. (NameResolverEntry): New class.
  11378. (NameResolverEntries): New type definition.
  11379. (addNameResolverCheck): New function.
  11380. (deleteNameResolverCheck): New function.
  11381. * src/DownloadEngine.cc
  11382. (run): Initialize cp with 0.
  11383. (SetDescriptor::operator()): Added for NameResolverEntry.
  11384. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11385. (waitData): Check nameResolver entries.
  11386. (updateFdSet): Update fds in nameResolver entries.
  11387. (addNameResolverCheck): New function.
  11388. (deleteNameResolverCheck): new function.
  11389. * src/PeerInteractionCommand.cc
  11390. (executeInternal): Fixed wrong socket handling.
  11391. * src/main.cc
  11392. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11393. * src/Util.cc
  11394. (fileChecksum): Removed the call to ctx.digestReset().
  11395. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. * po/ru.po: Azamat sent me Russian translation.
  11397. * src/FtpNegotiateCommand.cc
  11398. (recvGreeting): Call disableWriteCheckSocket just after
  11399. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11400. (recvRetr): Recognized status code 125 as a acceptable response code.
  11401. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11402. case-insesitive filesystem(BUG#1531057).
  11403. * src/Time.h: Renamed as TimeA2.h.
  11404. * src/Time.cc: Renamed as TimeA2.cc.
  11405. * src/TimeA2.h: New class.
  11406. * src/TimeA2.cc: New class.
  11407. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11408. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11409. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11410. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11411. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11412. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11413. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11414. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11415. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11416. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11417. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11418. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11419. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11420. * release 0.7.0
  11421. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11422. * src/PeerChokeCommand.h
  11423. (PeerChokeCommand): Rearranged the arguments.
  11424. * src/PeerChokeCommand.cc
  11425. (PeerChokeCommand): Rearranged the arguments.
  11426. * src/MetalinkEntry.h
  11427. (Checksum.h): Included.
  11428. (md5): Removed.
  11429. (sha1): Removed.
  11430. (checksum): New variable.
  11431. (operator=): Updated.
  11432. (check): Removed.
  11433. * src/prefs.h
  11434. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11435. (PREF_FOLLOW_TORRENT): New definition.
  11436. (PREF_SELECT_FILE): New definition.
  11437. (PREF_FOLLOW_METALINK): New definition.
  11438. * src/MetalinkResource.h
  11439. (TYPE_HTTPS): Added to enum TYPE.
  11440. * src/TorrentMan.cc
  11441. (~TorrentMan): Rewritten.
  11442. * src/MultiDiskWriter.cc
  11443. (MultiDiskAdaptor): Updated according to the changes in
  11444. MessageDigestContext.
  11445. (~MultiDiskAdaptor): Updated according to the changes in
  11446. MessageDigestContext.
  11447. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11448. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11449. * src/Util.h
  11450. (fileChecksum): Updated according to the changes in
  11451. MessageDigestContext.
  11452. * src/Util.cc
  11453. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11454. (fileChecksum): Updated according to the changes in
  11455. MessageDigestContext.
  11456. * src/messageDigest.h: Rewritten.
  11457. * src/MetalinkEntry.cc
  11458. (check): Removed.
  11459. (Supported): Updated.
  11460. (dropUnsupportedResource): Fixed a memory leak.
  11461. * src/ShaVisitor.cc
  11462. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11463. (~ShaVisitor): Updated according to the changes in
  11464. MessageDigestContext.
  11465. (visit): Updated according to the changes in MessageDigestContext.
  11466. * src/main.cc
  11467. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11468. command-line option added.
  11469. * src/DownloadEngine.h
  11470. (SocketEntry): New class.
  11471. (SocketEntries): New definition.
  11472. (PairFind): Removed.
  11473. (SockCmdMap): Removed.
  11474. * src/DownloadEngine.cc
  11475. (DownloadEngine): Rewritten.
  11476. (~DownloadEngine): Rewritten.
  11477. (run): Renamed activeCommandUuids as activeUuids.
  11478. (SetDescriptor): Rewritten.
  11479. (AccumulateActiveCommandUuid): Removed.
  11480. (AccumulateActiveUuid): New function object.
  11481. (waitData): Rewritten.
  11482. (updateFdSet): Rewritten.
  11483. (addSocket): Rewritten.
  11484. (deleteSocket): Rewritten.
  11485. (addSocketForReadCheck): Rewritten.
  11486. (deleteSocketForReadCheck): Rewritten.
  11487. (addSocketForWriteCheck): Rewritten.
  11488. (deleteSocketForWriteCheck): Rewritten.
  11489. * src/Xml2MetalinkProcessor.cc
  11490. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11491. * src/DownloadCommand.cc
  11492. (executeInternal): Added the check routine for lowest speed limit.
  11493. * src/AbstractDiskWriter.cc
  11494. (AbstractDiskWriter): Updated according to the changes in
  11495. MessageDigestContext.
  11496. (~AbstractDiskWriter): Updated according to the changes in
  11497. MessageDigestContext.
  11498. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11499. * src/RequestInfo.h: New class.
  11500. * src/UrlRequestInfo.h: New class.
  11501. * src/UrlRequestInfo.cc: New class.
  11502. * src/TorrentRequestInfo.h: New class.
  11503. * src/TorrentRequestInfo.cc: New class.
  11504. * src/MetalinkRequestInfo.h: New class.
  11505. * src/MetalinkRequestInfo.cc: New class.
  11506. * src/Checksum.h: New class.
  11507. * src/DownloadEngineFactory.h: New class.
  11508. * src/DownloadEngineFactory.cc: New class.
  11509. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. * src/Option.h
  11511. (getAsBool): New function.
  11512. * src/Option.cc
  11513. (prefs.h): Included.
  11514. (defined): 0-length value is now recognized as undefined.
  11515. (getAsInt): Rewritten.
  11516. (getAsLLInt): Rewritten.
  11517. (getAsBool): New function.
  11518. * src/FeatureConfig.h: Rewritten.
  11519. * src/FeatureConfig.cc: Rewritten.
  11520. * src/prefs.h
  11521. (PREF_STDOUT_LOG): New definition.
  11522. (PREF_LOG): New definition.
  11523. (PREF_DIR): New definition.
  11524. (PREF_OUT): New definition.
  11525. (PREF_SPLIT): New definition.
  11526. (PREF_DAEMON): New definition.
  11527. (PREF_REFERER): New definition.
  11528. (PREF_TORRENT_FILE): New definition.
  11529. (PREF_LISTEN_PORT): New definition.
  11530. (PREF_METALINK_FILE): New definition.
  11531. (PREF_METALINK_VERSION): New definition.
  11532. (PREF_METALINK_LANGUAGE): New definition.
  11533. (PREF_METALINK_OS): New definition.
  11534. (PREF_METALINK_SERVERS): New definition.
  11535. * src/main.cc
  11536. (main): Following command-line parameters are now put into Option
  11537. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11538. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11539. metalinkLanguage, metalinkOs, metalinkServers
  11540. To fix the bug that aria2 can not handle http response header properly.
  11541. * src/HttpHeader.cc
  11542. (put): Made name lowercased.
  11543. (defined): Made name lowercased.
  11544. (getFirst): Made name lowercased.
  11545. (get): Made name lowercased.
  11546. (getFirstAsInt): Rewritten.
  11547. (getFirstAsLLInt): Rewritten.
  11548. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. * src/TorrentMan.h:
  11550. (advertisePiece): Updated doc.
  11551. (getAdvertisedPieceIndexes): Updated doc.
  11552. (removeAdvertisedPiece); New function.
  11553. * src/TorrentMan.cc
  11554. (FindElapsedHave): New function object.
  11555. (removeAdvertisedPiece): New function.
  11556. * src/HaveEraseCommand.h: New class.
  11557. * src/HaveEraseCommand.cc: New class.
  11558. * src/FeatureConfig.h: New class.
  11559. * src/FeatureConfig.cc: New class.
  11560. * src/Request.h
  11561. (defaultPorts): Removed.
  11562. * src/Request.cc
  11563. (FeatureConfig.h): Included.
  11564. (Request): Removed the statements related to defaultPorts.
  11565. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11566. A default port number is now retrieved from FeatureConfig.
  11567. * src/main.cc
  11568. (HaveEraseCommand.h): Included.
  11569. (showVersion): Added the output of feature list.
  11570. (main): Added HaveEraseCommand to command queue in BitTorrent
  11571. downloading.
  11572. * src/PeerInteractionCommand.h
  11573. (chokeCheckPoint): Commented out.
  11574. (periodicExecPoint): New variable.
  11575. * src/PeerInteractionCommand.cc
  11576. (executeInternal): Following methods are now called in at least every
  11577. 0.5 seconds to reduce CPU usage:
  11578. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11579. checkHave(), sendKeepAlive().
  11580. (checkLongTimePeerChoking): Commented out.
  11581. * src/BitfieldMan.h
  11582. (getNthBitIndex): Changed the method signature.
  11583. (getMissingIndexRandomly): Changed the method signature.
  11584. * src/BitfieldMan.cc
  11585. (getNthBitIndex): Rewritten
  11586. (getMissingIndexRandomly): Rewritten.
  11587. (hasMissingPiece): Rewritten.
  11588. (getMissingIndex): Refactored.
  11589. (getMissingUnusedIndex); Refactored.
  11590. (getMissingIndex): Refactored.
  11591. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. * src/PeerMessage.h
  11593. (Piece.h): Included.
  11594. (SharedHandle.h): Included.
  11595. (invalidate): New variable.
  11596. (uploading): New variable.
  11597. (isInvalidate): New function.
  11598. (isUploading): New function.
  11599. (onPush): New function.
  11600. (onChoked): New function.
  11601. (onCanceled): New function.
  11602. (onAbortPiece): New function.
  11603. (PeerMessageHandle): New type definition.
  11604. * src/PeerMessage.cc
  11605. (PeerMessage): Added the initialization for invalidate and uploading.
  11606. * src/CancelMessage.h
  11607. (CancelMessage): Rewritten.
  11608. * src/RejectMessage.h
  11609. (RejectMessage): Rewritten.
  11610. * src/Metalinker.h
  11611. (operator=): Defined.
  11612. * src/MetaEntry.h
  11613. (operator=): Defined.
  11614. * src/MetalinkResource.h
  11615. (operator=): Defined.
  11616. * src/AllowedFastMessage.h
  11617. (AllowedFastMessage): Rewritten.
  11618. * src/HandshakeMessage.h
  11619. (HandshakeMessage): New function(overload).
  11620. * src/HandshakeMessage.cc
  11621. (HandshakeMessage): Rewritten.
  11622. (init): New function.
  11623. * src/HaveMessage.h
  11624. (HaveMessage): Rewritten.
  11625. * src/Time.h
  11626. (operator=): Defined the function body here.
  11627. * src/Time.cc
  11628. (operator=): Removed.
  11629. * src/SocketCore.h
  11630. (operator==): Defined here.
  11631. (operator!=): Defined here.
  11632. (operator<): Defined here.
  11633. * src/SocketCore.cc
  11634. (operator==): Removed.
  11635. (operator<): Removed.
  11636. * src/BitfieldMan.h
  11637. (operator=): Defined the function body here.
  11638. * src/BitfieldMan.cc
  11639. (operator=): Removed.
  11640. * src/TorrentMan.h
  11641. (deleteErrorPeer): Removed.
  11642. (deleteUnusedPeer); New function.
  11643. * src/TorrentMan.cc
  11644. (addPeer): Call deleteUnusedPeer.
  11645. (deleteErrorPeer): Removed.
  11646. (deleteUnusedPeer): New function.
  11647. * src/PeerAbstractCommand.h
  11648. (setNoCheck): New function.
  11649. (noCheck): New variable.
  11650. * src/PeerAbstractCommand.cc
  11651. (PeerAbstractCommand): Added the initialization of noCheck.
  11652. (execute): Added a check for noCheck.
  11653. (setNoCheck): New function.
  11654. * src/Util.h
  11655. (stdio.h): Included.
  11656. * src/Util.cc
  11657. (unistd.h): Included.
  11658. * src/DefaultDiskWriter.cc
  11659. (unistd.h): Included.
  11660. * src/Peer.h
  11661. (operator==): Defined the function body here.
  11662. (operator!=): Defined the function body here.
  11663. * src/Peer.cc
  11664. (operator==): Removed.
  11665. (operator!=): Removed.
  11666. * src/Piece.h
  11667. (Piece): Defined the function body here(copy constructor).
  11668. (operator=): Defined the function body here.
  11669. (operator==): Defined the function body here.
  11670. * src/Piece.cc
  11671. (Piece): Removed(copy constructor).
  11672. (operator=): Removed.
  11673. (operator==): Removed.
  11674. * src/PeerMessageUtil.h
  11675. (ChokeMessage.h): Removed.
  11676. (UnchokeMessage.h): Removed.
  11677. (InterestedMessage.h): Removed.
  11678. (NotInterestedMessage.h): Removed.
  11679. (HaveMessage.h): Removed.
  11680. (BitfieldMessage.h): Removed.
  11681. (RequestMessage.h): Removed.
  11682. (CancelMessage.h): Removed.
  11683. (PieceMessage.h): Removed.
  11684. (HandshakeMessage.h): Removed.
  11685. (KeepAliveMessage.h): Removed.
  11686. (PortMessage.h): Removed.
  11687. (HaveAllMessage.h): Removed.
  11688. (HaveNoneMessage.h): Removed.
  11689. (PeerConnection.h): Removed.
  11690. (HandshakeMessage.h): Included.
  11691. * src/BitfieldMessage.h
  11692. (init): New function.
  11693. (BitfieldMessage): Rewritten.
  11694. (BitfieldMessage): New function(overload).
  11695. * src/RequestSlot.h
  11696. (operator=): Defined the function body here.
  11697. (operator==): Defined the function body here.
  11698. * src/RequestSlot.cc
  11699. (operator=): Removed.
  11700. (operator==): Removed.
  11701. To remove the dependency on the PeerMessage subclass from
  11702. PeerInteraction:
  11703. * src/PeerMessageFactory.h: New class.
  11704. * src/PeerMessageFactory.cc: New class.
  11705. * src/SimplePeerMessage.cc
  11706. (send): If invalidate is true then do nothing.
  11707. * src/PeerInteractionCommand.cc
  11708. (HandshakeMessage.h): Included.
  11709. (KeepAliveMessage.h): Included.
  11710. (ChokeMessage.h): Included.
  11711. (UnchokeMessage.h): Included.
  11712. (HaveMessage.h): Included.
  11713. (executeInternal): Call setNoCheck().
  11714. Removed setWriteCheckSocket(socket).
  11715. * src/PeerInteraction.h
  11716. (ChokeMessage.h): Removed.
  11717. (UnchokeMessage.h): Removed.
  11718. (InterestedMessage.h): Removed.
  11719. (NotInterestedMessage.h): Removed.
  11720. (HaveMessage.h): Removed.
  11721. (BitfieldMessage.h): Removed.
  11722. (RequestMessage.h): Removed.
  11723. (CancelMessage.h): Removed.
  11724. (PieceMessage.h): Removed.
  11725. (HandshakeMessage.h): Removed.
  11726. (KeepAliveMessage.h): Removed.
  11727. (PortMessage.h): Removed.
  11728. (HaveAllMessage.h): Removed.
  11729. (HaveNoneMessage.h): Removed.
  11730. (RejectMessage.h): Removed.
  11731. (AllowedFastMessage.h): Removed.
  11732. (SuggestPieceMessage.h): Removed.
  11733. (PeerMessageFactory.h): Included.
  11734. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11735. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11736. (PeerMessageFactory): New variable.
  11737. (createPeerMessage): Removed.
  11738. (createHandshakeMessage): Removed.
  11739. (setPeerMessageCommonProperty): Removed.
  11740. (addRequestSlot): New function.
  11741. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11742. (getPeerMessageFactory): New function.
  11743. (createRequestMessage): Removed.
  11744. (createCancelMessage): Removed.
  11745. (createPieceMessage): Removed.
  11746. (createHaveMessage): Removed.
  11747. (createChokeMessage): Removed.
  11748. (createUnchokeMessage): Removed.
  11749. (createInterestedMessage): Removed.
  11750. (createNotInterestedMessage): Removed.
  11751. (createBitfieldMessage): Removed.
  11752. (createKeepAliveMessage): Removed.
  11753. (createHaveAllMessage): Removed.
  11754. (createHaveNoneMessage): Removed.
  11755. (createRejectMessage): Removed.
  11756. (createAllowedFastMessage): Removed.
  11757. * src/PeerInteraction.cc
  11758. (PeerInteraction): Allocate PeerMessageFactory here.
  11759. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11760. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11761. PieceMessage::ID.
  11762. (addMessage): Simplified by using PeerMessage::onPush().
  11763. (addRequestSlot): New function.
  11764. (rejectAllPieceMessageInQueue): Simplified by using
  11765. PeerMessage::onChoked().
  11766. (rejectPieceMessageInQueue): Simplified by using
  11767. PeerMessage::onCanceled().
  11768. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11769. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11770. (createHandshakeMessage): Removed.
  11771. (createPeerMessage): Removed.
  11772. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11773. (setPeerMessageCommonProperty): Removed.
  11774. (createRequestMessage): Removed.
  11775. (createCancelMessage): Removed.
  11776. (createPieceMessage): Removed.
  11777. (createHaveMessage): Removed.
  11778. (createChokeMessage): Removed.
  11779. (createUnchokeMessage): Removed.
  11780. (createInterestedMessage): Removed.
  11781. (createNotInterestedMessage): Removed.
  11782. (createBitfieldMessage): Removed.
  11783. (createKeepAliveMessage): Removed.
  11784. (createHaveAllMessage): Removed.
  11785. (createHaveNoneMessage): Removed.
  11786. (createRejectMessage): Removed.
  11787. (createAllowedFastMessage): Removed.
  11788. * src/PieceMessage.h
  11789. (createRejectMessage): New function.
  11790. (PieceMessage): Rewritten.
  11791. (onChoked): New function.
  11792. (onCanceled): New function.
  11793. * src/PieceMessage.cc
  11794. (send): If invalidate is true then do nothing, just return.
  11795. (createRejectMessage): New function.
  11796. (onChoked): New function.
  11797. (onCanceled): New function.
  11798. * src/RequestMessage.h
  11799. (RequestMessage): Rewritten.
  11800. (onPush): New function.
  11801. (onAbortPiece): New function.
  11802. * src/RequestMessage.cc
  11803. (onPush): New function.
  11804. (onAbortPiece): New function.
  11805. Update fd_set when a socket is added or deleted in order to improve
  11806. performance:
  11807. * src/DownloadEngine.h
  11808. (rfdset): New variable.
  11809. (wfdset): New variable.
  11810. (updateFdSet): New function.
  11811. * src/DownloadEngine.cc
  11812. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11813. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11814. (waitData): Copy rfdset and wfdset.
  11815. (updateFdSet): New function.
  11816. (addSocket): Call updateFdSet.
  11817. (deleteSocket): Call updateFdSet.
  11818. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11819. To add the support for Metalink3.0 backward compatible links:
  11820. * src/Request.h
  11821. (SAFE_CHARS): Added '#'.
  11822. (METALINK_MARK): New definition.
  11823. * src/Request.cc
  11824. (parseUrl): Added the support for Metalink3.0 backward compatible
  11825. links.
  11826. etc
  11827. * src/PeerInteraction.cc
  11828. (MsgPushBack): Removed.
  11829. (sendMessages): Use STL copy and back_inserter.
  11830. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11831. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11832. * src/TorrentMan.h
  11833. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11834. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. * src/SharedHandle.h: New class.
  11836. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11837. * src/HttpResponseCommand.h
  11838. (HttpResponseCommand): Wrapped Socket.
  11839. * src/SocketCore.h
  11840. (operator==): New function.
  11841. (operator!=): New function.
  11842. (operator<): New function.
  11843. (getSockfd): New function.
  11844. (isOpen): New function.
  11845. (writeData): New function.
  11846. * src/SocketCore.cc
  11847. (operator==): New function.
  11848. (operator!=): New function.
  11849. (operator<): New function.
  11850. * src/AbstractCommand.h
  11851. (socket): Changed its type to SocketHandle.
  11852. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11853. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11854. (disableReadCheckSocket): New function.
  11855. (disableWriteCheckSocket): New function.
  11856. (readCheckTarget): Changed its type to SocketHandle.
  11857. (writeCheckTarget): Changed its type to SocketHandle.
  11858. (AbstractCommand): Replaced Socket with SocketHandle.
  11859. * src/AbstractCommand.cc
  11860. (AbstractCommand): Replaced Socket with SocketHandle.
  11861. (~AbstractCommand): Removed the deallocation for Socket object.
  11862. (disableReadCheckSocket): New function.
  11863. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11864. (disableWriteCheckSocket): New function.
  11865. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11866. * src/HttpDownloadCommand.cc
  11867. (DownloadCommand): Replaced Socket with SocketHandle.
  11868. * src/PeerAbstractCommand.h
  11869. (socket): Changed its type to SocketHandle.
  11870. (peer): Changed its type to PeerHandle.
  11871. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11872. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11873. (disableReadCheckSocket): New function.
  11874. (disableWriteCheckSocket): New function.
  11875. (readCheckTarget): Changed its type to SocketHandle.
  11876. (writeCheckTarget): Changed its type to SocketHandle.
  11877. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11878. Replaced Peer with PeerHandle.
  11879. * src/HttpRequestCommand.cc
  11880. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11881. Use disableReadCheckSocket.
  11882. * src/PeerInitiateConnectionCommand.h
  11883. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11884. * src/PeerChokeCommand.cc
  11885. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11886. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11887. (execute): Use PeerHandle.
  11888. * src/PeerConnection.h
  11889. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11890. (socket): Changed its type to SocketHandle.
  11891. (PeerConnection): Replaced Socket with SocketHandle.
  11892. * src/PeerConnection.cc
  11893. (PeerConnection): Replaced Socket with SocketHandle.
  11894. * src/PeerInteractionCommand.h
  11895. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11896. Replaced Peer with PeerHandle.
  11897. * src/PeerInteractionCommand.cc
  11898. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11899. Replaced Peer with PeerHandle.
  11900. (executeInternal): Use disableWriteCheckSocket.
  11901. Use HandshakeMessageHandle.
  11902. (receiveMessages): Use PeerMessageHandle.
  11903. (prepareForNextPeer): Use PeerHandle.
  11904. * src/HttpProxyRequestCommand.h
  11905. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11906. * src/HttpResponseCommand.cc
  11907. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11908. * src/TorrentMan.cc
  11909. (nullPeer): Added external reference.
  11910. (~TorrentMan): Removed the deallocation of the elements of peers.
  11911. (addPeer): Rewritten.
  11912. (isPeerAvailable): Use nullPeer.
  11913. (deleteOldpeers): Replaced with deleteErrorPeer.
  11914. (deleteErrorPeer): New function.
  11915. (getPeer): Use PeerHandle and nullPeer.
  11916. (hasMissingPiece): Replaced Peer with PeerHandle.
  11917. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11918. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11919. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11920. (getMissingPiece): Replaced Peer with PeerHandle.
  11921. * src/FtpNegotiateCommand.cc
  11922. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11923. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11924. (recvGreeting): Use disableWriteCheckSocket.
  11925. (recvPasv): Removed the allocation of Socket.
  11926. Use disableReadCheckSocket.
  11927. (sendRestPasv): Use disableWriteCheckSocket.
  11928. (recvRetr): Changed assertion.
  11929. * src/PeerInteraction.h
  11930. (SharedHandle.h): Included SharedHandle.h.
  11931. (PeerMessageHandle): New type definition.
  11932. (HandshakeMessageHandle): New type definition.
  11933. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11934. (peer): Changed its type to PeerHandle.
  11935. (createHandshakeMessage): Replaced HandshakeMessage with
  11936. HandshakeMessageHandle.
  11937. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11938. (PeerInteraction): Replaced Peer with PeerHandle.
  11939. Replaced Socket with SocketHandle.
  11940. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11941. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11942. (receiveHandshake): Replaced HandshakeMessage with
  11943. HandshakeMessageHandle.
  11944. * src/PeerInteraction.cc
  11945. (PeerInteraction): Replaced Peer with PeerHandle.
  11946. Replaced Socket with SocketHandle.
  11947. (~PeerInteraction): Removed the deallocation of the elements of
  11948. messageQueue.
  11949. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11950. (isSendingMessageInProgress): Replaced PeerMessage with
  11951. PeerMessageHandle.
  11952. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11953. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11954. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11955. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11956. (abortPiece): Use PeerMessageHandle.
  11957. (receiveHandshake): Replaced HandshakeMessage with
  11958. HandshakeMessageHandle. Removed try-catch block.
  11959. (createHandshakeMessage): Replaced HandshakeMessage with
  11960. HandshakeMessageHandle.
  11961. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11962. Removed try-catch block.
  11963. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11964. * src/HttpProxyResponseCommand.cc
  11965. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11966. * src/FtpTunnelResponseCommand.h
  11967. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11968. * src/HttpConnection.cc
  11969. (HttpConnection): Replaced Socket with SocketHandle.
  11970. * src/PeerAbstractCommand.cc
  11971. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11972. (~PeerAbstractCommand): Removed the deallocation of socket.
  11973. Use disableReadCheckSocket, disableWriteCheckSocket.
  11974. (disableReadCheckSocket): New function.
  11975. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11976. (disableWriteCheckSocket): New function.
  11977. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11978. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11979. * src/FtpTunnelRequestCommand.cc
  11980. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11981. (~FtpTunnelRequestCommand): Corrected indentation.
  11982. * src/DownloadCommand.h
  11983. (DownloadCommand): Replaced Socket with SocketHandle.
  11984. * src/PeerListenCommand.cc
  11985. (PeerListenCommand): Removed the initialization of socket.
  11986. (~PeerListenCommand): Removed the deallocation of socket.
  11987. (bindPort): Use SocketHandle.
  11988. (execute): Use SocketHandle and PeerHandle.
  11989. * src/FtpDowndloadCommand.cc
  11990. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11991. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11992. * src/main.cc
  11993. (main): Corrected indentation.
  11994. * src/HttpInitiateConnectionCommand.cc
  11995. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11996. (executeInternal): Removed the allocation of socket.
  11997. * src/HttpRequestCommand.h
  11998. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11999. * src/FtpNegotiationCommand.h
  12000. (dataSocket): Changed its type to SocketHandle.
  12001. (serverSocket): Changed its type to SocketHandle.
  12002. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12003. * src/TorrentMan.h
  12004. (MAX_PEER_UPDATE): Removed.
  12005. (MAX_PEERS): New definition.
  12006. (Peers): The element is now of type PeerHandle.
  12007. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12008. (getPeer): Replaced Peer with PeerHandle.
  12009. (deleteOldErrorPeers): Removed.
  12010. (deleteErrorPeer): New function.
  12011. (hasMissingPiece): Replaced Peer with PeerHandle.
  12012. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12013. (getMissingPiece): Replaced Peer with PeerHandle.
  12014. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12015. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12016. (addActivePeer): Replaced Peer with PeerHandle.
  12017. (deleteActivePeer): Replaced Peer with PeerHandle.
  12018. Added a check for the return value of find.
  12019. * src/FtpTunnelResponseCommand.cc
  12020. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12021. * src/FtpInitiateConnectionCommand.cc
  12022. (executeInternal): Removed the allocation of socket.
  12023. * src/DownloadEngine.h
  12024. (Sockets): An element is now of type SocketHandle.
  12025. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12026. (CommandUuids): New type definition.
  12027. (rsockets): Changed its type to SockCmdMap.
  12028. (wsockets): Changed its type to SockCmdMap.
  12029. (addSocket): Rewritten.
  12030. (deleteSocket): Rewritten.
  12031. (addSocketForReadCheck): Rewritten.
  12032. (deleteSocketForReadCheck): Rewritten.
  12033. (addSocketForWriteCheck): Rewritten.
  12034. (deleteSocketForWriteCheck): Rewritten.
  12035. (PairFind): New template class.
  12036. * src/HttpDownloadCommand.h
  12037. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12038. * src/FtpConnection.cc
  12039. (FtpConnection): Replaced Socket with SocketHandle.
  12040. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12041. block.
  12042. * src/InitiateConnectionCommandFactory.cc
  12043. (DlAbortEx.h): Included DlAbortEx.h.
  12044. (createInitiateConnectionCommand): Throw exception if the protocol of
  12045. requested URI is not supported.
  12046. * src/Peer.cc
  12047. (nullPeer): Changed its type to PeerHandle.
  12048. (operator==): New function.
  12049. (operator!=): New function.
  12050. * src/Peer.h
  12051. (SharedHandle.h): Included SharedHandle.h.
  12052. (operator==): New function.
  12053. (operator!=): New function.
  12054. (Peer): Added the default constructor.
  12055. Use resetStatus() to initialize member variables.
  12056. (nullPeer): Removed.
  12057. * src/TrackerUpdateCommand.cc
  12058. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12059. with MIN_PEERS.
  12060. * src/PeerListenCommand.h
  12061. (socket): Changed its type to SocketHandle.
  12062. * src/Command.h
  12063. (CommandUuid): New type definition.
  12064. (uuid): New variable.
  12065. (uuidGen): New variable.
  12066. (Command): Added the initialization of uuid.
  12067. (getUuid): New function.
  12068. * src/Socket.h
  12069. (Socket): Removed.
  12070. (SocketHandle): New type definition.
  12071. * src/DownloadEngine.h
  12072. (FindCommand): New function object.
  12073. (run): The portion of socket check was rewritten.
  12074. (SetDescriptor): New function object.
  12075. (AccumulateActiveCommandUuid): New function object.
  12076. (waitData): Rewritten.
  12077. (addSocket): Rewritten.
  12078. (deleteSocket): Rewritten.
  12079. (addSocketForReadCheck): Rewritten.
  12080. (addSocketForWriteCheck): Rewritten.
  12081. (deleteSocketForReadCheck): Rewritten.
  12082. (deleteSocketForWriteCheck): Rewritten.
  12083. * src/HttpProxyResponseCommand.h
  12084. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12085. * src/HttpConnection.h
  12086. (socket): Changed its type to SocketHandle.
  12087. (HttpConnection): Replaced Socket with SocketHandle.
  12088. * src/PeerInitiateConnectionCommand.cc
  12089. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12090. (executeInternal): Removed the allocation of socket.
  12091. (prepareForNextPeer): Use PeerHandle.
  12092. * src/PeerMessage.h
  12093. (peer): Changed its type to PeerHandle.
  12094. (getPeer): Replaced Peer with PeerHandle.
  12095. (setPeer): Replaced Peer with PeerHandle.
  12096. * src/DownloadCommand.cc
  12097. (DownloadCommand): Replaced Socket with SocketHandle.
  12098. * src/FtpConnection.h
  12099. (socket): Changed its type to SocketHandle.
  12100. (FtpConnection): Replaced Socket with SocketHandle.
  12101. (sendPort); Replaced Socket with SocketHandle.
  12102. * src/FtpDowndloadCommand.h
  12103. (ctrlSocket): Changed its type to SocketHandle.
  12104. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12105. * src/HttpProxyRequestCommand.cc
  12106. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12107. * src/FtpTunnelRequestCommand.h
  12108. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12109. etc
  12110. * src/PeerChokeCommand.h
  12111. (setAllPeerChoked): Removed.
  12112. (setAllPeerResetDelta): Removed.
  12113. * src/PeerChokeCommand.cc
  12114. (setAllPeerChoked): Removed.
  12115. (ChokePeer): New function object.
  12116. (setAllPeerResetDelta): Removed.
  12117. (ResetDelta): New function object.
  12118. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12119. (execute): Show download speed when the local node is a seeder.
  12120. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12121. using STL.
  12122. * src/TrackerWatcherCommand.h
  12123. (MIN_PEERS): Removed.
  12124. * src/TorrentMan.cc
  12125. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12126. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12127. To fix the bug that .aria2 file is not saved if downloading is stopped
  12128. by the errors:it results that aria2 can not resume downloading:
  12129. * src/main.cc
  12130. (normalDownload): Added the call to save().
  12131. (main): Added the deletion of the elements in 'reserved'.
  12132. To fix log:
  12133. * src/PeerInteraction.cc
  12134. (receiveHandshake): Fixed log.
  12135. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12136. To improve download performance in BitTorrent:
  12137. * src/TorrentMan.cc
  12138. (getPeer): Check the number of connections. Return nullPeer if
  12139. it is greater than MAX_PEER_UPDATE.
  12140. This code was originally here, but was removed in 0.5.1.
  12141. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. To improve the conditional compilation:
  12143. * src/MultiDiskWriter.h:
  12144. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12145. * src/MultiDiskWriter.cc:
  12146. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12147. * src/Util.h:
  12148. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12149. Added ENABLE_BITTORRENT around computeFastSet().
  12150. * src/Util.cc:
  12151. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12152. Added ENABLE_BITTORRENT around computeFastSet().
  12153. * src/messageDigest.h:
  12154. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12155. * src/ShaVisitor.h:
  12156. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12157. * src/ShaVisitor.cc:
  12158. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12159. * src/main.cc:
  12160. Added ENABLE_BITTORRENT around includes and blocks related to
  12161. BitTorrent.
  12162. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12163. digest support is not available.
  12164. * src/AbstractDiskWriter.h:
  12165. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12166. * src/AbstractDiskWriter.cc:
  12167. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12168. * src/MetalinkEntry.cc
  12169. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12170. support is not available.
  12171. To add command-line options for Metalink:
  12172. * src/main.cc:
  12173. Added metalink-version, metalink-language, metalink-os,
  12174. follow-metalink.
  12175. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12176. * src/main.cc: Use these definition.
  12177. * Release 0.6.0
  12178. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12179. To add Metalink support(http/ftp only):
  12180. * src/AbstractCommand.h
  12181. (tryReserved): New function.
  12182. * src/AbstractCommand.cc
  12183. (execute): Call tryReserved().
  12184. (tryReserved): New function.
  12185. * src/Request.h
  12186. (Requests): New type definition.
  12187. * src/SegmentMan.h
  12188. (reserved): New variable.
  12189. * src/Util.h
  12190. (fileChecksum): New function.
  12191. (toUpper): New function.
  12192. (toLower): New function.
  12193. * src/Util.cc
  12194. (messageDigest.h): Included.
  12195. (trim): Trim \r\n\t.
  12196. (fileChecksum): New function.
  12197. (toUpper): New function.
  12198. (toLower): New function.
  12199. * src/main.cc
  12200. (normalDownload): New function.
  12201. (main): Added 2 command-line options: metalink-file,
  12202. metalink-connection. Their usage has not been written yet.
  12203. * src/MetalinkProcessor.h: New class.
  12204. * src/Xml2MetalinkProcessor.h: New class.
  12205. * src/Xml2MetalinkProcessor.cc: New class.
  12206. * src/MetalinkEntry.h: New class.
  12207. * src/MetalinkEntry.cc: New class.
  12208. * src/MetalinkResource.h: New class.
  12209. * src/MetalinkResource.cc: New class.
  12210. To add md5 message digest checking:
  12211. * src/messageDigest.h: Rewritten.
  12212. * src/MultiDiskWriter.cc: Updated according to the changes in
  12213. messageDigest.h.
  12214. * src/ShaVisitor.cc: Updated according to the changes in
  12215. messageDigest.h.
  12216. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12217. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12218. messageDigest.h.
  12219. To fix a bug that causes segfault when the payload length in peer
  12220. message is less than 0:
  12221. * src/PeerConnection.cc:
  12222. (receiveMessage): Fixed the bug.
  12223. * src/PeerMessageUtil.cc
  12224. (checkLength): Throw an exception if length is less than or equals to
  12225. 0.
  12226. To add new interfaces to Base64 encoding/decoding:
  12227. * src/Base64.h
  12228. (part_encode): Changed the method signature.
  12229. (encode): New function(overload).
  12230. (decode): New function(overload).
  12231. * src/Base64.cc
  12232. (part_encode): Rewritten.
  12233. (encode): Rewritten.
  12234. (encode): New function(overload).
  12235. To prevent a peer to download same piece if there is an error in
  12236. checksum:
  12237. * src/PieceMessage.cc
  12238. (receivedAction): Call peerInteraction->abortPiece().
  12239. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12240. To fix the bug that causes same have message is sent many times to
  12241. a single peer.
  12242. * src/Time.cc
  12243. (isNewer): Use Util::difftv().
  12244. * src/Util.cc
  12245. (difftv): Added a cast to (long long int).
  12246. * src/TorrentMan.cc
  12247. (advertisePiece): Use push_front.
  12248. (getAdvertisedPieceIndexes): A performance improvement was made.
  12249. To fix the bug that sends tracker requests without a sleep interval
  12250. when the number of connections is less than 15.
  12251. * src/TrackerWatcherCommand.cc
  12252. (execute): Now the number of connections is not a factor to decide
  12253. whether or not a tracker request should be sent or not.
  12254. * src/Time.h
  12255. (setTimeInSec): New function.
  12256. * src/Time.cc
  12257. (setTimeInSec): New function.
  12258. etc.
  12259. * src/ChokeMessage.cc
  12260. (receivedAction): Removed peer->snubbing = false
  12261. * src/PeerConnection.h
  12262. (receiveHandshake): Updated doc.
  12263. * src/TorrentMan.h
  12264. (getAdvertisedPieceIndexes): Updated the method signature.
  12265. * src/TorrentMan.cc
  12266. (getAdvertisedPieceIndexes): Updated the method signature.
  12267. * src/Time.h
  12268. (getTimeInMicros): Added a cast to (long long int).
  12269. (getTimeInMillis): Added a cast to (long long int).
  12270. * Release 0.5.2
  12271. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12272. To make a listening socket non-block:
  12273. * src/SocketCore.h
  12274. (setNonBlockingMode): New function.
  12275. * src/SocketCore.cc
  12276. (setNonBlockingMode): New function.
  12277. (beginListen): Added a call to setNonBlockingMode().
  12278. (acceptConnection): Call setNonBlockingMode().
  12279. (setBlockingMode): Updated.
  12280. To handle tracker's NAT-checking:
  12281. * src/PeerConnection.cc
  12282. (receiveHandshake): 'msg' param is filled with received data and
  12283. its length is assigned to 'length' param, even if all handshake
  12284. message is not yet received.
  12285. * src/PeerInteractionCommand.cc
  12286. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12287. a new peer connects to localhost.
  12288. A call to peerInteraction->sendHandshake() was removed because
  12289. it is called from peerInteraction->receiveHandshake(true).
  12290. * src/PeerInteraction.h
  12291. (quickReplied): New variable.
  12292. (receiveHandshake): Added an argument.
  12293. * src/PeerInteraction.cc
  12294. (PeerInteraction): Added the initialization of quickReplied.
  12295. (receiveHandshake): Send handshake message as soon as the info hash
  12296. in a handshake message from a peer is correct.
  12297. To change the random part of peer id and key parameter:
  12298. * src/TorrentMan.h
  12299. (key): New variable.
  12300. * src/TorrentMan.cc
  12301. (setupInternal1): Use Util::randomAlpha() to generate random part
  12302. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12303. key is also generated by Util::randomAlpha() and it is now 8 character
  12304. long.
  12305. * src/Util.h
  12306. (randomAlpha): New function.
  12307. * src/Util.cc
  12308. (randomAlpha): New function.
  12309. * src/TrackerWatcherCommand.cc
  12310. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12311. Added no_peer_id=1.
  12312. Set snubbing flag to false when a choke message is received from a
  12313. snubbed peer.
  12314. * src/ChokeMessage.cc
  12315. (receivedAction): Set snubbing flag to false.
  12316. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12317. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12318. * src/SimpleLogger.h (writeHeader): New function.
  12319. * src/SimpleLogger.cc (writeHeader): New function.
  12320. (writeLog): Fixed the bug that causes segfaults if exception message
  12321. contains an unescaped "%" character.
  12322. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12323. when a tracker request fails.
  12324. * src/Request.cc (parseUrl): Query string is now handled properly.
  12325. * Release 0.5.1
  12326. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. To add Time class which represents a specific instant in time and
  12328. its precision is microseconds. Time checking procedures were rewritten
  12329. using this object.
  12330. * src/Time.h: New class.
  12331. * src/Time.cc: New class.
  12332. * src/AbstractCommand.h
  12333. (updateCheckPoint): Removed.
  12334. (isTimeoutDetected): Removed.
  12335. (checkPoint): Changed the type to Time.
  12336. (timeout): New variable.
  12337. (setTimeout): New function.
  12338. * src/AbstractCommand.cc
  12339. (AbstractCommand): Removed the initialization of checkPoint.
  12340. Added the initialization of timeout.
  12341. (updateCheckPoint): Removed.
  12342. (isTimeoutDetected): Removed.
  12343. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12344. * src/PeerChokeCommand.h
  12345. (checkPoint): Changed the type to Time.
  12346. * src/PeerChokeCommand.cc
  12347. (PeerChokeCommand): Removed the initialization of checkPoint.
  12348. (execute): Rewritten using Time object.
  12349. * src/TrackerWatcherCommand.h
  12350. (checkPoint): Changed the type to Time.
  12351. * src/TrackerWatcherCommand.cc
  12352. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12353. (execute): Rewritten.
  12354. * src/ConsoleDownloadEngine.h
  12355. (cp): Changed the type to Time.
  12356. (startup): Changed the type to Time.
  12357. * src/ConsoleDownloadEngine.cc
  12358. (initStatistics): Use cp.reset(), startup.reset().
  12359. (calculateStatistics): Rewritten using Time object.
  12360. * src/PeerAbstractCommand.h
  12361. (updateCheckPoint): Removed.
  12362. (isTimeoutDetected): Removed.
  12363. (checkPoint): Changed the type to Time.
  12364. * src/PeerAbstractCommand.cc
  12365. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12366. (updateCheckPoint): Removed.
  12367. (isTimeoutDetected): Removed.
  12368. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12369. * src/PeerInteractionCommand.cc
  12370. (PeerInteractionCommand): Removed the initializations of struct
  12371. timeval variables.
  12372. * src/PeerInteractionCommand.h
  12373. (keepAliveCheckPoint): Changed the type to Time.
  12374. (chokeCheckPoint): Changed the type to Time.
  12375. (freqCheckPoint): Changed the type to Time.
  12376. (haveCheckTime): Changed the type to Time.
  12377. * src/PeerInteractionCommand.cc
  12378. (executeInternal): Rewritten using Time object.
  12379. (detectMessageFlooding): Rewritten using Time object.
  12380. (checkLongTimePeerChoking): Rewritten using Time object.
  12381. (sendKeepAlive): Rewritten using Time object.
  12382. (checkHave): Rewritten using Time object.
  12383. * src/SleepCommand.h
  12384. (checkPoint): Changed the type to Time.
  12385. * src/SleepCommand.cc
  12386. (SleepCommand): Removed the initialization of checkPoint.
  12387. (execute): Rewritten using Time object.
  12388. * src/TorrentAutoSaveCommand.h
  12389. (checkPoint): Changed the type to Time.
  12390. * src/TorrentAutoSaveCommand.cc
  12391. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12392. (execute): Rewritten.
  12393. * src/DownloadCommand.h
  12394. (sw): Changed the type to Time.
  12395. * src/DownloadCommand.cc
  12396. (DownloadCommand): Removed the initialization of sw.
  12397. (executeInternal): Rewritten.
  12398. * src/RequestSlot.h
  12399. (dispatchedTime): Changed the type to Time.
  12400. * src/RequestSlot.cc
  12401. (RequestSlot): Removed the call to setDispatchedTime().
  12402. (setDispatchedTime): Rewirtten.
  12403. (isTimeout): Rewritten.
  12404. (getLatencyInMillis): Rewritten.
  12405. * src/TorrentDownloadEngine.h
  12406. (cp): Changed the type to Time[2].
  12407. (startup): Changed the type to Time.
  12408. * src/TorrentDownloadEngine.cc
  12409. (initStatistics): Rewritten.
  12410. (calculateStatistics): Rewritten.
  12411. * src/DownloadEngine.cc
  12412. (run): Rewritten.
  12413. To detect all attempts to connect to the tracker are failed:
  12414. * src/AbstractCommand.cc
  12415. (execute): Increment e->segmentMan->errors if a command aborted.
  12416. * src/SegmentMan.h
  12417. (errors): New variable.
  12418. * src/SegmentMan.cc
  12419. (SegmentMan): Added the initialization of errors.
  12420. (init): Added the initialization of errors.
  12421. * src/TrackerWatcherCommand.cc
  12422. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12423. request was failed.
  12424. To handle snubbed peers:
  12425. * src/PeerChokeCommand.cc
  12426. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12427. (execute): Snubbed peers don't get unchoked.
  12428. * src/PeerInteraction.h
  12429. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12430. * src/PeerInteraction.cc
  12431. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12432. back the requested 16k block in 60 seconds.
  12433. * src/PieceMessage.cc
  12434. (receivedAction): A peer's snubbed state is cleard if it sends
  12435. the requested 16k block in 60 seconds.
  12436. * src/Peer.h
  12437. (snubbing): New variable.
  12438. * src/Peer.cc
  12439. (resetStatus): Added snubbed = false.
  12440. To fix the bug that causes have message is not sent:
  12441. * src/PeerInteractionCommand.cc
  12442. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12443. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12444. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12445. * src/TorrentMan.h
  12446. (HaveEntry): New class.
  12447. (advertisePiece): Rewritten.
  12448. (getAdvertisedPieceIndexes): Rewritten.
  12449. (Haves): Changed the type.
  12450. (getAdvertisedPieceIndexes): Added an argument.
  12451. Others:
  12452. * src/TorrentMan.h
  12453. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12454. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12455. * src/TorrentMan.cc
  12456. (getPeer): Don't check the number of connections here.
  12457. (setupInternal1): Changed peerId.
  12458. * src/PeerInteractionCommand.h
  12459. (KEEP_ALIVE_INTERVAL): New definition.
  12460. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12461. * src/main.cc
  12462. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12463. * src/DownloadEngine.h: Removed unnecessary header includes.
  12464. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12465. To fix the bug that causes segfaults if a tracker returns a zero-length
  12466. list as "peers":
  12467. * src/TrackerUpdateCommand.cc
  12468. (execute): Added a check to see wether the type of peers is Data*.
  12469. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12470. * Release 0.5.0
  12471. To fix compile issue with gcc3:
  12472. * src/CancelMessage.h
  12473. (ID): Renamed as ID_t
  12474. (ID_t): New enum.
  12475. * src/RejectMessage.h
  12476. (ID): Renamed as ID_t
  12477. (ID_t): New enum.
  12478. * src/SuggestPieceMessage.h
  12479. (ID): Renamed as ID_t
  12480. (ID_t): New enum.
  12481. * src/AllowedFastMessage.h
  12482. (ID): Renamed as ID_t
  12483. (ID_t): New enum.
  12484. * src/PortMessage.h
  12485. (ID): Renamed as ID_t
  12486. (ID_t): New enum.
  12487. * src/HaveNoneMessage.h
  12488. (ID): Renamed as ID_t
  12489. (ID_t): New enum.
  12490. * src/KeepAliveMessage.h
  12491. (ID): Renamed as ID_t
  12492. (ID_t): New enum.
  12493. * src/HaveAllMessage.h
  12494. (ID): Renamed as ID_t
  12495. (ID_t): New enum.
  12496. * src/UnchokeMessage.h
  12497. (ID): Renamed as ID_t
  12498. (ID_t): New enum.
  12499. * src/BitfieldMessage.h
  12500. (ID): Renamed as ID_t
  12501. (ID_t): New enum.
  12502. * src/PieceMessage.h
  12503. (ID): Renamed as ID_t
  12504. (ID_t): New enum.
  12505. * src/RequestMessage.h
  12506. (ID): Renamed as ID_t
  12507. (ID_t): New enum.
  12508. * src/NotInterestedMessage.h
  12509. (ID): Renamed as ID_t
  12510. (ID_t): New enum.
  12511. * src/ChokeMessage.h
  12512. (ID): Renamed as ID_t
  12513. (ID_t): New enum.
  12514. * src/InterestedMessage.h
  12515. (ID): Renamed as ID_t
  12516. (ID_t): New enum.
  12517. * src/HaveMessage.h
  12518. (ID): Renamed as ID_t
  12519. (ID_t): New enum.
  12520. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12521. * src/PeerAbstractCommand.h
  12522. (beforeSocketCheck): Removed.
  12523. * src/PeerAbstractCommand.cc
  12524. Modified in order to call executeInternal() even if socket check
  12525. and upload limit check fail.
  12526. * src/PeerInteractionCommand.h
  12527. (keepAlive): Removed.
  12528. (sendKeepAlive): New function.
  12529. (checkHave): New function.
  12530. (beforeSocketCheck): Removed.
  12531. * src/PeerInteractionCommand.cc
  12532. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12533. calls to checkHave() and sendKeepAlive().
  12534. (keepAlive): Renamed to sendKeepAlive().
  12535. (sendKeepAlive): New function.
  12536. (beforeSocketCheck): Removed.
  12537. (checkHave): New function.
  12538. * src/BitfieldMan.cc
  12539. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12540. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12541. 0.
  12542. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12543. * src/TorrentMan.h
  12544. (UsedPieces): Removed.
  12545. (Pieces): New type definition.
  12546. * src/Piece.h: Updated doc.
  12547. * src/Peer.h
  12548. (totalLength): Removed.
  12549. * src/Peer.cc
  12550. (updateLatency): Fixed the latency calculation.
  12551. * src/TorrentMan.cc
  12552. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12553. than or equal to MAX_PEER_LIST_SIZE.
  12554. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12555. then return false.
  12556. (deleteOldErrorPeers): Rewritten.
  12557. (deleteUsedPiece): Fixed the miss use of STL remove.
  12558. * src/PeerInteraction.h
  12559. (Pieces): Removed.
  12560. (deleteTimeoutRequestSlot): Removed.
  12561. (deleteCompletedRequestSlot): Removed.
  12562. (checkRequestSlot): New function.
  12563. * src/PeerInteraction.cc
  12564. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12565. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12566. (checkRequestSlot): New function.
  12567. * src/DownloadEngine.cc
  12568. (run): Clear activeSockets before calling waitData().
  12569. (waitData): Removed a call to activeSockets.clear().
  12570. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12571. To attempt to handle EINTR:
  12572. * src/SocketCore.cc
  12573. (isReadable): Added EINTR handling.
  12574. (isWritable): Added EINTR handling.
  12575. To improve the performance:
  12576. * src/AbstractCommand.cc
  12577. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12578. * src/PeerInteractionCommand.h
  12579. (receiveMessage): Renamed as receiveMessages().
  12580. (receiveMessages): New function.
  12581. * src/PeerInteractionCommand.cc
  12582. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12583. () function. detectMessageFlooding() is moved here.
  12584. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12585. (). The flooding detection for have message is comment out.
  12586. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12587. Util::difftv().
  12588. (receiveMessage): Renamed as receiveMessages().
  12589. (receiveMessages): New function.
  12590. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12591. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12592. * src/SleepCommand.cc
  12593. (execute): Use Util::difftvsec() instead of Util::difftv().
  12594. * src/BitfieldMan.h
  12595. (getNthBitIndex): New function.
  12596. (hasMissingPiece): New function.
  12597. (getAllMissingIndexes): New function.
  12598. * src/BitfieldMan.cc
  12599. (countSetBit): Rewritten.
  12600. (getNthBitIndex): New function.
  12601. (getMissingIndexRandomly): Rewritten.
  12602. (hasMissingPiece): New function.
  12603. (getAllMissingIndexes): New function.
  12604. * src/TorrentMan.cc
  12605. (hasMissingPiece): New function.
  12606. (deleteUsedPiece): Rewritten using STL.
  12607. * src/PeerInteraction.cc
  12608. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12609. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12610. (addRequests): Updated the number of pending requests.
  12611. * src/PeerAbstractCommand.cc
  12612. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12613. (execute): Returns true if TorrentMan::isHalt() is true.
  12614. Corrected the condition of upload limit checking.
  12615. * src/Util.h
  12616. (countBit): New function.
  12617. * src/Util.cc
  12618. (nbits): New variable.
  12619. (countBit): New function.
  12620. * src/DownloadEngine.h
  12621. (SockCmdMap): New type definition.
  12622. (waitData): Added an argument.
  12623. (addSocket): Added an argument.
  12624. (addSocketForReadCheck): Added an argument.
  12625. (addSocketForWriteCheck): Added an argument.
  12626. * src/DownloadEngine.cc
  12627. (run): Executes only commands whose sockets are ready to read or write.
  12628. All commands are executed in every 1 second.
  12629. (waitData): Calls select() again if it returned
  12630. EINTR.
  12631. (addSocket): Saves socket and command object pair to the map.
  12632. (deleteSocket): Deletes socket and command object pair from the map.
  12633. (addSocketForReadCheck): Added an argument.
  12634. (addSocketForWriteCheck): Added an argument.
  12635. * src/DownloadCommand.cc
  12636. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12637. To send "event=stopped" to the tracker when the application finishes:
  12638. * src/PeerChokeCommand.h
  12639. (checkPoint): New variable.
  12640. * src/PeerChokeCommand.cc
  12641. (PeerChokeCommand): Added the initialization of checkPoint.
  12642. (execute): The interval check is now done by checkPoint, not
  12643. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12644. * src/TorrentMan.h
  12645. (halt): New function.
  12646. (hasMissingPiece): New function.
  12647. (isHalt): New function.
  12648. (setHalt): New function.
  12649. * src/TorrentMan.cc
  12650. (TorrentMan): Added the initialization of halt.
  12651. * src/TorrentAutoSaveCommand.h
  12652. (checkPoint): New variable.
  12653. * src/PeerListenCommand.cc
  12654. (execute): Returns true if TorrentMan::isHalt() is true.
  12655. * src/main.cc
  12656. (setSignalHander): Added flags argument.
  12657. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12658. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12659. Removed printDownloadAbortMessage() after torrent downloading loop.
  12660. * src/TorrentAutoSaveCommand.cc
  12661. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12662. (execute): Returns true if TorrentMan::isHalt() is true.
  12663. The interval check is now done by checkPoint, not SleepCommand.
  12664. * src/TrackerWatcherCommand.cc
  12665. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12666. event=stopped.
  12667. * src/TrackerUpdateCommand.cc
  12668. (prepareForRetry): Do not use SleepCommand here.
  12669. (execute): Returns true if TorrentMan::isHalt() is true.
  12670. Others:
  12671. * src/TorrentMan.cc
  12672. (getMissingPieceIndex): Updated log message.
  12673. * src/PeerInteraction.cc
  12674. (createPeerMessag): Updated log message.
  12675. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12676. To add the ability to download several pieces in mix in a command and
  12677. increase the number of request slots according to request-cancel
  12678. latency:
  12679. * src/PeerInteractionCommand.cc
  12680. (executeInternal): The number of messages to be received at a time
  12681. is increased from 10 to 50.
  12682. * src/LogFactory
  12683. (getInstance): Added NullLogger.
  12684. * src/NullLogger.h: New class.
  12685. * src/BitfieldMan.h
  12686. (getMissingIndex): New function.
  12687. * src/BitfieldMan.cc
  12688. (getMissingIndex): New function.
  12689. * src/TorrentMan.h
  12690. (checkOutPiece): New function.
  12691. (getMissingPieceIndex): New function.
  12692. (getMissingFastPieceIndex): New function.
  12693. (getMissingFastPiece): New function.
  12694. * src/TorrentMan.cc
  12695. (updatePiece): Rewritten using STL.
  12696. (syncPiece): Rewritten using STL.
  12697. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12698. checkOutPiece().
  12699. (getMissingPieceIndex): New function.
  12700. (getMissingFastPieceIndex): New function.
  12701. (getMissingFastPiece): New function.
  12702. (checkOutPiece): New function.
  12703. * src/PeerInteraction.h
  12704. (Pieces): New type definition.
  12705. (piece): Removed.
  12706. (pieces): New variable.
  12707. (getNewPieceAndSendInterest): Added the "piece" argument.
  12708. (abortPiece): Added the "piece" argument.
  12709. (abortAllPieces): New function.
  12710. (isInRequestSlot): New function.
  12711. (hasDownloadPiece): Added the "index" argument.
  12712. (setDownloadPiece): Removed.
  12713. (getDownloadPiece): Added the "index" argument.
  12714. (updatePiece): New function.
  12715. (createRequestMessage): Added the "index" argument.
  12716. * src/PeerInteraction.cc
  12717. (onChoked): Rewritten.
  12718. (abortPiece): Rewirtten.
  12719. (abortAllPieces): New function.
  12720. (deleteTimeoutRequestSlot): Rewritten.
  12721. Clarified code a little bit.
  12722. (deleteCompletedRequestSlot): Rewritten.
  12723. (isInRequestSlot): New function.
  12724. (syncPiece): Rewritten.
  12725. (updatePiece): New function.
  12726. (getNewPieceAndSendInterest): Rewritten.
  12727. (addRequests): Rewritten.
  12728. (getDownloadPiece): Rewritten.
  12729. (hasDownloadPiece): Rewritten.
  12730. (createRequestMessage): Added the "index" argument.
  12731. * src/common.h
  12732. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12733. (DIV_FLOOR): New definition.
  12734. * src/PieceMessage.cc
  12735. (receivedAction): Update request-piece latency here.
  12736. * src/RequestSlot.h
  12737. (getLatencyInMillis): New function.
  12738. * src/RequestSlot.cc
  12739. (isTimeout): Rewritten using getLatencyInMillis.
  12740. (getLatencyInMillis): New function.
  12741. * src/Piece.h
  12742. (operator==): New function.
  12743. (getMissingBlockIndex): New function.
  12744. * src/Piece.cc
  12745. (operator==): New function.
  12746. (getMissingBlockIndex): New function.
  12747. * src/Peer.h
  12748. (DEFAULT_LATENCY): New definition.
  12749. (latency): New variable.
  12750. (updateLatency): New function.
  12751. (getLatency): New function.
  12752. * src/Peer.cc
  12753. (resetStatus): Reset latecy.
  12754. (updateLatency): New function.
  12755. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. * src/SocketCore.cc
  12757. (isReadable): Added secure to the condition.
  12758. * src/HttpConnection.cc
  12759. (receiveResponse): Fixed a bug that causes no response header
  12760. exception.
  12761. * src/Peer.h
  12762. (getFastSet): Fixed the return value type.
  12763. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12764. To remove a wait from download loop:
  12765. * src/DownloadEngine.cc
  12766. (run): Comment out shortSleep.
  12767. To rewrite the message handling:
  12768. * src/SimplePeerMessage.h: New class.
  12769. * src/SimplePeerMessage.cc: New class.
  12770. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12771. (msg): New variable.
  12772. (create): New function.
  12773. (send): Removed.
  12774. (getMessage): New function.
  12775. (getMessageLength): New function.
  12776. * src/CancelMessage.cc
  12777. (create): New function.
  12778. (receivedAction): Replaced deleteRequestMessageInQueue with
  12779. rejectPieceMessageInQueue.
  12780. (send): Removed.
  12781. (getMessage): New function.
  12782. (getMessageLength): New function.
  12783. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12784. (msg): New variable.
  12785. (msgLength): New variable.
  12786. (~BitfieldMessage): Deleted msg.
  12787. (send): Removed.
  12788. (getMessage): New function.
  12789. (getMessageLength): New function.
  12790. * src/BitfieldMessage.cc
  12791. (create): New function.
  12792. (send): Removed.
  12793. (getMessage): New function.
  12794. (getMessageLength): New function.
  12795. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12796. (msg): New variable.
  12797. (sendPredicate): New function.
  12798. (onSendComplete): New function.
  12799. (send): Removed.
  12800. (getMessage): New function.
  12801. (getMessageLength): New function.
  12802. (create): New function.
  12803. * src/ChokeMessage.cc
  12804. (create): New function.
  12805. (send): Removed.
  12806. (sendPredicate): New function.
  12807. (getMessage): New function.
  12808. (getMessageLength): New function.
  12809. (onSendComplete): New function.
  12810. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12811. (msg): New variable.
  12812. (send): Removed.
  12813. (getMessage): New function.
  12814. (getMessageLength): New function.
  12815. * src/KeepAliveMessage.cc
  12816. (send): Removed.
  12817. (getMessage): New function.
  12818. (getMessageLength): New function.
  12819. * src/PortMessage.h
  12820. (create): New function.
  12821. (receivedAction): Updated log message.
  12822. * src/PortMessage.cc: New file.
  12823. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12824. (msg): New variable.
  12825. (sendPredicate): New function.
  12826. (onSendComplete): New function.
  12827. (create): New function.
  12828. (send): Removed.
  12829. (getMessage): New function.
  12830. (getMessageLength): New function.
  12831. * src/UnchokeMessage.cc
  12832. (create): New function.
  12833. (send): Removed.
  12834. (sendPredicate): New function.
  12835. (getMessage): New function.
  12836. (getMessageLength): New function.
  12837. (onSendComplete): New function.
  12838. * src/PieceMessage.h
  12839. (leftPieceDataLength): Removed.
  12840. (leftDataLength): New variable.
  12841. (headerSend): New variable.
  12842. (pendingCount): New variable.
  12843. (msgHeader): New variable.
  12844. (sendPieceData): New function.
  12845. (incrementPendingCount): New function.
  12846. (isPendingCountMax): New function.
  12847. (create): New function.
  12848. (getMessageHeader): New function.
  12849. (getMessageHeaderLength): New function.
  12850. * src/PieceMessage.cc
  12851. (create): New function.
  12852. (getMessageHeader): New function.
  12853. (getMessageHeaderLength): New function.
  12854. (send): Rewritten.
  12855. (sendPieceData): New function.
  12856. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12857. (msg): New variable.
  12858. (create): New function.
  12859. (getMessage): New function.
  12860. (getMessageLength): New function.
  12861. * src/HaveMessage.cc
  12862. (create): New function.
  12863. (send): Removed.
  12864. (sendPieceData): New function.
  12865. (getMessage): New function.
  12866. (getMessageLength): New function.
  12867. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12868. (msg): New variable.
  12869. (create): New function.
  12870. (send): Removed.
  12871. (getMessage): New function.
  12872. (getMessageLength): New function.
  12873. * src/RequestMessage.cc
  12874. (create): New function.
  12875. (receivedAction): Added the handling of fast extension.
  12876. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12877. (send): Removed.
  12878. (getMessage): New function.
  12879. (getMessageLength): New function.
  12880. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12881. (msg): New variable.
  12882. (sendPredicate): New function.
  12883. (onSendComplete): New function.
  12884. (create): New function.
  12885. (getMessage): New function.
  12886. (getMessageLength): New function.
  12887. * src/InterestedMessage.cc
  12888. (create): New function.
  12889. (send): Removed.
  12890. (sendPieceData): New function.
  12891. (getMessage): New function.
  12892. (getMessageLength): New function.
  12893. (onSendComplete): New function.
  12894. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12895. (msg): New variable.
  12896. (sendPieceData): New function.
  12897. (onSendComplete): New function.
  12898. (create): New function.
  12899. (send): Removed.
  12900. (getMessage): New function.
  12901. (getMessageLength): New function.
  12902. * src/NotInterestedMessage.cc
  12903. (create): New function.
  12904. (send): Removed.
  12905. (sendPredicate): New function.
  12906. (getMessage): New function.
  12907. (getMessageLength): New function.
  12908. (onSendComplete): New function.
  12909. * src/AllowedFastMessage.h: New class.
  12910. * src/AllowedFastMessage.cc: New class.
  12911. * src/RejectMessage.h: New class.
  12912. * src/RejectMessage.cc: New class.
  12913. * src/SuggestPieceMessage.h: New class.
  12914. * src/SuggestPieceMessage.cc: New class.
  12915. * src/HaveAllMessage.h: New class.
  12916. * src/HaveAllMessage.cc: New class.
  12917. * src/HaveNoneMessage.h: New class.
  12918. * src/HaveNoneMessage.cc: New class.
  12919. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12920. (msg): New variable.
  12921. (reserved): New variable.
  12922. (create): New function.
  12923. (getId): New function.
  12924. (receivedAction): New function.
  12925. (getMessage): New function.
  12926. (getMessageLength): New function.
  12927. (isFastExtensionSupported): New function.
  12928. * src/HandshakeMessage.cc
  12929. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12930. (create): New function.
  12931. (getMessage): New function.
  12932. (getMessageLength): New function.
  12933. (toString): Added the output of reserved field.
  12934. (check): Added const qualifier.
  12935. (isFastExtensionSupported): New function.
  12936. * src/PeerMessageUtil.h
  12937. (createChokeMessage): Removed.
  12938. (createUnchokeMessage): Removed.
  12939. (createInterestedMessage): Removed.
  12940. (createNotInterestedMessage): Removed.
  12941. (createHaveMessage): Removed.
  12942. (createBitfieldMessage): Removed.
  12943. (createRequestMessage): Removed.
  12944. (createCancelMessage): Removed.
  12945. (createPieceMessage): Removed.
  12946. (createPortMessage): Removed.
  12947. (createChokeMessage): Removed.
  12948. (createUnchokeMessage): Removed.
  12949. (createInterestedMessage): Removed.
  12950. (createNotInterestedMessage): Removed.
  12951. (createHaveMessage): Removed.
  12952. (createBitfieldMessage): Removed.
  12953. (createRequestMessage): Removed.
  12954. (createCancelMessage): Removed.
  12955. (createPieceMessage): Removed.
  12956. (createKeepAliveMessage): Removed.
  12957. (createHandshakeMessage): Removed.
  12958. (setIntParam): New function.
  12959. (createPeerMessageString): New function.
  12960. * src/PeerMessageUtil.cc
  12961. (createChokeMessage): Removed.
  12962. (createUnchokeMessage): Removed.
  12963. (createInterestedMessage): Removed.
  12964. (createNotInterestedMessage): Removed.
  12965. (createHaveMessage): Removed.
  12966. (createBitfieldMessage): Removed.
  12967. (createRequestMessage): Removed.
  12968. (createCancelMessage): Removed.
  12969. (createPieceMessage): Removed.
  12970. (createPortMessage): Removed.
  12971. (createRequestMessage): Removed.
  12972. (createCancelMessage): Removed.
  12973. (createPieceMessage): Removed.
  12974. (createHaveMessage): Removed.
  12975. (createChokeMessage): Removed.
  12976. (createUnchokeMessage): Removed.
  12977. (createInterestedMessage): Removed.
  12978. (createNotInterestedMessage): Removed.
  12979. (createBitfieldMessage): Removed.
  12980. (createKeepAliveMessage): Removed.
  12981. (createHandshakeMessage): Removed.
  12982. (setIntParam): New function.
  12983. (createPeerMessageString): New function.
  12984. * src/PeerConnection.h
  12985. (peer): Removed.
  12986. (torrentMan): Removed.
  12987. (createNLengthMessage): Removed.
  12988. (setIntParam): Removed.
  12989. (writeOutgoingMessageLog): Removed all overloaded functions.
  12990. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12991. (sendMessage): New function.
  12992. (sendHandshake): Removed.
  12993. (sendKeepAlive): Removed.
  12994. (sendChoke): Removed.
  12995. (sendUnchoke): Removed.
  12996. (sendInterested): Removed.
  12997. (sendNotInterested): Removed.
  12998. (sendHave): Removed.
  12999. (sendBitfield): Removed.
  13000. (sendRequest): Removed.
  13001. (sendPiece): Removed.
  13002. (sendPieceHeader): Removed.
  13003. (sendPieceData): Removed.
  13004. (sendCancel): Removed.
  13005. (getPeer): Removed.
  13006. * src/PeerConnection.cc
  13007. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13008. (sendHandshake): Removed.
  13009. (sendKeepAlive): Removed.
  13010. (createNLengthMessage): Removed.
  13011. (setIntParam): Removed.
  13012. (writeOutgoingMessageLog): Removed all overloaded functions.
  13013. (sendChoke): Removed.
  13014. (sendUnchoke): Removed.
  13015. (sendInterested): Removed.
  13016. (sendNotInterested): Removed.
  13017. (sendHave): Removed.
  13018. (sendBitfield): Removed.
  13019. (sendRequest): Removed.
  13020. (sendPiece): Removed.
  13021. (sendPieceHeader): Removed.
  13022. (sendPieceData): Removed.
  13023. (sendMessage): New function.
  13024. (sendCancel): Removed.
  13025. * src/PeerInteractionCommand.cc
  13026. (PeerInteractionCommand): Call setUploadLimit.
  13027. (executeInternal): Call setUploadLimit.
  13028. Added the handling of "inProgress" state of handshake message.
  13029. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13030. sendNow().
  13031. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13032. sendNow().
  13033. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13034. * src/TorrentMan.h
  13035. (PEER_ID_LENGTH): New definition.
  13036. (hasAllPieces): New function.
  13037. * src/TorrentMan.cc
  13038. (getMissingPiece): Added the handling of fast extension.
  13039. (cancelPiece): Call updatePiece().
  13040. (hasAllPieces): New function.
  13041. * src/PeerInteraction.h
  13042. (fastSet): New variable.
  13043. (getNewPieceAndSendInterest): Changed the return type to void.
  13044. (send): Renamed as sendMessages.
  13045. (deleteAllRequestSlot): Removed.
  13046. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13047. (cancelAllRequest): Removed all overloaded functions.
  13048. (deleteAllRequestSlot): Removed.
  13049. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13050. (rejectPieceMessageInQueue): New function.
  13051. (rejectAllPieceMessageInQueue): New function.
  13052. (onChoked): New function.
  13053. (isSendingMessageInProgress): New function.
  13054. (getCorrespondingRequestSlot): Changed its arguments.
  13055. (isInFastSet): New function.
  13056. (addFastSetIndex): New function.
  13057. (addRequests): New function.
  13058. (sendNow): Removed.
  13059. (trySendNow): Removed.
  13060. (sendBitfield): New function.
  13061. (sendAllowdFast): New function.
  13062. (createHaveAllMessage): New function.
  13063. (createHaveNoneMessage): New function.
  13064. (createRejectMessage): New function.
  13065. (createAllowedFastMessage): New function.
  13066. * src/PeerInteraction.cc
  13067. (send): Renamed as sendMessages.
  13068. (sendMessages): New function.
  13069. (MsgPushBack): New class.
  13070. (isSendingMessageInProgress): New function.
  13071. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13072. (rejectAllPieceMessageInQueue): New function.
  13073. Added the handling of fast extension.
  13074. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13075. (rejectPieceMessageInQueue): New function.
  13076. Added the handling of fast extension.
  13077. (deleteRequestSlot): Replaced for loop with std::find.
  13078. (onChoked): New function.
  13079. (deleteAllRequestSlot): Removed.
  13080. (abortPiece): Rewirtten.
  13081. (deleteTimeoutRequestSlot): Updated log messages.
  13082. (getCorrespondingRequestSlot): Changed its arguments.
  13083. (cancelAllRequest): Removed all overloaded functions.
  13084. (receiveHandshake): Added the check to see whether an incoming peer
  13085. supports fast extension.
  13086. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13087. PeerMessageUtil.
  13088. (createPeerMessage): Use create() of each message class instead of
  13089. PeerMessageUtil.
  13090. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13091. AllowedFastMessage were added.
  13092. (getNewPieceAndSendInterest): Changed its return value type to void.
  13093. Added the handling of fast extension.
  13094. (addRequests): New function.
  13095. (sendNow): Removed.
  13096. (sendHandshake): Rewritten.
  13097. (trySendNow): Removed.
  13098. (sendBitfield): New function.
  13099. (sendAllowdFast): New function.
  13100. (isInFastSet): New function.
  13101. (addFastSetIndex): New function.
  13102. (createRequestMessage): Use RequestMessage::create instead of
  13103. PeerMessageUtil.
  13104. (createCancelMessage): Use CancelMessage::create instead of
  13105. PeerMessageUtil.
  13106. (createPieceMessage): Use PieceMessage::create instead of
  13107. PeerMessageUtil.
  13108. (createHaveMessage): Use HaveMessage::create instead of
  13109. PeerMessageUtil.
  13110. (createChokeMessage): Use ChokeMessage::create instead of
  13111. PeerMessageUtil.
  13112. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13113. PeerMessageUtil.
  13114. (createInterestedMessage): Use InterestedMessage::create instead of
  13115. PeerMessageUtil.
  13116. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13117. of PeerMessageUtil.
  13118. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13119. PeerMessageUtil.
  13120. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13121. PeerMessageUtil.
  13122. (createHaveAllMessage): New function.
  13123. (createHaveNoneMessage): New function.
  13124. (createRejectMessage): New function.
  13125. (createAllowedFastMessage: New function.
  13126. * src/Util.h
  13127. (sha1Sum): New function.
  13128. (computeFastSet): New function.
  13129. * src/Util.cc
  13130. (sha1Sum): New function.
  13131. (computeFastSet): New function.
  13132. * src/Peer.h
  13133. (fastExtensionEnabled): New variable.
  13134. (fastSet): New variable.
  13135. (setAllBitfield): New function.
  13136. (setFastExtensionEnabled): New function.
  13137. (isFastExtensionEnabled): New function.
  13138. (addFastSetIndex): New function.
  13139. (getFastSet): New function.
  13140. (isInFastSet): New function.
  13141. (countFastSet): New function.
  13142. * src/Peer.cc
  13143. (isInFastSet): New function.
  13144. (addFastSetIndex): New function.
  13145. (setAllBitfield): New function.
  13146. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13147. sockets.
  13148. * src/PeerAbstractCommand.cc
  13149. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13150. and uploadLimit.
  13151. (execute): Changed the procedure of checking sockets. The upload speed
  13152. checking were added.
  13153. (setUploadLimit): New function.
  13154. (setUploadLimitCheck): New function.
  13155. * src/PeerAbstractCommand.h
  13156. (setUploadLimit): New function.
  13157. (setUploadLimitCheck): New function.
  13158. (uploadLimit): New variable.
  13159. (uploadLimitCheck): New variable.
  13160. To contact a tracker regularly:
  13161. * src/TrackerWatcherCommand.h (interval): New variable.
  13162. (checkPoint): New variable.
  13163. (TrackerWatcherCommand): Added interval argument.
  13164. * src/TrackerWatcherCommand.cc
  13165. (TrackerWatcherCommand): Initialized checkPoint.
  13166. (execute): Now a tracker is contacted in every specified period.
  13167. If peer list is not needed, send request with numwant=0.
  13168. * src/TrackerUpdateCommand.cc
  13169. (execute): Updated log messages.
  13170. * src/DownloadEngine.cc
  13171. (~DownloadEngine): Removed two asserts.
  13172. (waitData): Uncommented wfds. May be a bug fix.
  13173. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13174. * src/PeerInteractionCommand.h
  13175. (checkInactiveConnection): Removed.
  13176. * src/PeerInteractionCommand.cc
  13177. (executeInternal): Removed following function calls:
  13178. detectMessageFlooding(), checkLongTimePeerChoking and
  13179. checkInactiveConnection().
  13180. (checkInactiveConnection): Removed.
  13181. (detectMessageFlooding): Removed function call to
  13182. checkInactiveConnection().
  13183. * src/PeerMessageUtil.h
  13184. (createChokeMessage): New function. Overload.
  13185. (createUnchokeMessage): New function. Overload.
  13186. (createInterestedMessage): New function. Overload.
  13187. (createNotInterestedMessage): New function. Overload.
  13188. (createHaveMessage): New function. Overload.
  13189. (createBitfieldMessage): New function. Overload.
  13190. (createRequestMessage): New function. Overload.
  13191. (createCancelMessage): New function. Overload.
  13192. (createPieceMessage): New function. Overload.
  13193. (createKeepAliveMessage): New function. Overload.
  13194. * src/PeerMessageUtil.cc
  13195. (createChokeMessage): New function. Overload.
  13196. (createUnchokeMessage): New function. Overload.
  13197. (createInterestedMessage): New function. Overload.
  13198. (createNotInterestedMessage): New function. Overload.
  13199. (createHaveMessage): New function. Overload.
  13200. (createBitfieldMessage): New function. Overload.
  13201. (createRequestMessage): New function. Overload.
  13202. (createCancelMessage): New function. Overload.
  13203. (createPieceMessage): New function. Overload.
  13204. (createKeepAliveMessage): New function. Overload.
  13205. * src/SendMessageQueue.cc
  13206. (createRequestMessage): Use PeerMessageUtil.
  13207. (createCancelMessage): Use PeerMessageUtil.
  13208. (createPieceMessage): Use PeerMessageUtil.
  13209. (createHaveMessage): Use PeerMessageUtil.
  13210. (createChokeMessage): Use PeerMessageUtil.
  13211. (createUnchokeMessage): Use PeerMessageUtil.
  13212. (createInterestedMessage): Use PeerMessageUtil.
  13213. (createNotInterestedMessage): Use PeerMessageUtil.
  13214. (createBitfieldMessage): Use PeerMessageUtil.
  13215. (createKeepAliveMessage): Use PeerMessageUtil.
  13216. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13217. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13218. * src/PeerInteraction.h: New class.
  13219. * src/PeerInteraction.cc: New class.
  13220. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13221. Each peer message has its own class.
  13222. * src/PendingMessages.h: Removed.
  13223. * src/PendingMessages.cc: Removed. The sending process was moved to
  13224. each message class.
  13225. * src/RequestSlotMan.h: Removed.
  13226. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13227. SendMessageQueue.
  13228. * src/RequestMessage.h: New class.
  13229. * src/RequestMessage.cc: New class.
  13230. * src/CancelMessage.h: New class.
  13231. * src/CancelMessage.cc: New class.
  13232. * src/BitfieldMessage.h: New class.
  13233. * src/BitfieldMessage.cc: New class.
  13234. * src/ChokeMessage.h: New class.
  13235. * src/ChokeMessage.cc: New class.
  13236. * src/KeepAliveMessage.h: New class.
  13237. * src/KeepAliveMessage.cc: New class.
  13238. * src/PortMessage.h: New class.
  13239. * src/UnchokeMessage.h: New class.
  13240. * src/UnchokeMessage.cc: New class.
  13241. * src/PieceMessage.h: New class.
  13242. * src/PieceMessage.cc: New class.
  13243. * src/HaveMessage.h: New class.
  13244. * src/HaveMessage.cc: New class.
  13245. * src/BitfieldMessage.h: New class.
  13246. * src/BitfieldMessage.cc: New class.
  13247. * src/NotInterestedMessage.h: New class.
  13248. * src/NotInterestedMessage.cc: New class.
  13249. * src/InterestedMessage.h: New class.
  13250. * src/InterestedMessage.cc: New class.
  13251. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13252. (getSendMessageQueue): New function.
  13253. (setSendMessageQueue): New function.
  13254. * src/HandshakeMessage.cc: New class.
  13255. * src/PeerConnection.h (receiveMessage): Changed return value and
  13256. arguments.
  13257. (receiveHandshake): Changed return value and arguments.
  13258. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13259. here.
  13260. (receiveHandshake): Do not create handshake class here.
  13261. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13262. (piece): Removed.
  13263. (syncPiece): Removed.
  13264. (sendInterest): Removed.
  13265. (sendMessages): Removed.
  13266. (createRequestPendingMessage): Removed.
  13267. (checkPieceHash): Removed.
  13268. (erasePieceOnDisk): Removed.
  13269. (getNewPieceAndSendInterest): Removed.
  13270. (onGotNewPice): Removed.
  13271. (onGotWrongPiece): Removed.
  13272. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13273. Removed peerConnection, piece.
  13274. (~PeerInteractionCommand): Removed peerConnection.
  13275. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13276. (syncPiece): Moved to SendMessageQueue.
  13277. (decideChoking): Removed PendingMessage.
  13278. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13279. The action after receiving peer message was moved to each message
  13280. class.
  13281. (onGotNewPice): Moved to SendMessageQueue.
  13282. (onGotWrongPiece): Moved to SendMessageQueue.
  13283. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13284. (sendInterest): Moved to SendMessageQueue.
  13285. (createRequestPendingMessage): Removed.
  13286. (sendMessages): Moved to SendMessageQueue.
  13287. (onAbort): Use SendMessageQueue::abortPiece()
  13288. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13289. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13290. (checkPieceHash): Moved to SendMessageQueue.
  13291. (erasePieceOnDisk): Moved to SendMessageQueue.
  13292. * src/PeerMessageUtil.h
  13293. (createBitfieldMessage): Removed.
  13294. (createHaveMessage): Changed return value and arguments.
  13295. (createBitfieldMessage): Changed return value and arguments.
  13296. (createRequestCancelMessage): Removed.
  13297. (createPieceMessage): Changed return value and arguments.
  13298. (getShortIntParam): New function.
  13299. (checkIndex): Changed arguments.
  13300. (checkBegin): Changed arguments.
  13301. (checkLength): Changed arguments.
  13302. (checkPieceOffset): Removed.
  13303. (checkRange): New function.
  13304. (checkBitfield): Changed arguments.
  13305. (createPeerMessage): Removed.
  13306. (checkIntegrity): Removed.
  13307. (createHandshakeMessage): Changed arguments.
  13308. (createChokeMessage): New function.
  13309. (createUnchokeMessage): New function.
  13310. (createInterestedMessage): New function.
  13311. (createNotInterestedMessage): New function.
  13312. (createRequestMessage): New function.
  13313. (createCancelMessage): New function.
  13314. (createPortMessage): New function.
  13315. * src/PeerMessageUtil.cc
  13316. (createBitfieldMessage): Removed.
  13317. (createHaveMessage): Changed return value and arguments.
  13318. (createBitfieldMessage): Changed return value and arguments.
  13319. (createRequestCancelMessage): Removed.
  13320. (createPieceMessage): Changed return value and arguments.
  13321. (getShortIntParam): New function.
  13322. (checkIndex): Changed arguments.
  13323. (checkBegin): Changed arguments.
  13324. (checkLength): Changed arguments.
  13325. (checkPieceOffset): Removed.
  13326. (checkRange): New function.
  13327. (checkBitfield): Changed arguments.
  13328. (createPeerMessage): Removed.
  13329. (checkIntegrity): Removed.
  13330. (createHandshakeMessage): Changed arguments.
  13331. (createChokeMessage): New function.
  13332. (createUnchokeMessage): New function.
  13333. (createInterestedMessage): New function.
  13334. (createNotInterestedMessage): New function.
  13335. (createRequestMessage): New function.
  13336. (createCancelMessage): New function.
  13337. (createPortMessage): New function.
  13338. * src/PeerMessage.h
  13339. (id): Removed.
  13340. (index): Removed.
  13341. (begin): Removed.
  13342. (length): Removed.
  13343. (bitfield): Removed.
  13344. (bitfieldLength): Removed.
  13345. (block): Removed.
  13346. (blockLength): Removed.
  13347. (inProgress): New variable.
  13348. (cuid): New variable.
  13349. (peer): New variable.
  13350. (sendMessageQueue): New variable.
  13351. (logger): New variable.
  13352. (setBitfield): Removed.
  13353. (getBitfield): Removed.
  13354. (setBlock): Removed.
  13355. (getBlock): Removed.
  13356. (getBitfieldLength): Removed.
  13357. (getBlockLength): Removed.
  13358. (isInProgress): New function.
  13359. (toString): Made pure virtual.
  13360. (check): New function.
  13361. (send): New function.
  13362. (receivedAction): New function.
  13363. (getId): Made pure virtual.
  13364. (setId): Removed.
  13365. (getIndex): Removed.
  13366. (setIndex): Removed.
  13367. (getBegin): Removed.
  13368. (setBegin): Removed.
  13369. (getLength): Removed.
  13370. (setLength): Removed.
  13371. (getCuid): New function.
  13372. (setCuid): New function.
  13373. (getPeer): New function.
  13374. (setPeer): New function.
  13375. (getSendMessageQueue): New function.
  13376. (setSendMessageQueue): New function.
  13377. (ID): Removed.
  13378. * src/PeerMessage.cc
  13379. (setBitfield): Removed.
  13380. (setBlock): Removed.
  13381. (toString): Removed.
  13382. * src/TorrentMan.h
  13383. (getPieceLength): New function.
  13384. (getPieceLength): New function.
  13385. * src/SendMessageQueue.h
  13386. (REQUEST_TIME_OUT): New definition.
  13387. (RequestSlots): New definition.
  13388. (MessageQueue): New definition.
  13389. (requestSlotMan): Removed.
  13390. (pendingMessages): Removed.
  13391. (requestSlots): New variable.
  13392. (messageQueue): New variable.
  13393. (torrentMan): New variable.
  13394. (peerConnection): New variable.
  13395. (peer): New variable.
  13396. (piece): New variable.
  13397. (getNewPieceAndSendInterest): New function.
  13398. (createPeerMessage): New function.
  13399. (createHandshakeMessage): New function.
  13400. (send): Made private.
  13401. (setPeerMessageCommonProperty): New function.
  13402. (deleteAllRequestSlot): New function.
  13403. (deleteRequestMessageInQueue): New function.
  13404. (cancelAllRequest): Made private.
  13405. (cancelAllRequest): Made private.
  13406. (countRequestSlot): Made private.
  13407. (addPendingMessage): Removed.
  13408. (deletePendingPieceMessage): Removed.
  13409. (deletePendingRequestMessage): Removed.
  13410. (addMessage): New function.
  13411. (deletePieceMessageInQueue): New function.
  13412. (deleteTimeoutRequestSlot): Changed argument.
  13413. (deleteCompletedRequestSlot): Changed argument.
  13414. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13415. (getCorrespondingRequestSlot): New function.
  13416. (countPendingMessage): Removed.
  13417. (countMessageInQueue): New function.
  13418. (getTorrentMan): New function.
  13419. (getPeerConnection): New function.
  13420. (hasDownloadPiece): New function.
  13421. (getDownloadPiece): New function.
  13422. (setDownloadPiece): New function.
  13423. (syncPiece): New function.
  13424. (sendMessages): New function.
  13425. (sendNow): New function.
  13426. (trySendNow): New function.
  13427. (abortPiece): New function.
  13428. (sendHandshake): New function.
  13429. (receiveMessage): New function.
  13430. (receiveHandshake): New function.
  13431. (createRequestMessage): New function.
  13432. (createCancelMessage): New function.
  13433. (createPieceMessage): New function.
  13434. (createHaveMessage): New function.
  13435. (createChokeMessage): New function.
  13436. (createUnchokeMessage): New function.
  13437. (createInterestedMessage): New function.
  13438. (createNotInterestedMessage): New function.
  13439. (createBitfieldMessage): New function.
  13440. (createKeepAliveMessage): New function.
  13441. * src/SendMessageQueue.cc
  13442. (SendMessageQueue): Removed requestSlotMan.
  13443. Instantiated peerConnection here.
  13444. (~SendMessageQueue): Removed requestSlotMan.
  13445. Added deletion of peerConnection and the contents of messageQueue.
  13446. (send): Updated according to the change of messageQueue.
  13447. (addPendingMessage): Renamed to addMessage.
  13448. (addMessage): New function.
  13449. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13450. (deletePieceMessageInQueue): New function.
  13451. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13452. (deleteRequestMessageInQueue): New function.
  13453. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13454. here.
  13455. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13456. (...) was moved here.
  13457. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13458. moved here.
  13459. (deleteCompletedRequestSlot):
  13460. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13461. (getCorrespondingRequestSlot):
  13462. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13463. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13464. (countPendingMessage): Renamed to countMessageInQueue.
  13465. (countMessageInQueue): New function.
  13466. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13467. (receiveHandshake): New function.
  13468. (createHandshakeMessage): New function.
  13469. (receiveMessage): New function.
  13470. (createPeerMessage): New function.
  13471. (syncPiece): New function.
  13472. (getNewPieceAndSendInterest): New function.
  13473. (sendMessages): New function.
  13474. (sendNow): New function.
  13475. (trySendNow): New function.
  13476. (sendHandshake): New function.
  13477. (abortPiece): New function.
  13478. (getDownloadPiece): New function.
  13479. (getPeerMessageCommonProperty): New function.
  13480. (createRequestMessage): New function.
  13481. (createCancelMessage): New function.
  13482. (createPieceMessage): New function.
  13483. (createHaveMessage): New function.
  13484. (createChokeMessage): New function.
  13485. (createUnchokeMessage): New function.
  13486. (createInterestedMessage): New function.
  13487. (createNotInterestedMessage): New function.
  13488. (createBitfieldMessage): New function.
  13489. (createKeepAliveMessage): New function.
  13490. To add simple Content-Disposition support:
  13491. * src/HttpResponseCommand.h (determinFilename): New function.
  13492. * src/HttpResponseCommand.cc (executeInternal):
  13493. Use determinFilename(headers) instead of req->getFile() when comparing
  13494. filename.
  13495. (determinFilename): New function.
  13496. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13497. req->getFile().
  13498. (handleOtherEncoding): Use determinFilename(headers) instead of
  13499. req->getFile().
  13500. * src/Util.h (getContentDispositionFilename): New function.
  13501. * src/Util.cc (getContentDispositionFilename): New function.
  13502. * src/LogFactory.h (release): New function.
  13503. * src/LogFactory.cc (release): New function.
  13504. To fix a bug that causes out-of-bound exception when HTTP status
  13505. line is wrong:
  13506. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13507. size.
  13508. * src/common.h (Deleter): New class.
  13509. * src/SegmentMan.cc
  13510. (~SegmentMan): Added deletion of splitter and diskWriter.
  13511. * src/DownloadEngine.h
  13512. (Commands): Use deque.
  13513. (clearQueue): New function.
  13514. * src/DownloadEngine.cc
  13515. (~DownloadEngine): Added deletion of segmentMan.
  13516. (cleanQueue): New function.
  13517. * src/TorrentDownloadEngine.h
  13518. (TorrentDownloadEngine): The implementation was moved to
  13519. TorrentDownloadEngine.cc.
  13520. (~TorrentDownloadEngine): The implementation was moved to
  13521. TorrentDownloadEngine.cc.
  13522. * src/TorrentDownloadEngine.cc
  13523. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13524. * src/main.cc
  13525. (clearRequest): Removed.
  13526. (handler): Added deletion of e.
  13527. (torrentHandler): Added deletion of te.
  13528. (main): Do not share splitter.
  13529. Use Deleter instead of clearRequest.
  13530. Deletion of classes were updated.
  13531. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13532. * src/main.cc (main): Fixed typo.
  13533. * src/message.h: Fixed typo.
  13534. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13535. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13536. To add --select-file command-line option:
  13537. * src/Util.cc
  13538. (unfoldRange): New function.
  13539. (getNum): New function.
  13540. (unfoldSubRange): New function
  13541. * src/main.cc
  13542. (showUsage): Added help message.
  13543. (main): Added --select-file command-line option. Updated the layout of
  13544. file listing.
  13545. * src/common.h
  13546. (Integers): New definition.
  13547. * src/SocketCore.cc
  13548. (writeData): Removed timeout argument.
  13549. (readData): Removed timeout argument.
  13550. (peekData): Removed timeout argument.
  13551. * src/Socket.cc
  13552. (writeData): Removed timeout argument.
  13553. (readData): Removed timeout argument.
  13554. (peekData): Removed timeout argument.
  13555. * Release 0.4.1
  13556. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13557. To deploy upload rate based choking algorithm:
  13558. * src/PeerInteractionCommand.cc
  13559. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13560. peer currently used.
  13561. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13562. download completes. Simplified.
  13563. (receiveMessage): Updated.
  13564. * src/TorrentMan.h
  13565. (activePeers): New variable.
  13566. (addActivePeer): New function.
  13567. (getActivePeers): New function.
  13568. (deleteActivePeer): New function.
  13569. * src/TorrentMan.cc
  13570. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13571. * src/PeerAbstractCommand.cc
  13572. (onAbort): Use peer->resetStatus().
  13573. * src/main.cc
  13574. (PeerChokeCommand.h): Included.
  13575. (main): Added the instance of ChokingCommand to the command queue.
  13576. * src/Peer.h
  13577. (amChoking): Renamed from amChocking
  13578. (chokingRequired): New variable.
  13579. (optUnchoking): New variable.
  13580. (deltaUpload): New variable.
  13581. (deltaDownload): New variable.
  13582. (addDeltaUpload): New function.
  13583. (resetDeltaUpload): New function.
  13584. (addDeltaDownload): New function.
  13585. (resetDeltaDownload): New function.
  13586. (addPeerUpload): Added a call to addDeltaUpload.
  13587. (addPeerDownload): Added a call to addDeltaDownload.
  13588. * src/Peer.cc
  13589. (shouldBeChoking): Renamed from shouldChoke.
  13590. (resetStatus): New function.
  13591. * src/PeerChokeCommand.h: New class.
  13592. * src/PeerChokeCommand.cc: New class.
  13593. To add lazy upload speed limiter:
  13594. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13595. statistics calculation to TorrentDownloadEngine.
  13596. * src/TorrentConsoleDownloadEngine.cc
  13597. (sendStatistics): Renamed from printStatistics.
  13598. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13599. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13600. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13601. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13602. calculation.
  13603. (sendStatistics): New function as pure virtual function.
  13604. (getUploadSpeed): New function.
  13605. * src/TorrentDownloadEngine.cc
  13606. (initStatistics): New function.
  13607. (calculateSpeed): New function.
  13608. (calculateStatistics): New function.
  13609. * src/SendMessageQueue.h
  13610. (uploadLength): New variable.
  13611. (send): Added an argument.
  13612. (setUploadLimit): New function.
  13613. (getUploadLimit): New function.
  13614. * src/SendMessageQueue.cc
  13615. (send): Added upload speed limiter.
  13616. * src/prefs.h
  13617. (PREF_UPLOAD_LIMIT): New definition.
  13618. * src/PeerInteractionCommand.cc
  13619. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13620. * src/main.cc
  13621. (main): Added --upload-limit option
  13622. For bug fixes:
  13623. * src/main.cc
  13624. (showUsage): Corrected --listen-port help
  13625. Other changes:
  13626. * src/TorrentMan.cc
  13627. (getPeer): Return nullPeer if connection is grather than
  13628. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13629. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13630. To add some useful information to the exception message:
  13631. * src/SocketCore.cc : Updated messages.
  13632. * src/SegmentMan.cc :
  13633. * src/TorrentMan.cc : Updated messages.
  13634. * src/MultiDiskWriter.cc : Updated messages.
  13635. * src/Util.cc : Updated messages.
  13636. * src/AbstractDiskWriter.cc : Updated messages.
  13637. * src/PreAllocationDiskWriter.cc : Updated messages.
  13638. * src/message.cc : Added new messages. Updated some messages.
  13639. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13640. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13641. Updated threshold from 30 to 15.
  13642. * src/AbstractDiskWriter.h (filename): New variable.
  13643. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13644. (createFile): Assigned filename.
  13645. * src/main.cc: Updated the help message for http-auth-scheme.
  13646. * Release 0.4.0
  13647. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13648. To add TrackerUpdateCommand with which replaces
  13649. CompactTrackerResponseProcessor:
  13650. * src/TrackerWatcherCommand.h (req): Removed.
  13651. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13652. if the number of peer connections are less than 30.
  13653. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13654. * src/SegmentMan.h (diskWriter): New function.
  13655. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13656. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13657. (main): Use TrackerUpdateCommand.
  13658. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13659. (req): New variable.
  13660. (setTrackerResponseProcessor): Removed.
  13661. (getTrackerResponseProcessor): Removed.
  13662. (processTrackerResponse): Removed.
  13663. * src/DownloadEngine.h (diskWriter): Removed.
  13664. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13665. to torrentMan->processTrackerResponse().
  13666. To add Util::expandBuffer:
  13667. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13668. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13669. * src/Util.h (expandBuffer): New function.
  13670. To fix the bug that causes segmentation fault when "-l ." is specified
  13671. in command-line option:
  13672. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13673. (openFile): New function.
  13674. (closeFile): New function.
  13675. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13676. (~SimpleLogger): Call closeFile();
  13677. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13678. * src/main.cc (main): Added a check to see logger is configured
  13679. properly.
  13680. To enable HTTP authentication without specifying "--http-auth-scheme"
  13681. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13682. * src/HttpConnection.cc (createRequest): Send Authorization header
  13683. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13684. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13685. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13686. * src/Peer.cc (shouldChoke): Updated algorithm.
  13687. * src/message.h (EX_AUTH_FAILED): New definition.
  13688. (EX_FILE_OPEN): New definition.
  13689. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13690. if status == 401.
  13691. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13692. if req->isTorrent == true.
  13693. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13694. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13695. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13696. (createFile): Updated message.
  13697. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13698. To add a readout of estimated remaining time to normal HTTP/FTP
  13699. downloads:
  13700. * src/ConsoleDownloadEngine.h (startup): New variable.
  13701. (startupLength): New variable.
  13702. (isStartupLengthSet): New variable.
  13703. (avgSpeed): New variable.
  13704. (eta): New variable.
  13705. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13706. estimated remaining time.
  13707. (initStatistics): Initialized newly added variables.
  13708. (calculateStatistics): Calculate average speed and estimated remaining
  13709. time.
  13710. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13711. * src/TrackerDownloadCommand.h: Removed.
  13712. * src/TrackerDownloadCommand.cc: Removed.
  13713. * src/TrackerInitCommand.h: Removed.
  13714. * src/TrackerInitCommand.cc: Removed.
  13715. * src/TrackerUpdateCommand.h: Removed.
  13716. * src/TrackerUpdateCommand.cc: Removed.
  13717. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13718. url written in TrackerInitCommand was moved here. Do not create
  13719. tracker request command if torrentMan->trackers != 0.
  13720. * src/CompactTrackerResponseProcessor.h: New class.
  13721. * src/CompactTrackerResponseProcessor.cc: New class.
  13722. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13723. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13724. Decoupled TorrentDownloadEngine from this.
  13725. * src/SegmentMan.h (init): New function.
  13726. * src/SegmentMan.cc (init): New function.
  13727. * src/TorrentMan.h (responseProcessor): New variable.
  13728. (trackers): New variable.
  13729. (setTrackerResponseProcessor): New function.
  13730. (getTrackerResponseProcessor): New function.
  13731. (processTrackerResponse): New function.
  13732. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13733. (processTrackerResponse): New function.
  13734. * src/main.cc (main): Use ByteArrayDiskWriter and
  13735. CompactTrackerResponseProcessor.
  13736. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13737. processTrackerResponse().
  13738. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13739. readout.
  13740. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13741. which indicates download has completed.
  13742. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13743. (closeFile): fd >= 0, not fd > 0
  13744. * src/main.cc (main): Added short cut for show-files.
  13745. Added short cut for torrent-file.
  13746. Added new command-line option listen-port.
  13747. Updated i18n messages.
  13748. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13749. To add LogFactory which creates singleton logger:
  13750. * src/LogFactory.h: New class.
  13751. * src/LogFactory.cc: New class.
  13752. * src/Command.h (logger): New variable.
  13753. (Constructor): Use LogFactory.
  13754. * src/AbstractCommand.cc: Use Command::logger
  13755. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13756. Use LogFactory.
  13757. * src/SegmentSplitter.h : Made logger protected.
  13758. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13759. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13760. * src/DownloadEngine.h : Made logger protected.
  13761. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13762. * src/PeerInteractionCommand.cc : Use Command::logger.
  13763. * src/HttpResponseCommand.cc : Use Command::logger.
  13764. * src/SegmentMan.h : Made logger private.
  13765. * src/TorrentMan.h : Made logger private.
  13766. * src/TorrentMan.cc : Use LogFactory.
  13767. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13768. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13769. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13770. Use LogFactory.
  13771. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13772. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13773. Use LogFactory.
  13774. * src/DownloadCommand.cc : Use Command::logger.
  13775. * src/PeerAbstractCommand.cc : Use Command::logger.
  13776. * src/PeerListenCommand.cc : Use Command::logger.
  13777. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13778. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13779. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13780. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13781. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13782. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13783. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13784. Use LogFactory.
  13785. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13786. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13787. Use LogFactory.
  13788. * src/main.cc (main): Use LogFactory.
  13789. * src/DiskAdaptor.h (logger): New variable.
  13790. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13791. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13792. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13793. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13794. parameter to a tracker request.
  13795. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13796. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13797. * src/main.cc (setSignalHander): New function.
  13798. (main): Added a handler for SIGTERM.
  13799. (handler): Updated message.
  13800. (torrentHandler): Updated message.
  13801. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13802. * src/TorrentConsoleDownloadEngine.cc
  13803. (onPartialDownloadingCompletes): Renamed as
  13804. onSelectiveDownloadingCompletes.
  13805. (onSelectiveDownloadingCompletes): Updated message.
  13806. To add DiskAdaptor which abstract DiskWriter family:
  13807. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13808. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13809. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13810. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13811. MultiDiskAdaptor.h.
  13812. (readFileEntry): Changed its arguments.
  13813. (setup): setupDiskWriter is merged into this function.
  13814. (setupDiskWriter): Removed.
  13815. (setFileFilter): New function.
  13816. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13817. made in readFileEntry.
  13818. (getFilePath): Removed.
  13819. (getTempFilePath): Removed.
  13820. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13821. (fixFilename): Removed.
  13822. (copySingleFile): Removed.
  13823. (splitMultiFile): Removed.
  13824. (deleteTempFile): Removed.
  13825. (setFileEntriesToDownload): Removed.
  13826. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13827. (isSelectiveDownloadingMode): New function.
  13828. (setAllMultiFileRequestedState): Removed.
  13829. (finishPartialDownloadingMode): Renamed as
  13830. finishSelectiveDownloadingMode.
  13831. (finishSelectiveDownloadingMode): New function.
  13832. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13833. (getSelectedTotalLength): New function.
  13834. (onDownloadComplete): Use diskAdaptor.
  13835. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13836. (Range): Removed.
  13837. (setMultiFileEntries): Renamed as setFileEntries.
  13838. (setFileEntries): New function.
  13839. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13840. (pieceLength): New variable.
  13841. * src/main.cc (printDownloadCompeleteMessage): New function.
  13842. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13843. (main): Renamed torrent-show-files to show-files.
  13844. Rewritten file contents listing.
  13845. * src/TorrentMan.h (FileEntry): Removed.
  13846. (multiFileTopDir): Removed.
  13847. (multiFileEntries): Removed.
  13848. (diskWriter): Removed.
  13849. (diskAdaptor): New variable.
  13850. * src/DefaultDiskWriter.h (totalLength): New variable.
  13851. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13852. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13853. diskWriter.
  13854. * src/TorrentConsoleDownloadEngine.h
  13855. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13856. (partialTotalLength): Renamed as selectedTotalLength.
  13857. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13858. openExistingFile, otherwise call initAndOpenFile.
  13859. (closeFile): fd > 0, not fd != 0.
  13860. * src/DirectDiskAdaptor.h: New class.
  13861. * src/DirectDiskAdaptor.cc: New class.
  13862. * src/MultiDiskAdaptor.h: New class.
  13863. * src/MultiDiskAdaptor.cc: New class.
  13864. * src/CopyDiskAdaptor.h: New class.
  13865. * src/CopyDiskAdaptor.cc: New class.
  13866. * src/DiskAdaptor.h: New class.
  13867. * src/DiskAdaptor.cc: New class.
  13868. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13869. (PREF_SHOW_FILES): New definition.
  13870. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13871. To add the ability to download multi torrent into respective files
  13872. directly:
  13873. * src/DiskWriter.h (openFile): New function.
  13874. (seek): Removed.
  13875. * src/MultiDiskWriter.h: New class.
  13876. * src/MultiDiskWriter.cc: New class.
  13877. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13878. protected.
  13879. (openFile): New function.
  13880. * src/AbstractDiskWriter.cc (openFile): New function.
  13881. * src/prefs.h (V_FALSE): New definition.
  13882. (PREF_DIRECT_FILE_MAPPING): New definition.
  13883. * src/TorrentMan.h (setupDiskWriter): New function.
  13884. (setAllMultiFileRequestedState): New function.
  13885. (onDownloadComplete): New function.
  13886. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13887. (setupDiskWriter): New function.
  13888. (getFilePath): Updated.
  13889. (getTempFilePath): Updated.
  13890. (getSegmentFilePath): Updated.
  13891. (fixFilename): Updated.
  13892. (deleteTempFile): Updated.
  13893. (setAllMultiFileRequestedState): New function.
  13894. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13895. (finishPartialDownloadingMode): Reset requested flags.
  13896. (onDownloadComplete): New function.
  13897. * src/main.cc: Added --direct-file-mapping option.
  13898. Use TorrentMan::setupDiskWriter().
  13899. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13900. onDownloadComplete().
  13901. To fix ETA bug:
  13902. * src/Util.h (difftvsec): New function.
  13903. * src/Util.cc (difftvsec): New function.
  13904. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13905. type of "elapsed" instead of long long int.
  13906. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13907. The updates of statistics takes place every 1 seconds.
  13908. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13909. (calculateSpeed): Changed its argument signature.
  13910. * src/PeerMessage.cc (toString): Fixed message.
  13911. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13912. To print ETA:
  13913. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13914. completion handling when dealing with
  13915. TorrentMan::isPartialDownloadingMode() == true.
  13916. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13917. New function.
  13918. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13919. (sessionDownloadLength): New variable.
  13920. (avgSpeed): New variable.
  13921. (eta): New variable.
  13922. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13923. new variables: eta, avgSpeed, startup.
  13924. (calculateSpeed): Calculate average speed and ETA.
  13925. (printStatistics): Added ETA.
  13926. * src/Util.h (secfmt): New function.
  13927. * src/Util.cc (secfmt): New function.
  13928. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. To detect "keep alive" flooding:
  13930. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13931. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13932. variable: keepAliveCount.
  13933. (detectMessageFlooding): Added "keep alive" flooding detection.
  13934. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13935. received.
  13936. To add the ability to download only specified files in multi-file
  13937. torrent:
  13938. * src/BitfieldMan.h (filterBitfield): New variable.
  13939. (filterEnabled): New variable.
  13940. (setFilterBit): New function.
  13941. (enableFilter): New function.
  13942. (disableFilter): New function.
  13943. (isFilterEnabled): New function.
  13944. (getFilteredTotalLength): New function.
  13945. (getCompletedLength): New function.
  13946. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13947. filterBitfield, filterEnabled.
  13948. (CopyConstructor): Added filterBitfield and filterEnabled.
  13949. (operator==): Added filterBitfield and filterEnabled.
  13950. (Destructor): Added filterBitfield.
  13951. (getMissingIndex): Use filterBitfield.
  13952. (getMissingUnusedIndex): Use filterBitfield.
  13953. (getFirstMissingUnusedIndex): Use filterBitfield.
  13954. (getFirstMissingUnusedIndex): Use filterBitfield.
  13955. (getAllMissingIndexes): Use filterBitfield.
  13956. (countMissingBlock): Use filterBitfield.
  13957. (countBlock): Use filterBitfield.
  13958. (setBitInternal): Added new argument on.
  13959. (setUseBit): Use setBitInternal.
  13960. (unsetUseBit): Use setBitInternal.
  13961. (setBit): Use setBitInternal.
  13962. (unsetBit): Use setBitInternal.
  13963. (isAllBitSet): Use filterBitfield.
  13964. (setFilterBit): New function.
  13965. (addFilter): New function.
  13966. (enableFilter): New function.
  13967. (disableFilter): New function.
  13968. (clearFilter): New function.
  13969. (isFilterEnabled): New function.
  13970. (getFilteredTotalLength): New function.
  13971. (getCompletedLength): New function.
  13972. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13973. Initalized newly added variables.
  13974. [FileEntry](offset): New variable.
  13975. [FileEntry](extracted): New variable.
  13976. [FileEntry](requested): New variable.
  13977. (readFileEntry): New function.
  13978. (option): New variable.
  13979. (splitMultiFile): Removed const qualifier.
  13980. (fixFilename): Removed const qualifier.
  13981. (readFileEntryFromMetaInfoFile): New function.
  13982. (finishPartialDownloadingMode): New function.
  13983. (isPartialDownloadingMode): New function.
  13984. (setFileEntriesToDownload): New function.
  13985. (getCompletedLength): New function.
  13986. (getPartialTotalLength): New function.
  13987. * src/TorrentMan.cc (readFileEntry): New function.
  13988. (setup): Use readFileEntry. If no-preallocation option is specified,
  13989. use DefaultDiskWriter.
  13990. (readFileEntryFromMetaInfoFile): New function.
  13991. (fixFilename): Removed const qualifier.
  13992. (splitMultiFile): Removed const qualifier.
  13993. (setFileEntriesToDownload): New function.
  13994. (isPartialDownloadingMode): New function.
  13995. (finishPartialDownloadingMode): New function.
  13996. (getCompletedLength): New function.
  13997. (getPartialTotalLength): New function.
  13998. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13999. New variable.
  14000. (partialTotalLength): New variable.
  14001. (downloadLength): New variable.
  14002. (totalLength): New variable.
  14003. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14004. Added log.
  14005. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14006. partialTotalLength, downloadLength, totalLength.
  14007. (calculate): Calculate downloadLength and totalLength.
  14008. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14009. * src/main.cc (addCommand): Changed argument signature.
  14010. (main): Added new variable: args. Added new option "torrent-show-files"
  14011. "no-preallocation". Usage is not updated yet.
  14012. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14013. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14014. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14015. Attempt to add the ability to listing file entries in a .torrent file.
  14016. This feature is not yet complete.
  14017. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14018. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14019. (getName): New function.
  14020. * src/TorrentMan.h (getMultiFileEntries): New function.
  14021. (getName): New function.
  14022. * src/main.cc (main): Use above 2 funtion.
  14023. * Release 0.3.2
  14024. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14025. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14026. (detectMessageFlooding): Updated threshold value.
  14027. (checkLongTimePeerChoking): Updated timeout value.
  14028. (getNewPieceAndSendInterest): Added debug log.
  14029. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14030. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14031. (getPeer): Updated.
  14032. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14033. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14034. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14035. is localhost.
  14036. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14037. * src/PendingMessage.cc (processMessage): Not to send piece message
  14038. if peer is not interested in the pieces localhost has.
  14039. * src/Peer.cc (shouldChoke): Updated.
  14040. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14041. * src/Util.cc (isPowerOf): New function.
  14042. * src/Util.h (isPowerOf): New function.
  14043. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14044. whether or not it is power of 2.
  14045. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14046. Added new class SendMessageQueue that includes PendingMessages and
  14047. RequestSlotMan.
  14048. * src/SendMessageQueue.h: New class.
  14049. * src/SendMessageQueue.cc: New class.
  14050. * src/PendingMessage.h: Added new member variable blockIndex and its
  14051. accessors.
  14052. (createRequestMessage): Updated.
  14053. * src/PendingMessage.cc (createRequestMessage): Updated.
  14054. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14055. SendMessageQueue.
  14056. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14057. (receiveMessage): Updated with SendMessageQueue.
  14058. (deletePendingPieceMessage): Removed.
  14059. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14060. (sendInterest): Updated with SendMessageQueue.
  14061. (createRequestPendingMessage): Updated with SendMessageQueue.
  14062. (sendMessages): Updated with SendMessageQueue.
  14063. (onAbort): Updated with SendMessageQueue.
  14064. (keepAlive): Updated with SendMessageQueue.
  14065. (beforeSocketCheck): Updated SendMessageQueue.
  14066. * src/PeerInteractionCommand (sendMessages): Shuffle
  14067. missingBLockIndexes before using it.
  14068. Added its own timeout for peer connection.
  14069. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14070. setter.
  14071. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14072. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14073. Added setTimeout() call.
  14074. (executeInternal): Added setTimeout() call.
  14075. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14076. Added timeout.
  14077. (isTimeoutDetected): Updated.
  14078. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14079. option.
  14080. Added *simple* message flooding checker.
  14081. * src/PeerInteractionCommand.cc (executeInternal):
  14082. Added detectMessageFlooding() call.
  14083. (detectMessageFlooding): New function.
  14084. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14085. (beforeSocketCheck): Added detectMessageFlooding() call.
  14086. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14087. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14088. Removed deletePendingPieceMessage(), getRequestSlot(),
  14089. deleteRequestSlot(), deleteAllRequestSlot().
  14090. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14091. Added checkLongTimePeerChoking() call.
  14092. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14093. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14094. if duplicate == false.
  14095. The parameter "uploaded" and "downloaded" in the tracker request are
  14096. the size since the client sent the "started" event to the tracker.
  14097. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14098. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14099. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14100. getSessionDownloadedSize(), getSessionUploadedSize().
  14101. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14102. getSessionUploadedSize() instead of getDownloadedSize(),
  14103. getUploadedSize().
  14104. * src/PendingMessage.cc (processMessage): Do not send request message
  14105. if the peer is choking the client.
  14106. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14107. less than interval.
  14108. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14109. * configure.in: Added gnutls support. Added several CPP macros.
  14110. * m4/openssl.m4: Added.
  14111. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14112. readData(), peekData(). Added gnutls support.
  14113. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14114. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14115. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14116. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14117. Instead, added a check for whether setup method has executed
  14118. successfully.
  14119. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14120. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14121. * src/Makefile.am: Updated.
  14122. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14123. using whether OpenSSL or gcrypt, depending on the result of configure
  14124. script.
  14125. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14126. messageDigest.h.
  14127. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14128. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14129. Fixed memory leak.
  14130. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14131. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14132. Removed instantiation of TrackerInitCommand. Instead,
  14133. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14134. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14135. ENABLE_SSL.
  14136. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14137. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14138. If a piece is already acquired by another command, delete the request
  14139. slots for the piece.
  14140. * src/TrackerUpdateCommand.cc (execute):
  14141. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14142. Added a check whether peer list is null.
  14143. Fixed the bug that causes sending completed event to the tracker
  14144. several times.
  14145. * src/TrackerInitCommand.cc (execute):
  14146. Fixed the bug that causes sending completed event to the tracker
  14147. several times.
  14148. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14149. by using messageDigest.h.
  14150. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14151. * PeerConnection.cc: Replaced log message "keep-alive" with
  14152. "keep alive".
  14153. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14154. localhost long time.
  14155. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14156. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14157. at most 100 failure entry from the list. If with duplicate = false,
  14158. MAX_PEER_LIST is not checked.
  14159. * PeerListenCommand.cc: Fixed the argument order of log message.
  14160. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14161. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14162. Added warn().
  14163. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14164. Implemented warn().
  14165. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14166. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14167. * Request.h: Added AFTER_COMPLETED event.
  14168. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14169. instead of downloaded size and progress(%) after download completes.
  14170. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14171. message to the peer if it is interested in what localhost has
  14172. downloaded.
  14173. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14174. destination instead of just renaming it.
  14175. * TorrentMan.cc: Added deleteTempFile().
  14176. * PeerAbstractCommand.cc: do not stop execution after download
  14177. completes. This makes localhost a seeder.
  14178. * Util.{h,cc}: Added fileCopy().
  14179. * PeerListenCommand.cc: do not stop execution after download completes.
  14180. This makes localhost a seeder.
  14181. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14182. Added TorrentMan::deleteTempFile() to torrentHandler.
  14183. Initialized the variable dir as ".".
  14184. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14185. Deleted renameSingleFile().
  14186. Added copySingleFile(), deleteTempFile().
  14187. * DownloadEngine.h: Added virtual function afterEachIteration().
  14188. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14189. in onEndOfRun() to afterEachIteration().
  14190. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14191. true.
  14192. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14193. In rangedFileCopy(), added try-catch block to properly close file
  14194. descriptors.
  14195. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14196. Added afterEachIteration(), isFilenameFixed().
  14197. * Peer.cc: Changed choking strategy.
  14198. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14199. * TrackerInitCommand.cc: Send completed event only once.
  14200. * DownloadEngine.cc: Added a call to afterEachIteration().
  14201. * TrackerUpdateCommand.cc: Do not stop execution after download
  14202. completes.
  14203. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14204. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14205. received from a tracker.
  14206. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14207. Decreased the number of failure peers to delete to 0(just comment out
  14208. the line).
  14209. * Release 0.3.1
  14210. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14211. * PeerInteractionCommand.cc: added a call to
  14212. TorrentMan::unadvertisePiece in Destructor.
  14213. * PeerInteractionCommand.cc: make have message sent immediately
  14214. if the size of pending message queue is zero.
  14215. * TorrentMan.cc: set the maximum size of peer list to 250.
  14216. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14217. to deque.
  14218. * Util.cc: fixed rangedFileCopy.
  14219. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14220. to Constructor. Also, moved digest cleanup to Destructor.
  14221. * MetaFileUtil.cc: fixed memory leak
  14222. * replaced std::vector with std::deque.
  14223. * AbstractCommand.cc: casted timeout value to long long int.
  14224. * ChunkedEncoding.cc: fixed memory leak.
  14225. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14226. * SleepCommand.cc: casted timeout value to long long int.
  14227. * Data.cc: fixed memory leak.
  14228. * Data.cc: fixed toLLInt().
  14229. * BitfieldMan.cc: fixed memory leak.
  14230. * TorrentMan.cc: initialized storeDir to ".".
  14231. * TorrentMan.cc: fixed memory leak.
  14232. * TorrentMan.cc: corrected file paths of splitted files.
  14233. * PeerAbstractCommand.cc: casted timeout to long long int.
  14234. * main.cc: added delete(req) and delete(te->diskWriter).
  14235. * RequestSlot.cc: casted timeout value to long long int.
  14236. * Request.cc: fixed memory leak.
  14237. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14238. have the piece.
  14239. * Peer.{h,cc}: added hasPiece(int index).
  14240. * main.cc: corrected addCommand.
  14241. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. * BitTorrent protocol support added.
  14243. * Release 0.3.0
  14244. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14245. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14246. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14247. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14248. decoding did not work properly.
  14249. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14250. * DownloadEngine.h: included sys/time.h
  14251. * DownloadEngine.cc: remove sys/time.h
  14252. * Makefile.am (SUBDIRS): Add intl.
  14253. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14254. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14255. * main.cc: correct help message for --http-auth-scheme.
  14256. * main.cc: changed e-mail address for bug reports.
  14257. * ja.po: added japanese translation.
  14258. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14259. * SimpleLogger.cc: flush log file instead of stdout.
  14260. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14261. * main.cc: Fixed command-line option: max-tries
  14262. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14263. does not equal to seg.sp.
  14264. * DownloadCommand.cc: If EOF is got from the server and the total size
  14265. of file is not zero, then throw DlRetryEx.
  14266. * main.cc: Set the minium value of min-segment-size to 1024.
  14267. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14268. fails because of a regression since 0.2.0 release.
  14269. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14270. * HttpConnection.cc:
  14271. * common.h: defined the user agent name as macro
  14272. * DownloadEngine.{h, cc}:
  14273. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14274. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14275. * main.cc: Download complete/abort message is now generated by main.
  14276. * Makefile.am (SUBDIRS): Add m4.
  14277. (ACLOCAL_AMFLAGS): New variable.
  14278. (EXTRA_DIST): New variable.
  14279. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14280. * gettext: added gettext functionality
  14281. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14282. * AbstractCommand.cc:
  14283. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14284. unregister its cuid from SegmentMan.
  14285. * DownloadEngine.cc: .aria2 file was written when a downloading
  14286. failed with errors.
  14287. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14288. Added "User-Agent" header to CONNECT proxy request.
  14289. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14290. properly.
  14291. * Logger.h:
  14292. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14293. * ChunkedEncoding.cc: Added #include directive for strings.h
  14294. * Release 0.2.1
  14295. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14296. * Util.{h,cc}: added startsWith().
  14297. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14298. Util::endsWith().
  14299. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14300. * common.h: added #include directive of limit.h.
  14301. * DownloadEngine.cc: added #include directive of sys/time.h and
  14302. algorithm.
  14303. * Exception.h: added #include directive of stdio.h.
  14304. * AbstractCommand.h: added #include directive of sys/time.h.
  14305. * DownloadCommand.h: added #include directive of sys/time.h.
  14306. * *.h: added #include directive of common.h to all base classes.
  14307. subclasses' one was removed.
  14308. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14309. does not define these macros.
  14310. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14311. * Release 0.2.0
  14312. * main.cc:
  14313. * HttpInitiateConnectionCommand.{h,cc}:
  14314. * prefs.h:
  14315. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14316. We can now use GET command in http proxy.
  14317. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14318. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14319. that splits slowest segment of SegmentMan::commands vector.
  14320. This is the default split algorithm of aria2.
  14321. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14322. that splits first segment of SegmentMan::commands vector.
  14323. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14324. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14325. * Segment.h:
  14326. * SegmentMan.cc: Added speed field to Segment.h
  14327. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14328. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14329. * message.h: Change file size related %d to %lld.
  14330. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14331. * FtpInitiateConnectionCommand.{h,cc}:
  14332. * FtpNegotiationCommand.{h,cc}:
  14333. * FtpDownloadCommand.{h,cc}:
  14334. * FtpConnection.{h,cc}: Added FTP support
  14335. * SimpleLogger.cc: Log message now includes time information.
  14336. * main.cc: The value of --http-auth-scheme option is chagned from
  14337. 'BASIC' to 'basic'
  14338. * main.cc: Added --timeout command-line option.
  14339. * main.cc: Added --min-segment-size command-line option.
  14340. * main.cc: Added --max-retries command-line option.
  14341. * prefs.h: option string constants are now defined in prefs.h
  14342. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14343. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14344. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14345. with version 0.1.0's one.
  14346. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14347. * configure.in: Added --enable-ssl option to configure script.
  14348. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14349. cannot permit absoluteURI as Request-URI.
  14350. * HttpConnection.cc: Added Referer support.
  14351. * main.cc: Added referer command-line option.
  14352. * main.cc: Added rety-wait command-line option.
  14353. * Exception.h: Fixed formating bug in Exception::setMsg()
  14354. * SocketCore.{h,cc}:
  14355. * Socket.{h, cc}:
  14356. * Request.cc:
  14357. * InitiateConnectionCommandFactory.cc:
  14358. * HttpRequestCommand.cc: Added HTTPS support.
  14359. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14360. for SocketCore.
  14361. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14362. size is wrong
  14363. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14364. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14365. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14366. * Release 0.1.0