ChangeLog 520 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416
  1. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Bump up version number to 1.3.1
  3. * configure.ac
  4. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Removed unused variable checkPoint. Also removed include directive
  6. for TimeA2.h.
  7. * src/SeedCheckCommand.h
  8. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Fixed the bug that upload limit exceeds the value specified in
  10. --seed-ratio option depending on the timing of the execution of
  11. SeedCheckCommand.
  12. * src/SeedCheckCommand.cc
  13. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Fixed the bug that removed peer's session upload/download length
  15. are counted twice in _cachedTransferStat before it is
  16. re-calculated. This affected the calculation of shara ratio,
  17. resulting aria2 wrongly determines that specified share ratio is
  18. reached. Also fixed the typo in calculateStatFor function name.
  19. * src/BtSetup.cc
  20. * src/DefaultPeerStorage.cc
  21. * src/ShareRatioSeedCriteria.h
  22. * test/ShareRatioSeedCriteriaTest.cc
  23. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. * Release 1.3.0
  25. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  27. Nynorsk translations. Thanks to all translators.
  28. * po/es.po
  29. * po/ja.po
  30. * po/nn.po
  31. * po/ru.po
  32. * po/uk.po
  33. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Rewritten isInRange()
  35. * src/DHTBucket.cc
  36. * test/DHTBucketTest.cc
  37. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed typo
  39. * doc/aria2c.1.txt
  40. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  42. malloc/realloc is not used.
  43. * src/configure.ac
  44. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. BitfieldMan::getMissingIndexes family functions now takes unsigned
  46. char* bitfield instead of stl container for efficiency.
  47. PieceSelector::select now takes this
  48. bitfield. RarestPieceSelector::select now also performs
  49. efficiently for this change. bitfield namespace is introduced and
  50. it has several helper functions to handle basic bitfield
  51. operations such as test, count set bits, etc.
  52. * src/BitfieldMan.cc
  53. * src/BitfieldMan.h
  54. * src/DefaultBtRequestFactory.cc
  55. * src/DefaultPieceStorage.cc
  56. * src/DefaultPieceStorage.h
  57. * src/LongestSequencePieceSelector.cc
  58. * src/LongestSequencePieceSelector.h
  59. * src/Makefile.am
  60. * src/Piece.cc
  61. * src/Piece.h
  62. * src/PieceSelector.h
  63. * src/RarestPieceSelector.cc
  64. * src/RarestPieceSelector.h
  65. * src/Util.cc
  66. * src/Util.h
  67. * src/bitfield.h
  68. * test/BitfieldManTest.cc
  69. * test/LongestSequencePieceSelectorTest.cc
  70. * test/Makefile.am
  71. * test/RarestPieceSelectorTest.cc
  72. * test/UtilTest.cc
  73. * test/bitfieldTest.cc
  74. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Made accepted socket non-block.
  76. * src/FtpNegotiationCommand.cc
  77. * src/HttpListenCommand.cc
  78. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Guarded #ifdef HAVE_POSIX_FALLOCATE
  80. * src/AbstractSingleDiskAdaptor.cc
  81. * src/DefaultPieceStorage.cc
  82. * src/DiskAdaptor.h
  83. * src/DiskAdaptor.h
  84. * src/MultiFileAllocationIterator.cc
  85. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Run
  87. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  88. in every 1 sec. The timeout of RequestSlot is 60s by default and
  89. it doesn't need to be called every time when
  90. DefaultBtInteractive::doInteractionProcessing() is called.
  91. * src/DefaultBtInteractive.cc
  92. * src/DefaultBtInteractive.h
  93. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Documented 'falloc' in man page.
  95. * doc/aria2c.1.txt
  96. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Updated doc
  98. * src/usage_text.h
  99. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Added 'falloc' parameter for --file-allocation option. 'falloc'
  101. allocation mode uses posix_fallocate() system call to allocate
  102. file on disk. If you are using newer file systems such as ext4
  103. (with extents support), btrfs or xfs, 'falloc' is your best
  104. choice. It allocates large(few GiB) files almost instantly. Don't
  105. use 'falloc' with legacy file systems such as ext3 because it
  106. takes almost same time as 'prealloc' and it blocks aria2 entirely
  107. until allocation finishes. 'falloc' may not be available if your
  108. system doesn't have posix_fallocate() system call.
  109. * configure.ac
  110. * src/AbstractDiskWriter.cc
  111. * src/AbstractDiskWriter.h
  112. * src/AbstractSingleDiskAdaptor.cc
  113. * src/BinaryStream.h
  114. * src/BtCheckIntegrityEntry.cc
  115. * src/ByteArrayDiskWriter.h
  116. * src/CheckIntegrityEntry.cc
  117. * src/CheckIntegrityEntry.h
  118. * src/DefaultPieceStorage.cc
  119. * src/DiskAdaptor.cc
  120. * src/DiskAdaptor.h
  121. * src/DiskWriter.h
  122. * src/FallocFileAllocationIterator.cc
  123. * src/FallocFileAllocationIterator.h
  124. * src/FileAllocationEntry.cc
  125. * src/FileAllocationEntry.h
  126. * src/Makefile.am
  127. * src/MultiFileAllocationIterator.cc
  128. * src/MultiFileAllocationIterator.h
  129. * src/OptionHandlerFactory.cc
  130. * src/RequestGroup.cc
  131. * src/StreamCheckIntegrityEntry.cc
  132. * src/prefs.cc
  133. * src/prefs.h
  134. * src/usage_text.h
  135. * test/FallocFileAllocationIteratorTest.cc
  136. * test/Makefile.am
  137. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Removed duplicate enableDirectIO() call.
  139. * src/MultiFileAllocationIterator.cc
  140. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  142. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  143. cost of std::rotate().
  144. * src/RarestPieceSelector.cc
  145. * src/RarestPieceSelector.h
  146. * test/RarestPieceSelectorTest.cc
  147. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Updated usage doc for --bt-tracker-interval option.
  149. * src/usage_text.h
  150. * doc/aria2c.1.txt
  151. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Documented --bt-tracker-interval option in man page.
  153. * doc/aria2c.1.txt
  154. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Added an option to specify the interval between tracker requests.
  156. If non-zero value is specified, aria2 uses it and ignores the
  157. interval value in the response of tracker. If zero is specified,
  158. aria2 determines the inteval value based on the tarcker response
  159. and download progress.
  160. * src/DefaultBtAnnounce.cc
  161. * src/DefaultBtAnnounce.h
  162. * src/OptionHandlerFactory.cc
  163. * src/RequestGroup.cc
  164. * src/prefs.cc
  165. * src/prefs.h
  166. * src/usage_text.h
  167. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Added operator+=, operator-=, operator-
  169. * src/TransferStat.cc
  170. * src/TransferStat.h
  171. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Refactored RarestPieceSelector to reduce CPU load, especially for
  173. addPieceStats.
  174. * src/RarestPieceSelector.cc
  175. * src/RarestPieceSelector.h
  176. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  178. getAllMissingBlockIndexes to reduce a call to
  179. array_function_base::operator[].
  180. * src/BitfieldMan.cc
  181. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Cached TransferStat/download speed to avoid to sum them up in each
  183. call.
  184. * src/DefaultPeerStorage.cc
  185. * src/DefaultPeerStorage.h
  186. * src/SegmentMan.cc
  187. * src/SegmentMan.h
  188. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Typedefed cuid_t as int32_t in Command.h
  190. * src/CUIDCounter.h
  191. * src/Command.cc
  192. * src/Command.h
  193. * src/DownloadEngine.cc
  194. * src/DownloadEngine.h
  195. * src/PeerStat.h
  196. * src/SegmentMan.cc
  197. * src/SegmentMan.h
  198. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Reduced the number of calls to PeerStorage::calculateStat() and
  200. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  201. transfer rate.
  202. * src/DefaultBtInteractive.cc
  203. * src/DefaultBtMessageDispatcher.cc
  204. * src/DefaultPeerStorage.cc
  205. * src/DefaultPeerStorage.h
  206. * src/DownloadCommand.cc
  207. * src/DownloadEngine.cc
  208. * src/PeerStorage.h
  209. * src/SegmentMan.cc
  210. * src/SegmentMan.h
  211. * test/MockPeerStorage.h
  212. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Prepended _dir+"/" after joining path elements in torrent file.
  214. * src/DefaultBtContext.cc
  215. * test/DefaultBtContextTest.cc
  216. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Added missing IndexBtMessageValidator.h
  218. * src/Makefile.am
  219. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  221. Chinese translations. Thank you for contributing our project.
  222. * po/id.po
  223. * po/it.po
  224. * po/ru.po
  225. * po/uk.po
  226. * po/zh_CN.po
  227. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Updated README
  229. * README
  230. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Bump up version number to 1.3.0
  232. * configure.ac
  233. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Updated doc
  235. * src/DefaultBtContext.h
  236. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Slice/joinPath for name of single torrent.
  238. * src/DefaultBtContext.cc
  239. * test/DefaultBtContextTest.cc
  240. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Updated man page: Documented --dry-run and --index-out
  242. options. Changed the default value of --uri-selector and
  243. --http-auth-challenge options. Removed --direct-file-mapping
  244. option. Added example for --index-out
  245. * doc/aria2c.1.txt
  246. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Updated TEXT_DRY_RUN
  248. * src/usage_text.h
  249. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Changed the default value of --uri-selector option from 'inorder'
  251. to 'feedback'
  252. * src/OptionHandlerFactory.cc
  253. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Included current URI in exception message.
  255. * src/AbstractCommand.cc
  256. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Renamed ServerStatURISelector as FeedbackURISelector.
  258. * src/FeedbackURISelector.cc
  259. * src/FeedbackURISelector.h
  260. * src/Makefile.am
  261. * src/RequestGroupMan.cc
  262. * src/ServerStatURISelector.cc
  263. * src/ServerStatURISelector.h
  264. * test/FeedbackURISelectorTest.cc
  265. * test/Makefile.am
  266. * test/ServerStatURISelectorTest.cc
  267. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  269. all URIs are tested and their timeout is not reached.
  270. * src/AdaptiveURISelector.cc
  271. * src/AdaptiveURISelector.h
  272. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Changed the default value of --http-auth-challenge option to false.
  274. * src/OptionHandlerFactory.cc
  275. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Reuse URIs when all unused URIs run out.
  277. * src/OptionHandlerFactory.cc
  278. * src/RequestGroup.cc
  279. * src/prefs.cc
  280. * src/prefs.h
  281. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  283. and BtRejectMessage are derived from RangeBtMessage class.
  284. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  285. derived from IndexBtMessage class. BtChokeMessage,
  286. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  287. BtNotInterestedMessage and BtUnchokeMessage are derived from
  288. ZeroBtMessage class.
  289. * src/AbstractBtMessage.cc
  290. * src/AbstractBtMessage.h
  291. * src/BtAllowedFastMessage.cc
  292. * src/BtAllowedFastMessage.h
  293. * src/BtAllowedFastMessageValidator.h: Removed
  294. * src/BtBitfieldMessage.cc
  295. * src/BtBitfieldMessage.h
  296. * src/BtCancelMessage.cc
  297. * src/BtCancelMessage.h
  298. * src/BtCancelMessageValidator.h: Removed
  299. * src/BtChokeMessage.cc
  300. * src/BtChokeMessage.h
  301. * src/BtExtendedMessage.cc
  302. * src/BtExtendedMessage.h
  303. * src/BtHandshakeMessage.cc
  304. * src/BtHandshakeMessage.h
  305. * src/BtHaveAllMessage.cc
  306. * src/BtHaveAllMessage.h
  307. * src/BtHaveMessage.cc
  308. * src/BtHaveMessage.h
  309. * src/BtHaveMessageValidator.h: Removed
  310. * src/BtHaveNoneMessage.cc
  311. * src/BtHaveNoneMessage.h
  312. * src/BtInterestedMessage.cc
  313. * src/BtInterestedMessage.h
  314. * src/BtKeepAliveMessage.cc
  315. * src/BtKeepAliveMessage.h
  316. * src/BtNotInterestedMessage.cc
  317. * src/BtNotInterestedMessage.h
  318. * src/BtPieceMessage.cc
  319. * src/BtPieceMessage.h
  320. * src/BtPortMessage.cc
  321. * src/BtPortMessage.h
  322. * src/BtRejectMessage.cc
  323. * src/BtRejectMessage.h
  324. * src/BtRejectMessageValidator.h: Removed
  325. * src/BtRequestMessage.cc
  326. * src/BtRequestMessage.h
  327. * src/BtRequestMessageValidator.h: Removed
  328. * src/BtSuggestPieceMessage.cc
  329. * src/BtSuggestPieceMessage.h
  330. * src/BtSuggestPieceMessageValidator.h: Removed
  331. * src/BtUnchokeMessage.cc
  332. * src/BtUnchokeMessage.h
  333. * src/DefaultBtMessageFactory.cc
  334. * src/IndexBtMessage.cc
  335. * src/IndexBtMessage.h
  336. * src/IndexBtMessageValidator.h
  337. * src/Makefile.am
  338. * src/PeerMessageUtil.cc
  339. * src/PeerMessageUtil.h
  340. * src/RangeBtMessage.cc
  341. * src/RangeBtMessage.h
  342. * src/RangeBtMessageValidator.h
  343. * src/SimpleBtMessage.cc
  344. * src/SimpleBtMessage.h
  345. * src/ZeroBtMessage.cc
  346. * src/ZeroBtMessage.h
  347. * test/BtRequestMessageTest.cc
  348. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Reverted usage_text.h to r1093 to avoid to lose translated
  350. messages.
  351. * src/usage_text.h
  352. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  354. declared as non-const previously is now const and defined in class
  355. definition.
  356. * src/AbstractBtMessage.cc
  357. * src/AbstractBtMessage.h
  358. * src/BtAllowedFastMessage.cc
  359. * src/BtAllowedFastMessage.h
  360. * src/BtBitfieldMessage.h
  361. * src/BtCancelMessage.cc
  362. * src/BtCancelMessage.h
  363. * src/BtChokeMessage.cc
  364. * src/BtChokeMessage.h
  365. * src/BtExtendedMessage.cc
  366. * src/BtExtendedMessage.h
  367. * src/BtHandshakeMessage.cc
  368. * src/BtHandshakeMessage.h
  369. * src/BtHaveAllMessage.cc
  370. * src/BtHaveAllMessage.h
  371. * src/BtHaveMessage.cc
  372. * src/BtHaveMessage.h
  373. * src/BtHaveNoneMessage.cc
  374. * src/BtHaveNoneMessage.h
  375. * src/BtInterestedMessage.cc
  376. * src/BtInterestedMessage.h
  377. * src/BtKeepAliveMessage.cc
  378. * src/BtKeepAliveMessage.h
  379. * src/BtMessage.h
  380. * src/BtNotInterestedMessage.cc
  381. * src/BtNotInterestedMessage.h
  382. * src/BtPieceMessage.h
  383. * src/BtPortMessage.cc
  384. * src/BtPortMessage.h
  385. * src/BtRejectMessage.cc
  386. * src/BtRejectMessage.h
  387. * src/BtRequestMessage.cc
  388. * src/BtRequestMessage.h
  389. * src/BtSuggestPieceMessage.cc
  390. * src/BtSuggestPieceMessage.h
  391. * src/BtUnchokeMessage.cc
  392. * src/BtUnchokeMessage.h
  393. * src/SimpleBtMessage.cc
  394. * src/SimpleBtMessage.h
  395. * test/MockBtMessage.h
  396. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Use FileEntry::exists()
  398. * src/MultiDiskAdaptor.cc
  399. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Added exists()
  401. * src/FileEntry.cc
  402. * src/FileEntry.h
  403. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Added missing prefix dir.
  405. * src/download_helper.cc
  406. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Removed --direct-file-mapping option and CopyDiskAdaptor.
  408. * src/CopyDiskAdaptor.cc: Removed
  409. * src/CopyDiskAdaptor.h: Removed
  410. * src/DefaultPieceStorage.cc
  411. * src/Makefile.am
  412. * src/OptionHandlerFactory.cc
  413. * src/prefs.cc
  414. * src/prefs.h
  415. * src/usage_text.h
  416. * test/CopyDiskAdaptorTest.cc: Removed
  417. * test/Makefile.am
  418. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Rewritten isSameFileBeingDownloaded()
  420. * src/RequestGroupMan.cc
  421. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Removed getName() from DownloadContext. getName() is declared in
  423. BtContext.
  424. * src/BtContext.h
  425. * src/DownloadContext.h
  426. * src/SingleFileDownloadContext.cc
  427. * src/SingleFileDownloadContext.h
  428. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  429. in AbstractSingleDiskAdaptor.
  430. * src/AbstractSingleDiskAdaptor.h
  431. * src/DiskAdaptor.h
  432. * src/MultiDiskAdaptor.h
  433. * src/RequestGroup.cc
  434. Removed setTopDir() and getTopDir() and getTopDirPath() from
  435. MultiDiskAdaptor.
  436. * src/DefaultPieceStorage.cc
  437. * src/MultiDiskAdaptor.cc
  438. * src/MultiDiskAdaptor.h
  439. * test/MultiDiskAdaptorTest.cc
  440. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. FileEntry::getPath() contains store(top level) directory to
  442. simplify path handling operation. In the previous implementation,
  443. store directory is concatenated to FileEntry::getPath() in
  444. DownloadContext.
  445. * src/BtDependency.cc
  446. * src/BtPostDownloadHandler.cc
  447. * src/CopyDiskAdaptor.cc
  448. * src/DefaultBtContext.cc
  449. * src/DirectDiskAdaptor.cc
  450. * src/FileEntry.cc
  451. * src/FileEntry.h
  452. * src/FtpNegotiationCommand.cc
  453. * src/HttpResponse.cc
  454. * src/HttpResponseCommand.cc
  455. * src/Metalink2RequestGroup.cc
  456. * src/MultiDiskAdaptor.cc
  457. * src/MultiDiskAdaptor.h
  458. * src/MultiFileAllocationIterator.cc
  459. * src/RequestGroup.cc
  460. * src/SingleFileDownloadContext.cc
  461. * src/SingleFileDownloadContext.h
  462. * src/download_helper.cc
  463. * test/BtDependencyTest.cc
  464. * test/CopyDiskAdaptorTest.cc
  465. * test/DefaultBtContextTest.cc
  466. * test/DefaultBtProgressInfoFileTest.cc
  467. * test/DirectDiskAdaptorTest.cc
  468. * test/DownloadHelperTest.cc
  469. * test/FileEntryTest.cc
  470. * test/MultiDiskAdaptorTest.cc
  471. * test/MultiFileAllocationIteratorTest.cc
  472. * test/RequestGroupTest.cc
  473. * test/SingleFileDownloadContextTest.cc
  474. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Fixed compiler warning
  476. * src/download_helper.cc
  477. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Throw exception if same infohash torrent is now downloading.
  479. * src/RequestGroup.cc
  480. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Added --dry-run option. In this mode, aria2 just checks whether
  482. the remote file is available and doesn't download data. This
  483. option has effect on HTTP/FTP downloads and BitTorrent downloads
  484. are canceled in this mode.
  485. * src/FtpNegotiationCommand.cc
  486. * src/HttpResponseCommand.cc
  487. * src/HttpResponseCommand.h
  488. * src/OptionHandlerFactory.cc
  489. * src/RequestGroup.cc
  490. * src/RequestGroupMan.cc
  491. * src/prefs.cc
  492. * src/prefs.h
  493. * src/usage_text.h
  494. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Fixed compiler waring
  496. * test/UriListParserTest.cc
  497. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Parse options in -i list using OptionParser.
  499. * src/UriListParser.cc
  500. * src/UriListParser.h
  501. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Don't reset URI in retry to avoid additional round trips because
  503. of redirects.
  504. * src/AbstractCommand.cc
  505. * src/OptionHandlerFactory.cc
  506. * src/prefs.cc
  507. * src/prefs.h
  508. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Declared hide() in OptionHandler.
  510. * src/NameMatchOptionHandler.h
  511. * src/OptionHandler.h
  512. * src/OptionHandlerImpl.h
  513. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Updated doc
  515. * src/Peer.h
  516. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added log message in setStatusInternal()
  518. * src/ServerStat.cc
  519. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Call ServerStat::setError() in AbstractCommand::onAbort() to
  521. effectively exclude failed server.
  522. * src/AbstractCommand.cc
  523. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Added --index-out option to specify each file path for torrent.
  525. Here index shown in --show-files option is used to specify which
  526. file path should be altered. For example, to change the file path
  527. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  528. option multiple times: --index-out=1=aria2.tar.bz2
  529. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  530. available. This option can be specified in -i list.
  531. * src/DefaultBtContext.cc
  532. * src/DefaultBtContext.h
  533. * src/MultiDiskAdaptor.cc
  534. * src/MultiDiskAdaptor.h
  535. * src/MultiFileAllocationIterator.cc
  536. * src/OptionHandlerFactory.cc
  537. * src/OptionHandlerImpl.h
  538. * src/Util.cc
  539. * src/Util.h
  540. * src/download_helper.cc
  541. * src/prefs.cc
  542. * src/prefs.h
  543. * src/usage_text.h
  544. * test/DefaultBtContextTest.cc
  545. * test/MultiDiskAdaptorTest.cc
  546. * test/MultiFileAllocationIteratorTest.cc
  547. * test/UtilTest.cc
  548. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Use Util::pathJoin()
  550. * src/MetalinkParserController.cc
  551. * test/test.xml
  552. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Use Util::pathJoin()
  554. * src/DefaultBtContext.cc
  555. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Added Util::pathJoin()
  557. * src/Util.h
  558. * test/UtilTest.cc
  559. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Applied basename function to remove directory element in
  561. content-disposition value.
  562. Return empty string if content-disposition value is ".." or ".".
  563. * src/Util.cc
  564. * test/UtilTest.cc
  565. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Added --max-overall-download-limit in man page.
  567. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  568. * doc/aria2c.1.txt
  569. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added --max-overall-download-limit option. Now --max-upload-limit
  571. option is not ignored when --max-overall-upload-limit option has
  572. non-zero value. aria2 checks download(upload) speed in the order:
  573. first checks overall speed limit and if it is not exceeded, then
  574. checks speed limit per download. Thus you can specify both
  575. value. For example, set --max-overall-download-limit=1M and
  576. --max-download-limit=500K to prevent from one download from eating
  577. all overall speed limit.
  578. * src/DefaultBtInteractive.cc
  579. * src/DefaultBtInteractive.h
  580. * src/DefaultBtMessageDispatcher.cc
  581. * src/DefaultBtMessageDispatcher.h
  582. * src/DownloadCommand.cc
  583. * src/DownloadCommand.h
  584. * src/FtpNegotiationCommand.cc
  585. * src/HttpResponseCommand.cc
  586. * src/OptionHandlerFactory.cc
  587. * src/PeerInteractionCommand.cc
  588. * src/RequestGroup.cc
  589. * src/RequestGroup.h
  590. * src/RequestGroupMan.cc
  591. * src/RequestGroupMan.h
  592. * src/prefs.cc
  593. * src/prefs.h
  594. * src/usage_text.h
  595. * test/DefaultBtMessageDispatcherTest.cc
  596. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Documented select-file option in Input File section.
  598. Documented --http-auth-challenge option.
  599. * doc/aria2c.1.txt
  600. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Now select-file can be specified in the uri list(-i list).
  602. * src/BtContext.cc
  603. * src/BtContext.h
  604. * src/RequestGroup.cc
  605. * src/Sequence.h
  606. * src/download_helper.cc
  607. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Made the upper value of --max-concurrent-downloads options unlimited.
  609. * src/OptionHandlerFactory.cc
  610. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Fixed the bug that disk writer is not created even if it shares
  612. same piece with the preceding file if the length of previous file
  613. is 0.
  614. * src/MultiDiskAdaptor.cc
  615. * test/MultiDiskAdaptorTest.cc
  616. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. In BitTorrent, Open files in read-only mode for hash check. After
  618. that, re-open file in read/write mode only when the download is
  619. not finished.
  620. * src/AbstractDiskWriter.cc
  621. * src/AbstractDiskWriter.h
  622. * src/AbstractSingleDiskAdaptor.cc
  623. * src/AbstractSingleDiskAdaptor.h
  624. * src/BtCheckIntegrityEntry.cc
  625. * src/DiskAdaptor.h
  626. * src/DiskWriter.h
  627. * src/MultiDiskAdaptor.cc
  628. * src/MultiDiskAdaptor.h
  629. * src/RequestGroup.cc
  630. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Added --http-auth-challenge option. If it is set to true(by
  632. default), aria2 sends HTTP authorization header only when it is
  633. requested by the server. If false is set, then authorization
  634. header is always sent to the server. This is useful for servers
  635. that don't respond 401 code when authentication is required.
  636. There is an exception: if username and password are embedded in
  637. URI, authorization header is always sent to the server regardless
  638. of this option.
  639. * src/AuthConfigFactory.cc
  640. * src/HttpSkipResponseCommand.cc
  641. * src/OptionHandlerFactory.cc
  642. * src/prefs.cc
  643. * src/prefs.h
  644. * src/usage_text.h
  645. * test/AuthConfigFactoryTest.cc
  646. * test/HttpRequestTest.cc
  647. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. * Release 1.2.0
  649. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Updated Spanish, Ukrainian, Russian and Japanese translations.
  651. Thanks to all translators.
  652. * po/es.po
  653. * po/ja.po
  654. * po/ru.po
  655. * po/uk.po
  656. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Call deleteSocketForReadCheck() before socket is closed.
  658. * src/HttpListenCommand.cc
  659. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Defined virtual destructor for BObject.
  661. * src/bencode.h
  662. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Rewritten BDE to make it efficient.
  664. * src/bencode.cc
  665. * src/bencode.h
  666. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Removed function throw list.
  668. * src/bencode.cc
  669. * src/bencode.h
  670. * test/BencodeTest.cc
  671. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Enclosed all URLs in double quotes in command-line examples.
  673. * doc/aria2c.1.txt
  674. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Updated reference/see also section.
  676. * README
  677. * doc/aria2c.1.txt
  678. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Reorganized man page based on man man-pages.
  680. * doc/aria2c.1.txt
  681. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  683. because same documents are available in man page. Added
  684. References section.
  685. * README
  686. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  688. PERFORMANCE PROFILE section.
  689. * doc/aria2c.1.txt
  690. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Rewritten the section for configuration file.
  692. * README
  693. * doc/aria2c.1.txt
  694. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Fixed the segmentation fault during execution of choking algorithm
  696. in leecher state because of broken compare operator
  697. implementation.
  698. * src/BtLeecherStateChoke.cc
  699. * src/BtLeecherStateChoke.h
  700. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Open file in binary mode.
  702. * src/CookieStorage.cc
  703. * src/DHTSetup.cc
  704. * src/DHTUtil.cc
  705. * src/Netrc.cc
  706. * src/NsCookieParser.cc
  707. * src/ProtocolDetector.cc
  708. * src/RequestGroupMan.cc
  709. * src/Signature.cc
  710. * src/bencode.cc
  711. * src/download_helper.cc
  712. * src/option_processing.cc
  713. * test/CookieParserTest.cc
  714. * test/DefaultBtProgressInfoFileTest.cc
  715. * test/FileTest.cc
  716. * test/GZipDecoderTest.cc
  717. * test/RequestGroupManTest.cc
  718. * test/SignatureTest.cc
  719. * test/SingleFileAllocationIteratorTest.cc
  720. * test/UriListParserTest.cc
  721. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Removed operator[] because it is ambiguous with built-in []
  723. operator.
  724. * src/array_fun.h
  725. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Fixed compile error
  727. * src/OptionParser.cc
  728. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added missing call to arrayWrapperConst
  730. * test/array_funTest.cc
  731. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Use array_wrapper instead of array_ptr.
  733. * src/DHTRoutingTableDeserializer.cc
  734. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  736. * src/array_fun.h
  737. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Added array_wrapper template.
  739. * src/array_fun.h
  740. * test/array_funTest.cc
  741. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Use operator T* of array_ptr.
  743. * src/OptionParser.cc
  744. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Use localhost instead of 127.0.0.1
  746. * test/FtpConnectionTest.cc
  747. * test/MSEHandshakeTest.cc
  748. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Added operator T*
  750. * src/array_fun.h
  751. * test/array_funTest.cc
  752. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Use dynamically allocated char array to detect memory access
  754. violation.
  755. * src/DHTRoutingTableDeserializer.cc
  756. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  758. defined.
  759. * src/PeerMessageUtil.cc
  760. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  762. * configure.ac
  763. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Added a check to see struct sockaddr_in has sin_len member.
  765. * configure.ac
  766. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Fixed buffer overrun.
  768. * src/DHTRoutingTableDeserializer.cc
  769. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. Added LL for long long int constant.
  771. * test/FtpConnectionTest.cc
  772. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Casted to unsigned int to suppress compiler warning on netbsd.
  774. * src/BtRuntime.h
  775. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Assign the value of tv.tv_sec to time_t timesec instead of giving
  777. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  778. type time_t.
  779. * src/SimpleLogger.cc
  780. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Added test for FtpConnection::receiveSizeResponse().
  782. * test/FtpConnectionTest.cc
  783. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fix epoll error on the old kernel 2.6.8 or ealier.
  785. * src/EpollEventPoll.cc
  786. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Use Util::parseLLInt instead of sscanf for portability. The
  788. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  789. * src/FtpConnection.cc
  790. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  792. block. It should not filter anything.
  793. * src/BitfieldMan.cc
  794. * src/ConsoleStatCalc.cc
  795. * test/BitfieldManTest.cc
  796. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Fixed the bug that the boolean options that don't take arguments
  798. don't work.
  799. * src/OptionHandlerImpl.h
  800. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Fixed broken selected file BitTorrent download.
  802. * src/MultiDiskAdaptor.cc
  803. * test/MultiDiskAdaptorTest.cc
  804. * test/MultiFileAllocationIteratorTest.cc
  805. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Fixed #define guard for EpollEventPoll
  807. * src/EpollEventPoll.h
  808. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Wait 2 seconds. 1 second is sometimes not enough.
  810. * test/TimeSeedCriteriaTest.cc
  811. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Use localhost instead of 127.0.0.1.
  813. * test/DHTConnectionImplTest.cc
  814. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Suppressed compiler warning.
  816. * src/AdaptiveURISelector.cc
  817. * src/DefaultPieceStorage.cc
  818. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Defined virtual destructor.
  820. * src/MetalinkParserState.h
  821. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Give NULL for second argument of getaddrinfo instead of "0".
  823. * src/NameResolver.cc
  824. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  826. included strptime doesn't parse data for this format.
  827. * src/FtpConnection.cc
  828. * test/FtpConnectionTest.cc
  829. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Removed tests giving -1 for unsigned argument.
  831. * test/SingleFileDownloadContextTest.cc
  832. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Don't use sha256 in tests because it might not be supported by the
  834. SSL library.
  835. * test/MetalinkProcessorTest.cc
  836. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Removed tests giving -1 for unsigned argument.
  838. * test/AlphaNumberDecoratorTest
  839. * test/BitfieldManTest.cc
  840. * test/DefaultBtContextTest.cc
  841. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Fixed compile error without libcares when epoll is available.
  843. * src/EpollEventPoll.cc
  844. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Included fstream instead of iostream.
  846. * test/SignatureTest.cc
  847. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Removed #include <algorithm>
  849. * test/RequestGroupTest.cc
  850. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  852. using RequestGroup::extractURIResult().
  853. * src/AdaptiveURISelector.cc
  854. * src/RequestGroup.cc
  855. * src/RequestGroup.h
  856. * test/RequestGroupTest.cc
  857. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Added tests for array_ptr.
  859. * test/array_funTest.cc
  860. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Don't send ip parameter to a tracker if ip parameter is empty
  862. string.
  863. * src/DefaultBtAnnounce.cc
  864. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Adjusted line feed.
  866. * src/version_usage.cc
  867. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Print tags, possible values when OptionHandlerException is caught.
  869. * src/option_processing.cc
  870. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Changed the message for FatalException.
  872. * src/OptionParser.cc
  873. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Documented --bt-external-ip option in man page. Updated man pages
  875. for --proxy-method option.
  876. * doc/aria2c.1.txt
  877. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Use GET method for FTP via HTTP proxy.
  879. * src/FtpInitiateConnectionCommand.cc
  880. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Changed the default value of --proxy-method option from 'tunnel'
  882. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  883. option.
  884. * src/AbstractCommand.cc
  885. * src/AbstractCommand.h
  886. * src/FtpInitiateConnectionCommand.cc
  887. * src/HttpDownloadCommand.cc
  888. * src/HttpInitiateConnectionCommand.cc
  889. * src/HttpInitiateConnectionCommand.h
  890. * src/OptionHandlerFactory.cc
  891. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Initialized _logger
  893. * src/SelectEventPoll.cc
  894. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Defined a copy constructor for the same type.
  896. * src/SharedHandle.h
  897. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Added OptionParser::parseArg() which internally uses getopt_long
  899. to parse command-line options. All command-line options are now
  900. configured by OptionHandler. No manual editing of struct option*
  901. is required any more.
  902. * src/NameMatchOptionHandler.h
  903. * src/OptionHandler.h
  904. * src/OptionHandlerFactory.cc
  905. * src/OptionHandlerImpl.h
  906. * src/OptionParser.cc
  907. * src/OptionParser.h
  908. * src/array_fun.h
  909. * src/main.cc
  910. * src/option_processing.cc
  911. * test/OptionHandlerTest.cc
  912. * test/OptionParserTest.cc
  913. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Fixed configure error with --disable-epoll
  915. * configure.ac
  916. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Fixed compile error when HAVE_EPOLL is not defined.
  918. Fixed linker error on bigendian systems.
  919. * src/SocketCore.cc
  920. * src/SocketCore.h
  921. * test/DefaultBtProgressInfoFileTest.cc
  922. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Added --bt-external-ip option. You can specify the external IP
  924. address to report to a BitTorrent tracker. Although this function
  925. is named 'external', it can accept any kind of IP addresses.
  926. * src/DefaultBtAnnounce.cc
  927. * src/OptionHandlerFactory.cc
  928. * src/option_processing.cc
  929. * src/prefs.cc
  930. * src/prefs.h
  931. * src/usage_text.h
  932. * test/DefaultBtAnnounceTest.cc
  933. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Extracted the algorithm to find the longest incremental sequence
  935. as max_sequence template.
  936. * src/LongestSequencePieceSelector.cc
  937. * src/a2algo.h
  938. * test/Makefile.am
  939. * test/a2algoTest.cc
  940. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  942. * src/usage_text.h
  943. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Updated doc for --uri-selector, --http-server-listen-port and
  945. --enable-http-server option. Documented --event-poll option.
  946. * doc/aria2c.1.txt
  947. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Updated doc for --enable-http-server.
  949. * src/usage_text.h
  950. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Documented --http-server-listen-port and --enable-http-server in
  952. man page.
  953. * doc/aria2c.1.txt
  954. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  956. translations. Thanks to all translators.
  957. * po/es.po
  958. * po/id.po
  959. * po/it.po
  960. * po/ru.po
  961. * po/uk.po
  962. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Bump up version number to 1.2.0
  964. * configure.ac
  965. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. BtContext::getAnnounceTiers() now returns const reference.
  967. * src/BtContext.h
  968. * src/DefaultBtContext.cc
  969. * src/DefaultBtContext.h
  970. * test/MockBtContext.h
  971. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Change the number of retries for tracker request based on the
  973. number of available tracker in a torrent file.
  974. * src/TrackerWatcherCommand.cc
  975. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Added _maxTries property to RequestGroup and assign the option
  977. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  978. RequestGroup::getMaxTries() instead of
  979. Option::getAsInt(PREF_MAX_TRIES).
  980. * src/AbstractCommand.cc
  981. * src/RequestGroup.cc
  982. * src/RequestGroup.h
  983. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  985. Mandriva. I modified the patch: make RequestGroup have the
  986. timeout value and AdaptiveURISelector directly modifies that
  987. value.
  988. * src/AbstractCommand.cc
  989. * src/AdaptiveURISelector.cc
  990. * src/AdaptiveURISelector.h
  991. * src/FtpNegotiationCommand.cc
  992. * src/RequestGroup.cc
  993. * src/RequestGroup.h
  994. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Fixed compiler warning
  996. * test/IteratableChecksumValidatorTest.cc
  997. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  999. integrated downloads. This PieceSelector subclass finds the
  1000. longest continuous sequence in the available missing pieces and
  1001. selects the last index of such sequence. This makes HTTP/FTP
  1002. connections less interrupted by the pieces obtained by BitTorrent
  1003. peers.
  1004. * src/DefaultPieceStorage.cc
  1005. * src/DefaultPieceStorage.h
  1006. * src/LongestSequencePieceSelector.cc
  1007. * src/LongestSequencePieceSelector.h
  1008. * src/Makefile.am
  1009. * src/PieceSelector.h
  1010. * src/RarestPieceSelector.h
  1011. * src/RequestGroup.cc
  1012. * test/BtDependencyTest.cc
  1013. * test/DefaultPieceStorageTest.cc
  1014. * test/IteratableChecksumValidatorTest.cc
  1015. * test/LongestSequencePieceSelectorTest.cc
  1016. * test/Makefile.am
  1017. * test/SegmentManTest.cc
  1018. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Fixed the bug that the average speed is wrong in
  1020. http/ftp/BitTorrent integrated download. Only the download bytes
  1021. in BitTorrent were considered.
  1022. * src/RequestGroup.cc
  1023. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Choose port for BitTorrent/DHT randomly from the specified range.
  1025. * src/DHTConnectionImpl.cc
  1026. * src/PeerListenCommand.cc
  1027. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Send HTTP Authorization header only if it is requested by the
  1029. server(response 401). There are some exceptions. The authorization
  1030. header for proxy is always sent if it is available without request
  1031. by the server. If username/password is specified in the URI, it
  1032. is immediately sent to the server without request by the server.
  1033. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1034. SharedHandle<AuthConfig>().
  1035. NetrcAuthResolver::resolveAuthConfig() returns
  1036. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1037. * src/AbstractAuthResolver.cc
  1038. * src/AbstractProxyRequestCommand.cc
  1039. * src/AuthConfigFactory.cc
  1040. * src/AuthConfigFactory.h
  1041. * src/HttpConnection.cc
  1042. * src/HttpRequest.cc
  1043. * src/HttpRequest.h
  1044. * src/HttpResponse.cc
  1045. * src/HttpResponseCommand.cc
  1046. * src/HttpSkipResponseCommand.cc
  1047. * test/AuthConfigFactoryTest.cc
  1048. * test/HttpRequestTest.cc
  1049. * test/HttpResponseTest.cc
  1050. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Remove leading "--" from help keyword and a substring after "="
  1052. from help keyword, so that one can query options by '-h--max-' or
  1053. '-hmax-peers=10'.
  1054. * src/option_processing.cc
  1055. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Rewritten PStringVisitor and its implementation.
  1057. * src/PStringBuildVisitor.cc
  1058. * src/PStringBuildVisitor.h
  1059. * src/PStringDatum.h
  1060. * src/PStringNumLoop.h
  1061. * src/PStringSegment.cc
  1062. * src/PStringSegment.h
  1063. * src/PStringSelect.h
  1064. * src/PStringVisitor.h
  1065. * src/download_helper.cc
  1066. * test/PStringBuildVisitorTest.cc
  1067. * test/ParameterizedStringParserTest.cc
  1068. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Persist connection between the built-in HTTP server and a client
  1070. if a client supports keep-alive. Fixed the bug that aria2 exits
  1071. when the HTTP server receives EOF from a client.
  1072. * src/HttpServer.cc
  1073. * src/HttpServer.h
  1074. * src/HttpServerCommand.cc
  1075. * src/HttpServerCommand.h
  1076. * src/HttpServerResponseCommand.cc
  1077. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Added experimental built-in HTTP server. Currently, when a client
  1079. accesses to the server, it responds with the current download
  1080. progress. By default, it is disabled. To enable the server, give
  1081. --enable-http-server option. To change the default port number
  1082. for the server to listen to, use --http-server-listen-port option.
  1083. The response HTML is very simple and refreshes it self each 1
  1084. second. Because of this refresh, you see flicker in normal web
  1085. browser such as Firefox. I recommend to use console-based browser
  1086. such as elinks, w3m. To connect to the server, run 'elinks
  1087. http://localhost:6800/' while running aria2. Please replace port
  1088. number '6800'(which is default) with your preference.
  1089. * src/DownloadEngineFactory.cc
  1090. * src/HttpHeader.cc
  1091. * src/HttpHeader.h
  1092. * src/HttpHeaderProcessor.cc
  1093. * src/HttpHeaderProcessor.h
  1094. * src/HttpListenCommand.cc
  1095. * src/HttpListenCommand.h
  1096. * src/HttpServer.cc
  1097. * src/HttpServer.h
  1098. * src/HttpServerCommand.cc
  1099. * src/HttpServerCommand.h
  1100. * src/HttpServerResponseCommand.cc
  1101. * src/HttpServerResponseCommand.h
  1102. * src/Makefile.am
  1103. * src/OptionHandlerFactory.cc
  1104. * src/Util.cc
  1105. * src/Util.h
  1106. * src/help_tags.h
  1107. * src/option_processing.cc
  1108. * src/prefs.cc
  1109. * src/prefs.h
  1110. * src/usage_text.h
  1111. * test/HttpHeaderProcessorTest.cc
  1112. * test/UtilTest.cc
  1113. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Removed.
  1115. * src/CheckIntegrityMan.cc
  1116. * src/FileAllocationMan.cc
  1117. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Made (piece) hash check sequential for each RequestGroup because
  1119. simultaneous hash check is slower than sequential execution.
  1120. * src/CheckIntegrityCommand.cc
  1121. * src/CheckIntegrityDispatcherCommand.cc
  1122. * src/CheckIntegrityDispatcherCommand.h
  1123. * src/CheckIntegrityMan.h
  1124. * src/ConsoleStatCalc.cc
  1125. * src/DownloadCommand.cc
  1126. * src/DownloadEngine.cc
  1127. * src/DownloadEngine.h
  1128. * src/DownloadEngineFactory.cc
  1129. * src/Makefile.am
  1130. * src/Makefile.in
  1131. * src/RequestGroup.cc
  1132. * src/StatCalc.h
  1133. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1135. SequentialDispatcherCommand.
  1136. * src/FileAllocationDispatcherCommand.cc
  1137. * src/SequentialDispatcherCommand.h
  1138. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Rewritten FileAllocationDispatcherCommand using brand new
  1140. SequentialDispatcherCommand.
  1141. * src/DownloadEngineFactory.cc
  1142. * src/FileAllocationCommand.cc
  1143. * src/FileAllocationDispatcherCommand.cc
  1144. * src/FileAllocationDispatcherCommand.h
  1145. * src/Makefile.am
  1146. * src/SequentialDispatcherCommand.h
  1147. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Replaced FileAllocationMan with
  1149. SequentialPicker<FileAllocationEntry>.
  1150. * src/BtCheckIntegrityEntry.cc
  1151. * src/ConsoleStatCalc.cc
  1152. * src/DownloadEngine.cc
  1153. * src/DownloadEngine.h
  1154. * src/DownloadEngineFactory.cc
  1155. * src/FileAllocationCommand.cc
  1156. * src/FileAllocationDispatcherCommand.cc
  1157. * src/FileAllocationMan.h
  1158. * src/Makefile.am
  1159. * src/SequentialPicker.h
  1160. * src/StatCalc.h
  1161. * src/StreamCheckIntegrityEntry.cc
  1162. * test/Makefile.am
  1163. * test/SequentialPickerTest.cc
  1164. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Added doc for adaptive URI selector.
  1166. * doc/aria2c.1.txt
  1167. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Added doc for adaptive URI selector.
  1169. * src/usage_text.h
  1170. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Added doc for --bt-max-peers option.
  1172. * doc/aria2c.1.txt
  1173. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Added doc for --bt-hash-check-seed option.
  1175. * doc/aria2c.1.txt
  1176. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Documented exit codes.
  1178. * doc/aria2c.1.txt
  1179. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added --bt-max-peers option to specify the maximum number of peers
  1181. per torrent. 0 means unlimited number of peers.
  1182. * src/ActivePeerConnectionCommand.cc
  1183. * src/BtRuntime.h
  1184. * src/DefaultPeerStorage.cc
  1185. * src/DefaultPeerStorage.h
  1186. * src/OptionHandlerFactory.cc
  1187. * src/RequestGroup.cc
  1188. * src/option_processing.cc
  1189. * src/prefs.cc
  1190. * src/prefs.h
  1191. * src/usage_text.h
  1192. * test/DefaultPeerStorageTest.cc
  1193. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Added --bt-hash-check-seed option. If true is given to this
  1195. option, after hash check using --check-integrity option and file
  1196. is complete, continue to seed file. If you want to check file and
  1197. download it only when it is damaged or incomplete, set this option
  1198. to false. This option has effect only on BitTorrent download.
  1199. The default value is true(This is the same behavior with the
  1200. previous release).
  1201. * src/BtCheckIntegrityEntry.cc
  1202. * src/OptionHandlerFactory.cc
  1203. * src/option_processing.cc
  1204. * src/prefs.cc
  1205. * src/prefs.h
  1206. * src/usage_text.h
  1207. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Updated copyright year.
  1209. * src/version_usage.cc
  1210. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1212. * doc/aria2c.1.txt
  1213. * src/usage_text.h
  1214. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Made the max value of split option unlimited.
  1216. * doc/aria2c.1.txt
  1217. * src/OptionHandlerFactory.cc
  1218. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Fixed compile warning/error.
  1220. * src/DownloadResult.h
  1221. * src/HttpDownloadCommand.cc
  1222. * src/ServerStat.cc
  1223. * test/RequestGroupTest.cc
  1224. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added --event-poll option to select the method for polling events.
  1226. The available methods are "select" and "epoll". "epoll" is
  1227. available on Linux only. The earlier release has the compile
  1228. option to choose from these methods.
  1229. * configure.ac
  1230. * src/RequestGroupMan.cc
  1231. * src/OptionHandlerFactory.cc
  1232. * src/EpollEventPoll.h
  1233. * src/StreamFileAllocationEntry.cc
  1234. * src/a2io.h
  1235. * src/SelectEventPoll.h
  1236. * src/option_processing.cc
  1237. * src/prefs.h
  1238. * src/EpollEventPoll.cc
  1239. * src/EventPoll.h
  1240. * src/SocketCore.h
  1241. * src/Makefile.am
  1242. * src/main.cc
  1243. * src/DownloadEngine.h
  1244. * src/SelectEventPoll.cc
  1245. * src/DownloadEngine.cc
  1246. * src/SocketCore.cc
  1247. * src/DownloadEngineFactory.cc
  1248. * src/Makefile.in
  1249. * src/prefs.cc
  1250. * src/usage_text.h
  1251. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Included RecoverableException.h from main.cc
  1253. * src/main.cc
  1254. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1256. now returns last error encountered in the HTTP/FTP downloads as a
  1257. exit status value. If all downloads finished successfully, aria2
  1258. returns 0. The error code is defined in src/DownloadResult.h.
  1259. The error occurred in the download currently in progress is not
  1260. reported as a last error. If no error has encountered but there
  1261. are in progress or waiting downloads, aria2 returns 7.
  1262. * src/AbstractCommand.cc
  1263. * src/DlAbortEx.h
  1264. * src/DlRetryEx.h
  1265. * src/DownloadCommand.cc
  1266. * src/DownloadFailureException.h
  1267. * src/DownloadResult.h
  1268. * src/FtpNegotiationCommand.cc
  1269. * src/HttpSkipResponseCommand.cc
  1270. * src/Makefile.am
  1271. * src/MultiUrlRequestInfo.cc
  1272. * src/MultiUrlRequestInfo.h
  1273. * src/RecoverableException.h
  1274. * src/RequestGroup.cc
  1275. * src/RequestGroup.h
  1276. * src/RequestGroupMan.cc
  1277. * src/RequestGroupMan.h
  1278. * src/URIResult.cc
  1279. * src/URIResult.h
  1280. * src/main.cc
  1281. * src/option_processing.cc
  1282. * test/RequestGroupTest.cc
  1283. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1285. patch adds AdaptiveURISelector, which selects one of the bests
  1286. mirrors for first and reserved connections. For supplementary
  1287. ones, it returns mirrors which has not been tested yet, and if
  1288. each of them already tested, returns mirrors which has to be
  1289. tested again. Otherwise, it doesn't return anymore mirrors.
  1290. * src/AdaptiveURISelector.cc
  1291. * src/AdaptiveURISelector.h
  1292. * src/FtpNegotiationCommand.cc
  1293. * src/HttpResponseCommand.cc
  1294. * src/Makefile.am
  1295. * src/Makefile.in
  1296. * src/OptionHandlerFactory.cc
  1297. * src/RequestGroup.cc
  1298. * src/RequestGroup.h
  1299. * src/RequestGroupMan.cc
  1300. * src/ServerStat.cc
  1301. * src/ServerStat.h
  1302. * src/ServerStatMan.cc
  1303. * src/SpeedCalc.cc
  1304. * src/URISelector.h
  1305. * src/prefs.cc
  1306. * src/prefs.h
  1307. * test/RequestGroupManTest.cc
  1308. * test/ServerStatManTest.cc
  1309. * test/ServerStatTest.cc
  1310. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Fixed unit test error.
  1312. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1313. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. * Release 1.1.2
  1315. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Updated Russian translation. Thanks to the translators.
  1317. * po/ru.po
  1318. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Added the description of --use-head option to man page.
  1320. * doc/aria2c.1.txt
  1321. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Bump up version number to 1.1.2
  1323. * configure.ac
  1324. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Added --use-head option to toggle whether HEAD method should be
  1326. used in the first HTTP request. By default aria2 uses HEAD method
  1327. as the first request. When the server doesn't recognize HEAD, then
  1328. give aria2 --use-head=false to force aria2 to use GET method
  1329. instead.
  1330. * src/OptionHandlerFactory.cc
  1331. * src/RequestGroupMan.cc
  1332. * src/option_processing.cc
  1333. * src/prefs.cc
  1334. * src/prefs.h
  1335. * src/usage_text.h
  1336. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1338. message is received before CHOKE message. The old implementation
  1339. doen't clear the use-bit of the piece when recieved REJECT
  1340. message.
  1341. * src/DefaultBtMessageDispatcher.cc
  1342. * test/DefaultBtMessageDispatcherTest.cc
  1343. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. * Release 1.1.1
  1345. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Bump up version number to 1.1.1.
  1347. * configure.ac
  1348. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1350. is printed repeatedly.
  1351. * src/ConsoleStatCalc.cc
  1352. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. * Release 1.1.0
  1354. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Added ifdef clause for conditional compilation.
  1356. * src/main.cc
  1357. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1359. translations. Thanks to all translators.
  1360. * po/ja.po
  1361. * po/ru.po
  1362. * po/uk.po
  1363. * po/zh_CN.po
  1364. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Added the preceding ">>> " before the message "Printing the
  1366. contents of file..." to make the output more readable.
  1367. * src/main.cc
  1368. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Added try-catch block in the loop in showFiles() to continue the
  1370. operation even if the exception occurred in one file.
  1371. * src/main.cc (showFiles)
  1372. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Made messages in showFiles() translatable.
  1374. * po/aria2.pot
  1375. * src/main.cc
  1376. * src/message.h
  1377. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Print the contents of Torrent/Metalink files are printed without
  1379. -T/-M options.
  1380. * src/main.cc
  1381. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Escaped '--' with '\--'
  1383. * README
  1384. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Updated "How to build" section in README. Mentioned about
  1386. --with-ca-bundle compile option.
  1387. * README
  1388. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Bump up version number to 1.1.0.
  1390. * configure.ac
  1391. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Added a note for --dht-listen-port option.
  1393. * doc/aria2c.1.txt
  1394. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Update doc for --realtime-chunk-checksum option.
  1396. * doc/aria2c.1.txt
  1397. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Update doc for --realtime-chunk-checksum option.
  1399. * src/usage_text.h
  1400. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Updated French, Japanese, Russian and Ukrainian translations.
  1402. Thanks to all translators.
  1403. * po/fr.po
  1404. * po/ja.po
  1405. * po/ru.po
  1406. * po/uk.po
  1407. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Renamed aria2c.pot to aria2.pot
  1409. * po/aria2.pot
  1410. * po/aria2c.pot: Removed.
  1411. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Removed MetaEntry.h
  1413. * src/Makefile.am
  1414. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Rename file by appending digits if a local file exists and its
  1416. file size is larger than that of remote file with --continue
  1417. option. The old implementation just throws exception in such case.
  1418. * src/RequestGroup.cc
  1419. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Fixed the bug that download progress summary is not printed in the
  1421. interval specified by the option.
  1422. * src/ConsoleStatCalc.cc
  1423. * src/ConsoleStatCalc.h
  1424. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Fixed compiler warning
  1426. * src/Cookie.cc
  1427. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Fixed the cookie implementation based on RFC2965.
  1429. Now if a value in domain field is not started with dot, then
  1430. prepend dot. That means a cookie with domain=sf.net is sent to
  1431. wiki.sf.net.
  1432. * src/Cookie.cc
  1433. * test/CookieParserTest.cc
  1434. * test/CookieStorageTest.cc
  1435. * test/CookieTest.cc
  1436. * test/NsCookieParserTest.cc
  1437. * test/Sqlite3MozCookieParserTest.cc
  1438. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1440. is enabled and the server doesn't support keep-alive.
  1441. * src/AbstractCommand.cc
  1442. * src/DownloadCommand.cc
  1443. * src/HttpDownloadCommand.cc
  1444. * src/HttpDownloadCommand.h
  1445. * src/HttpResponseCommand.cc
  1446. * src/Request.cc
  1447. * src/Request.h
  1448. * test/RequestTest.cc
  1449. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Removed Dictionary/List/Data and its related classes.
  1451. * src/BencodeVisitor.cc: Removed.
  1452. * src/BencodeVisitor.h: Removed.
  1453. * src/Data.cc: Removed.
  1454. * src/Data.h: Removed.
  1455. * src/Dictionary.cc: Removed.
  1456. * src/Dictionary.h: Removed.
  1457. * src/List.cc: Removed.
  1458. * src/List.h: Removed.
  1459. * src/Makefile.am
  1460. * src/MetaEntry.h: Removed.
  1461. * src/MetaEntryVisitor.h: Removed.
  1462. * src/MetaFileUtil.cc: Removed.
  1463. * src/MetaFileUtil.h: Removed.
  1464. * test/BencodeVisitorTest.cc: Removed.
  1465. * test/DataTest.cc: Removed.
  1466. * test/DictionaryTest.cc: Removed.
  1467. * test/ListTest.cc: Removed.
  1468. * test/Makefile.am
  1469. * test/MetaFileUtilTest.cc: Removed.
  1470. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Removed include of MetaEntry.h
  1472. * test/DHTMessageTrackerEntryTest.cc
  1473. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Use BDE instead of Dictionary/List/Data.
  1475. * src/AnnounceList.cc
  1476. * src/AnnounceList.h
  1477. * test/AnnounceListTest.cc
  1478. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Use BDE instead of Dictionary/List/Data.
  1480. * src/DHTAbstractMessage.cc
  1481. * src/DHTAbstractMessage.h
  1482. * src/DHTAnnouncePeerMessage.cc
  1483. * src/DHTAnnouncePeerMessage.h
  1484. * src/DHTAnnouncePeerReplyMessage.cc
  1485. * src/DHTAnnouncePeerReplyMessage.h
  1486. * src/DHTFindNodeMessage.cc
  1487. * src/DHTFindNodeMessage.h
  1488. * src/DHTFindNodeReplyMessage.cc
  1489. * src/DHTFindNodeReplyMessage.h
  1490. * src/DHTGetPeersMessage.cc
  1491. * src/DHTGetPeersMessage.h
  1492. * src/DHTGetPeersReplyMessage.cc
  1493. * src/DHTGetPeersReplyMessage.h
  1494. * src/DHTMessageFactory.h
  1495. * src/DHTMessageFactoryImpl.cc
  1496. * src/DHTMessageFactoryImpl.h
  1497. * src/DHTMessageReceiver.cc
  1498. * src/DHTMessageTracker.cc
  1499. * src/DHTMessageTracker.h
  1500. * src/DHTPingMessage.cc
  1501. * src/DHTPingMessage.h
  1502. * src/DHTPingReplyMessage.cc
  1503. * src/DHTPingReplyMessage.h
  1504. * src/DHTQueryMessage.cc
  1505. * src/DHTQueryMessage.h
  1506. * src/DHTResponseMessage.cc
  1507. * src/DHTResponseMessage.h
  1508. * test/DHTAnnouncePeerMessageTest.cc
  1509. * test/DHTAnnouncePeerReplyMessageTest.cc
  1510. * test/DHTFindNodeMessageTest.cc
  1511. * test/DHTFindNodeReplyMessageTest.cc
  1512. * test/DHTGetPeersMessageTest.cc
  1513. * test/DHTGetPeersReplyMessageTest.cc
  1514. * test/DHTMessageFactoryImplTest.cc
  1515. * test/DHTMessageTrackerTest.cc
  1516. * test/DHTPingMessageTest.cc
  1517. * test/DHTPingReplyMessageTest.cc
  1518. * test/MockDHTMessageFactory.h
  1519. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Added tests the case where length < 0 is specified.
  1521. * test/BencodeTest.cc
  1522. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Fixed memory leak in decoderawstring()
  1524. * src/bencode.cc
  1525. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Added missing #ifdef guard. Added uc() function for String and
  1527. removeKey() for Dict.
  1528. * src/bencode.cc
  1529. * src/bencode.h
  1530. * test/BencodeTest.cc
  1531. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Use BDE instead of Dictionary/List/Data.
  1533. * src/HandshakeExtensionMessage.cc
  1534. * src/HandshakeExtensionMessage.h
  1535. * test/HandshakeExtensionMessageTest.cc
  1536. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Added --max-overall-upload-limit option. This option limits the
  1538. overall upload speed. Stated in help message that the existing
  1539. --max-upload-limit option limits the upload speed per each
  1540. torrent. Man page is also updated.
  1541. * doc/aria2c.1.txt
  1542. * src/DefaultBtMessageDispatcher.cc
  1543. * src/DefaultBtMessageDispatcher.h
  1544. * src/OptionHandlerFactory.cc
  1545. * src/PeerInteractionCommand.cc
  1546. * src/option_processing.cc
  1547. * src/prefs.cc
  1548. * src/prefs.h
  1549. * src/usage_text.h
  1550. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Use BDE instead of Dictionary/List/Data classes.
  1552. * src/CompactPeerListProcessor.cc
  1553. * src/CompactPeerListProcessor.h
  1554. * src/DefaultBtAnnounce.cc
  1555. * src/DefaultBtContext.cc
  1556. * src/DefaultBtContext.h
  1557. * src/DefaultPeerListProcessor.cc
  1558. * src/DefaultPeerListProcessor.h
  1559. * src/DelegatingPeerListProcessor.cc
  1560. * src/DelegatingPeerListProcessor.h
  1561. * src/PeerListProcessor.h
  1562. * src/UTPexExtensionMessage.cc
  1563. * src/Util.h
  1564. * src/message.h
  1565. * test/DefaultBtContextTest.cc
  1566. * test/DefaultPeerListProcessorTest.cc
  1567. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Added bencode helper functions and BDE class.
  1569. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1570. * src/Makefile.am
  1571. * src/bencode.cc
  1572. * src/bencode.h
  1573. * test/BencodeTest.cc
  1574. * test/Makefile.am
  1575. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Fixed the bug that bad URI is sent to the tracker when the announe
  1577. URI in torrent file includes query.
  1578. * src/DefaultBtAnnounce.cc
  1579. * test/DefaultBtAnnounceTest.cc
  1580. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added Option::blank().
  1582. Use !Option::blank(name) instead of Option::defined(name) for
  1583. the options that take filename.
  1584. * src/MultiUrlRequestInfo.cc
  1585. * src/Option.cc
  1586. * src/Option.h
  1587. * src/main.cc
  1588. * src/option_processing.cc
  1589. * test/OptionTest.cc
  1590. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Documented the default value of --check-certificate option in man
  1592. page.
  1593. * doc/aria2c.1.txt
  1594. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Enabled --check-certificate by default. Added compile
  1596. time(configure) option --with-ca-bundle to specify CA bundle.
  1597. Warn if --check-certificate=true and --ca-certificate is not
  1598. specified or loading CA certificate is failed.
  1599. * configure.ac
  1600. * src/MultiUrlRequestInfo.cc
  1601. * src/OptionHandlerFactory.cc
  1602. * src/message.h
  1603. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Mentioned https tag in help option.
  1605. * doc/aria2c.1.txt
  1606. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Added `https' tag to help option category. Added https tag to
  1608. --ca-certificate, --certificate, --check-certificate and
  1609. --private-key option.
  1610. * src/OptionHandlerFactory.cc
  1611. * src/help_tags.h
  1612. * src/option_processing.cc
  1613. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Changed the package name from `aria2c' to `aria2' in order to fix
  1615. the packaging issue in Debian and Fedora. The name of the
  1616. executable is not changed.
  1617. * configure.ac
  1618. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Fixed typos
  1620. * src/usage_text.h
  1621. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Fixed typos and updated doc.
  1623. * README
  1624. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Fixed typos
  1626. * doc/aria2c.1.txt
  1627. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Fixed typos
  1629. * src/usage_text.h
  1630. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Print a message when no files to download.
  1632. * src/download_helper.cc
  1633. * src/main.cc
  1634. * src/message.h
  1635. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. RFC3986 complied Percent-Encoding(urlencode).
  1637. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1638. ones.
  1639. * src/Request.cc
  1640. * src/Util.cc
  1641. * src/Util.h
  1642. * test/BtHandshakeMessageTest.cc
  1643. * test/DefaultBtAnnounceTest.cc
  1644. * test/DefaultBtContextTest.cc
  1645. * test/RequestTest.cc
  1646. * test/UtilTest.cc
  1647. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Fixed the bug that prevents aria2 from downloading 0-length files
  1649. via HTTP/FTP.
  1650. * src/DefaultBtContext.cc
  1651. * src/DefaultBtContext.h
  1652. * src/DownloadContext.h
  1653. * src/FtpNegotiationCommand.cc
  1654. * src/HttpResponseCommand.cc
  1655. * src/HttpResponseCommand.h
  1656. * src/RequestGroup.cc
  1657. * src/SingleFileDownloadContext.cc
  1658. * src/SingleFileDownloadContext.h
  1659. * test/BtPostDownloadHandlerTest.cc
  1660. * test/MetalinkPostDownloadHandlerTest.cc
  1661. * test/MockBtContext.h
  1662. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1664. * src/option_processing.cc
  1665. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Applied aria2-1.0.1-mingw.patch.
  1667. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1668. mingw.
  1669. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1670. * src/SocketCore.cc
  1671. * src/a2netcompat.h
  1672. * test/SocketCoreTest.cc
  1673. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. * Release 1.0.1
  1675. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Updated Ukrainian and Norwegian Nynorsk translations.
  1677. Thanks to all translators.
  1678. * po/nn.po
  1679. * po/uk.po
  1680. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Don't show download result when -S option is used.
  1682. * src/main.cc
  1683. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Bump up version number to 1.0.1
  1685. * configure.ac
  1686. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Closed files after the test cases in MultiDiskWriterTest::
  1688. testResetDiskWriterEntries(). This will fix the unit test error
  1689. in mingw32 build.
  1690. * test/MultiDiskWriterTest.cc
  1691. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Use HEAD method to get file size from HTTP server for segmented
  1693. downloading.
  1694. The request to the BitTorrent Tracker always uses GET method because
  1695. the response of the tracker is small and it doesn't need segmented
  1696. download.
  1697. * src/FtpNegotiationCommand.cc
  1698. * src/HttpRequest.cc
  1699. * src/HttpResponseCommand.cc
  1700. * src/HttpSkipResponseCommand.cc
  1701. * src/RequestGroup.cc
  1702. * src/RequestGroup.h
  1703. * src/TrackerWatcherCommand.cc
  1704. * test/HttpRequestTest.cc
  1705. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Fixed the bug that causes floating exception when -T option is used and
  1707. no URIs are given.
  1708. * src/download_helper.cc
  1709. * test/DownloadHelperTest.cc
  1710. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1711. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1712. errors in MinGW:
  1713. Closed file after saving server stats (RequestGroupMan.cc)
  1714. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1715. Ignored case & handled 2-digit years (strptime.c)
  1716. Added missing suseconds_t definition (a2time.h)
  1717. Fixed socket CLOSE() define (SocketCore.cc)
  1718. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1719. Changed utime() test values from x000 to x00000 as MinGW failed on
  1720. values less than timezone offset from Unix epoch
  1721. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1722. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1723. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1724. handle negative dates (CookieParserTest.cc)
  1725. * src/a2time.h
  1726. * src/FtpConnection.cc
  1727. * src/RequestGroupMan.cc
  1728. * src/SocketCore.cc
  1729. * src/strptime.c
  1730. * test/CookieParserTest.cc
  1731. * test/CopyDiskAdaptorTest.cc
  1732. * test/FileTest.cc
  1733. * test/FtpConnectionTest.cc
  1734. * test/MultiDiskAdaptorTest.cc
  1735. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1737. * doc/aria2c.1.txt
  1738. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. * Release 1.0.0
  1740. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Added '~' to reserved characters.
  1742. * src/Util.cc
  1743. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Do not urlencode Request::url in setUrl() because we want unmodified
  1745. URL using Request::getUrl()
  1746. * src/Request.cc
  1747. * src/Request.h
  1748. * test/RequestTest.cc
  1749. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1751. Thanks to all translators.
  1752. * po/bg.po
  1753. * po/fr.po
  1754. * po/ja.po
  1755. * po/ru.po
  1756. * po/uk.po
  1757. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Bump up version number to 1.0.0
  1759. * configure.ac
  1760. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added nosqlite3 build to build_test.sh.
  1762. Renamed noxml as expat.
  1763. * build_test.sh
  1764. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Updated INPUT FILE section.
  1766. * doc/aria2c.1.txt
  1767. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1769. on big endian systems because test .aria2 files are made for little
  1770. endian systems.
  1771. * test/DefaultBtProgressInfoFileTest.cc
  1772. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Dropped ares support.
  1774. * README
  1775. * configure.ac
  1776. * m4/libares.m4: Removed.
  1777. * src/AsyncNameResolver.cc
  1778. * src/Makefile.am
  1779. * test/Makefile.am
  1780. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1782. Removed const qualifier from DiskWriter::size().
  1783. * src/AbstractDiskWriter.cc
  1784. * src/AbstractDiskWriter.h
  1785. * src/ByteArrayDiskWriter.cc
  1786. * src/ByteArrayDiskWriter.h
  1787. * src/DiskWriter.h
  1788. * test/ByteArrayDiskWriterTest.cc
  1789. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Fixed the bug that causes segmentation fault/bus error during executing
  1791. choking algorithm while seeding. This is caused by improper
  1792. implementation of compare function which returns inconsistent results
  1793. depending on the timing of last unchoke.
  1794. * src/BtSeederStateChoke.cc
  1795. * src/BtSeederStateChoke.h
  1796. * src/DefaultPeerStorage.cc
  1797. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Removed TODO
  1799. * TODO
  1800. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1801. Added a section that explains how to pass argument to options that
  1802. takes optional arguments with its short form.
  1803. * doc/aria2c.1.txt
  1804. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Added -u for the short form of --max-upload-limit option.
  1806. * doc/aria2c.1.txt
  1807. * src/option_processing.cc
  1808. * src/usage_text.h
  1809. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Added -V for the short form of --check-integrity option.
  1811. Now the argument of --check-integrity option is optional:
  1812. if it is omitted, it is evaluated as true.
  1813. * doc/aria2c.1.txt
  1814. * src/option_processing.cc
  1815. * src/usage_text.h
  1816. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Made the default value of --ftp-pasv option set to true and it can take
  1818. true/false values.
  1819. * src/OptionHandlerFactory.cc
  1820. * src/option_processing.cc
  1821. * src/usage_text.h
  1822. * doc/aria2c.1.txt
  1823. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Given custom random number generator to std::random_shuffle.
  1825. * src/AnnounceList.cc
  1826. * src/BtLeecherStateChoke.cc
  1827. * src/BtSeederStateChoke.cc
  1828. * src/DefaultBtRequestFactory.cc
  1829. * src/MetalinkEntry.cc
  1830. * src/RarestPieceSelector.cc
  1831. * src/SimpleRandomizer.cc
  1832. * src/SimpleRandomizer.h
  1833. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Now the default value of --enable-direct-io is true.
  1835. * src/OptionHandlerFactory.cc
  1836. * doc/aria2c.1.txt
  1837. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Erase peer before executing onReturningPeer and onErasingPeer
  1839. because choking algorithm called from onReturningPeer doesn't
  1840. like erasing peer in the active peer list.
  1841. * src/DefaultPeerStorage.cc
  1842. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Instead of creating special filename in createDownloadResult() if
  1844. inMemoryDownload() is true, now it is done in getFilePath().
  1845. * src/RequestGroup.cc
  1846. * test/RequestGroupTest.cc
  1847. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1849. processed in memory. This is the fix for previous comment out.
  1850. * src/MemoryBufferPreDownloadHandler.cc
  1851. * src/RequestGroup.cc
  1852. * src/RequestGroup.h
  1853. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Commented out the code which sets virtual directory path "[MEMORY]"
  1855. propagate directory to store to following RequestGroup.
  1856. * src/MemoryBufferPreDownloadHandler.cc
  1857. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Bump up version number to 1.0.0b
  1859. * configure.ac
  1860. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Added input_uris.txt to EXTRA_DIST
  1862. * test/Makefile.am
  1863. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Removed PeerObject.h from Makefile.am
  1865. * src/Makefile.am
  1866. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Avoid slow seeding
  1868. * src/PeerInteractionCommand.cc
  1869. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Updated usage for -i option.
  1871. * src/usage_text.h (TEXT_INPUT_FILE)
  1872. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Added INPUT FILE section to man page.
  1874. Escaped fake URLs.
  1875. * doc/aria2c.1.txt
  1876. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Fixed wrong note position for -o option.
  1878. * doc/aria2c.1.txt
  1879. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Fixed compile error without SSL/XML library.
  1881. * src/DefaultBtProgressInfoFile.cc
  1882. * src/DefaultBtProgressInfoFile.h
  1883. * src/FileMetalinkParserState.cc
  1884. * src/RequestGroup.h
  1885. * src/SocketCore.cc
  1886. * src/SocketCore.h
  1887. * src/VerificationMetalinkParserState.cc
  1888. * src/download_helper.h
  1889. * src/main.cc
  1890. * test/DefaultBtProgressInfoFileTest.cc
  1891. * test/DownloadHelperTest.cc
  1892. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Rewritten URI handling functions. They are now provided as a testable
  1894. functions.
  1895. * src/Makefile.am
  1896. * src/RequestGroup.cc
  1897. * src/RequestGroup.h
  1898. * src/download_helper.cc
  1899. * src/download_helper.h
  1900. * src/main.cc
  1901. * test/DownloadHelperTest.cc
  1902. * test/Makefile.am
  1903. * test/input_uris.txt
  1904. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Quickly terminate commands when ctrl-c is pressed.
  1906. * src/DownloadEngine.cc
  1907. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Quickly terminate idle commands when download finished.
  1909. * src/AbstractCommand.cc
  1910. * src/DownloadCommand.cc
  1911. * src/DownloadEngine.cc
  1912. * src/DownloadEngine.h
  1913. * src/SleepCommand.cc
  1914. * src/SleepCommand.h
  1915. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Added the ability to specify output filename and directory in input
  1917. file.
  1918. Additional parameters are added in the following line of URIs
  1919. with proceeding white space(s), 1 parameter in 1 line.
  1920. The parameter names are the same with the command-line option name
  1921. without proceeding "--". Not all the options are available here:
  1922. at the moment, 'dir' and 'out' options are avialable.
  1923. Please note that out option has no effect against Metalink or BitTorrent
  1924. downloads.
  1925. Example input file:
  1926. http://host/foo-1.1.tar.bz2
  1927. out=foo.tar.bz2
  1928. dir=/tmp/downloads
  1929. http://host/thundermonkey-2.0.tar.bz2
  1930. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1931. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1932. thundermonkey-2.0.tar.bz2 is saved as
  1933. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1934. * src/BtPostDownloadHandler.cc
  1935. * src/Metalink2RequestGroup.cc
  1936. * src/Metalink2RequestGroup.h
  1937. * src/MetalinkPostDownloadHandler.cc
  1938. * src/UriListParser.cc
  1939. * src/UriListParser.h
  1940. * src/main.cc
  1941. * test/Metalink2RequestGroupTest.cc
  1942. * test/UriListParserTest.cc
  1943. * test/filelist1.txt
  1944. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Fixed error when SSL library is not found.
  1946. * configure.ac
  1947. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Cross referenced among -s, -C and -j options.
  1949. Updated usage of -C and -s options.
  1950. * src/usage_text.h
  1951. * doc/aria2c.1.txt
  1952. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Fixed bad cast in 32bit platforms.
  1954. * test/DefaultPieceStorageTest.cc
  1955. (DefaultPieceStorageTest::testGetCompletedLength)
  1956. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Fixed unit test fails on 32bit platforms.
  1958. * test/CookieParserTest.cc
  1959. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Show an average download speed in Download results.
  1961. * src/BtFileAllocationEntry.cc
  1962. * src/DefaultPieceStorage.cc
  1963. * src/DownloadContext.cc
  1964. * src/DownloadContext.h
  1965. * src/DownloadResult.h
  1966. * src/RequestGroup.cc
  1967. * src/RequestGroupMan.cc
  1968. * src/StreamFileAllocationEntry.cc
  1969. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Fixed the bug that metalink file is not processed if Content-Type
  1971. field has a paramter.
  1972. * src/HttpResponse.cc
  1973. * src/HttpResponse.h
  1974. * test/HttpResponseTest.cc
  1975. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Removed unused code.
  1977. * src/DefaultBtAnnounce.cc
  1978. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1980. the value larger than DefaultPieceStorage::getTotalLength() when
  1981. in flight pieces are involved.
  1982. * src/DefaultPieceStorage.cc
  1983. * test/DefaultPieceStorageTest.cc
  1984. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Bump up version number to 1.0.0a.
  1986. * configure.ac
  1987. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Updated configure.ac
  1989. * configure.ac
  1990. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added usege for proxy.
  1992. * doc/aria2c.1.txt
  1993. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Added usage for --ca-certificate, --certificate, --private-key and
  1995. --check-certificate options.
  1996. * doc/aria2c.1.txt
  1997. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Updated man page
  1999. * doc/aria2c.1.txt
  2000. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added --no-proxy option. It receives comman separated hostname or
  2002. domains to which proxy should not be used.
  2003. aria2 honors the environment variable no_proxy to override no-proxy
  2004. value in configuration file. The user can override the environment
  2005. variable no_proxy with --no-proxy command-line option.
  2006. * src/AbstractCommand.cc
  2007. * src/OptionHandlerFactory.cc
  2008. * src/option_processing.cc
  2009. * src/prefs.cc
  2010. * src/prefs.h
  2011. * src/usage_text.h
  2012. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2014. The CA certificates are specified in --ca-certificate option.
  2015. By default, the verification is disabled. Use --check-certificate
  2016. option to enable it.
  2017. * src/HttpRequestCommand.cc
  2018. * src/LibgnutlsTLSContext.cc
  2019. * src/LibgnutlsTLSContext.h
  2020. * src/LibsslTLSContext.cc
  2021. * src/LibsslTLSContext.h
  2022. * src/MultiUrlRequestInfo.cc
  2023. * src/OptionHandlerFactory.cc
  2024. * src/SocketCore.cc
  2025. * src/SocketCore.h
  2026. * src/a2functional.h
  2027. * src/message.h
  2028. * src/option_processing.cc
  2029. * src/prefs.cc
  2030. * src/prefs.h
  2031. * src/usage_text.h
  2032. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added client certificate authentication for SSL/TLS.
  2034. Currently a private key must be decrypted for use with aria2.
  2035. If a user accidentally gives encrypted file to aria2 then following
  2036. thing happens:
  2037. If encrypted private key is given to aria2, it behaves differently
  2038. depending on the ssl library it uses. If aria2 built with openssl then
  2039. openssl prompts the user for password. If aria2 build with gnutls then
  2040. aria2 exists with error at start up.
  2041. * src/DownloadEngineFactory.cc
  2042. * src/MultiUrlRequestInfo.cc
  2043. * src/OptionHandlerFactory.cc
  2044. * src/option_processing.cc
  2045. * src/prefs.cc
  2046. * src/prefs.h
  2047. * src/usage_text.h
  2048. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Introduced TLSContext that holds TLS related data that can be shared
  2050. with multiple SSL connections.
  2051. * src/DownloadEngineFactory.cc
  2052. * src/LibgnutlsTLSContext.cc
  2053. * src/LibgnutlsTLSContext.h
  2054. * src/LibsslTLSContext.cc
  2055. * src/LibsslTLSContext.h
  2056. * src/Makefile.am
  2057. * src/SocketCore.cc
  2058. * src/SocketCore.h
  2059. * src/TLSContext.h
  2060. * src/message.h
  2061. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Fixed the bug that the DiskWriter of the first FileEntry whose
  2063. `needsFileAllocation' property is false is not created
  2064. even if it shares a piece with next FileEntry which `requested' property
  2065. is true.
  2066. Fixed the bug that zero-length file is not created if pre file
  2067. allocation is not done.
  2068. * src/MultiDiskAdaptor.cc
  2069. * src/MultiDiskAdaptor.h
  2070. * test/MultiDiskAdaptorTest.cc
  2071. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2072. Added the ability to pool proxy connection.
  2073. The conneciton in FTP with proxy-method=GET is not pooled.
  2074. Proxy-Connection header will not be sent when sending CONNECT method.
  2075. * src/DownloadEngine.cc
  2076. * src/DownloadEngine.h
  2077. * src/FtpFinishDownloadCommand.cc
  2078. * src/FtpInitiateConnectionCommand.cc
  2079. * src/FtpNegotiationCommand.cc
  2080. * src/HttpDownloadCommand.cc
  2081. * src/HttpInitiateConnectionCommand.cc
  2082. * src/HttpRequest.cc
  2083. * src/HttpRequest.h
  2084. * src/HttpResponse.cc
  2085. * src/HttpSkipResponseCommand.cc
  2086. * test/HttpRequestTest.cc
  2087. * test/HttpResponseTest.cc
  2088. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. Handle date before epoch.
  2090. To create *bad* Time object, call Time::null().
  2091. * src/CookieParser.cc
  2092. * src/FtpConnection.cc
  2093. * src/FtpConnection.h
  2094. * src/FtpNegotiationCommand.cc
  2095. * src/RequestGroup.cc
  2096. * src/TimeA2.cc
  2097. * src/TimeA2.h
  2098. * test/CookieParserTest.cc
  2099. * test/FtpConnectionTest.cc
  2100. * test/TimeTest.cc
  2101. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Added support for following envrionment variables: http_proxy,
  2103. https_proxy, ftp_proxy and all_proxy.
  2104. Each variable is equivalent to the aria2 option whose name is the
  2105. variable name with '_' replaced with '-'.
  2106. They overrides options specified in aria2.conf file.
  2107. The envrionment variables can be overrode using command-line option.
  2108. * src/option_processing.cc
  2109. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2110. Renamed --http-proxy-method as --proxy-method.
  2111. * src/AbstractCommand.cc
  2112. * src/FtpInitiateConnectionCommand.cc
  2113. * src/HttpInitiateConnectionCommand.cc
  2114. * src/OptionHandlerFactory.cc
  2115. * src/option_processing.cc
  2116. * src/prefs.cc
  2117. * src/prefs.h
  2118. * src/usage_text.h
  2119. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2121. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2122. Above 3 options and --http-proxy option can handle proxy in URL format
  2123. like: http://user:passwd@host:port.
  2124. If a proxy requires user/password, they must be specified in a URL.
  2125. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2126. instead.
  2127. * src/AbstractCommand.cc
  2128. * src/AbstractCommand.h
  2129. * src/AbstractProxyRequestCommand.cc
  2130. * src/AbstractProxyRequestCommand.h
  2131. * src/AuthConfigFactory.cc
  2132. * src/AuthConfigFactory.h
  2133. * src/FtpFinishDownloadCommand.cc
  2134. * src/FtpInitiateConnectionCommand.cc
  2135. * src/FtpInitiateConnectionCommand.h
  2136. * src/FtpNegotiationCommand.cc
  2137. * src/FtpTunnelRequestCommand.cc
  2138. * src/FtpTunnelRequestCommand.h
  2139. * src/HttpDownloadCommand.cc
  2140. * src/HttpInitiateConnectionCommand.cc
  2141. * src/HttpInitiateConnectionCommand.h
  2142. * src/HttpProxyRequestCommand.cc
  2143. * src/HttpProxyRequestCommand.h
  2144. * src/HttpRequest.cc
  2145. * src/HttpRequest.h
  2146. * src/HttpRequestCommand.cc
  2147. * src/HttpRequestCommand.h
  2148. * src/HttpSkipResponseCommand.cc
  2149. * src/InitiateConnectionCommand.cc
  2150. * src/InitiateConnectionCommand.h
  2151. * src/OptionHandlerFactory.cc
  2152. * src/OptionHandlerImpl.h
  2153. * src/Request.cc
  2154. * src/option_processing.cc
  2155. * src/prefs.cc
  2156. * src/prefs.h
  2157. * src/usage_text.h
  2158. * test/AuthConfigFactoryTest.cc
  2159. * test/HttpRequestTest.cc
  2160. * test/OptionHandlerTest.cc
  2161. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Execute choking algorithm when unchoked and interested peer is
  2163. disconected.
  2164. * src/DefaultPeerStorage.cc
  2165. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2166. Added testcase for BtNotInterestedMessage from unchoked peer.
  2167. * test/BtNotInterestedMessageTest.cc
  2168. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2169. Execute choking algorithm when BtInterestedMessage arrives from
  2170. unchoked peer.
  2171. * src/BtInterestedMessage.cc
  2172. * src/BtInterestedMessage.h
  2173. * src/DefaultBtMessageFactory.cc
  2174. * test/BtInterestedMessageTest.cc
  2175. * test/MockPeerStorage.h
  2176. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2177. AuthConfigFactory is now part of DownloadEngine.
  2178. * src/AbstractProxyRequestCommand.cc
  2179. * src/AuthConfigFactory.h
  2180. * src/DownloadEngine.cc
  2181. * src/DownloadEngine.h
  2182. * src/FtpConnection.cc
  2183. * src/FtpConnection.h
  2184. * src/FtpNegotiationCommand.cc
  2185. * src/HttpConnection.cc
  2186. * src/HttpRequest.cc
  2187. * src/HttpRequest.h
  2188. * src/HttpRequestCommand.cc
  2189. * src/HttpResponse.cc
  2190. * src/HttpResponseCommand.cc
  2191. * src/HttpSkipResponseCommand.cc
  2192. * src/MultiUrlRequestInfo.cc
  2193. * src/main.cc
  2194. * test/FtpConnectionTest.cc
  2195. * test/HttpRequestTest.cc
  2196. * test/HttpResponseTest.cc
  2197. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Corrected catched exception type.
  2199. * src/ServerStatMan.cc
  2200. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. DNSCache is now part of DownloadEngine.
  2202. * src/DNSCache.h
  2203. * src/DownloadEngine.cc
  2204. * src/DownloadEngine.h
  2205. * src/InitiateConnectionCommand.cc
  2206. * src/MultiUrlRequestInfo.cc
  2207. * test/Makefile.am
  2208. * test/Makefile.in
  2209. * test/SimpleDNSCacheTest.cc
  2210. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2212. DownloadEngine.
  2213. * src/ActivePeerConnectionCommand.cc
  2214. * src/BtSetup.cc
  2215. * src/CUIDCounter.h
  2216. * src/DHTSetup.cc
  2217. * src/DownloadCommand.cc
  2218. * src/DownloadEngine.cc
  2219. * src/DownloadEngine.h
  2220. * src/DownloadEngineFactory.cc
  2221. * src/FileAllocationDispatcherCommand.cc
  2222. * src/InitiatorMSEHandshakeCommand.cc
  2223. * src/PeerInitiateConnectionCommand.cc
  2224. * src/PeerInteractionCommand.cc
  2225. * src/PeerListenCommand.cc
  2226. * src/RequestGroup.cc
  2227. * src/StreamFileAllocationEntry.cc
  2228. * src/TrackerWatcherCommand.cc
  2229. * src/main.cc
  2230. * test/RequestGroupManTest.cc
  2231. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2232. Implemented commented code in BtSeederStateChoke
  2233. * src/BtSeederStateChoke.cc
  2234. * src/Peer.cc
  2235. * src/Peer.h
  2236. * src/PeerInteractionCommand.cc
  2237. * src/PeerSessionResource.cc
  2238. * src/PeerSessionResource.h
  2239. * test/MockBtMessageDispatcher.h
  2240. * test/PeerSessionResourceTest.cc
  2241. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2242. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2243. its object.
  2244. * src/AbstractBtMessage.cc
  2245. * src/ActivePeerConnectionCommand.cc
  2246. * src/ActivePeerConnectionCommand.h
  2247. * src/BtContextAwareCommand.cc
  2248. * src/BtContextAwareCommand.h
  2249. * src/BtExtendedMessage.cc
  2250. * src/BtExtendedMessage.h
  2251. * src/BtInterestedMessage.cc
  2252. * src/BtInterestedMessage.h
  2253. * src/BtNotInterestedMessage.cc
  2254. * src/BtNotInterestedMessage.h
  2255. * src/BtRegistry.cc
  2256. * src/BtRegistry.h
  2257. * src/BtSeederStateChoke.cc
  2258. * src/BtSetup.cc
  2259. * src/DHTGetPeersCommand.cc
  2260. * src/DHTGetPeersCommand.h
  2261. * src/DHTPeerAnnounceEntry.cc
  2262. * src/DHTPeerAnnounceEntry.h
  2263. * src/DHTPeerAnnounceStorage.cc
  2264. * src/DHTPeerAnnounceStorage.h
  2265. * src/DHTPeerLookupTask.cc
  2266. * src/DHTPeerLookupTask.h
  2267. * src/DHTSetup.cc
  2268. * src/DHTSetup.h
  2269. * src/DHTTaskFactory.h
  2270. * src/DHTTaskFactoryImpl.cc
  2271. * src/DHTTaskFactoryImpl.h
  2272. * src/DefaultBtAnnounce.cc
  2273. * src/DefaultBtInteractive.cc
  2274. * src/DefaultBtInteractive.h
  2275. * src/DefaultBtMessageDispatcher.cc
  2276. * src/DefaultBtMessageDispatcher.h
  2277. * src/DefaultBtMessageFactory.cc
  2278. * src/DefaultBtMessageFactory.h
  2279. * src/DefaultBtMessageReceiver.cc
  2280. * src/DefaultBtProgressInfoFile.cc
  2281. * src/DefaultBtProgressInfoFile.h
  2282. * src/DefaultBtRequestFactory.cc
  2283. * src/DefaultBtRequestFactory.h
  2284. * src/DefaultExtensionMessageFactory.cc
  2285. * src/DefaultExtensionMessageFactory.h
  2286. * src/DefaultPeerStorage.cc
  2287. * src/DefaultPeerStorage.h
  2288. * src/DownloadEngine.cc
  2289. * src/DownloadEngine.h
  2290. * src/InitiatorMSEHandshakeCommand.cc
  2291. * src/InitiatorMSEHandshakeCommand.h
  2292. * src/MSEHandshake.cc
  2293. * src/MSEHandshake.h
  2294. * src/Makefile.am
  2295. * src/Makefile.in
  2296. * src/PeerChokeCommand.cc
  2297. * src/PeerChokeCommand.h
  2298. * src/PeerInitiateConnectionCommand.cc
  2299. * src/PeerInitiateConnectionCommand.h
  2300. * src/PeerInteractionCommand.cc
  2301. * src/PeerInteractionCommand.h
  2302. * src/PeerObject.h
  2303. * src/PeerReceiveHandshakeCommand.cc
  2304. * src/PeerReceiveHandshakeCommand.h
  2305. * src/ReceiverMSEHandshakeCommand.cc
  2306. * src/RequestGroup.cc
  2307. * src/RequestGroup.h
  2308. * src/RequestGroupMan.cc
  2309. * src/RequestGroupMan.h
  2310. * src/SeedCheckCommand.cc
  2311. * src/SeedCheckCommand.h
  2312. * src/ShareRatioSeedCriteria.h
  2313. * src/SimpleBtMessage.cc
  2314. * src/TrackerWatcherCommand.cc
  2315. * src/TrackerWatcherCommand.h
  2316. * src/UTPexExtensionMessage.cc
  2317. * src/UTPexExtensionMessage.h
  2318. * test/BtCancelMessageTest.cc
  2319. * test/BtChokeMessageTest.cc
  2320. * test/BtExtendedMessageTest.cc
  2321. * test/BtInterestedMessageTest.cc
  2322. * test/BtNotInterestedMessageTest.cc
  2323. * test/BtPieceMessageTest.cc
  2324. * test/BtPortMessageTest.cc
  2325. * test/BtRegistryTest.cc
  2326. * test/BtRejectMessageTest.cc
  2327. * test/BtRequestMessageTest.cc
  2328. * test/DHTPeerAnnounceEntryTest.cc
  2329. * test/DHTPeerAnnounceStorageTest.cc
  2330. * test/DefaultBtMessageDispatcherTest.cc
  2331. * test/DefaultBtMessageFactoryTest.cc
  2332. * test/DefaultBtProgressInfoFileTest.cc
  2333. * test/DefaultBtRequestFactoryTest.cc
  2334. * test/DefaultExtensionMessageFactoryTest.cc
  2335. * test/MSEHandshakeTest.cc
  2336. * test/MockDHTTaskFactory.h
  2337. * test/ShareRatioSeedCriteriaTest.cc
  2338. * test/UTPexExtensionMessageTest.cc
  2339. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2340. Fixed compiler warning.
  2341. * test/UtilTest.cc
  2342. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. Treat Cookie object as session cookie if expiry = 0 is given.
  2344. With this change, you can specify session scoped cookies in an external
  2345. file setting expiry value to 0.
  2346. * src/Cookie.cc
  2347. * src/Cookie.h
  2348. * test/CookieParserTest.cc
  2349. * test/CookieStorageTest.cc
  2350. * test/CookieTest.cc
  2351. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2352. Changed signature of DHTMessageFactory::createResponseMessage().
  2353. Removed unused validateIDMatch.
  2354. * src/DHTMessageFactory.h
  2355. * src/DHTMessageFactoryImpl.cc
  2356. * src/DHTMessageFactoryImpl.h
  2357. * src/DHTMessageTracker.cc
  2358. * test/DHTMessageFactoryImplTest.cc
  2359. * test/MockDHTMessageFactory.h
  2360. Dropped DHT message coming from same ID of localhost.
  2361. * src/DHTMessageReceiver.cc
  2362. Rejected adding node whose ID is the same as localhost's.
  2363. * src/DHTRoutingTable.cc
  2364. * test/BtPortMessageTest.cc
  2365. * test/DHTRoutingTableTest.cc
  2366. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2367. Pool connection when redirection occurs with Content-Length = 0.
  2368. * src/HttpSkipResponseCommand.cc
  2369. * src/HttpSkipResponseCommand.h
  2370. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2371. Fixed the bug that causes time out when redirection occurs with
  2372. content-length 0.
  2373. * src/HttpResponseCommand.cc
  2374. * src/HttpSkipResponseCommand.cc
  2375. * src/HttpSkipResponseCommand.h
  2376. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2377. Now each status legends is shown only when it appears in Download
  2378. Result. If Download Result has no item, then status legend will not
  2379. be printed.
  2380. * src/RequestGroupMan.cc
  2381. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2382. Removed duplicate creation of OptionHandlers.
  2383. * src/option_processing.cc
  2384. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2385. Fixed the bug that causes segmentation fault when accessing files which
  2386. don't exist or are not included in --select-file option while
  2387. validating chunk checksum.
  2388. * src/MultiDiskAdaptor.cc
  2389. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2390. Fixed compiler warning.
  2391. * test/UtilTest.cc
  2392. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2393. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2394. * src/IteratableChecksumValidator.cc
  2395. * src/IteratableChunkChecksumValidator.cc
  2396. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2397. * Release 0.16.2
  2398. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Added Serbian translation. Updated Ukrainian translation.
  2400. Thanks to all translators.
  2401. * po/sr.po
  2402. * po/uk.po
  2403. * po/LINGUAS
  2404. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Bump up version number to 0.16.2
  2406. * configure.ac
  2407. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2408. Added length equality test to operator== to drop a piece message
  2409. whose length does not match to the requested one.
  2410. * src/RequestSlot.cc
  2411. * test/DefaultBtMessageDispatcherTest.cc
  2412. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2413. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2414. recieved.
  2415. In this fix, if a request larger than 16KiB length is received, aria2
  2416. disconnects the peer.
  2417. * src/BtConstants.h
  2418. * src/PeerMessageUtil.cc
  2419. * src/PeerMessageUtil.h
  2420. * test/BtRequestMessageTest.cc
  2421. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. * Release 0.16.1
  2423. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2424. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2425. * doc/aria2c.1.txt
  2426. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2428. Updated French, Simplified Chinese and Japanese translations.
  2429. Thanks to all translators.
  2430. en@quot and en@boldquot are also added.
  2431. * po/LINGUAS
  2432. * po/fr.po
  2433. * po/ja.po
  2434. * po/uk.po
  2435. * po/vi.po
  2436. * po/zh_CN.po
  2437. * po/zh_TW.po
  2438. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. Bump up version number to 0.16.1.
  2440. * configure.ac
  2441. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2442. Updated README.
  2443. * README
  2444. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2445. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2446. not to replace '--' with em dash character.
  2447. * doc/aria2c.1.txt
  2448. * doc/makeman
  2449. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2451. every SEC seconds.
  2452. * src/DownloadEngineFactory.cc
  2453. * src/OptionHandlerFactory.cc
  2454. * src/option_processing.cc
  2455. * src/usage_text.h
  2456. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2457. Fixed compile warning on linux-amd64
  2458. * src/FtpConnection.cc
  2459. * src/IteratableChunkChecksumValidator.cc
  2460. * src/MultiDiskAdaptor.cc
  2461. Fixed the bug that unit test fails on linux-amd64
  2462. * test/UtilTest.cc
  2463. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Added --dht-file-path option to change the path to dht.dat, which is a
  2465. serialized DHT routing table.
  2466. * src/OptionHandlerFactory.cc
  2467. * src/option_processing.cc
  2468. * src/usage_text.h
  2469. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2470. Fixed possible underflow.
  2471. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2472. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2473. Fixed the bug that last character in URI is not encoded.
  2474. * src/Request.cc
  2475. * test/RequestTest.cc
  2476. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Fixed the bug that referer header field contains fragment.
  2478. Now Request class removes fragment part of URI and encodes it
  2479. in Request::setUri() and setReferer().
  2480. * src/Request.h
  2481. * src/Request.cc
  2482. * test/RequestTest.cc
  2483. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Added missing m4 macros.
  2485. * m4/cppunit.m4
  2486. * m4/libgcrypt.m4
  2487. * m4/libgnutls-extra.m4
  2488. * m4/libgnutls.m4
  2489. * m4/libxml2.m4
  2490. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Fixed compile error with gcc-4.4(snapshot)
  2492. * src/File.cc
  2493. * src/FtpConnection.cc
  2494. * src/OptionHandlerImpl.h
  2495. * src/Util.cc
  2496. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2497. Removed assert()
  2498. * src/SocketBuffer.cc (SocketBuffer::send)
  2499. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2500. Changed the type of _numNewConnection to unsigned int.
  2501. * src/ActivePeerConnectionCommand.cc
  2502. * src/ActivePeerConnectionCommand.h
  2503. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2504. * Release 0.16.0
  2505. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Updated doc
  2507. * README
  2508. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2509. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2510. translations. Thanks to all translators.
  2511. * po/bg.po
  2512. * po/de.po
  2513. * po/fr.po
  2514. * po/ja.po
  2515. * po/zh_CN.po
  2516. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2517. Bump up version number to 0.16.0.
  2518. * configure.ac
  2519. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2521. int32_t.
  2522. Changed the type of count to int32_t.
  2523. * src/Metalink2RequestGroup.cc
  2524. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2525. Added test for Time::elapsed(time_t).
  2526. * test/TimeTest.cc
  2527. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2529. Util::difftv() should be used instead.
  2530. * src/TimeA2.cc
  2531. * src/TimeA2.h
  2532. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Made socket for dht connections non-blocking
  2534. * src/DHTAbstractMessage.cc
  2535. * src/DHTAbstractMessage.h
  2536. * src/DHTConnection.h
  2537. * src/DHTConnectionImpl.cc
  2538. * src/DHTConnectionImpl.h
  2539. * src/DHTMessage.h
  2540. * src/DHTMessageDispatcherImpl.cc
  2541. * src/DHTMessageDispatcherImpl.h
  2542. * src/DHTUnknownMessage.cc
  2543. * src/DHTUnknownMessage.h
  2544. * src/SocketCore.cc
  2545. * src/SocketCore.h
  2546. * test/MockDHTMessage.h
  2547. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2548. Changed the type of offset to int.
  2549. * src/ParameterizedStringParser.cc
  2550. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2551. Made getAsInt() return int32_t
  2552. * src/Option.h
  2553. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2555. build.
  2556. * configure.ac
  2557. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. Use sqlite3_open if sqlite3_open_v2 is not available.
  2559. * src/Sqlite3MozCookieParser.cc
  2560. * src/Sqlite3MozCookieParser.h
  2561. * m4/sqlite3.m4
  2562. * test/Sqlite3MozCookieParserTest.cc
  2563. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2565. * src/BtPieceMessage.cc
  2566. * src/DHTPeerAnnounceStorage.cc
  2567. * src/DefaultPieceStorage.cc
  2568. * src/DownloadCommand.cc
  2569. * src/DownloadEngine.cc
  2570. * src/FtpConnection.cc
  2571. * src/PeerConnection.cc
  2572. * src/PeerMessageUtil.cc
  2573. * src/RequestGroup.cc
  2574. * src/RequestGroupMan.cc
  2575. * src/SimpleBtMessage.cc
  2576. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2577. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2578. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2579. * src/AbstractDiskWriter.cc
  2580. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2581. Don't set Request::supportsPersistentConnection() in HttpConnection
  2582. since this code is also used in AbstractProxyResponseCommand.
  2583. Moved those code to HttpResponse.
  2584. * src/HttpResponse.cc
  2585. * src/HttpResponse.h
  2586. * src/HttpConnection.cc
  2587. * src/HttpConnection.h
  2588. * src/HttpResponseCommand.cc
  2589. * test/HttpResponseTest.cc
  2590. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2591. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2592. The configuration is minimum: no torrent, no metalink, so there may be
  2593. other compile error on their code.
  2594. * src/a2netcompat.h
  2595. * src/File.cc
  2596. * src/File.h
  2597. * src/SocketCore.cc
  2598. * src/SocketCore.h
  2599. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2600. Made a socket of incoming peer non-blocking.
  2601. * src/PeerListenCommand.cc
  2602. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2604. whole message data is not sent in one send() call.
  2605. * src/BtPieceMessage.cc
  2606. * src/BtPieceMessage.h
  2607. * src/PeerConnection.cc
  2608. * src/PeerConnection.h
  2609. * src/SimpleBtMessage.cc
  2610. * src/SimpleBtMessage.h
  2611. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. Fixed the bug that aria2 downloads faster than max-download-limit when
  2613. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2614. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2615. , instead of sum of them.
  2616. * src/ActivePeerConnectionCommand.cc
  2617. * src/DefaultBtInteractive.cc
  2618. * src/DownloadCommand.cc
  2619. * src/PeerInteractionCommand.cc
  2620. * src/PeerReceiveHandshakeCommand.cc
  2621. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Fixed the bug that HTTPS download fails.
  2623. * src/AbstractCommand.cc
  2624. * src/AbstractCommand.h
  2625. * src/DownloadCommand.cc
  2626. * src/FtpConnection.cc
  2627. * src/HttpConnection.cc
  2628. * src/HttpRequestCommand.cc
  2629. * src/HttpResponseCommand.cc
  2630. * src/HttpSkipResponseCommand.cc
  2631. * src/MSEHandshake.cc
  2632. * src/PeerConnection.cc
  2633. * src/SocketCore.cc
  2634. * src/SocketCore.h
  2635. Fixed the bug that aria2 doesn't download whole content body and cannot
  2636. reuse connection if chunked transfer encoding and gzip content encoding
  2637. are set.
  2638. * src/DownloadCommand.cc
  2639. * src/HttpSkipResponseCommand.cc
  2640. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Updated man page.
  2642. * doc/aria2c.1.txt
  2643. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. When error occurred while aria2 was parsing an .aria2.conf file, print
  2645. the usage of the option that caused error.
  2646. * src/option_processing.cc
  2647. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Fixed compile error on OptionHandlerException
  2649. * src/Makefile.am
  2650. * src/OptionHandlerException.cc
  2651. * src/OptionHandlerException.h
  2652. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Moved message of the error to OptionHandlerException.h
  2654. * src/NameMatchOptionHandler.h
  2655. * src/OptionHandlerException.h
  2656. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. When error occurs while aria2 is parsing an command-line option, print
  2658. the usage of the option.
  2659. * src/Makefile.am
  2660. * src/NameMatchOptionHandler.h
  2661. * src/OptionHandlerException.h
  2662. * src/option_processing.cc
  2663. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2664. Reverted previous change.
  2665. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2666. username is not in URI.
  2667. * src/HttpRequest.cc
  2668. * src/Request.cc
  2669. * test/HttpRequestTest.cc
  2670. * test/RequestTest.cc
  2671. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2672. Now colon is required for username and password in FTP URL, like:
  2673. ftp://username:password@host.
  2674. If colon is not there, aria2 don't parse it as a username. For example,
  2675. aria2 don't retrieve username from ftp://username@host.
  2676. This fix was made in order to login FTP server via non-transparent ftp
  2677. proxy.
  2678. * src/Request.cc
  2679. * test/RequestTest.cc
  2680. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2681. Use netrc for HTTP.
  2682. Now FTP user/password is sent in Authorization header when
  2683. --ftp-via-http-proxy=get is given.
  2684. * src/AuthConfigFactory.cc
  2685. * src/HttpRequest.cc
  2686. * src/HttpRequest.h
  2687. * src/NetrcAuthResolver.cc
  2688. * src/NetrcAuthResolver.h
  2689. * src/OptionHandlerFactory.cc
  2690. * src/option_processing.cc
  2691. * src/prefs.cc
  2692. * src/prefs.h
  2693. * test/AuthConfigFactoryTest.cc
  2694. * test/HttpRequestTest.cc
  2695. * test/NetrcAuthResolverTest.cc
  2696. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Issue PWD command first and get working directory and use it as a prefix
  2698. for CWD command.
  2699. * src/DownloadEngine.cc
  2700. * src/DownloadEngine.h
  2701. * src/FtpConnection.cc
  2702. * src/FtpConnection.h
  2703. * src/FtpFinishDownloadCommand.cc
  2704. * src/FtpInitiateConnectionCommand.cc
  2705. * src/FtpNegotiationCommand.cc
  2706. * src/FtpNegotiationCommand.h
  2707. * test/FtpConnectionTest.cc
  2708. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Removed default user/pass for FTP user/pass, since it should not have
  2710. precedence over netrc configuration by default.
  2711. * src/OptionHandlerFactory.cc
  2712. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Added debug log for socket event.
  2714. * src/AbstractCommand.cc
  2715. * src/PeerAbstractCommand.cc
  2716. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2717. Log microseconds.
  2718. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2719. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2720. Replaced HelpItem.cc with OptionHandler.cc.
  2721. * po/POTFILES.in
  2722. Updated po files with 'make update-po'
  2723. * po/aria2c.pot
  2724. * po/*.po
  2725. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Removed possible values from the text.
  2727. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2728. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Removed unused preferences:
  2730. PREF_NO_PREALLOCATION
  2731. PREF_STDOUT_LOG
  2732. PREF_TRACKER_MAX_TRIES
  2733. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2734. PREF_MIN_SEGMENT_SIZE
  2735. * src/option_processing.cc
  2736. * src/prefs.cc
  2737. * src/prefs.h
  2738. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Integrated HelpItem into OptionParser to ease the workload for adding
  2740. new options. Removed default value from usage text.
  2741. * src/HelpItem.cc: Removed.
  2742. * src/HelpItem.h: Removed.
  2743. * src/HelpItemFactory.cc: Removed.
  2744. * src/HelpItemFactory.h: Removed.
  2745. * src/Makefile.am
  2746. * src/Makefile.in
  2747. * src/NameMatchOptionHandler.h
  2748. * src/OptionHandler.cc
  2749. * src/OptionHandler.h
  2750. * src/OptionHandlerFactory.cc
  2751. * src/OptionHandlerImpl.h
  2752. * src/OptionParser.cc
  2753. * src/OptionParser.h
  2754. * src/TagContainer.cc: Removed.
  2755. * src/TagContainer.h: Removed.
  2756. * src/TaggedItem.cc: Removed.
  2757. * src/TaggedItem.h: Removed.
  2758. * src/main.cc
  2759. * src/option_processing.cc
  2760. * src/usage_text.h
  2761. * src/version_usage.cc
  2762. * test/HelpItemTest.cc: Removed.
  2763. * test/Makefile.am
  2764. * test/Makefile.in
  2765. * test/OptionHandlerTest.cc
  2766. * test/OptionParserTest.cc
  2767. * test/TagContainerTest.cc: Removed.
  2768. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Moved `TransferStat stat = ...' to inside the `if' clause.
  2770. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2771. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2772. Fixed the bug that a block in a piece is requested when same block is
  2773. already requested to the same peer in end game mode.
  2774. * src/BtRequestFactory.h
  2775. * src/DefaultBtInteractive.cc
  2776. * src/DefaultBtRequestFactory.cc
  2777. * src/DefaultBtRequestFactory.h
  2778. * src/DefaultPieceStorage.cc
  2779. * src/DefaultPieceStorage.h
  2780. * src/PieceStorage.h
  2781. * src/UnknownLengthPieceStorage.cc
  2782. * src/UnknownLengthPieceStorage.h
  2783. * test/DefaultBtRequestFactoryTest.cc
  2784. * test/DefaultPieceStorageTest.cc
  2785. * test/MockBtRequestFactory.h
  2786. * test/MockPieceStorage.h
  2787. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Removed _uploadLength and _downloadLength from PeerSessionResource
  2789. and use PeerStat::_sessionUploadLength and
  2790. PeerStat::_sessionDownloadLength.
  2791. * src/PeerSessionResource.cc
  2792. * src/PeerSessionResource.h
  2793. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2794. Fixed the bug that prefixLength of split bucket which doesn't include
  2795. local node ID is incremented.
  2796. * src/DHTBucket.cc
  2797. * src/DHTBucket.h
  2798. * test/DHTBucketTest.cc
  2799. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Added cookies.sqlite to EXTRA_DIST
  2801. * test/Makefile.am
  2802. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Added Turkish translation. Updated French, German, Russian and
  2804. Simplified Chinese translations. Thanks to all translators.
  2805. * po/LINGUAS
  2806. * po/de.po
  2807. * po/fr.po
  2808. * po/ru.po
  2809. * po/tr.po
  2810. * po/zh_CN.po
  2811. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. Added deliminating text to the beginning of the log so that one can find
  2813. where the log starts easily.
  2814. * src/main.cc
  2815. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2817. to fix compile error when async DNS is not enabled by configuration.
  2818. * src/AbstractCommand.cc
  2819. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2820. If establishing conneciton to a server is failed, then mark error on
  2821. its ServerStat.
  2822. Added the cause of error to log when error event occurred.
  2823. Moved message string to message.h for translation.
  2824. * src/AbstractCommand.cc
  2825. * src/AbstractCommand.h
  2826. * src/FtpNegotiationCommand.cc
  2827. * src/HttpRequestCommand.cc
  2828. * src/PeerAbstractCommand.cc
  2829. * src/message.h
  2830. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Added the function to get error message from socket.
  2832. * src/SocketCore.cc
  2833. * src/SocketCore.h
  2834. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2835. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2836. * src/RequestGroupMan.cc
  2837. * src/RequestGroupMan.h
  2838. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. If error event is received in epoll, then abort download immediately.
  2840. * src/AbstractCommand.cc
  2841. * src/Command.cc
  2842. * src/Command.h
  2843. * src/DownloadEngine.cc
  2844. * src/PeerAbstractCommand.cc
  2845. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2846. Added usage message for --uri-selector, --server-stat-of,
  2847. --server-stat-in, --server-stat-timeout options.
  2848. * src/HelpItemFactory.cc
  2849. * src/usage_text.h
  2850. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2851. Added upper limit of FTP response buffer. The current implementation
  2852. uses 4096bytes as a limit.
  2853. * src/FtpConnection.cc
  2854. * src/FtpConnection.h
  2855. * test/FtpConnectionTest.cc
  2856. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Use non-blocking socket for TCP communication to avoid possible
  2858. blocking due to buffer full.
  2859. * src/AbstractProxyRequestCommand.cc
  2860. * src/FtpConnection.cc
  2861. * src/FtpConnection.h
  2862. * src/FtpNegotiationCommand.cc
  2863. * src/FtpNegotiationCommand.h
  2864. * src/HttpConnection.cc
  2865. * src/HttpConnection.h
  2866. * src/HttpRequestCommand.cc
  2867. * src/InitiatorMSEHandshakeCommand.cc
  2868. * src/InitiatorMSEHandshakeCommand.h
  2869. * src/MSEHandshake.cc
  2870. * src/MSEHandshake.h
  2871. * src/Makefile.am
  2872. * src/PeerConnection.cc
  2873. * src/PeerConnection.h
  2874. * src/PeerInteractionCommand.cc
  2875. * src/PeerListenCommand.cc
  2876. * src/ReceiverMSEHandshakeCommand.cc
  2877. * src/ReceiverMSEHandshakeCommand.h
  2878. * src/SocketBuffer.cc
  2879. * src/SocketBuffer.h
  2880. * src/SocketCore.cc
  2881. * src/SocketCore.h
  2882. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Call setStatusRealtime() in constructor.
  2884. * src/RealtimeCommand.cc
  2885. * src/RealtimeCommand.h
  2886. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Call Download::setNoWait(true) to execute newly created command without
  2888. a pause.
  2889. * src/AbstractCommand.cc
  2890. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2892. found' error from HTTP/FTP server NUM times without getting single
  2893. bytes of data, then force the download to fail.
  2894. Basically aria2 tris all URIs available. So if long list of URIs are
  2895. specified in Metalink, then aria2 will take a long time to fail
  2896. eventually if all URIs are outdated. This option eases this situation
  2897. to limit the number of servers to try.
  2898. * src/FtpNegotiationCommand.cc
  2899. * src/HelpItemFactory.cc
  2900. * src/HttpResponseCommand.cc
  2901. * src/OptionHandlerFactory.cc
  2902. * src/PeerStat.h
  2903. * src/RequestGroup.cc
  2904. * src/RequestGroup.h
  2905. * src/SegmentMan.cc
  2906. * src/SegmentMan.h
  2907. * src/option_processing.cc
  2908. * src/prefs.cc
  2909. * src/prefs.h
  2910. * src/usage_text.h
  2911. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2913. response even if more than one response is in it.
  2914. * src/FtpConnection.cc
  2915. * src/FtpConnection.h
  2916. * test/FtpConnectionTest.cc
  2917. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Merged from stable-0.15
  2919. * m4/libcares.m4
  2920. Use pkg-config
  2921. * m4/sqlite3.m4
  2922. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Removed unnecessary if statement.
  2924. * src/DefaultPieceStorage.cc (initPieceStorage)
  2925. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. Added --connect-timeout option to specify connect timeout in seconds.
  2927. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2928. connecting to BitTorrent peer is not controlled by this option.
  2929. * src/AbstractProxyRequestCommand.cc
  2930. * src/FtpNegotiationCommand.cc
  2931. * src/HelpItemFactory.cc
  2932. * src/HttpRequestCommand.cc
  2933. * src/OptionHandlerFactory.cc
  2934. * src/option_processing.cc
  2935. * src/prefs.cc
  2936. * src/prefs.h
  2937. * src/usage_text.h
  2938. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2939. Added help message for -R option.
  2940. * src/HelpItemFactory.cc
  2941. * src/usage_text.h
  2942. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Added the message that the time is in local time zone.
  2944. * src/RequestGroup.cc
  2945. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Implemented the ability to get timestamp from remote FTP server using
  2947. MDTM command described in RFC3659.
  2948. * src/FtpConnection.cc
  2949. * src/FtpConnection.h
  2950. * src/FtpNegotiationCommand.cc
  2951. * src/FtpNegotiationCommand.h
  2952. * test/FtpConnectionTest.cc
  2953. * test/Makefile.am
  2954. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2955. Implemented the ability to get timestamp from remote HTTP server and
  2956. apply it to local file. To enable this feature, --remote-time option
  2957. is added. No usage text has been written yet.
  2958. If several servers returns difference timestamp, then aria2 uses latest
  2959. one.
  2960. * src/CopyDiskAdaptor.cc
  2961. * src/CopyDiskAdaptor.h
  2962. * src/DirectDiskAdaptor.cc
  2963. * src/DirectDiskAdaptor.h
  2964. * src/DiskAdaptor.h
  2965. * src/File.cc
  2966. * src/File.h
  2967. * src/HttpHeader.cc
  2968. * src/HttpHeader.h
  2969. * src/HttpResponse.cc
  2970. * src/HttpResponse.h
  2971. * src/HttpResponseCommand.cc
  2972. * src/HttpResponseCommand.h
  2973. * src/MultiDiskAdaptor.cc
  2974. * src/MultiDiskAdaptor.h
  2975. * src/OptionHandlerFactory.cc
  2976. * src/RequestGroup.cc
  2977. * src/RequestGroup.h
  2978. * src/RequestGroupMan.cc
  2979. * src/option_processing.cc
  2980. * src/prefs.cc
  2981. * src/prefs.h
  2982. * test/CopyDiskAdaptorTest.cc
  2983. * test/FileTest.cc
  2984. * test/Makefile.am
  2985. * test/Makefile.in
  2986. * test/MultiDiskAdaptorTest.cc
  2987. * test/TestUtil.cc
  2988. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Fixed the bug that DiskWriterEntry is not created when its
  2990. FileEntry.isRequested() is false and it doesn't share a piece with
  2991. other FileEntries that are requested. This bug causes segmentation fault
  2992. in the end.
  2993. * src/MultiDiskAdaptor.cc
  2994. * src/MultiDiskAdaptor.h
  2995. * src/MultiFileAllocationIterator.cc
  2996. * test/MultiDiskAdaptorTest.cc
  2997. * test/MultiFileAllocationIteratorTest.cc
  2998. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3000. called if the number of file entries are greater than max open files.
  3001. * src/AbstractSingleDiskAdaptor.cc
  3002. * src/AbstractSingleDiskAdaptor.h
  3003. * src/DiskAdaptor.h
  3004. * src/MultiDiskAdaptor.cc
  3005. * src/MultiDiskAdaptor.h
  3006. * test/MultiDiskAdaptorTest.cc
  3007. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Added a constuctor that receives struct timeval.
  3009. Added operator<.
  3010. * src/TimeA2.cc
  3011. * src/TimeA2.h
  3012. * test/TimeTest.cc
  3013. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3015. * src/CookieParser.cc
  3016. * test/CookieParserTest.cc
  3017. * test/HttpResponseTest.cc
  3018. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Implmented the functions to parse date.
  3020. * src/TimeA2.cc
  3021. * src/TimeA2.h
  3022. * test/TimeTest.cc
  3023. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Added "Firefox3 Cookie" feature to FeatureConfig
  3025. * src/FeatureConfig.cc
  3026. * src/FeatureConfig.h
  3027. * test/FeatureConfigTest.cc
  3028. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3029. Bump up version number to 0.16.0b
  3030. * configure.ac
  3031. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Use pkg-config if is is available.
  3033. * m4/openssl.m4
  3034. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3036. * src/BtAnnounce.h
  3037. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. If an error occurred with a URI, remove identical URI from remaining
  3039. URI list because it is likely that same error occurred in the end and it
  3040. is waste of time.
  3041. * src/AbstractCommand.cc
  3042. * src/RequestGroup.cc
  3043. * src/RequestGroup.h
  3044. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Removed wrong comment.
  3046. * src/DefaultPeerStorage.cc
  3047. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3048. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3049. Added return value of getpid() to argument of srand() to achieve more
  3050. randomized value.
  3051. * src/SimpleRandomizer.cc
  3052. * src/SimpleRandomizer.h
  3053. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Contact tracker frequently when the number of connections are 0 and
  3055. download is not finished yet.
  3056. * src/ActivePeerConnectionCommand.cc
  3057. * src/BtAnnounce.h
  3058. * src/DefaultBtAnnounce.cc
  3059. * src/DefaultBtAnnounce.h
  3060. * test/MockBtAnnounce.h
  3061. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Moved threshold values to UTPexExtensionMessage.
  3063. * src/DefaultBtInteractive.cc
  3064. * src/Peer.cc
  3065. * src/Peer.h
  3066. * src/UTPexExtensionMessage.cc
  3067. * src/UTPexExtensionMessage.h
  3068. * test/UTPexExtensionMessageTest.cc
  3069. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Added _incoming member to Peer class and made it true if the peer
  3071. initiated connection. Don't add those peer to UTPex message.
  3072. If extended handshake is received, assign _incoming to false.
  3073. * src/DefaultBtInteractive.cc
  3074. * src/HandshakeExtensionMessage.cc
  3075. * src/Peer.cc
  3076. * src/Peer.h
  3077. * src/PeerListenCommand.cc
  3078. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3080. Encoding Decoder. Removed size threshold for turning off on the fly
  3081. inflation because resulting file may or may not be inflated depending
  3082. on the file size and I think it is not expected by users.
  3083. This change fixes segmentation fault when Metalink file contains gzipped
  3084. file and its filesize is provided.
  3085. * src/HttpResponseCommand.cc
  3086. * src/HttpResponseCommand.h
  3087. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Made Cookie immutable.
  3089. * src/Cookie.cc
  3090. * src/Cookie.h
  3091. * src/CookieParser.cc
  3092. * src/CookieParser.h
  3093. * src/CookieStorage.cc
  3094. * test/CookieParserTest.cc
  3095. * test/CookieStorageTest.cc
  3096. * test/NsCookieParserTest.cc
  3097. * test/Sqlite3MozCookieParserTest.cc
  3098. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Removed CookieBox, CookieBoxFactory.
  3100. * src/CookieBox.cc
  3101. * src/CookieBox.h
  3102. * src/CookieBoxFactory.cc
  3103. * src/CookieBoxFactory.h
  3104. * src/Makefile.am
  3105. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Use CookieStorage class instead of CookieBox class.
  3107. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3108. * src/AbstractProxyRequestCommand.cc
  3109. * src/CookieStorage.cc
  3110. * src/DownloadEngine.cc
  3111. * src/DownloadEngine.h
  3112. * src/HttpConnection.cc
  3113. * src/HttpConnection.h
  3114. * src/HttpRequest.cc
  3115. * src/HttpRequest.h
  3116. * src/HttpRequestCommand.cc
  3117. * src/HttpResponse.cc
  3118. * src/HttpResponseCommand.cc
  3119. * src/HttpSkipResponseCommand.cc
  3120. * src/Makefile.am
  3121. * src/MultiUrlRequestInfo.cc
  3122. * src/Request.cc
  3123. * src/Request.h
  3124. * src/main.cc
  3125. * test/AllTest.cc
  3126. * test/CookieStorageTest.cc
  3127. * test/CookieTest.cc
  3128. * test/HttpRequestTest.cc
  3129. * test/HttpResponseTest.cc
  3130. * test/Makefile.am
  3131. * test/NsCookieParserTest.cc
  3132. * test/Sqlite3MozCookieParserTest.cc
  3133. * test/nscookietest.txt
  3134. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3135. Updated
  3136. * test/Cookies.sqlite
  3137. * test/nscookietest.txt
  3138. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Added tests for CookieStorage::load()
  3140. * test/CookieStorageTest.cc
  3141. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Added CookieStorage class which is based on RFC2109 and manages cookies
  3143. more strictly than CookieBox and CookieBoxFactory class.
  3144. * src/CookieStorage.cc
  3145. * src/CookieStorage.h
  3146. * src/Cookie.cc
  3147. * src/Cookie.h
  3148. * test/CookieStorageTest.cc
  3149. * test/CookieTest.cc
  3150. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Fixed the bug that commands are created more than the number of pieces.
  3152. * src/RequestGroup.cc
  3153. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Fixed infinite loop bug in FTP when SIZE command failed.
  3155. * src/FtpNegotiationCommand.cc
  3156. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Removed DirectDiskAdaptorTest.h
  3158. * test/Makefile.am
  3159. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Fixed chunk checksum validation cannot detect trailing garbage data.
  3161. BUG#2074141
  3162. * src/AbstractSingleDiskAdaptor.cc
  3163. * src/AbstractSingleDiskAdaptor.h
  3164. * src/CheckIntegrityEntry.cc
  3165. * src/CheckIntegrityEntry.h
  3166. * src/DiskAdaptor.h
  3167. * src/MultiDiskAdaptor.cc
  3168. * src/MultiDiskAdaptor.h
  3169. * src/RequestGroup.cc
  3170. * test/DirectDiskAdaptorTest.cc
  3171. * test/MultiDiskAdaptorTest.cc
  3172. * test/TestUtil.cc
  3173. * test/TestUtil.h
  3174. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Bump up version number of dht.dat file to 3. In version 3 format, time
  3176. is stored in 64bit, network byte order.
  3177. New build can load old format(version 2) but it saves the file in new
  3178. format. It means once you used new build, your dht.dat becomes
  3179. incompatible with older build.
  3180. * src/DHTRoutingTableDeserializer.cc
  3181. * src/DHTRoutingTableSerializer.cc
  3182. * test/DHTRoutingTableSerializerTest.cc
  3183. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3185. * test/Makefile.am
  3186. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Bump up version number of .aria2 control file to 0001.
  3188. New aria2 can still load version 0000 file but it saves the file in
  3189. version 0001 format. It means that new aria2 can resume download
  3190. started by old aria2 but the opposite is not true.
  3191. * src/DefaultBtProgressInfoFile.cc
  3192. * src/DefaultBtProgressInfoFile.h
  3193. * test/DefaultBtProgressInfoFileTest.cc
  3194. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Added ntoh64 and hton64 as inline functions.
  3196. * src/Util.cc
  3197. * test/UtilTest.cc
  3198. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3199. Added sqlite3 depenency and Firefox3 cookie support.
  3200. * README
  3201. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3202. State that firefox3 cookie is supported explicitly in the usage.
  3203. * src/usage_text.h
  3204. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. Externalized message.
  3206. * src/RequestGroupMan.cc
  3207. * src/message.h
  3208. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Save temporary file first and rename to the destination on success.
  3210. Added test cases.
  3211. * src/RequestGroupMan.cc
  3212. * test/RequestGroupManTest.cc
  3213. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Fixed the bug that the number of connected peer is exceeding the limit
  3215. (55 by default) in seeding mode.
  3216. Multiplied 0.8 to _maxUploadSpeedLimit.
  3217. * src/ActivePeerConnectionCommand.cc
  3218. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Clear table item.
  3220. * src/Dictionary.cc
  3221. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Fixed error handling of lseek.
  3223. * src/AbstractDiskWriter.cc
  3224. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3226. style cookie file.
  3227. * src/usage_text.h
  3228. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3230. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3231. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3232. * src/Util.cc
  3233. * src/Util.h
  3234. * src/CookieParser.cc
  3235. * test/UtilTest.cc
  3236. * test/CookieParserTest.cc
  3237. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Separate the implementation to load old mozilla format of cookie to
  3239. NsCookieParser class.
  3240. * src/CookieBoxFactory.cc
  3241. * src/CookieBoxFactory.h
  3242. * src/NsCookieParser.cc
  3243. * src/NsCookieParser.h
  3244. * test/NsCookieParserTest.cc
  3245. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Made parse() const
  3247. * src/Sqlite3MozCookieParser.cc
  3248. * src/Sqlite3MozCookieParser.h
  3249. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Added firefox3 cookie support based on the patch submitted by
  3251. tizianomueller.
  3252. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3253. this functionality.
  3254. * configure.ac
  3255. * m4/sqlite3.m4
  3256. * src/CookieBoxFactory.cc
  3257. * src/CookieBoxFactory.h
  3258. * src/Makefile.am
  3259. * src/Makefile.in
  3260. * src/Sqlite3MozCookieParser.cc
  3261. * src/Sqlite3MozCookieParser.h
  3262. * src/main.cc
  3263. * test/CookieBoxFactoryTest.cc
  3264. * test/Makefile.am
  3265. * test/Makefile.in
  3266. * test/Sqlite3MozCookieParserTest.cc
  3267. * test/badcookies.sqlite
  3268. * test/cookies.sqlite
  3269. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3270. Added Danish and Greek translations.
  3271. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3272. Great thanks to all translators.
  3273. * po/LINGUAS
  3274. * po/el.po
  3275. * po/da.po
  3276. * po/es.po
  3277. * po/ca.po
  3278. * po/nn.po
  3279. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Fixed man page: --follow-bittorrent should be --follow-torrent
  3281. * doc/aria2c.1.txt
  3282. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3283. Fixed: numCommand is less than the value specified in -C option.
  3284. * src/RequestGroup.cc
  3285. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Fixed occasional assertion failure in PieceSegment.
  3287. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3288. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3289. creation of duplicate segments and one of the segment was finished then
  3290. assertion failure was caused.
  3291. * src/SegmentMan.cc
  3292. * test/SegmentManTest.cc
  3293. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Added options to load/save the server's performance/status to a file
  3295. and the timeout to drop their data.
  3296. --server-stat-of=FILE specifies the file to which performance data
  3297. is saved.
  3298. --server-stat-if=FILE specifies the file to read previously saved
  3299. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3300. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3301. TIMEOUT is specified in seconds and the default value is 24hours.
  3302. * src/MultiUrlRequestInfo.cc
  3303. * src/OptionHandlerFactory.cc
  3304. * src/RequestGroupMan.cc
  3305. * src/RequestGroupMan.h
  3306. * src/ServerStatMan.cc
  3307. * src/ServerStatMan.h
  3308. * src/option_processing.cc
  3309. * src/prefs.cc
  3310. * src/prefs.h
  3311. * test/ServerStatManTest.cc
  3312. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3313. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3314. * src/ServerStatMan.cc
  3315. * src/ServerStatMan.h
  3316. * test/ServerStatManTest.cc
  3317. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. Implemented ServerStatMan::load(...) function and its test case.
  3319. * src/ServerStat.cc
  3320. * src/ServerStat.h
  3321. * src/ServerStatMan.cc
  3322. * test/ServerStatManTest.cc
  3323. * test/ServerStatTest.cc
  3324. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Use time_t instead of int32_t. Use int64_t where milli second is
  3326. expected.
  3327. * src/TimeA2.cc
  3328. * src/TimeA2.h
  3329. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Implemented ServerStatMan::save(...) function and its test case.
  3331. * src/ServerStat.cc
  3332. * src/ServerStat.h
  3333. * src/ServerStatMan.cc
  3334. * src/ServerStatMan.h
  3335. * test/ServerStatManTest.cc
  3336. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Now aria2 uses name attribute in Metalink as local filename in
  3338. BitTorrent downloads. BUG#2033999
  3339. * src/BtContext.h
  3340. * src/BtDependency.cc
  3341. * src/DefaultBtContext.cc
  3342. * src/DefaultBtContext.h
  3343. * src/SingleFileDownloadContext.cc
  3344. * src/SingleFileDownloadContext.h
  3345. * test/BtDependencyTest.cc
  3346. * test/DefaultBtContextTest.cc
  3347. * test/MockBtContext.h
  3348. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Added AC_C_BIGENDIAN
  3350. * src/configure.ac
  3351. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Limited numCommand less than or equal to the number of piece.
  3353. * src/RequestGroup.cc
  3354. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3356. directive.
  3357. * test/DefaultPieceStorageTest.cc
  3358. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Fixed memory leak in test code
  3360. * test/AnnounceListTest.cc
  3361. * test/DefaultPeerListProcessorTest.cc
  3362. * test/DefaultPeerStorageTest.cc
  3363. * test/MetaFileUtilTest.cc
  3364. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3366. * src/DefaultPieceStorage.cc
  3367. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Initialized _directIOAllowed
  3369. * src/MultiDiskAdaptor.cc
  3370. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Fixed memory leak
  3372. * src/GZipDecoder.cc
  3373. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Fixed memory leak
  3375. * src/MetalinkParserStateMachine.cc
  3376. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3377. Fixed memory leak
  3378. * src/Dictionary.cc
  3379. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Fixed memory leak
  3381. * src/IteratableChunkChecksumValidator.h
  3382. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Fixed unmatched malloc/free.
  3384. * src/IteratableChunkChecksumValidator.cc
  3385. * src/IteratableChecksumValidator.cc
  3386. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Removed max chunk size check. This change fixes BUG#2040169
  3388. * src/ChunkedDecoder.cc
  3389. * src/ChunkedDecoder.h
  3390. * test/ChunkedDecoderTest.cc
  3391. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3392. Implemented download speed based URI selection algorithm.
  3393. Introduced new option --uri-selector.
  3394. If --uri-selector=feedback is given, aria2 uses download speed observed
  3395. in the previous downloads and chooses fastest server in the URI list.
  3396. Currently at most 10 URIs are considered to introduce randomeness for
  3397. finding better servers. The speed is average download speed in the
  3398. downloads.
  3399. On the other hand, if --uri-selector=inorder is given, which is default,
  3400. URI is tried in order in URI list.
  3401. The usage text for the new option has not been written yet.
  3402. * src/AbstractCommand.cc
  3403. * src/DownloadCommand.cc
  3404. * src/DownloadEngine.cc
  3405. * src/DownloadEngineFactory.cc
  3406. * src/InOrderURISelector.cc
  3407. * src/InOrderURISelector.h
  3408. * src/OptionHandlerFactory.cc
  3409. * src/PeerStat.h
  3410. * src/RequestGroup.cc
  3411. * src/RequestGroup.h
  3412. * src/RequestGroupMan.cc
  3413. * src/RequestGroupMan.h
  3414. * src/SegmentMan.cc
  3415. * src/SegmentMan.h
  3416. * src/ServerStat.cc
  3417. * src/ServerStat.h
  3418. * src/ServerStatMan.cc
  3419. * src/ServerStatMan.h
  3420. * src/ServerStatURISelector.cc
  3421. * src/ServerStatURISelector.h
  3422. * src/URISelector.h
  3423. * src/option_processing.cc
  3424. * src/prefs.cc
  3425. * src/prefs.h
  3426. * test/InOrderURISelectorTest.cc
  3427. * test/RequestGroupManTest.cc
  3428. * test/ServerStatManTest.cc
  3429. * test/ServerStatURISelectorTest.cc
  3430. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. * Release 0.15.1+2
  3432. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Bump up version number to 0.15.1+2
  3434. * configure.ac
  3435. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3437. * m4/aria2_arg.m4
  3438. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3439. * Release 0.15.1+1
  3440. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3441. Bump up version number to 0.15.1+1
  3442. * configure.ac
  3443. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Fixed the bug that causes segmentaion fault when resuming download
  3445. using metalink without size tag. Reproducible only using HTTP URI.
  3446. * src/HttpResponseCommand.cc
  3447. * src/FtpNegotiationCommand.cc
  3448. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. * Release 0.15.1
  3450. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Updated Bulgarian and French translations, thanks to all translators.
  3452. * po/bg.po
  3453. * po/fr.po
  3454. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Bump up version number to 0.15.1
  3456. * configure.ac
  3457. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Avoid repeated call of gettimeofday() when calculating speed.
  3459. * src/SpeedCalc.cc
  3460. * src/SpeedCalc.h
  3461. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Removed writable check when socket's send buffer is full in BitTorrent
  3463. downloads to lower CPU usage.
  3464. * src/PeerInteractionCommand.cc
  3465. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Fixed broken gzip inflation.
  3467. Turn off segmented downloading if gzip content is smaller than or equal
  3468. to 1MiB and inflate the data on the fly, because HTTP response header
  3469. doesn't contain the length of inflated file we can't determin where
  3470. the chunk of data should be written.
  3471. On the other hand, if gzip content is larger than 1MB, then turn off
  3472. on the fly inflation, because some servers returns "content-type: gzip"
  3473. for *.tgz, *.gz files.
  3474. * src/DownloadCommand.cc
  3475. * src/HttpResponseCommand.cc
  3476. * src/HttpResponseCommand.h
  3477. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Applied tizianomueller's patch to fix compile error.
  3479. * test/BitfieldManTest.cc
  3480. * test/BtRequestMessageTest.cc
  3481. * test/DefaultBtContextTest.cc
  3482. * test/DefaultDiskWriterTest.cc
  3483. * test/DefaultPieceStorageTest.cc
  3484. * test/HttpHeaderProcessorTest.cc
  3485. * test/HttpResponseTest.cc
  3486. * test/Metalink2RequestGroupTest.cc
  3487. * test/MetalinkParserControllerTest.cc
  3488. * test/MetalinkProcessorTest.cc
  3489. * test/PeerSessionResourceTest.cc
  3490. * test/UtilTest.cc
  3491. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3492. * Release 0.15.0
  3493. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Reordered src files in POTFILES.in so that usage text appears first.
  3495. * po/POTFILES.in
  3496. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Bump up version number to 0.15.0
  3498. * configure.ac
  3499. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Added Bulgarian translation.
  3501. Updated Catalan, Spanish, French and Japanese translations.
  3502. Thanks to all translators.
  3503. * po/LINGUAS
  3504. * po/bg.po
  3505. * po/ca.po
  3506. * po/es.po
  3507. * po/fr.po
  3508. * po/ja.po
  3509. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Updated feature list. Added libz for dependency section.
  3511. Added a description about unit testing using CppUnit.
  3512. * README
  3513. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Added a test for libz. Quoted where it is necessary.
  3515. * build_test.sh
  3516. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3517. Added GZip to `Enabled Features' list.
  3518. * src/FeatureConfig.cc
  3519. * src/FeatureConfig.h
  3520. * test/FeatureConfigTest.cc
  3521. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3523. the transfer has not yet started.
  3524. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3525. * src/SegmentMan.cc
  3526. * src/SegmentMan.h
  3527. * test/SegmentManTest.cc
  3528. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. Cache last calculated average download/upload speed.
  3530. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3531. cached value.
  3532. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3533. * src/PeerStat.h
  3534. * src/SpeedCalc.cc
  3535. * src/SpeedCalc.h
  3536. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3537. Call parseUrl directly.
  3538. * src/Request.cc (resetUrl)
  3539. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Supported absolute/relative path in Location header field.
  3541. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3542. * src/HttpHeader.cc
  3543. * src/HttpHeader.h
  3544. * src/HttpResponse.cc
  3545. * src/HttpSkipResponseCommand.cc
  3546. * src/Request.cc
  3547. * test/HttpHeaderTest.cc
  3548. * test/HttpResponseTest.cc
  3549. * test/RequestTest.cc
  3550. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3551. Changed help text for --load-cookie option.
  3552. * doc/aria2c.1.txt
  3553. * src/usage_text.h
  3554. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Regenerated test/Makefile.in to remove stale ChangeLog.
  3556. * test/Makefile.in
  3557. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Updated po files.
  3559. * po/aria2c.pot
  3560. * po/*.po
  3561. * po/*.gmo
  3562. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3563. Bump up version number to 0.15.0b
  3564. * configure.ac
  3565. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Externalize messages.
  3567. * src/RequestGroupMan.cc
  3568. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3569. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Use File::exists() instead of File::isFile() to allow non-regular file
  3571. such as block special files.
  3572. * src/AbstractDiskWriter.cc
  3573. * src/MultiDiskWriter.cc
  3574. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3576. * src/gai_strerror.h
  3577. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Fixed compile error. Thanks gknauf for the patch.
  3579. * src/asctime_r.c
  3580. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Included asctime_r.h from a2time.h.
  3582. * src/a2time.h
  3583. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Added a message "aria2 doesn't verify signature" to log message when
  3585. signature file is saved.
  3586. * src/RequestGroupMan.cc
  3587. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Added the ability to save signature when download is completed if
  3589. signature is available. The filename of signature file is the path to
  3590. download file followed by ".sig". If it already exists, then signature
  3591. will not be saved.
  3592. * src/RequestGroupMan.cc
  3593. * src/Signature.cc
  3594. * test/SignatureTest.cc
  3595. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. Updated the descriptions for --bt-seed-unverified.
  3597. * doc/aria2c.1
  3598. * doc/aria2c.1.html
  3599. * doc/aria2c.1.txt
  3600. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3602. that this is not going to verify files using piece hashes.
  3603. * src/HelpItemFactory.cc
  3604. * src/OptionHandlerFactory.cc
  3605. * src/RequestGroup.cc
  3606. * src/option_processing.cc
  3607. * src/prefs.cc
  3608. * src/prefs.h
  3609. * src/usage_text.h
  3610. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Added the ability to retrieve signature from Metalink file.
  3612. A retrieved signature is stored in Signature class and it is held by
  3613. DownloadContext class. Note that aria2 doesn't verify signature.
  3614. * src/DownloadContext.cc
  3615. * src/DownloadContext.h
  3616. * src/Makefile.am
  3617. * src/Makefile.in
  3618. * src/Metalink2RequestGroup.cc
  3619. * src/MetalinkEntry.cc
  3620. * src/MetalinkEntry.h
  3621. * src/MetalinkParserController.cc
  3622. * src/MetalinkParserController.h
  3623. * src/MetalinkParserStateMachine.cc
  3624. * src/MetalinkParserStateMachine.h
  3625. * src/Signature.cc
  3626. * src/Signature.h
  3627. * src/SignatureMetalinkParserState.cc
  3628. * src/SignatureMetalinkParserState.h
  3629. * src/VerificationMetalinkParserState.cc
  3630. * src/VerificationMetalinkParserState.h
  3631. * test/Metalink2RequestGroupTest.cc
  3632. * test/MetalinkParserControllerTest.cc
  3633. * test/MetalinkProcessorTest.cc
  3634. * test/test.xml
  3635. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Close DiskAdaptor after renaming file.
  3637. * src/RequestGroup.cc
  3638. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Corrected indentation
  3640. * src/DefaultBtProgressInfoFile.cc
  3641. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Moved the calls of std::ios::exceptions() inside of try-catch block
  3643. because if an error occurred in constructor of std::fstream, then
  3644. exception is thrown immediately when std::ios::exceptions() is called
  3645. which results unhandled exception and aria2c aborts.
  3646. * src/DefaultBtProgressInfoFile.cc
  3647. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Added the test for the previous change in DefaultBtContext.cc
  3649. * test/DefaultBtContextTest.cc
  3650. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Fixed the bug that causes infinite loop when the number of pieces are
  3652. fewer than allowed fast set size which is 10 by default.
  3653. * src/DefaultBtContext.cc
  3654. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Updated the descriptions for -j, -s. Added --bt-seed.
  3656. * doc/aria2c.1
  3657. * doc/aria2c.1.html
  3658. * doc/aria2c.1.txt
  3659. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3661. aria2 seeds previously downloaded files without validating piece hashs.
  3662. * src/HelpItemFactory.cc
  3663. * src/OptionHandlerFactory.cc
  3664. * src/RequestGroup.cc
  3665. * src/option_processing.cc
  3666. * src/prefs.cc
  3667. * src/prefs.h
  3668. * src/usage_text.h
  3669. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Updated DESCRIPTION of man page.
  3671. * doc/aria2c.1
  3672. * doc/aria2c.1.html
  3673. * doc/aria2c.1.txt
  3674. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3676. Don't define `struct addrinfo' when __sun is defined.
  3677. * src/getaddrinfo.h
  3678. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3680. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3681. second argument is of type `struct _stati64'. Otherwise it is defined as
  3682. `struct stat'.
  3683. * src/AbstractDiskWriter.cc
  3684. * src/File.cc
  3685. * src/File.h
  3686. * src/a2io.h
  3687. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Fixed the compile error in hurd-i386
  3689. See the original bug report:
  3690. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3691. * src/a2io.h
  3692. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Code cleanup.
  3694. * src/PeerAbstractCommand.cc
  3695. * src/PeerAbstractCommand.h
  3696. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Removed TransferEncoding.
  3698. * src/DownloadCommand.cc
  3699. * src/DownloadCommand.h
  3700. * src/HttpResponseCommand.cc
  3701. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Updated po files.
  3703. * po/aria2c.pot
  3704. * po/*.po
  3705. * po/*.gmo
  3706. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3708. * src/A2STR.cc
  3709. * src/A2STR.h
  3710. * src/ChunkedDecoder.cc
  3711. * src/ChunkedDecoder.h
  3712. * src/ChunkedEncoding.cc: Removed
  3713. * src/ChunkedEncoding.h: Removed
  3714. * src/DownloadCommand.cc
  3715. * src/DownloadCommand.h
  3716. * src/HttpDownloadCommand.cc
  3717. * src/HttpResponse.cc
  3718. * src/HttpResponse.h
  3719. * src/HttpResponseCommand.cc
  3720. * src/HttpSkipResponseCommand.cc
  3721. * src/HttpSkipResponseCommand.h
  3722. * src/Makefile.am
  3723. * src/TransferEncoding.h: Removed
  3724. * test/ChunkedDecoderTest.cc
  3725. * test/ChunkedEncodingTest.cc: Removed
  3726. * test/HttpResponseTest.cc
  3727. * test/Makefile.am
  3728. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Use append instead of insert.
  3730. * src/GZipDecoder.cc
  3731. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Updated doc
  3733. * src/Decoder.h
  3734. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Updated usage text for -s option.
  3736. * src/usage_text.h
  3737. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3739. * src/Request.cc
  3740. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. Cleaned up configure.ac.
  3742. * configure.ac
  3743. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3744. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3745. AC_ARG_ENABLE.
  3746. * configure.ac
  3747. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3749. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3750. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3751. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3752. fly and writes decoded data to a local disk.
  3753. * README
  3754. * README.html
  3755. * configure.ac
  3756. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3757. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3758. * m4/libz.m4
  3759. * src/Decoder.h
  3760. * src/DownloadCommand.cc
  3761. * src/DownloadCommand.h
  3762. * src/Exception.h
  3763. * src/GZipDecoder.cc
  3764. * src/GZipDecoder.h
  3765. * src/HttpHeader.cc
  3766. * src/HttpHeader.h
  3767. * src/HttpRequest.cc
  3768. * src/HttpRequest.h
  3769. * src/HttpResponse.cc
  3770. * src/HttpResponse.h
  3771. * src/HttpResponseCommand.cc
  3772. * src/Makefile.am
  3773. * test/GZipDecoderTest.cc
  3774. * test/HttpRequestTest.cc
  3775. * test/HttpResponseTest.cc
  3776. * test/Makefile.am
  3777. * test/Makefile.in
  3778. * test/gzip_decode_test.gz
  3779. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Clarified usage of -j option.
  3781. * src/usage_text.h
  3782. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Disabled getting size from the response of RETR.
  3784. If SIZE command failed, then disable resuming and segmented downloading.
  3785. * src/FtpConnection.cc
  3786. * src/FtpConnection.h
  3787. * src/FtpNegotiationCommand.cc
  3788. * src/FtpNegotiationCommand.h
  3789. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Use digits to find first byte of file size, which makes the intention
  3791. of the code clearer.
  3792. * src/FtpConnection.cc
  3793. Don't call validateTotalLength() when size is 0.
  3794. * src/FtpNegotiationCommand.cc
  3795. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Updated po files.
  3797. * po/aria2c.pot
  3798. * po/*.gmo
  3799. * po/*.po
  3800. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Clarified usage text for --split option.
  3802. * src/usage_text.h
  3803. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Bump up version number to 0.15.0dev. "dev" means "development"
  3805. version, which means I started the development of the next release!
  3806. * src/configure.ac
  3807. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. If FTP server returns negative response with REST raw command and
  3809. requested range is not 0, throw exception. If requested range is 0,
  3810. continue download a file from 0 byte.
  3811. * src/FtpNegotiationCommand.cc
  3812. * src/FtpNegotiationCommand.h
  3813. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Supported FTP server which don't recognize SIZE raw command.
  3815. If SIZE raw command is failed, aria2 will try to get file size
  3816. from the response of RETR raw command. If both attempts are failed,
  3817. then resuming and segmented downloading are disabled.
  3818. * src/FtpConnection.cc
  3819. * src/FtpConnection.h
  3820. * src/FtpNegotiationCommand.cc
  3821. * src/FtpNegotiationCommand.h
  3822. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3823. * Release 0.14.0+1
  3824. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Bump up version number to 0.14.0+1
  3826. * src/configure.ac
  3827. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Fixed the code that refers static member variable from non-static
  3829. context.
  3830. * src/DefaultPeerStorage.cc
  3831. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. * Release 0.14.0
  3833. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Added build test script
  3835. * build_test.sh
  3836. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Updated ja.po
  3838. * src/ja.po
  3839. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Bump up version number to 0.14.0
  3841. * src/configure.ac
  3842. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Updated ja.po and fr.po. Great thanks for french translators and
  3844. Sebastien WILLEMIJNS.
  3845. * po/fr.po
  3846. * po/ja.po
  3847. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Added configure option to enable/disable epoll support.
  3849. * configure.ac
  3850. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Updated man page.
  3852. * doc/aria2c.1.txt
  3853. * doc/aria2c.1
  3854. * doc/aria2c.1.html
  3855. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Added missing default value '5' to the usage of --split option.
  3857. * src/HelpItemFactory.cc
  3858. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Filled up pieces based on the number of missing blocks, rather than
  3860. simplay the number of piece * block length.
  3861. * src/BtRequestFactory.h
  3862. * src/DefaultBtInteractive.cc
  3863. * src/DefaultBtInteractive.h
  3864. * src/DefaultBtRequestFactory.cc
  3865. * src/DefaultBtRequestFactory.h
  3866. * src/Piece.cc
  3867. * src/Piece.h
  3868. * test/BitfieldManTest.cc
  3869. * test/DefaultBtRequestFactoryTest.cc
  3870. * test/MockBtRequestFactory.h
  3871. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Made _epEvents a member variable.
  3873. * src/DownloadEngine.cc
  3874. * src/DownloadEngine.h
  3875. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Cancel download if http redirect is bounded more than 20 times.
  3877. * src/AbstractCommand.cc
  3878. * src/HttpSkipResponseCommand.cc
  3879. * src/Request.cc
  3880. * src/Request.h
  3881. * test/RequestTest.cc
  3882. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Fixed unhandled exception(removed keyword `new').
  3884. * src/SocketCore.cc (initEPOLL)
  3885. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Removed visit(const MetaEntry*)
  3887. * src/MetaEntryVisitor.h:
  3888. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3889. and made them virtual.
  3890. * src/BencodeVisitor.h
  3891. * src/BencodeVisitor.cc
  3892. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Updated po files.
  3894. * po/aria2c.pot
  3895. * po/*.po
  3896. * po/*.gmo
  3897. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3899. the number of socket to watch out.
  3900. * src/PeerInteractionCommand.cc
  3901. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. When there is not enough space in disk when writing a chunk of data,
  3903. aria2 now prints the message to the console to warn user and aborts
  3904. its download. Not all downloads are canceled because some downloads
  3905. may use another disk or partition. BUG#1640332
  3906. * src/AbstractDiskWriter.cc
  3907. * src/PeerAbstractCommand.cc
  3908. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3909. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3910. setHaltRequested(true) to cancel download.
  3911. * src/PeerInteractionCommand.h
  3912. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3914. socket from int to sock_t as sockets are unsigned in Windows.
  3915. For AsyncNameResolver, DownloadEngine, I did additional modification
  3916. for the portion of the code changed according to epoll support.
  3917. I defined sock_t in a2netcompat.h to use sock_t without including
  3918. SocketCore.h.
  3919. * src/AsyncNameResolver.cc
  3920. * src/AsyncNameResolver.h
  3921. * src/DownloadEngine.cc
  3922. * src/DownloadEngine.h
  3923. * src/SocketCore.cc
  3924. * src/SocketCore.h
  3925. * src/a2netcompat.h
  3926. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3928. changes in the patch were applied.
  3929. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3930. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3931. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3932. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3934. a2io.h and common.h were modified.
  3935. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3936. MinGW.
  3937. * src/common.h: Changed off_t to 64 bit in MinGW.
  3938. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3939. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3940. only a2netcompat.h is modified.
  3941. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3942. directives.
  3943. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3945. only gai_strerror.h is modified.
  3946. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3947. winsock errors in MinGW.
  3948. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3950. follow sources are applied.
  3951. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3952. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3953. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3954. I included locale.h from Platform.cc.
  3955. * src/main.cc: Moved common setup/teardown code to Platform class.
  3956. * test/AllTest.cc: Use Platform class.
  3957. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3958. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3959. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3960. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3961. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3962. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3964. aria2-0.13.2+1-mingw-2.patch.
  3965. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3966. systems which don't have termious.h. I moved the directive inside of
  3967. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3968. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3969. anyway.
  3970. * src/asctime_r.h
  3971. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3972. I added 2nd argument to the prototype declaration.
  3973. * src/StringFormat.cc: Get rid of vasprintf.
  3974. * src/getaddrinfo.h: Fixed constants.
  3975. * configure.ac: Added the check for asctime_r function.
  3976. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3977. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Added writable test for Socket when the sending message is in progress.
  3979. Usually the sending message is piece message. Without wriable check,
  3980. upload latency is dropped to more than 1sec.
  3981. * src/PeerInteractionCommand.cc
  3982. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Create only requested files and files which shares a piece with
  3984. requested file in multi-torrent downloads. Directory structures are
  3985. also created in the same rule.
  3986. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3987. DiskWriterEntry as in the previous implementation.
  3988. * src/MultiDiskWriter.cc
  3989. * src/MultiFileAllocationIterator.cc
  3990. * src/MultiFileAllocationIterator.h
  3991. * test/MultiFileAllocationIteratorTest.cc
  3992. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Commented out -lprofiler
  3994. * src/Makefile.am
  3995. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Bump up version number to 0.14.0b.
  3997. * src/configure.ac
  3998. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. Actively establish connection to peers in seeding, when peer cache
  4000. is not full and max upload speed limit is not reached.
  4001. * src/ActivePeerConnectionCommand.cc
  4002. * src/ActivePeerConnectionCommand.h
  4003. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4005. to make room more fleshy, recently found peers.
  4006. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4007. it.
  4008. * src/DefaultPeerStorage.cc
  4009. * test/DefaultPeerStorageTest.cc
  4010. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Returns cached data only when the previous receiveHandshake() is called
  4012. with peek = true.
  4013. * src/PeerConnection.cc (receiveHandshake)
  4014. * src/PeerConnection.h (receiveHandshake)
  4015. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Changed default value of -s option from 1 to 5.
  4017. Also max value of -s option is changed from 5 to 16.
  4018. * src/HelpItemFactory.cc
  4019. * src/OptionHandlerFactory.cc
  4020. * src/option_processing.cc
  4021. * src/usage_text.h
  4022. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Changed -s options behavior. Now it means the number of connections
  4024. made simultaneously in each http/ftp download.
  4025. If 1 URL is specified, the behavior is the same with old implementation.
  4026. If -s N is given and more than N URLs are specified, first N URLs are
  4027. used and remaining URLs are used for backup. If less than N URLs are
  4028. specified, some of URLs are used more than once so that totally N
  4029. connections are made simultaneously.
  4030. * src/main.cc
  4031. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Included missing iosfwd or ostream header.
  4033. * src/RequestGroupMan.cc
  4034. * src/TaggedItem.cc
  4035. * src/TaggedItem.h
  4036. * src/Util.cc
  4037. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4039. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4040. * src/HttpConnection.cc: Included missing sstream.
  4041. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Added --bt-max-open-files option.
  4043. * src/DefaultPieceStorage.cc
  4044. * src/HelpItemFactory.cc
  4045. * src/MultiDiskAdaptor.cc
  4046. * src/MultiDiskAdaptor.h
  4047. * src/OptionHandlerFactory.cc
  4048. * src/option_processing.cc
  4049. * src/prefs.cc
  4050. * src/prefs.h
  4051. * src/usage_text.h
  4052. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Fixed the bug that aria2 aborts when a path to a directory is given
  4054. in command-line.
  4055. * src/ProtocolDetector.cc
  4056. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Limited the number files opened in each BitTorrent download. The default
  4058. value is 100. The option to change this value will be added.
  4059. * src/MultiDiskAdaptor.cc
  4060. * src/MultiDiskAdaptor.h
  4061. * src/MultiFileAllocationIterator.cc
  4062. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Fixed the bug that HTTP downloads don't start with old libraries.
  4064. * src/HttpHeaderProcessor.cc
  4065. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Use empty() instead of size() > 0.
  4067. * src/HttpConnection.cc
  4068. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Drop connection if the incoming peer ID is the same with localhost's
  4070. one. The previous implementation drops connection when incoming peer's
  4071. IP address is the same with localhost's one.
  4072. * src/PeerListenCommand.cc
  4073. * src/DefaultBtInteractive.cc
  4074. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4075. Returns cached data without checking whether socket is readable
  4076. if the cache is available.
  4077. * src/PeerConnection.cc (receiveHandshake)
  4078. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Included stdint.h
  4080. * src/common.h
  4081. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Removed duplicate HAVE_GETTIMEOFDAY
  4083. * src/Makefile.am
  4084. * src/Makefile.in
  4085. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4086. Use interval as a minInterval when minInterval is not supplied.
  4087. * src/DefaultBtAnnounce.cc
  4088. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4090. attempt is failed, then 2nd attempt get kicked out more quickly.
  4091. And it is now static const member of DefaultBtAnnounce.
  4092. * src/DefaultBtAnnounce.h
  4093. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4095. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4096. * src/ActivePeerConnectionCommand.cc
  4097. * src/BtConstants.h
  4098. * src/BtRuntime.h
  4099. * src/DHTGetPeersCommand.cc
  4100. * src/DefaultBtAnnounce.cc
  4101. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4102. BtRuntime::MAX_PEERS.
  4103. * src/DefaultPeerStorage.h
  4104. * src/InitiatorMSEHandshakeCommand.cc
  4105. * src/PeerInitiateConnectionCommand.cc
  4106. * src/PeerInteractionCommand.cc
  4107. * src/PeerReceiveHandshakeCommand.cc
  4108. * src/TrackerWatcherCommand.cc
  4109. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Always Connect to _numNewConnection
  4111. * src/ActivePeerConnectionCommand.cc
  4112. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Made `begin' unsigned int.
  4114. * src/GrowSegment.h
  4115. * src/Piece.cc
  4116. * src/Piece.h
  4117. * src/PiecedSegment.cc
  4118. * src/PiecedSegment.h
  4119. * src/Segment.h
  4120. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Calculate piece hash when data is arrived if the data is arrived in
  4122. order. This removes additional read operation for hash calculation.
  4123. If the data is arrived in out of order, the hash is calucated when the
  4124. piece is completed. This is the same behavior as the old implementation.
  4125. * src/BtPieceMessage.cc
  4126. * src/DefaultBtProgressInfoFile.cc
  4127. * src/DefaultPieceStorage.cc
  4128. * src/DownloadCommand.cc
  4129. * src/DownloadCommand.h
  4130. * src/DownloadEngine.cc
  4131. * src/GrowSegment.cc
  4132. * src/GrowSegment.h
  4133. * src/Piece.cc
  4134. * src/Piece.h
  4135. * src/PiecedSegment.cc
  4136. * src/PiecedSegment.h
  4137. * src/Segment.h
  4138. * test/PieceTest.cc
  4139. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Try to keep the ordering of outgoing piece message.
  4141. * src/DefaultBtMessageDispatcher.cc
  4142. (DefaultBtMessageDispatcher::sendMessages)
  4143. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Fixed busy loop when error/hup epoll events occur.
  4145. * src/AbstractCommand.cc
  4146. * src/PeerAbstractCommand.cc
  4147. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4148. Added --bt-request-peer-speed-limit option, which was a constant
  4149. SLOW_SPEED_THRESHOLD.
  4150. * src/ActivePeerConnectionCommand.cc
  4151. * src/ActivePeerConnectionCommand.h
  4152. * src/BtConstants.h
  4153. * src/HelpItemFactory.cc
  4154. * src/OptionHandlerFactory.cc
  4155. * src/PeerReceiveHandshakeCommand.cc
  4156. * src/option_processing.cc
  4157. * src/prefs.cc
  4158. * src/prefs.h
  4159. * src/usage_text.h
  4160. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Removed repeated call of getTopDirPath(). Instead, call it once and
  4162. cache the result.
  4163. * src/MultiDiskAdaptor.cc
  4164. * src/MultiDiskAdaptor.h
  4165. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4166. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Fixed compile error on debian etch.
  4168. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4169. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4170. it is undefined.
  4171. * src/Util.cc (ULLONG_MAX)
  4172. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Added epoll support. Use epoll if it is available. If not, use select.
  4174. When async dns is enabled in compile time, epoll support is enabled
  4175. only when aria2 is built with c-ares. This condition statement is
  4176. defined in a2io.h.
  4177. Currently aria2 supports both c-ares and ares, but ares is maintained
  4178. for quite a while and debian already has c-ares package, ares support
  4179. will be dropped in the future version.
  4180. * configure.ac
  4181. * src/AbstractCommand.cc
  4182. * src/AsyncNameResolver.cc
  4183. * src/AsyncNameResolver.h
  4184. * src/Command.cc
  4185. * src/Command.h
  4186. * src/DownloadEngine.cc
  4187. * src/DownloadEngine.h
  4188. * src/PeerAbstractCommand.cc
  4189. * src/SocketCore.cc
  4190. * src/SocketCore.h
  4191. * src/a2io.h
  4192. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4194. directive.
  4195. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Do not do write operation to /dev/null file.
  4197. * src/LogFactory.cc
  4198. * src/SimpleLogger.cc
  4199. Replaced vasprintf with vsnprintf
  4200. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4201. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4202. * src/BtRequestMessage.cc
  4203. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4204. for segmentation fault caused by previous commit.
  4205. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Reduced the usage of gettimeofday().
  4207. * src/DefaultBtMessageDispatcher.cc
  4208. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4209. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4210. * src/RequestSlot.cc
  4211. * src/RequestSlot.h
  4212. (RequestSlot::isTimeout)
  4213. Made RequestSlot have a reference to Piece object to avoid find
  4214. Piece repeatedly.
  4215. * src/DefaultBtMessageDispatcher.cc
  4216. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4217. * src/RequestSlot.cc
  4218. * src/RequestSlot.h
  4219. (RequestSlot::getPiece)
  4220. * test/DefaultBtMessageDispatcherTest.cc
  4221. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. * src/TimeA2.cc
  4223. * src/TimeA2.h
  4224. (Time::difference): New function.
  4225. (Time::elapsed): Done optimization.
  4226. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4228. directive.
  4229. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. * src/option_processing.cc: Added missing `defined' keyword to #if
  4231. directive.
  4232. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Bump up version number to 0.13.2+1
  4234. * src/configure.ac
  4235. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Refactored broken outstanding piece handling.
  4237. * src/DefaultPieceStorage.cc
  4238. * src/DefaultPieceStorage.h
  4239. * src/Piece.cc
  4240. * src/Piece.h
  4241. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4243. name collision of static variable and predefined macro.
  4244. * src/BtContext.cc
  4245. * src/BtContext.h
  4246. * src/CookieBoxFactory.cc
  4247. * src/CookieBoxFactory.h
  4248. * src/CookieParser.cc
  4249. * src/CookieParser.h
  4250. * src/DefaultBtContext.cc
  4251. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. * src/RequestGroup.cc
  4253. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4254. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. * Release 0.13.2
  4256. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4258. * po/fr.po
  4259. * po/ja.po
  4260. * po/aria2c.pot
  4261. * po/*.po
  4262. * po/*.gmo
  4263. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4264. Bump up version number to 0.13.2
  4265. * src/configure.ac
  4266. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Refactord.
  4268. * src/RequestGroupMan.cc
  4269. (removeStoppedGroup)
  4270. (fillRequestGroupFromReserver)
  4271. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Fixed compile error on Ubuntu.
  4273. * src/BtPieceMessage.cc
  4274. * src/MessageDigestHelper.cc
  4275. * src/Util.cc
  4276. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Fixed compile error when configured with --disable-bittorrent
  4278. * test/DownloadHandlerFactoryTest.cc
  4279. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Done make update-po
  4281. * po/aria2c.pot
  4282. * po/*.po
  4283. * po/*.gmo
  4284. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Bump up version number to 0.13.2rc.
  4286. * src/configure.ac
  4287. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Made option name bold. Updated SYNOPSIS to make it more readable.
  4289. * doc/aria2c.1.txt
  4290. * doc/aria2c.1
  4291. * doc/aria2c.1.html
  4292. * src/version_usage.cc
  4293. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Refactored. Use std::string instead of size and char*.
  4295. * Data.cc
  4296. * Data.h
  4297. * test/Data.cc
  4298. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Added trimSelf(). Rewritten trim() to use trimSelf().
  4300. * Util.cc
  4301. * Util.h
  4302. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4304. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Fixed compile error when configured with --disable-metalink.
  4306. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4307. * test/FeatureConfigTest.cc
  4308. * test/DownloadHandlerFactoryTest.cc
  4309. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Fixed compile error when configured with --without-gnutls
  4311. --without-openssl
  4312. * src/main.cc
  4313. * test/DefaultBtProgressInfoFileTest.cc
  4314. * test/SegmentManTest.cc
  4315. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Fixed compile error with OpenSSL.
  4317. * src/IteratableChunkChecksumValidator.cc
  4318. * src/LibsslDHKeyExchange.h
  4319. * src/MessageDigestHelper.cc
  4320. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Revert the default value of --max-concurrent-downloads to 5.
  4322. Revert the default value of --metalink-servers to 5.
  4323. Man pages was also updated.
  4324. * src/option_processing.cc
  4325. * doc/aria2c.1.txt
  4326. * doc/aria2c.1.html
  4327. * doc/aria2c.1
  4328. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4329. Returns const reference:
  4330. DownloadContext::getPieceHash, DownloadContext::getName,
  4331. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4332. BtContext::getInfoHashAsString,
  4333. * src/BtContext.h
  4334. * src/DefaultBtContext.cc
  4335. * src/DefaultBtContext.h
  4336. * src/DownloadContext.h
  4337. * src/SingleFileDownloadContext.h
  4338. * test/MockBtContext.h
  4339. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. * src/RequestGroup.h (getDir): Removed.
  4341. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Returns const reference. The internal urlencode function was optimized
  4343. a little bit.
  4344. * src/Request.cc
  4345. * src/Request.h
  4346. * src/HttpRequest.cc
  4347. * src/HttpRequest.h
  4348. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Defined option name and possible values as std::string to reduce
  4350. temporary string object creation in runtime.
  4351. * src/HelpItemFactory.cc
  4352. * src/LogFactory.cc
  4353. * src/Option.cc
  4354. * src/OptionHandlerFactory.cc
  4355. * src/option_processing.cc
  4356. * src/prefs.cc
  4357. * src/prefs.h
  4358. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Return const reference.
  4360. * src/DownloadHandlerConstants.cc
  4361. * src/DownloadHandlerConstants.h
  4362. (getMetalinkExtensions)
  4363. (getMetalinkContentTypes)
  4364. (getBtExtensions)
  4365. (getBtContentTypes)
  4366. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. * src/HttpHeader.cc (get): Rewritten.
  4368. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Make HttpHeader::getFirst(...) return const reference.
  4370. * src/HttpHeader.cc
  4371. * src/HttpHeader.h
  4372. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4373. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4374. it with V_TRUE.
  4375. * src/DefaultPieceStorage.cc
  4376. * src/DownloadCommand.cc
  4377. * src/FtpNegotiationCommand.cc
  4378. * src/HttpRequest.cc
  4379. * src/InitiateConnectionCommand.cc
  4380. * src/RequestGroup.cc
  4381. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4382. Made Option::get(...) return const reference of std::string.
  4383. * src/Option.cc
  4384. * src/Option.h
  4385. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Replaced std:copy with insert.
  4387. * src/DefaultBtMessageDispatcher.cc
  4388. * src/DefaultPieceStorage.cc
  4389. * src/DownloadEngineFactory.cc
  4390. * src/RequestGroup.cc
  4391. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Included SocketCore.h to fix compiler warning.
  4393. * src/InitiateConnectionCommand.cc
  4394. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Put piece selection strategy algorithm to RarestPieceSelector class,
  4396. Added a switch to choose whether randomized selection so that unit
  4397. tests emit same results in, possibly, win32.
  4398. * src/DefaultPieceStorage.cc
  4399. * src/DefaultPieceStorage.h
  4400. * src/RarestPieceSelector.cc
  4401. * src/RarestPieceSelector.h
  4402. * test/DefaultPieceStorageTest.cc
  4403. * test/RarestPieceSelectorTest.cc
  4404. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Don't pool connection if HTTP proxy is enabled.
  4406. * src/FtpFinishDownloadCommand.cc
  4407. * src/FtpNegotiationCommand.cc
  4408. * src/HttpSkipResponseCommand.cc
  4409. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4411. * src/AbstractCommand.cc
  4412. * src/AbstractCommand.h
  4413. * src/ActivePeerConnectionCommand.cc
  4414. * src/FtpInitiateConnectionCommand.cc
  4415. * src/HttpInitiateConnectionCommand.cc
  4416. * src/InitiateConnectionCommandFactory.cc
  4417. * src/PeerAbstractCommand.cc
  4418. * src/PeerAbstractCommand.h
  4419. * src/PeerInitiateConnectionCommand.cc
  4420. * src/TrackerWatcherCommand.cc
  4421. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Sort RequestSlot in ascending order and manipulate them using
  4423. lower_bound.
  4424. * src/DefaultBtMessageDispatcher.cc
  4425. * src/DefaultBtMessageDispatcher.h
  4426. (getMessageQueue): Added const qualifier.
  4427. (getRequestSlots): Added const qualifier.
  4428. (sendMessages): Use empty() instead of size().
  4429. (doCancelSendingPieceAction): Use HandleEvent object.
  4430. (doAbortOutstandingRequestAction): Rewritten.
  4431. (doChokedAction): Rewritten.
  4432. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4433. (isOutstandingRequest): Rewritten.
  4434. (getOutstandingRequest): Rewritten.
  4435. (removeOutstandingRequest): Rewritten.
  4436. (addOutstandingRequest): Rewritten.
  4437. * src/RequestSlot.cc
  4438. * src/RequestSlot.h
  4439. (operator=): Rewritten.
  4440. (operator!=): New function.
  4441. (operator<): New function.
  4442. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. * src/DefaultBtRequestFactory.cc
  4444. (doChokedAction): Rewritten.
  4445. (removeCompletedPiece): Rewritten.
  4446. (removeTargetPiece): Rewritten.
  4447. (createRequestMessages): Added the debug log.
  4448. (createRequestMessagesOnEndGame: Added the debug log.
  4449. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Added the debug log message.
  4451. * src/BtPieceMessage.cc (doReceivedAction)
  4452. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4454. used lower_bound to process them rather than linear search.
  4455. * src/DHTPeerAnnounceStorage.cc
  4456. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4458. peer has at least one completed piece.
  4459. * src/Peer.cc
  4460. * src/Peer.h
  4461. * src/PeerInteractionCommand.cc
  4462. * src/PeerSessionResource.cc
  4463. * src/PeerSessionResource.h
  4464. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Removed unnecessary sorting
  4466. * src/DefaultPieceStorage (DefaultPieceStorage)
  4467. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4468. Rewritten the portion of the code that mangaes allowed fast indexes.
  4469. * src/PeerSessionResource.cc
  4470. * src/PeerSessionResource.h
  4471. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Removed the invalid string including '\r' from ru.po and
  4473. did make update-po.
  4474. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Added --log-level and --summary-interval to man page.
  4476. * doc/aria2c.1.txt
  4477. * doc/aria2c.1.html
  4478. * doc/aria2c.1
  4479. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Added --log-level option to specify log level. Log messages under
  4481. the specified level are not output. Default value is `debug'.
  4482. * src/HelpItemFactory.cc
  4483. * src/LogFactory.cc
  4484. * src/LogFactory.h
  4485. * src/Logger.h
  4486. * src/OptionHandlerFactory.cc
  4487. * src/SimpleLogger.cc
  4488. * src/SimpleLogger.h
  4489. * src/main.cc
  4490. * src/option_processing.cc
  4491. * src/prefs.h
  4492. * src/usage_text.h
  4493. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Print download progress summary of all parallel downloads in specified
  4495. interval, default 60 secs. While aria2 could download several files
  4496. in parallel (see -j option), it displayed just first download progress,
  4497. and the other downloads are hidden from the users. This new feature
  4498. prints all downloads currently in-progress to the console so that you
  4499. can check the status of all downloads. The interval can be adjusted
  4500. by --summary-interval option.
  4501. The progress readout is now cut so that all fits in the one line of
  4502. console.
  4503. * src/ConsoleStatCalc.cc
  4504. * src/ConsoleStatCalc.h
  4505. * src/HelpItemFactory.cc
  4506. * src/OptionHandlerFactory.cc
  4507. * src/RequestGroupMan.cc
  4508. * src/RequestGroupMan.h
  4509. * src/main.cc
  4510. * src/option_processing.cc
  4511. * src/prefs.h
  4512. * src/usage_text.h
  4513. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4515. * src/DownloadEngine.cc (DownloadEngine)
  4516. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4518. defined.
  4519. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4520. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Use erase+lower_bound+insert instead of sort.
  4522. * src/DefaultPieceStorage.cc (addPieceStats)
  4523. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4525. * src/A2STR.cc
  4526. * src/A2STR.h
  4527. * src/OptionParser.cc (parse)
  4528. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Defined fake filename `[tracker.announce]' as static const std::string.
  4530. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4531. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Defined default filename `index.html' as static const std::string
  4533. * src/SingleFileDownloadContext.cc
  4534. * src/SingleFileDownloadContext.h
  4535. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Defined "[MEMORY]" as static const std::string.
  4537. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4538. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Defined control file's version number as static const std::string.
  4540. * src/DefaultBtProgressInfoFile.cc
  4541. * src/DefaultBtProgressInfoFile.h
  4542. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Use Request::METHOD_GET
  4544. * src/RequestGroup.cc (createNextCommandWithAdj)
  4545. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Defined "OK", "ERR", "INPR" as static const std::string
  4547. * src/RequestGroupMan.cc (showDownloadResults)
  4548. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Defined default client used in extended handshake as static const
  4550. std::string
  4551. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4552. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4554. * src/HttpConnection.cc (eraseConfidentialInfo)
  4555. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Defined default ftp user and password as static const std::string
  4557. * src/AuthConfigFactory.cc
  4558. * src/AuthConfigFactory.h
  4559. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Defined strings used in netrc as static const std::string
  4561. * src/Netrc.cc
  4562. * src/Netrc.h
  4563. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Defined HTTP status as static const std::string
  4565. * src/AbstractProxyResponseCommand.cc
  4566. * src/HttpHeader.cc
  4567. * src/HttpHeader.h
  4568. * src/HttpResponse.cc
  4569. * src/HttpResponseCommand.cc
  4570. * src/HttpSkipResponseCommand.cc
  4571. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Defined "\r\n", "A", "I" as static const std::string
  4573. * src/A2STR.cc
  4574. * src/A2STR.h
  4575. * src/FtpConnection.cc
  4576. * src/FtpConnection.h
  4577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Added COLON_C(".") and used it in Request::parseUrl()
  4579. * src/A2STR.cc
  4580. * src/A2STR.h
  4581. * src/Request.cc (parseUrl)
  4582. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Changed the type of padName from `const std::string&' to `const char*'.
  4584. * src/MSEHandshake.cc (verifyPadLength)
  4585. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Defined "sha1" as static const std::string.
  4587. * src/MetalinkParserController.cc
  4588. * src/MetalinkParserController.h
  4589. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Defined message digest algorithm name as static const std::string
  4591. * src/DHTTokenTracker.cc
  4592. * src/DHTUtil.cc
  4593. * src/DefaultBtContext.cc
  4594. * src/MSEHandshake.cc
  4595. * src/MessageDigestHelper.cc
  4596. * src/Peer.cc
  4597. * src/messageDigest.cc
  4598. * src/messageDigest.h
  4599. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Made string literals used in SAX parser static const std::string.
  4601. * src/FileMetalinkParserState.cc
  4602. * src/FileMetalinkParserState.h
  4603. * src/FilesMetalinkParserState.cc
  4604. * src/FilesMetalinkParserState.h
  4605. * src/InitialMetalinkParserState.cc
  4606. * src/InitialMetalinkParserState.h
  4607. * src/MetalinkMetalinkParserState.cc
  4608. * src/MetalinkMetalinkParserState.h
  4609. * src/PiecesMetalinkParserState.cc
  4610. * src/PiecesMetalinkParserState.h
  4611. * src/ResourcesMetalinkParserState.cc
  4612. * src/ResourcesMetalinkParserState.h
  4613. * src/VerificationMetalinkParserState.cc
  4614. * src/VerificationMetalinkParserState.h
  4615. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4617. * src/A2STR.cc
  4618. * src/A2STR.h
  4619. * src/File.cc
  4620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4621. Defined static const std::string IP("ip"), PORT("port") and use them
  4622. instead of string literals.
  4623. * src/DefaultPeerListProcessor.cc
  4624. * src/DefaultPeerListProcessor.h
  4625. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Made string literals for torrent file processing static const
  4627. std::string.
  4628. * src/BtContext.cc
  4629. * src/BtContext.h
  4630. * src/DefaultBtContext.cc
  4631. * src/DefaultBtContext.h
  4632. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Made string literal for tracker response static const std::string
  4634. * src/BtAnnounce.cc
  4635. * src/BtAnnounce.h
  4636. * src/DefaultBtAnnounce.cc
  4637. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Use DHTMessage::T instead of "t".
  4639. * src/DHTMessageTracker.cc (messageArrived)
  4640. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Made keyName static const. Made trimmed charset static const
  4642. std::string.
  4643. * src/Util.cc (getContentDispositionFilename)
  4644. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Made USER_AGENT const. Made "/" static const std::string.
  4646. * src/A2STR.cc
  4647. * src/A2STR.h
  4648. * src/HttpRequest.cc
  4649. * src/HttpRequest.h
  4650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Made string listeral to static const std::string:
  4652. "Content-Range", "Content-Length"
  4653. * src/HttpHeader.cc
  4654. * src/HttpHeader.h
  4655. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Made string listeral to static const std::string.
  4657. * src/HttpConnection.cc
  4658. * src/HttpHeader.cc
  4659. * src/HttpHeader.h
  4660. * src/HttpResponse.cc
  4661. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Made string listeral to static const std::string.
  4663. * src/A2STR.cc
  4664. * src/A2STR.h
  4665. * src/SimpleLogger.cc
  4666. * src/SimpleLogger.h
  4667. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Made string literal to static const std::string.
  4669. Rewritten CookieParser::setField.
  4670. * src/A2STR.cc
  4671. * src/A2STR.h
  4672. * src/CookieBoxFactory.cc
  4673. * src/CookieBoxFactory.h
  4674. * src/CookieParser.cc
  4675. * src/CookieParser.h
  4676. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Made string literal to static const std::string
  4678. * src/DHTAbstractMessage.cc
  4679. * src/DHTAnnouncePeerMessage.cc
  4680. * src/DHTAnnouncePeerMessage.h
  4681. * src/DHTAnnouncePeerReplyMessage.cc
  4682. * src/DHTAnnouncePeerReplyMessage.h
  4683. * src/DHTFindNodeMessage.cc
  4684. * src/DHTFindNodeMessage.h
  4685. * src/DHTFindNodeReplyMessage.cc
  4686. * src/DHTFindNodeReplyMessage.h
  4687. * src/DHTGetPeersMessage.cc
  4688. * src/DHTGetPeersMessage.h
  4689. * src/DHTGetPeersReplyMessage.cc
  4690. * src/DHTGetPeersReplyMessage.h
  4691. * src/DHTMessage.cc
  4692. * src/DHTMessage.h
  4693. * src/DHTMessageFactoryImpl.cc
  4694. * src/DHTMessageReceiver.cc
  4695. * src/DHTPingMessage.cc
  4696. * src/DHTPingMessage.h
  4697. * src/DHTPingReplyMessage.cc
  4698. * src/DHTPingReplyMessage.h
  4699. * src/DHTQueryMessage.cc
  4700. * src/DHTQueryMessage.h
  4701. * src/DHTResponseMessage.cc
  4702. * src/DHTResponseMessage.h
  4703. * src/DHTUnknownMessage.cc
  4704. * src/DHTUnknownMessage.h
  4705. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Made string literal to static const std::string
  4707. * src/BtChokeMessage.cc (toString)
  4708. * src/BtHaveAllMessage.cc (toString)
  4709. * src/BtHaveNoneMessage.cc (toString)
  4710. * src/BtInterestedMessage.cc (toString)
  4711. * src/BtNotInterestedMessage.cc (toString)
  4712. * src/BtUnchokeMessage.cc (toString)
  4713. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Replaced "" with static const variable A2STR::NIL.
  4715. Replaced string comparison against "" with std::string::empty().
  4716. Added PROTO_* to Request class and use them as a protocol string
  4717. constant.
  4718. Made "started", "stopped", "completed" static const variable in
  4719. AnnounceList class.
  4720. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Updated translations. Great thanks to translators.
  4722. * po/ca.po
  4723. * po/de.po
  4724. * po/fr.po
  4725. * po/it.po
  4726. * po/ja.po
  4727. * po/ru.po
  4728. * po/zh_CN.po
  4729. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Updated man page; categorized options and fixed typo.
  4731. * doc/aria2c.1.txt
  4732. * doc/aria2c.1.html
  4733. * doc/aria2c.1
  4734. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Removed const ref
  4736. * src/MetalinkEntry.cc (AddProtocolPreference)
  4737. * src/RequestGroup.cc (FindServerHostByHostname)
  4738. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Rewritten Accept-Features handling.
  4740. * src/HttpRequestCommand.cc (createHttpRequest)
  4741. * src/a2functional.h
  4742. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Changed method signature:
  4744. DHTAbstractNodeLookupTask::toEntries
  4745. * src/DHTAbstractNodeLookupTask.cc
  4746. * src/DHTAbstractNodeLookupTask.h
  4747. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4748. Changed method signature:
  4749. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4750. * src/BtContext.h
  4751. * src/DefaultBtContext.cc
  4752. * src/DefaultBtContext.h
  4753. * src/DefaultBtInteractive.cc
  4754. * test/DefaultBtContextTest.cc
  4755. * test/MockBtContext.h
  4756. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Changed method signature:
  4758. MultiFileAllocationIterator::makeDiskWriterEntries
  4759. * src/MultiFileAllocationIterator.cc
  4760. * src/MultiFileAllocationIterator.h
  4761. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Changed method sinature:
  4763. MetalinkEntry::toFileEntry,
  4764. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4765. Metalinker::queryEntry
  4766. * src/Metalink2RequestGroup.cc
  4767. * src/MetalinkEntry.cc
  4768. * src/MetalinkEntry.h
  4769. * src/MetalinkHelper.cc
  4770. * src/MetalinkHelper.h
  4771. * src/Metalinker.cc
  4772. * src/Metalinker.h
  4773. * src/main.cc
  4774. * test/MetalinkHelperTest.cc
  4775. * test/MetalinkerTest.cc
  4776. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Changed method sinature:
  4778. RequestGroup::getURIs
  4779. * src/RequestGroup.cc
  4780. * src/RequestGroup.h
  4781. * test/Metalink2RequestGroupTest.cc
  4782. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Changed method signature:
  4784. PeerListProcessor::extractPeer
  4785. * src/CompactPeerListProcessor.cc
  4786. * src/CompactPeerListProcessor.h
  4787. * src/DefaultBtAnnounce.cc
  4788. * src/DefaultPeerListProcessor.cc
  4789. * src/DefaultPeerListProcessor.h
  4790. * src/DelegatingPeerListProcessor.cc
  4791. * src/DelegatingPeerListProcessor.h
  4792. * src/PeerListProcessor.h
  4793. * src/UTPexExtensionMessage.cc
  4794. * test/DefaultPeerListProcessorTest.cc
  4795. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Changed method signature:
  4797. BtRequestFactory::createRequestMessages,
  4798. BtRequestFactory::createRequestMessagesOnEndGame
  4799. * src/BtRequestFactory.h
  4800. * src/DefaultBtInteractive.cc
  4801. * src/DefaultBtRequestFactory.cc
  4802. * src/DefaultBtRequestFactory.h
  4803. * test/DefaultBtRequestFactoryTest.cc
  4804. * test/MockBtRequestFactory.h
  4805. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Changed method signature:
  4807. PieceStorage::getInFlightPieces
  4808. * src/DefaultBtProgressInfoFile.cc
  4809. * src/DefaultPieceStorage.cc
  4810. * src/DefaultPieceStorage.h
  4811. * src/PieceStorage.h
  4812. * src/UnknownLengthPieceStorage.cc
  4813. * src/UnknownLengthPieceStorage.h
  4814. * test/DefaultBtProgressInfoFileTest.cc
  4815. * test/MockPieceStorage.h
  4816. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Changed method signature:
  4818. PostDownloadHandler::getNextRequestGroups
  4819. Metalink2RequestGroup::generate
  4820. RequestGroup::postDownloadProcessing
  4821. * src/BtPostDownloadHandler.cc
  4822. * src/BtPostDownloadHandler.h
  4823. * src/Metalink2RequestGroup.cc
  4824. * src/Metalink2RequestGroup.h
  4825. * src/MetalinkPostDownloadHandler.cc
  4826. * src/MetalinkPostDownloadHandler.h
  4827. * src/PostDownloadHandler.h
  4828. * src/RequestGroup.cc
  4829. * src/RequestGroup.h
  4830. * src/RequestGroupMan.cc
  4831. * src/main.cc
  4832. * test/BtPostDownloadHandlerTest.cc
  4833. * test/Metalink2RequestGroupTest.cc
  4834. * test/MetalinkPostDownloadHandlerTest.cc
  4835. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Rewritten AccRequestGroup
  4837. * src/main.cc
  4838. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Rewritten.
  4840. * src/TaggedItem.cc (toTagString)
  4841. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Rewritten Accept-Features handling.
  4843. * src/HttpRequestCommand.cc (createHttpRequest)
  4844. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. Rewritten accept types handling.
  4846. * HttpRequest.cc (createRequest)
  4847. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Rewritten
  4849. * src/FeatureConfig.cc (featureSummary)
  4850. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Changed method signature:
  4852. PeerStorage::getActivePeers
  4853. * src/DHTPeerAnnounceEntry.cc
  4854. * src/DefaultPeerStorage.cc
  4855. * src/DefaultPeerStorage.h
  4856. * src/PeerStorage.h
  4857. * test/DefaultPeerStorageTest.cc
  4858. * test/MockPeerStorage.h
  4859. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Changed method signature:
  4861. DHTPeerAnnounceStorage::getPeers,
  4862. DHTPeerAnnounceEntry::getPeers
  4863. * src/DHTGetPeersMessage.cc
  4864. * src/DHTPeerAnnounceEntry.cc
  4865. * src/DHTPeerAnnounceEntry.h
  4866. * src/DHTPeerAnnounceStorage.cc
  4867. * src/DHTPeerAnnounceStorage.h
  4868. * test/DHTAnnouncePeerMessageTest.cc
  4869. * test/DHTPeerAnnounceEntryTest.cc
  4870. * test/DHTPeerAnnounceStorageTest.cc
  4871. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Changed method signature:
  4873. NameResolver::resolve
  4874. * src/DHTEntryPointNameResolveCommand.cc
  4875. * src/InitiateConnectionCommand.cc
  4876. * src/NameResolver.cc
  4877. * src/NameResolver.h
  4878. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Changed method signature:
  4880. PieceStorage::getAdvertisedPieceIndexes
  4881. * src/DefaultBtInteractive.cc
  4882. * src/DefaultPieceStorage.cc
  4883. * src/DefaultPieceStorage.h
  4884. * src/PieceStorage.h
  4885. * src/UnknownLengthPieceStorage.h
  4886. * test/MockPieceStorage.h
  4887. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. Changed method signature:
  4889. SegmentMan::getInFlightSegment
  4890. * src/AbstractCommand.cc
  4891. * src/SegmentMan.cc
  4892. * src/SegmentMan.h
  4893. * test/SegmentManTest.cc
  4894. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Changed method signature:
  4896. DHTAbstractNodeLookupTask::getNodesFromMessage
  4897. * src/DHTAbstractNodeLookupTask.cc
  4898. * src/DHTAbstractNodeLookupTask.h
  4899. * src/DHTNodeLookupTask.cc
  4900. * src/DHTNodeLookupTask.h
  4901. * src/DHTPeerLookupTask.cc
  4902. * src/DHTPeerLookupTask.h
  4903. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4905. * src/AbstractCommand.cc
  4906. * src/BtCheckIntegrityEntry.cc
  4907. * src/BtCheckIntegrityEntry.h
  4908. * src/BtFileAllocationEntry.cc
  4909. * src/BtFileAllocationEntry.h
  4910. * src/BtSetup.cc
  4911. * src/BtSetup.h
  4912. * src/CheckIntegrityCommand.cc
  4913. * src/CheckIntegrityEntry.h
  4914. * src/ChecksumCheckIntegrityEntry.cc
  4915. * src/ChecksumCheckIntegrityEntry.h
  4916. * src/DHTSetup.cc
  4917. * src/DHTSetup.h
  4918. * src/DownloadEngine.cc
  4919. * src/FileAllocationCommand.cc
  4920. * src/FileAllocationEntry.h
  4921. * src/RequestGroup.cc
  4922. * src/RequestGroup.h
  4923. * src/RequestGroupMan.cc
  4924. * src/RequestGroupMan.h
  4925. * src/StreamCheckIntegrityEntry.cc
  4926. * src/StreamCheckIntegrityEntry.h
  4927. * src/StreamFileAllocationEntry.cc
  4928. * src/StreamFileAllocationEntry.h
  4929. * src/TrackerWatcherCommand.cc
  4930. * src/a2functional.h
  4931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Changed method signature:
  4933. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4934. DHTBucket::getGoodNodes,
  4935. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4936. * src/BNode.cc
  4937. * src/BNode.h
  4938. * src/DHTAbstractNodeLookupTask.cc
  4939. * src/DHTAutoSaveCommand.cc
  4940. * src/DHTBucket.cc
  4941. * src/DHTBucket.h
  4942. * src/DHTBucketRefreshTask.cc
  4943. * src/DHTFindNodeMessage.cc
  4944. * src/DHTGetPeersMessage.cc
  4945. * src/DHTRoutingTable.cc
  4946. * src/DHTRoutingTable.h
  4947. * test/BNodeTest.cc
  4948. * test/DHTBucketTest.cc
  4949. * test/DHTRoutingTableTest.cc
  4950. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. In piece selection functions, Pass std::deque<...> by reference rather
  4952. than returning it.
  4953. * src/BitfieldMan.cc
  4954. * src/BitfieldMan.h
  4955. * src/DefaultBtRequestFactory.cc
  4956. * src/DefaultPieceStorage.cc
  4957. * src/Piece.cc
  4958. * src/Piece.h
  4959. * test/BitfieldManTest.cc
  4960. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4961. Implemented rarest piece first piece selection strategy.
  4962. * src/AbstractBtMessage.cc
  4963. * src/AbstractBtMessage.h
  4964. * src/BitfieldMan.cc
  4965. * src/BitfieldMan.h
  4966. * src/BtBitfieldMessage.cc
  4967. * src/BtHaveAllMessage.cc
  4968. * src/BtHaveMessage.cc
  4969. * src/DefaultPieceStorage.cc
  4970. * src/DefaultPieceStorage.h
  4971. * src/PeerInteractionCommand.cc
  4972. * src/PieceStorage.h
  4973. * src/UnknownLengthPieceStorage.h
  4974. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Rewritten readData and writeData.
  4976. * src/MultiDiskAdaptor.cc
  4977. * src/MultiDiskAdaptor.h
  4978. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Move \n out of the message "Usage: ...".
  4980. * src/version_usage.cc
  4981. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Bump up version number to 0.13.2b.
  4983. * configure.ac
  4984. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Added const qualifier to argument Exception& e.
  4986. * src/Logger.h
  4987. * src/SimpleLogger.cc
  4988. * src/SimpleLogger.h
  4989. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Pool connection when CWD, SIZE command fails.
  4991. * src/FtpNegotiationCommand.cc
  4992. * src/FtpNegotiationCommand.h
  4993. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4995. * src/HttpResponseCommand.cc
  4996. * src/HttpSkipResponseCommand.cc
  4997. * src/HttpSkipResponseCommand.h
  4998. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Pool connection when a server returns 4xx, 5xx responses.
  5000. * src/HttpNullDownloadCommand.cc
  5001. * src/HttpNullDownloadCommand.h
  5002. * src/HttpResponse.cc
  5003. * src/HttpResponse.h
  5004. * src/HttpResponseCommand.cc
  5005. * src/HttpResponseCommand.h
  5006. * test/HttpResponseTest.cc
  5007. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Print usage when no URL is specifed or bad command-line option is
  5009. specified.
  5010. * src/HelpItemFactory.cc
  5011. * src/help_tags.h
  5012. * src/option_processing.cc
  5013. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Removed duplicate log message.
  5015. * src/AbstractCommand.cc (asyncResolveHostname)
  5016. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5018. Changed -j option's default value from 5 to 1.
  5019. Added new examples using protocol auto detection feature.
  5020. Removed -T, -M usage where it can be omitted.
  5021. * doc/aria2c.1.txt
  5022. * doc/aria2c.1.html
  5023. * doc/aria2c.1.txt
  5024. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Updated command-line usage text, so that it tells users that they
  5026. can specify any number of torrent files and metalink files in
  5027. command-line.
  5028. * src/version_usage.cc
  5029. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Changed the default value of -j option to 1.
  5031. * src/HelpItemFactory.cc
  5032. * src/option_processing.cc
  5033. * src/usage_text.h
  5034. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Added the ability to reuse connection in FTP and it is enabled by
  5036. default. It can be disabled by --ftp-reuse-connection=false option.
  5037. * src/Command.cc
  5038. * src/DownloadCommand.cc
  5039. * src/FtpDownloadCommand.cc
  5040. * src/FtpDownloadCommand.h
  5041. * src/FtpFinishDownloadCommand.cc
  5042. * src/FtpFinishDownloadCommand.h
  5043. * src/FtpInitiateConnectionCommand.cc
  5044. * src/FtpNegotiationCommand.cc
  5045. * src/FtpNegotiationCommand.h
  5046. * src/HelpItemFactory.cc
  5047. * src/Makefile.am
  5048. * src/Makefile.in
  5049. * src/OptionHandlerFactory.cc
  5050. * src/option_processing.cc
  5051. * src/prefs.h
  5052. * src/usage_text.h
  5053. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Call Command::transitStatus() before calling Command::execute(),
  5055. so that the status change made in execute() is not cleared.
  5056. * src/DownloadEngine.cc
  5057. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Removed forward declaration of SocketCore class.
  5059. * src/HttpDownloadCommand.h
  5060. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5062. in InitiateConnectionCommandFactory. They should be set only when
  5063. the protocol is HTTP or HTTPS.
  5064. * src/InitiateConnectionCommandFactory.cc
  5065. * src/RequestGroup.cc
  5066. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Fixed infinite loop in checksum checking.
  5068. * src/IteratableChecksumValidator.cc
  5069. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Set _supportsPersistentConnection to true by default.
  5071. * src/Request.cc
  5072. * src/RequestGroup.cc
  5073. * test/HttpRequestTest.cc
  5074. * test/RequestTest.cc
  5075. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Added timeout to socket pool. The default timeout is 15 seconds,
  5077. which is the same value Apache uses.
  5078. * src/DownloadEngine.cc
  5079. * src/DownloadEngine.h
  5080. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Fixed misuse of multimap::find()
  5082. * src/HttpHeader.cc
  5083. * test/HttpHeaderTest.cc
  5084. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5086. option.
  5087. The asynchronous DNS is not capable of IPv6 yet.
  5088. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5089. least for HTTP download.
  5090. * src/AbstractCommand.cc
  5091. * src/AbstractCommand.h
  5092. * src/AsyncNameResolver.cc
  5093. * src/AsyncNameResolver.h
  5094. * src/DHTEntryPointNameResolveCommand.cc
  5095. * src/DHTEntryPointNameResolveCommand.h
  5096. * src/DownloadEngine.cc
  5097. * src/DownloadEngine.h
  5098. * src/FtpInitiateConnectionCommand.cc
  5099. * src/FtpInitiateConnectionCommand.h
  5100. * src/HelpItemFactory.cc
  5101. * src/HttpInitiateConnectionCommand.cc
  5102. * src/HttpInitiateConnectionCommand.h
  5103. * src/InitiateConnectionCommand.cc
  5104. * src/InitiateConnectionCommand.h
  5105. * src/Makefile.am
  5106. * src/Makefile.in
  5107. * src/NameResolver.cc
  5108. * src/NameResolver.h
  5109. * src/OptionHandlerFactory.cc
  5110. * src/SocketCore.cc
  5111. * src/SocketCore.h
  5112. * src/Util.cc
  5113. * src/Util.h
  5114. * src/option_processing.cc
  5115. * src/prefs.h
  5116. * src/usage_text.h
  5117. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Updated man page: --quiet, --header were added.
  5119. --metalink-servers and --enable-http-keep-alive option were updated.
  5120. * doc/aria2c.1
  5121. * doc/aria2c.1.html
  5122. * doc/aria2c.1.txt
  5123. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Enable HTTP keep-alive by default.
  5125. * src/HelpItemFactory.cc
  5126. * src/option_processing.cc
  5127. * src/usage_text.h
  5128. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Disable http keep-alive if the remote server is not HTTP/1.1.
  5130. * src/HttpConnection.cc
  5131. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Receive content body of 302 response so that the connection can be
  5133. reused later when http keep-alive is enabled.
  5134. * src/HttpNullDownloadCommand.cc
  5135. * src/HttpNullDownloadCommand.h
  5136. * src/HttpResponseCommand.cc
  5137. * src/HttpResponseCommand.h
  5138. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. const SharedHandle<Request> -> const SharedHandle<Request>&
  5140. * src/FtpDowndloadCommand.cc
  5141. * src/FtpDowndloadCommand.h
  5142. * src/HttpDownloadCommand.cc
  5143. * src/HttpDownloadCommand.h
  5144. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Fixed the bug that the control file(.aria2 file) is not renamed
  5146. according to tryAutoFileRenaming().
  5147. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5148. its control file exist, use them and continue download.
  5149. The old implementation didn't take into account of control file's
  5150. existence, so basically you couldn't continue download of renamed file.
  5151. * src/BtProgressInfoFile.h
  5152. * src/DefaultBtProgressInfoFile.cc
  5153. * src/DefaultBtProgressInfoFile.h
  5154. * src/NullProgressInfoFile.h
  5155. * src/RequestGroup.cc
  5156. * test/DefaultBtProgressInfoFileTest.cc
  5157. * test/MockBtProgressInfoFile.h
  5158. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Change the default value of --metalink-servers option from `5' to `1'.
  5160. * src/HelpItemFactory.cc
  5161. * src/option_processing.cc
  5162. * src/usage_text.h
  5163. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5164. Reimplemented transparent metalink using Accept request header.
  5165. * src/HttpRequest.cc
  5166. * src/HttpRequest.h
  5167. * src/HttpRequestCommand.cc
  5168. * src/Metalink2RequestGroup.cc
  5169. * src/RequestGroup.cc
  5170. * src/RequestGroup.h
  5171. * test/HttpRequestTest.cc
  5172. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Bump up version number to 0.13.2a
  5174. * configure.ac
  5175. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Updated configure.ac using the result of autoscan.
  5177. * configure.ac
  5178. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Fixed compilation error without gcrypt/openssl.
  5180. * src/DownloadCommand.cc
  5181. * src/DownloadCommand.h
  5182. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5183. Reorganized version information so that it can be displayed in a
  5184. standard terminal screen without scrolling.
  5185. Removed http, ftp from Configuration section, because they are always
  5186. enabled.
  5187. * src/FeatureConfig.cc
  5188. * src/FeatureConfig.h
  5189. * src/main.cc
  5190. * src/messageDigest.cc
  5191. * src/messageDigest.h
  5192. * src/version_usage.cc
  5193. * test/FeatureConfigTest.cc
  5194. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Masked user ID in log.
  5196. * src/FtpConnection.cc (sendUser)
  5197. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Removed query part from filename in HTTP download. The query part means
  5199. the substring after "?" in URL. Firefox seems do the same thing.
  5200. A query part is sometimes very long and not suitable to filename,
  5201. so I think it is better to remove it from filename.
  5202. * src/HttpRequest.cc
  5203. * src/HttpRequest.h
  5204. * src/Request.cc
  5205. * src/Request.h
  5206. * test/HttpRequestTest.cc
  5207. * test/RequestTest.cc
  5208. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Rewritten Exception class. Throw exception object, not its pointer and
  5210. catch by reference, so that remove problematic delete operator for
  5211. catched exception.
  5212. * src/Exception.cc
  5213. * src/Exception.h
  5214. * test/ExceptionTest.cc
  5215. * src/*: All files throwing/catching exception.
  5216. * test/*: All files throwing/catching exception.
  5217. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Now auto protocol detection is enabled without -Z option.
  5219. But there is a important difference between with/without -Z optoin.
  5220. For example, if you type:
  5221. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5222. then, aria2 interprets there are 3 request groups:
  5223. (1) http://host/file, http://mirror/file <-- multi-source download
  5224. (2) file1.torrent
  5225. (3) file2.metalink
  5226. On the other hand, if you invoke above command with -Z option, it is
  5227. interpreted as 4 request groups:
  5228. (1) http://host/file
  5229. (2) file1.torrent
  5230. (3) file2.metalink
  5231. (4) http://mirror/file
  5232. I think usually user don't mix multi-source URLs and torrent files, so
  5233. there is no big problem here.
  5234. * src/main.cc
  5235. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Fixed the bug that causes segmentaion fault when reading XML containing
  5237. unescapsed character like '&'.
  5238. Also a modification was made which avoids adding unnecessary
  5239. characters stack and appending unused string.
  5240. * src/ExpatMetalinkProcessor.cc
  5241. * src/FileMetalinkParserState.h
  5242. * src/FilesMetalinkParserState.h
  5243. * src/FinMetalinkParserState.h
  5244. * src/HashMetalinkParserState.h
  5245. * src/InitialMetalinkParserState.h
  5246. * src/LanguageMetalinkParserState.h
  5247. * src/MetalinkMetalinkParserState.h
  5248. * src/MetalinkParserState.h
  5249. * src/MetalinkParserStateMachine.cc
  5250. * src/MetalinkParserStateMachine.h
  5251. * src/OSMetalinkParserState.h
  5252. * src/PieceHashMetalinkParserState.h
  5253. * src/PiecesMetalinkParserState.h
  5254. * src/ResourcesMetalinkParserState.h
  5255. * src/SizeMetalinkParserState.h
  5256. * src/SkipTagMetalinkParserState.h
  5257. * src/URLMetalinkParserState.h
  5258. * src/VerificationMetalinkParserState.h
  5259. * src/VersionMetalinkParserState.h
  5260. * src/XML2SAXMetalinkProcessor.cc
  5261. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Added StringFormat class, which internally calls vasprintf.
  5263. operator<< is defined for this class, so it can be used with iostream
  5264. classes nicely. SimpleLogger and following functions are rewritten
  5265. using StringFormat class.
  5266. Besides, now Logger class's methods are non-const, many classes
  5267. that has a const Logger* as a member variable are modified to remove
  5268. const qualifier from the variable declaration.
  5269. * src/HelpItemFactory.cc
  5270. * src/Request.cc
  5271. * src/SimpleLogger.cc
  5272. * src/StringFormat.cc
  5273. * src/StringFormat.h
  5274. * src/Util.cc
  5275. * src/option_processing.cc
  5276. * src/version_usage.cc
  5277. * test/StringFormatTest.cc
  5278. * src/*.h: The classes that has const Logger* as a member variable.
  5279. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5281. failed. Also fixed memory link when exception is thrown there.
  5282. * src/main.cc (AccRequestGroup)
  5283. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Added build-in "Accept-Features" support. For now only "metalink" is
  5285. used in this header field.
  5286. This "metalink" value is removed from the list when connecting URLs
  5287. fed by metalink file to avoid loop in "transparent" metlaink.
  5288. * src/HttpRequest.cc
  5289. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5290. header is also held in this variable. Also renamed setUserHeaders as
  5291. addHeader and it was rewritten to add header not just to clear the old
  5292. value.
  5293. * src/HttpRequestCommand.cc
  5294. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5295. from "Accept-Features" list.
  5296. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5297. default.
  5298. * src/RequestGroup.h
  5299. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5300. * src/a2functional.h: Included <string> because Concat class depends on
  5301. it.
  5302. * test/HttpRequestTest.cc
  5303. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Added comment
  5305. * src/RequestGroup.cc (createNextCommand)
  5306. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Capitalized METHOD_GET and METHOD_HEAD
  5308. * src/Request.cc
  5309. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Added getDownloadResults() method
  5311. * src/RequestGroupMan.cc
  5312. * src/RequestGroupMan.h
  5313. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5314. Fixed the bug that aria2 exits when commands is empty() but
  5315. _routineCommands are not.
  5316. * src/DownloadEngine.cc
  5317. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Use the default value pulled from Option object in HelpItemFactory.
  5319. except options whose defualt value is embedded in a usage text.
  5320. * src/HelpItemFactory.cc
  5321. * src/HelpItemFactory.h
  5322. * src/option_processing.cc
  5323. * src/version_usage.cc
  5324. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Added --quiet option to make aria2 quiet (no console output).
  5326. --quiet option is tagged with ADVANCED.
  5327. * src/HelpItemFactory.cc
  5328. * src/LogFactory.cc
  5329. * src/LogFactory.h
  5330. * src/MultiUrlRequestInfo.cc
  5331. * src/MultiUrlRequestInfo.h
  5332. * src/NullStatCalc.h: New class. This class prints nothing.
  5333. * src/OptionHandlerFactory.cc
  5334. * src/main.cc
  5335. * src/option_processing.cc
  5336. * src/prefs.h
  5337. * src/usage_text.h
  5338. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5340. * src/HelpItemFactory.cc (createHelpItems):
  5341. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5342. Fixed compilation error in ExpatMetalinkProcessor.cc
  5343. * src/ExpatMetalinkProcessor.cc
  5344. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. Reuse socket if the origin server supports HTTP keep-alive and
  5346. --enable-http-keep-alive or --enable-http-pipelining is given.
  5347. The current implementation doesn't reuse the connections established
  5348. against proxy server.
  5349. * src/AbstractCommand.cc
  5350. * src/DownloadEngine.cc
  5351. * src/DownloadEngine.h
  5352. * src/HttpDownloadCommand.cc
  5353. * src/HttpInitiateConnectionCommand.cc
  5354. * src/HttpResponseCommand.cc
  5355. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Rewritten HTTP keep-alive and pipelining routine.
  5357. * src/AbstractCommand.cc
  5358. * src/HttpConnection.cc
  5359. * src/HttpDownloadCommand.cc
  5360. * src/HttpRequest.cc
  5361. * src/HttpRequestCommand.cc
  5362. * src/HttpResponseCommand.cc
  5363. * src/Request.cc
  5364. * src/Request.h
  5365. * src/RequestGroup.cc
  5366. * test/HttpRequestTest.cc
  5367. * test/HttpResponseTest.cc
  5368. * test/RequestTest.cc
  5369. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Added missing setUserHeaders call
  5371. * src/HttpRequestCommand.cc
  5372. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5374. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5375. waste of time because it is more likey false.
  5376. * src/FileAllocationDispatcherCommand.cc (execute)
  5377. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Now HTTP status and version are a member variable of HttpHeader.
  5379. HTTP status is processed as a string, not integer.
  5380. * src/AbstractProxyResponseCommand.cc
  5381. * src/HttpConnection.cc
  5382. * src/HttpHeader.cc
  5383. * src/HttpHeader.h
  5384. * src/HttpHeaderProcessor.cc
  5385. * src/HttpHeaderProcessor.h
  5386. * src/HttpResponse.cc
  5387. * src/HttpResponse.h
  5388. * test/HttpHeaderProcessorTest.cc
  5389. * test/HttpResponseTest.cc
  5390. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Added --header option. You can specify any number of additional HTTP headers
  5392. like:
  5393. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5394. Unlike other commad-line option, you can use --header option multiple times.
  5395. * src/HelpItemFactory.cc
  5396. * src/HttpRequest.{cc, h}
  5397. * src/HttpRequestCommand.cc
  5398. * src/OptionHandlerFactory.cc
  5399. * src/OptionHandlerImpl.h
  5400. * src/option_processing.cc
  5401. * src/prefs.h
  5402. * src/usage_text.h
  5403. * test/HttpRequestTest.cc (testUserHeaders)
  5404. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Eliminates the time lag between sequential downloads and commands in
  5406. the same RequestGroup.
  5407. In old implementation, aria2 occasionally waits 1 seconds before
  5408. executing next command or RequestGroup.
  5409. This is really a waste of time, and new implementation eliminates
  5410. this unnecessary time lag.
  5411. * src/AbstractCommand.cc
  5412. * src/AutoSaveCommand.cc
  5413. * src/CheckIntegrityCommand.cc
  5414. * src/Command.{cc, h}
  5415. * src/DownloadEngine.{cc, h}
  5416. * src/DownloadEngineFactory.cc
  5417. * src/FileAllocationCommand.cc
  5418. * src/FileAllocationDispatcherCommand.cc
  5419. * src/FillRequestGroupCommand.cc
  5420. * src/FtpInitiateConnectionCommand.cc
  5421. * src/HaveEraseCommand.cc
  5422. * src/HttpInitiateConnectionCommand.cc
  5423. * src/HttpResponseCommand.cc
  5424. * src/RealtimeCommand.cc
  5425. * src/RequestGroup.cc
  5426. * src/RequestGroupMan.cc
  5427. * src/StreamFileAllocationEntry.cc
  5428. * src/TimeBasedCommand.{cc, h}
  5429. * src/TimedHaltCommand.cc
  5430. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5432. keyword explicit and SharedHandle's default constructor initializes
  5433. its internal obj to null, old implementation initializes it using
  5434. obj's default constructor.
  5435. To assign null, write SharedHandle<T> x(...); x.reset();
  5436. TODO: test/SharedHandleTest.cc needs more tests.
  5437. * src/SharedHandle.h
  5438. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Fixed type in man page.
  5440. * doc/aria2c.1.txt
  5441. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5443. * src/SimpleLogger.{cc, h}
  5444. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. Implemented auto protocol detection.
  5446. Now you can do:
  5447. aria2c -Z http://host/file file1.torrent file2.metalink
  5448. (Note: -Z option is required for auto protcol detection.)
  5449. Then aria2c downloads 3 files simultaneously:
  5450. 1. http://host/file
  5451. 2. file1.torrent <-- read local torrent file
  5452. 3. file2.metalink <-- read local Metalink file.
  5453. Same thing goes with -i option. Assume your uris.txt contans:
  5454. http://host/file
  5455. file1.torrent
  5456. file2.metalink
  5457. Then you can do: aria2c -i uris.txt
  5458. (Note: -Z option is not needed if -i option is given.)
  5459. * src/main.cc
  5460. * src/ProtocolDetector.{cc, h}
  5461. * test/ProtocolDetectorTest.cc
  5462. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5464. installed
  5465. * src/ARC4Encryptor.h
  5466. * src/ARC4Decryptor.h
  5467. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Renamed argument from 'errno' to 'err', since errno is confused with
  5469. errno defined in errno.h.
  5470. * src/LibgcryptARC4Decryptor.h
  5471. * src/LibgcryptARC4Context.h
  5472. * src/LibgcryptDHKeyExchange.h
  5473. * src/LibgcryptARC4Encryptor.h
  5474. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Rewritten choking algorithm.
  5476. * src/PeerChokeCommand.{cc, h}
  5477. * src/BtInterestedMessage.cc
  5478. * src/PeerSessionResource.{cc, h}
  5479. * src/DefaultPeerStorage.{cc, h}
  5480. * src/BtNotInterestedMessage.cc
  5481. * src/DefaultBtMessageDispatcher.{cc, h}
  5482. * src/BtMessageDispatcher.h
  5483. * src/Peer.{cc, h}
  5484. * src/BtLeecherStateChoke.{cc, h}
  5485. * src/BtSetup.cc
  5486. * src/BtSeederStateChoke.{cc, h}
  5487. * src/PeerStorage.h
  5488. * test/MockPeerStorage.h
  5489. * test/MockBtMessageDispatcher.h
  5490. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Fixed compilation error on x84-64 platform.
  5492. * src/AuthConfig.cc: Included ostream.
  5493. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. Rewritten getBasename() and getDirname(), without standard library
  5495. basename(), dirname().
  5496. * src/File.cc
  5497. * test/FileTest.cc
  5498. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5499. Added Simplified Chinese translation. Also updated the following
  5500. translations: Polish, Dutch, German. Great thanks to all translators.
  5501. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Suppress content-range error when 'Content-Range' response header
  5503. doesn't contains bytes-unit specifier 'bytes'
  5504. * src/HttpHeader.cc (getRange)
  5505. * test/HttpHeaderTest.cc
  5506. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Fixed compilation error with g++-4.3
  5508. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Added missing include files for MinGW
  5510. * test/HttpHeaderProcessorTest.cc
  5511. * test/DHTRoutingTableSerializerTest.cc
  5512. * test/DHTRoutingTableDeserializerTest.cc
  5513. * test/UriListParserTest.cc
  5514. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Now download line is printed nicely with no garbage at the end of
  5516. line. I use ioctl to get the columns of terminal.
  5517. If stdout is redirected to another device, instead of carriage return,
  5518. end of line '\n' character is used. This is feature request#1909659
  5519. * src/ConsoleStatCalc.cc (calculateStat)
  5520. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Included a2time.h
  5522. * src/DHTMessageDispatcher.h
  5523. * src/DHTMessageEntry.h
  5524. * src/DHTReplaceNodeTask.h
  5525. * src/DHTMessageTracker.h
  5526. * src/Util.h
  5527. * src/CookieBox.h
  5528. * src/SocketCore.h
  5529. * src/DefaultBtMessageDispatcher.h
  5530. * src/SocketCore.cc
  5531. * src/Util.cc
  5532. * src/DHTPingTask.h
  5533. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Fixed high memory footprint when DHT is enabled.
  5535. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5536. queued than it is processed and the queue is getting longer. As a
  5537. consequence, momory usage is increased.
  5538. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5539. replacement cache in DHTBucket which is described in Kademlia paper.
  5540. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5541. DHTReplaceNodeTask.
  5542. * src/DHTBucket.{h, cc}
  5543. (cacheNode): New function.
  5544. (getCachedNodes): New function.
  5545. (dropNode): Push back cached node to _nodes.
  5546. * test/DHTBucketTest.cc
  5547. (testCacheNode): New test
  5548. (testDropNode): New test
  5549. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5551. the unused 4KB memory when ssl is not used.
  5552. * src/SocketCore.cc
  5553. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Added summary log for peer announce storage.
  5555. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5556. Removed cast
  5557. * src/DefaultPeerStorage.cc (addPeer)
  5558. Log exception message
  5559. * src/DHTMessageTracker.cc (handleTimeout)
  5560. Fixed casting
  5561. * test/HttpRequestTest.cc
  5562. * test/MetalinkProcessorTest.cc
  5563. * test/PieceTest.cc
  5564. * test/MetalinkEntryTest.cc
  5565. * test/SequenceTest.cc
  5566. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. * src/ParameterizedStringParser.cc (createLoop):
  5568. Removed unused variable sstep.
  5569. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5570. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. * src/Util.{h, cc}
  5572. (parseUInt): New function.
  5573. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5574. The actual range is uint32_t.
  5575. * test/UtilTest.cc
  5576. * src/ParameterizedStringParser.cc:
  5577. Use Util::parseUInt() for loop variables.
  5578. * test/ParameterizedStringParserTest.cc
  5579. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5580. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Rewritten the functions for binding port.
  5582. * src/DHTConnectionImpl.{h, cc}
  5583. * src/PeerListenCommand.{h, cc}
  5584. * src/DHTSetup.cc
  5585. * src/BtSetup.cc
  5586. * test/DHTConnectionImplTest.cc
  5587. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. type cleanup for allmost all remaining files.
  5589. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Type clarification
  5591. * src/PeerSessionResource.{h, cc}
  5592. * src/DefaultPieceStorage.{h, cc}
  5593. * src/Peer.{h, cc}
  5594. * test/PeerSessionResourceTest.cc
  5595. Use div function
  5596. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5597. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Type clarification
  5599. * src/DefaultPeerStorage.{h, cc}
  5600. * test/DefaultPeerStorageTest.cc
  5601. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Type clarification: size_t for length or size, uint64_t for file
  5603. length, off_t for file offset.
  5604. * src/DefaultBtProgressInfoFile.cc
  5605. * src/DefaultBtContext.{h, cc}
  5606. * src/DefaultBtInteractive.cc
  5607. * src/DownloadCommand.{h, cc}
  5608. * src/IteratableChunkChecksumValidator.{h, cc}
  5609. * src/SegmentMan.{h, cc}
  5610. * src/SingleFileDownloadContext.{h, cc}
  5611. * src/IteratableChecksumValidator.{h, cc}
  5612. * src/BtContext.h
  5613. * src/IteratableValidator.h
  5614. * src/DownloadContext.h
  5615. * test/SingleFileDownloadContextTest.cc
  5616. * test/DefaultBtContextTest.cc
  5617. * test/MockBtContext.h
  5618. * test/Metalink2RequestGroupTest.cc
  5619. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Type clarification: size_t for length or size, uint64_t for file
  5621. length, off_t for file offset.
  5622. * src/PiecedSegment.cc
  5623. * src/GrowSegment.h
  5624. * src/DefaultBtRequestFactory.h
  5625. * src/DefaultBtProgressInfoFile.cc
  5626. * src/UnknownLengthPieceStorage.h
  5627. * src/DefaultPieceStorage.cc
  5628. * src/UnknownLengthPieceStorage.cc
  5629. * src/DefaultBtInteractive.cc
  5630. * src/GrowSegment.cc
  5631. * src/BitfieldMan.h
  5632. * src/DownloadCommand.cc
  5633. * src/BtRequestFactory.h
  5634. * src/PiecedSegment.h
  5635. * src/DefaultPieceStorage.h
  5636. * src/Piece.cc
  5637. * src/DefaultBtRequestFactory.cc
  5638. * src/PieceStorage.h
  5639. * src/Segment.h
  5640. * src/Piece.h
  5641. * src/BitfieldMan.cc
  5642. * src/Util.cc
  5643. * test/DefaultBtProgressInfoFileTest.cc
  5644. * test/DefaultPieceStorageTest.cc
  5645. * test/MockPieceStorage.h
  5646. * test/BtRequestMessageTest.cc
  5647. * test/DefaultBtMessageDispatcherTest.cc
  5648. * test/BitfieldManTest.cc
  5649. * test/GrowSegmentTest.cc
  5650. * test/PieceTest.cc
  5651. * test/SegmentTest.cc
  5652. * test/SegmentManTest.cc
  5653. * test/DefaultBtRequestFactoryTest.cc
  5654. * test/MockBtRequestFactory.h
  5655. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Fixed compilation error with --disable-nls
  5657. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5658. in gettext.h causes the problem.
  5659. * src/common.h
  5660. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Removed subPiece related functions.
  5662. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5663. * src/DefaultPieceStorage.{h, cc}
  5664. * test/PieceTest.cc
  5665. * test/DefaultPieceStorageTest.cc
  5666. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Use unsigned char for data store.
  5668. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Bump up version number to 0.13.0+1
  5670. * configure.ac
  5671. * Release 0.13.0+1
  5672. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Changed inactive connection timeout to 120.
  5674. To accept more mulually interested peers, disconnect peer when there
  5675. is no interest between us after certain time passed.
  5676. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5677. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5679. when compiled with async DNS support.
  5680. * src/DownloadEngine.cc
  5681. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5682. value '10' will be a little bit short when some DNS servers are
  5683. offline and several DNS servers are tried. It should be configured
  5684. by command-line option.
  5685. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Merged Ross's mingw patch.
  5687. * src/DHTRoutingTableDeserializer.cc
  5688. * src/DHTRoutingTableSerializer.cc
  5689. * src/Platform.{h, cc}
  5690. * src/timegm.h
  5691. * src/gettimeofday.h
  5692. * src/getaddrinfo.h
  5693. * src/SocketCore.h
  5694. * src/common.h
  5695. * src/inet_aton.h
  5696. * src/DownloadEngine.h
  5697. * src/gai_strerror.h
  5698. * src/a2netcompat.h
  5699. * configure.ac
  5700. * configure
  5701. * aclocal.m4
  5702. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Included missing iostream.
  5704. * test/AllTest.cc
  5705. * test/BtDependencyTest.cc
  5706. * test/BtExtendedMessageTest.cc
  5707. * test/DHTConnectionImplTest.cc
  5708. * test/DHTMessageFactoryImplTest.cc
  5709. * test/DHTMessageTrackerEntryTest.cc
  5710. * test/DHTNodeTest.cc
  5711. * test/DHTRoutingTableSerializerTest.cc
  5712. * test/DefaultBtAnnounceTest.cc
  5713. * test/DefaultBtContextTest.cc
  5714. * test/DefaultBtMessageFactoryTest.cc
  5715. * test/DefaultExtensionMessageFactoryTest.cc
  5716. * test/HandshakeExtensionMessageTest.cc
  5717. * test/HttpResponseTest.cc
  5718. * test/MetalinkProcessorTest.cc
  5719. * test/MultiFileAllocationIteratorTest.cc
  5720. * test/SocketCoreTest.cc
  5721. * test/UTPexExtensionMessageTest.cc
  5722. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Reorganized includes.
  5724. * src/NameResolver.cc
  5725. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5726. Fixed compilation error without ares/c-ares
  5727. * src/NameResolver.h:
  5728. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Added a test for large file.
  5730. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5731. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Fixed the bug that file size is ignored if size > INT32_MAX
  5733. * src/SizeMetalinkParserState.cc (endElement):
  5734. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Bump up version number to 0.13.0
  5736. * configure.ac
  5737. * Release 0.13.0
  5738. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5739. Updated Makfefile.am to make 'make dist' work.
  5740. Now packaged filename is aria2c-VERSION.tar.bz2.
  5741. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5742. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5743. Large file support is now configured by configure script.
  5744. * configure.ac
  5745. Removed unsused source files
  5746. * src/
  5747. * test/
  5748. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5749. Peer.h and BtContext.h respectively.
  5750. * src/Peer.h
  5751. * src/BtContext.h
  5752. Updated translations.
  5753. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5754. translations. Great thanks to all translators!;)
  5755. * po/*.{po, gmo}
  5756. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5758. statically declared sha1 MessageDigestContext.
  5759. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5760. initialization of short-lived MessageDigestContext.
  5761. * src/MessageDigestHelper.{h, cc}
  5762. * src/main.cc
  5763. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5764. the initialization of MessageDigestContext every time in validating
  5765. chunk checksum.
  5766. * src/DownloadCommand.{h, cc}
  5767. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Add a file descriptor which connected to fast peer(latency<1500) to
  5769. select(). This change reduced CPU load.
  5770. * src/PeerInteractionCommand.cc
  5771. * src/DefaultBtInteractive.{h, cc}
  5772. * src/BtInteractive.h
  5773. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Fixed the previous insufficient fix for possible busy loop.
  5775. * src/MSEHandshake.cc (identifyHandshakeType)
  5776. Removed unused functions.
  5777. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5778. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Fixed possible busy loop if first 20 bytes are not received for a few
  5780. minutes.
  5781. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5782. * src/ReceiverMSEHandshakeCommand.cc
  5783. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Fixed compilation error
  5785. * src/ExpatMetalinkProcessor.cc
  5786. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5788. * src/DHTBucket.cc
  5789. Removed unnecessary cast.
  5790. * src/HandshakeExtensionMessage.cc
  5791. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5793. is missing.
  5794. * src/OptionHandlerFactory.cc
  5795. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Fixed the bug that HAVE message is not sent for a piece they are
  5797. downloaded fom http/ftp server before any BitTorrent handshake is done
  5798. with peers.
  5799. * src/DefaultBtInteractive.cc
  5800. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5802. * src/Makefile.am
  5803. * src/Makefile.in
  5804. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Updated README. Added html version of README and man page.
  5806. * README
  5807. * README.html
  5808. * readme2html: Shell script to generate README.html from README using
  5809. asciidoc.
  5810. * doc/aria2c.1.html
  5811. * doc/makeman: Added the line to generate aria2c.1.html
  5812. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Fixed offset calculation.
  5814. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5815. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Rewritten itos and uitos using template. llitos and ullitos are
  5817. replaced with itos and uitos respectively.
  5818. * src/Util.{h, cc}
  5819. * test/UtilTest.cc
  5820. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5822. of the number of bytes required for storing public key and shared
  5823. secret.
  5824. * src/LibgcryptDHKeyExchange.h
  5825. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5826. * src/MSEHandshake.cc
  5827. * test/DHKeyExchangeTest.cc
  5828. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Removed since they are not used.
  5830. * src/Xml2MetalinkProcessor.{h, cc}
  5831. * src/Socket.cc
  5832. * src/SegmentSplitter.{h, cc}
  5833. * test/Xml2MetalinkProcessorTest.cc
  5834. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Fixed the bug that prevents aria2 from stopping other than by pressing
  5836. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5837. option. aria2 doesn't stop even after --seed-time is satisfied and
  5838. continues to output blank lines in the console.
  5839. * src/ReceiverMSEHandshakeCommand.cc
  5840. * src/PeerReceiveHandshakeCommand.cc
  5841. * src/PeerListenCommand.cc
  5842. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Bump up version number to 0.13.0rc
  5844. * configure.ac
  5845. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Updated man page and some usage text.
  5847. * doc/aria2c.1.txt
  5848. * src/usage_text.h
  5849. * po/*.{po, gmo}
  5850. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Updated translations. Added Finnish and Hebrew translations.
  5852. Great thanks to all translators!
  5853. * po/*.{po, gmo}
  5854. * po/LINGUAS
  5855. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Log more detailed information about each message.
  5857. * src/DHTQueryMessage.{h, cc}
  5858. * src/DHTGetPeersMessage.{h, cc}
  5859. * src/DHTFindNodeReplyMessage.{h, cc}
  5860. * src/DHTGetPeersReplyMessage.{h, cc}
  5861. * src/DHTAnnouncePeerMessage.{h, cc}
  5862. * src/DHTResponseMessage.{h, cc}
  5863. * src/DHTFindNodeMessage.{h, cc}
  5864. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5865. Use constants defined in prefs.h
  5866. * src/option_processing.cc
  5867. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5869. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Make room for future enchancements for IPv6 addresses.
  5871. Bump up version number of dht.dat file format to 2.
  5872. Not compatible with previous version.
  5873. * src/DHTRoutingTableSerializer.cc
  5874. * src/DHTRoutingTableDeserializer.cc
  5875. * test/DHTRoutingTableSerializerTest.cc
  5876. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Added handling for the return values from
  5878. PeerMessageUtil::createcompact().
  5879. * src/DefaultBtContext.cc (computeFastSet):
  5880. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Fixed abort when peer's ip address is IPv4-mapped address.
  5882. * src/DefaultBtContext.cc (computeFastSet)
  5883. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5884. cannot handle IPv4-mapped addresses.
  5885. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5886. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Proper return value handling for OpenSSL functions.
  5888. * src/LibsslDHKeyExchange.h
  5889. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Random bytes generation using libgcrypt and OpenSSL.
  5891. * src/DHTUtil.{h, cc}
  5892. * test/DHTUtilTest.cc
  5893. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5895. received.
  5896. * src/DHTMessageReceiver.cc (receiveMessage)
  5897. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Fixed the bug that a return code is always 0. BUG#1897704
  5899. If error occurred during the download or there exist unfinished
  5900. downloads, aria2 returns with code 1.
  5901. * src/RequestGroupMan.{h, cc}
  5902. * src/MultiUrlRequestInfo.{h, cc}
  5903. * src/main.cc
  5904. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. IPv6 support for SocketCore class.
  5906. TODO: In SocketCore::establishConnection(), this is insufficient to
  5907. determin the failure of connect() here because the socket is
  5908. non-blocking state. The next addresses should be tried after select().
  5909. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5910. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5911. instead which address family independent.
  5912. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5913. information in a compact peer format which is for IPv4 only.
  5914. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5915. this is a spec of BitTorrent protocol.
  5916. * src/SocketCore.{h, cc}
  5917. * src/PeerMessageUtil.cc
  5918. * test/SocketCoreTest.cc
  5919. * test/PeerMessageUtilTest.cc
  5920. * test/DHTConnectionImplTest.cc
  5921. Handle IPv4-mapped addresses.
  5922. * src/DHTNode.cc: Now identity is determined by node id.
  5923. * src/DHTMessageTrackerEntry.cc
  5924. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5925. should handle it.
  5926. * src/DHTRoutingTableDeserializer.cc
  5927. * src/DHTMessageFactoryImpl.cc
  5928. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Change the unit of --stop option from a minute to a second.
  5930. * src/usage_text.h
  5931. * src/DownloadEngineFactory.cc
  5932. * src/OptionHandlerFactory.cc
  5933. * src/message.h
  5934. * src/TimedHaltCommand.cc
  5935. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Make listening socket non-block mode.
  5937. * src/FtpConnection.cc
  5938. * src/FtpNegotiationCommand.{h, cc}
  5939. * src/PeerListenCommand.cc
  5940. Fixed the bug that cause slow ftp negotiation.
  5941. * src/FtpNegotiationCommand.{h, cc}
  5942. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Added basic tag to --enable-dht, --dht-listen-port option.
  5944. * src/HelpItemFactory.cc (createHelpItems)
  5945. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5946. Updated text.
  5947. * src/usage_text.h
  5948. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5950. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Determin _threadtholdSpeed in each constructor for
  5952. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5953. * src/ActivePeerConnectionCommand.{h, cc}
  5954. * src/PeerReceiveHandshakeCommand.{h, cc}
  5955. * src/BtSetup.cc
  5956. * src/BtConstants.h
  5957. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Added --bt-min-crypto-level and --bt-require-crypto options.
  5959. * src/OptionHandlerFactory.cc
  5960. * src/MSEHandshake.cc
  5961. * src/HelpItemFactory.cc
  5962. * src/option_processing.cc
  5963. * src/ReceiverMSEHandshakeCommand.cc
  5964. * src/prefs.h
  5965. * src/DefaultBtAnnounce.cc
  5966. * src/InitiatorMSEHandshakeCommand.cc
  5967. * src/usage_text.h
  5968. * test/MSEHandshakeTest.cc
  5969. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Bump version number to 0.13.0b
  5971. * configure.ac
  5972. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Updated doc.
  5974. * src/MessageDigestHelper.h:
  5975. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Use raw message digest as a token instead of its hexadecimal
  5977. representation.
  5978. * src/DHTTokenTracker.cc (generateToken)
  5979. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Added Message Stream Encryption(MSE) support.
  5981. Currently, aria2 accepts incoming connections with Obfuscation Header
  5982. and legacy BitTorrent Header and establishes connections with
  5983. Obfuscation Header first and if failed then retry with legacy
  5984. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5985. choose ARC4. The new option to change the default behavior is planned.
  5986. For tracker extension, "supportcrypto=1" is added statically.
  5987. * src/PeerInitiateConnectionCommand.{h, cc}
  5988. * src/PeerConnection.{h, cc}
  5989. * src/HandleRegistry.h
  5990. * src/SocketCore.h
  5991. * src/PeerReceiveHandshakeCommand.{h, cc}
  5992. * src/BtRegistry.{h, cc}
  5993. * src/PeerListenCommand.cc
  5994. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5995. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5996. * src/MSEHandshake.{h, cc}
  5997. * src/ARC4Encryptor.h
  5998. * src/ARC4Decryptor.h
  5999. * src/LibgcryptARC4Encryptor.h
  6000. * src/LibgcryptARC4Decryptor.h
  6001. * src/LibgcryptARC4Context.h
  6002. * src/LibsslARC4Encryptor.h
  6003. * src/LibsslARC4Decryptor.h
  6004. * src/LibsslARC4Context.h
  6005. * src/DHKeyExchange.h
  6006. * src/LibgcryptDHKeyExchange.h
  6007. * src/LibsslDHKeyExchange.h
  6008. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6009. * test/DefaultBtAnnounceTest.cc
  6010. * test/ARC4Test.cc
  6011. * test/DHKeyExchangeTest.cc
  6012. Removed prepareForRetry() because it is not used.
  6013. * src/PeerAbstractCommand.{h, cc}
  6014. * src/PeerInteractionCommand.{h, cc}
  6015. * src/PeerInitiateConnectionCommand.{h, cc}
  6016. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Added the ability to load nodes from torrent file. These nodes are
  6018. added to the routing table when downloading that torrent.
  6019. * src/BtContext.h
  6020. * src/DefaultBtContext.{h, cc}
  6021. * src/DHTSetup.cc
  6022. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6023. hostname and port pair, and resolves all of them.
  6024. * src/NameResolver.{h, cc}: Added reset().
  6025. * src/RequestGroup.cc
  6026. * test/DefaultBtContextTest.cc
  6027. * test/MockBtContext.h
  6028. Removed assert() from DefaultBtContext and throw exception instead.
  6029. * src/DefaultBtContext.cc
  6030. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6031. Fixed segmentation fault bug when exiting if dht is disabled.
  6032. * src/RequestGroup.cc
  6033. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Fixed typo in log message and define the message in message.h
  6035. * src/TimedHaltCommand.cc
  6036. * src/message.h
  6037. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Included RecoverableException.h to fix compilation error.
  6039. * test/DHTMessageFactoryImplTest.cc
  6040. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6041. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6042. * test/DHTPingMessageTest.cc
  6043. * test/DHTGetPeersMessageTest.cc
  6044. * test/DHTFindNodeMessageTest.cc
  6045. * test/DHTAnnouncePeerMessageTest.cc
  6046. * test/MockDHTMessage.h
  6047. * test/MockDHTMessageFactory.h
  6048. * test/MockDHTMessageDispatcher.h: New class.
  6049. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6051. virtual.
  6052. * src/DHTMessageDispatcher.h
  6053. * src/DHTMessageDispatcherImpl.{h, cc}
  6054. * src/DHTSetup.cc
  6055. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Adding handling of DHT error message. Just log error message and
  6057. throw exception.
  6058. * src/DHTMessageFactoryImpl.cc
  6059. * test/DHTMessageFactoryImplTest.cc
  6060. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Added handling of dynamic cast failure.
  6062. * src/DHTNodeLookupTask.cc
  6063. * src/DHTPeerLookupTask.cc
  6064. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Added the ability to stop aria2 itself when given time has passed
  6066. from start. Use --stop option to specify time in minutes.
  6067. When 0 is given, this feature is disabled.
  6068. * src/OptionHandlerFactory.cc
  6069. * src/TimeBasedCommand.h: Make _interval protected scope.
  6070. * src/HelpItemFactory.cc
  6071. * src/option_processing.cc
  6072. * src/prefs.h
  6073. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6074. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6075. Without this modification, the result list shows "ERR" when aria2 is
  6076. stopped by --stop option. It should be "INPR".
  6077. * src/DownloadEngine.{h, cc}
  6078. * src/DownloadEngineFactory.cc
  6079. * src/usage_text.h
  6080. * src/TimedHaltCommand.{h, cc}: New class.
  6081. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Bootstrap through node added by port message.
  6083. Currently bootstrap is executed if the number of buckets in routing
  6084. table is 1.
  6085. * src/BtPortMessage.{h, cc}
  6086. * src/DefaultBtMessageFactory.{h, cc}
  6087. * src/PeerInteractionCommand.cc
  6088. * test/BtPortMessageTest.cc
  6089. * test/MockDHTTask.h
  6090. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Extract the Peer class's member variables, which are only needed after
  6092. PeerInteractionCommand, into PeerSessionResource class.
  6093. This class is instantiated in PeerInteractionCommand class's ctor and
  6094. released in its dtor.
  6095. This will make Peer class lightweight and uses less memory for peers
  6096. which are not connected and wait in the queue.
  6097. * src/PeerChokeCommand.cc
  6098. * src/PeerSessionResource.{h, cc}
  6099. * src/PeerInteractionCommand.cc
  6100. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6101. * src/DefaultBtInteractive.cc
  6102. * src/BtPieceMessage.cc
  6103. * src/BtInterestedMessage.cc
  6104. * src/BtUnchokeMessage.cc
  6105. * src/DefaultPeerStorage.{h, cc}
  6106. * src/PeerInitiateConnectionCommand.cc
  6107. * src/ActivePeerConnectionCommand.cc
  6108. * src/BtNotInterestedMessage.cc
  6109. * src/DefaultBtMessageDispatcher.cc
  6110. * src/BtChokeMessage.cc
  6111. * src/BtRequestMessage.cc
  6112. * src/Peer.{h, cc}
  6113. * src/BtRegistry.h
  6114. * src/TrackerWatcherCommand.cc
  6115. * src/PeerReceiveHandshakeCommand.cc
  6116. * test/BtExtendedMessageTest.cc
  6117. * test/BtAllowedFastMessageTest.cc
  6118. * test/BtCancelMessageTest.cc
  6119. * test/DefaultPieceStorageTest.cc
  6120. * test/BtBitfieldMessageTest.cc
  6121. * test/BtHaveMessageTest.cc
  6122. * test/BtNotInterestedMessageTest.cc
  6123. * test/BtRequestMessageTest.cc
  6124. * test/PeerSessionResourceTest.cc
  6125. * test/DefaultBtMessageDispatcherTest.cc
  6126. * test/PeerTest.cc
  6127. * test/BtInterestedMessageTest.cc
  6128. * test/BtRejectMessageTest.cc
  6129. * test/BtChokeMessageTest.cc
  6130. * test/DefaultPeerStorageTest.cc
  6131. * test/BtHaveNoneMessageTest.cc
  6132. * test/BtHaveAllMessageTest.cc
  6133. * test/DefaultExtensionMessageFactoryTest.cc
  6134. * test/BtUnchokeMessageTest.cc
  6135. * test/DefaultBtMessageFactoryTest.cc
  6136. * test/HandshakeExtensionMessageTest.cc
  6137. * test/UTPexExtensionMessageTest.cc
  6138. * test/DefaultBtRequestFactoryTest.cc
  6139. * test/BtPieceMessageTest.cc
  6140. Removed typedef PeerStats.
  6141. * src/PeerStat.h
  6142. * src/SegmentMan.cc
  6143. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6144. Added std namespace to copy, remove_copy, back_inserter,
  6145. front_inserter.
  6146. * src/RequestGroupMan.cc
  6147. * src/DefaultPieceStorage.cc
  6148. * src/StreamFileAllocationEntry.cc
  6149. * src/BtFileAllocationEntry.cc
  6150. * src/RequestGroup.cc
  6151. * src/MetalinkEntry.cc
  6152. * src/DelegatingPeerListProcessor.cc
  6153. * src/DefaultBtRequestFactory.cc
  6154. * src/DefaultBtMessageDispatcher.cc
  6155. * src/version_usage.cc: Included <algorithm>
  6156. * src/main.cc
  6157. * src/MetalinkParserController.cc
  6158. * src/DefaultBtContext.cc
  6159. * src/DownloadEngineFactory.cc
  6160. * src/a2algo.h
  6161. Removed.
  6162. * test/StreamUriListParserTest.cc
  6163. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6165. ActivePeerConnectionCommand when it is given and
  6166. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6167. * src/ActivePeerConnectionCommand.{h, cc}
  6168. * src/BtSetup.cc
  6169. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6170. Only add socket to DownloadEngine's select routine when peer or
  6171. localhost is unchoked and interested. This lowers CPU usage a
  6172. little bit.
  6173. * src/PeerInteractionCommand.cc
  6174. * src/PeerAbstractCommand.{h, cc}
  6175. * src/BtInteractive.h
  6176. * src/DefaultBtInteractive.{h, cc}
  6177. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Revert previous change because get_peers message is needed for
  6179. announce_peer anyway.
  6180. * src/DHTGetPeersCommand.cc
  6181. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Request peers thought DHT only when download hasn't finished.
  6183. * src/DHTGetPeersCommand.cc
  6184. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6186. * src/DHTBucketRefreshTask.{h, cc}
  6187. * src/DHTSetup.cc
  6188. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6190. standard classes.
  6191. Included string.h where mem* function are used.
  6192. Added namespace aria2.
  6193. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Create directory before saving DHT routing table.
  6195. Now ios::failure is now handled properly.
  6196. * src/DHTAutoSaveCommand.cc
  6197. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Removed unnecessary cerr.
  6199. * src/DownloadEngine.cc
  6200. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Catch exception inside DHTMessageReceiver::receiveMessage().
  6202. Log unknown message.
  6203. * src/DHTMessageReceiver.{h, cc}
  6204. * src/DHTMessageFactory.h
  6205. * src/DHTMessageFactoryImpl.{h, cc}
  6206. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6207. * src/DHTInteractionCommand.cc
  6208. * src/DHTUnknownMessage.{h, cc}
  6209. * test/DHTUnknownMessageTest.cc
  6210. * test/MockDHTMessageFactory.h
  6211. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Commented out ip address comparison because a host can have multiple
  6213. ip addresses and it is hard to predict the hostname is resolved into
  6214. which one.
  6215. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6216. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. * po/Makefile.in: Removed since this is generated by configure.
  6218. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Fixed compiler warning about redefinition of SIZE_MAX.
  6220. Use common.h instead of config.h directly here.
  6221. * src/Platform.{h, cc}
  6222. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6223. here.
  6224. * common.h
  6225. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6226. Updated gettext related files.
  6227. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6228. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6229. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Added DHT functionality, compatible with mainline.
  6231. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6232. You may need to specify entry point to DHT network using
  6233. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6234. Use --dht-listen-port to specify port number. Make sure that your
  6235. firewall configuration can pass through UDP traffic to the port.
  6236. The routing table is saved in $HOME/.aria2/dht.dat.
  6237. * src/DHT*
  6238. * src/BNode.{h, cc}
  6239. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6240. particular torrent.
  6241. * src/Data.cc: Rewritten ctor.
  6242. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6243. --dht-entry-point.
  6244. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6245. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6246. ends, remove BtContext from DHTPeerAnnounceStorage.
  6247. * src/BtPortMessage.{h, cc}: Rewritten.
  6248. * src/message.h
  6249. * src/OptionHandlerImpl.cc
  6250. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6251. --dht-entry-point.
  6252. * src/Dictionary.{h, cc} (remove): New function.
  6253. * src/prefs.h
  6254. * src/DefaultBtMessageFactory.h
  6255. * src/BtHandshakeMessage.cc
  6256. * src/ActivePeerConnectionCommand.cc
  6257. * src/SocketCore.{h, cc}: Added datagram socket support.
  6258. * src/DefaultBtMessageFactory.cc
  6259. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6260. Create DHT commands.
  6261. * src/BtMessageFactory.h
  6262. * src/PeerMessageUtil.{h, cc}
  6263. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Fixed the bug that log file is not written when configuration file doesn't exist.
  6265. This is caused by using Logger class before LogFactory is not configured.
  6266. BUG #1875079
  6267. * src/option_processing.cc
  6268. Warning message "configuration doesn't exist" is only printed when --conf is
  6269. given.
  6270. * src/option_processing.cc
  6271. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6273. ShaVisitor is now deprecated and slated to be removed.
  6274. * src/DefaultBtContext.cc
  6275. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Externalize message to message.h
  6277. * src/Platform.cc
  6278. * src/message.h
  6279. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Set default domain and default path to cookie.
  6281. * src/HttpResponse.cc
  6282. * src/CookieBox.{h, cc}
  6283. * src/CookieParser.{h, cc}
  6284. * test/CookieParserTest.cc
  6285. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Added --no-conf and --conf-path command-line option.
  6287. --no-conf option disables loading aria2.conf file.
  6288. --conf-path option changes the configuration file path. The default
  6289. file path is $HOME/.aria2/aria2.conf
  6290. Added a warning message when the configuration file is not found.
  6291. * src/HelpItemFactory.cc
  6292. * src/option_processing.cc
  6293. * src/prefs.h
  6294. * src/usage_text.h
  6295. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Added the message to inform users that other help categories are
  6297. available in -h option.
  6298. * src/version_usage.cc
  6299. * src/TagContainer.{h, cc}
  6300. * test/TagContainerTest.cc
  6301. * src/TaggedItem.{h, cc}
  6302. * test/TaggedItemTest.cc
  6303. * src/HelpItem.h
  6304. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6306. from PiecedSegment's ctor.
  6307. Previously Piece::getAllMissingBlockIndexes() is called from
  6308. PiecedSegment() but it is rather expensive since only first element is
  6309. used.
  6310. * src/PiecedSegment.cc
  6311. * src/Piece.{h, cc}
  6312. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6314. each time these functions are called.
  6315. * src/BitfieldMan.{h, cc}
  6316. * test/BitfieldManTest.cc
  6317. * src/array_fun.h
  6318. * test/array_funTest.cc
  6319. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6320. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6321. filtered. Removed unnecessary cast to int32_t.
  6322. * src/BitfieldMan.{h, cc}
  6323. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6325. payload length(4bytes) are received. This happens because lenbufLength
  6326. is not updated in this particular case and successive call of
  6327. receiveMessage() overwrites payload length with bytes recieved which
  6328. are payload body.
  6329. * src/PeerConnection.{h, cc}
  6330. * src/message.h
  6331. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6333. peer if there are peers that have same ipaddr and port.
  6334. I've experiened segmentation fault and "pure virtual function was
  6335. called" error.
  6336. * src/Peer.h
  6337. * test/PeerTest.cc
  6338. * src/DefaultPeerStorage.cc
  6339. * test/DefaultPeerStorageTest.cc
  6340. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Removed a call to isPowerOf() because it is no longer necessary here
  6342. and a request block is not always power of 2.
  6343. BUG#1866924
  6344. * src/PeerMessageUtil.cc (checkLength)
  6345. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Fixed the bug that always first found Segment is removed from
  6347. usedSegmentEntries. Removed unused functions.
  6348. * src/SegmentMan.{h, cc}
  6349. * test/SegmentManTest.cc
  6350. Fixed the bug that ServerHost is not removed.
  6351. * src/RequestGroup.cc
  6352. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Fixed the bug that SegmentMan::completeSegment() is not called
  6354. even if Segment is complete when --lowest-speed-limit is enabled.
  6355. BUG#1864525
  6356. * src/DownloadCommand.{h, cc}
  6357. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Fixed: hash algorithm 'sha1' is always used.
  6359. * src/DownloadCommand.cc (validatePieceHash)
  6360. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Added --enable-peer-exchange command-line option.
  6362. * src/OptionHandlerFactory.cc
  6363. * src/HelpItemFactory.cc
  6364. * src/option_processing.cc
  6365. * src/usage_text.h
  6366. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Move extension from BtRuntime to ExtensionMessageFactory, because
  6368. extension can be specified per peer, not per torrent.
  6369. * src/DefaultBtInteractive.cc
  6370. * src/BtRuntime.h
  6371. * src/ExtendedMessagingAware.h
  6372. * src/ExtensionMessageFactory.h
  6373. * src/DefaultExtensionMessageFactory.cc
  6374. * test/DefaultExtensionMessageFactoryTest.cc
  6375. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Added categorized option help. Specify category using --help option.
  6377. Also added the ability to search options in forward match.
  6378. * src/HelpItem.{h, cc}
  6379. * test/HelpItemTest.cc
  6380. * src/HelpItemFactory.{h, cc}
  6381. * src/TagContainer.{h, cc}
  6382. * test/TagContainerTest.cc
  6383. * src/option_processing.cc
  6384. * src/prefs.h
  6385. * src/TaggedItem.{h, cc}
  6386. * test/TaggedItemTest.cc
  6387. * src/version_usage.cc
  6388. * src/help_tags.h
  6389. * src/usage_text.h
  6390. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Fixed segmentation fault when bad torrent metainfo is parsed.
  6392. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6393. and then throw exception or skip it.
  6394. * src/DefaultBtContext.{h, cc}
  6395. * test/DefaultBtContextTest.cc
  6396. * src/AnnounceList.cc
  6397. * src/CompactPeerListProcessor.cc
  6398. * src/message.h
  6399. * src/DefaultBtAnnounce.{h, cc}
  6400. * test/DefaultBtAnnounceTest.cc
  6401. * src/BencodeVisitor.cc
  6402. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Added missing "B"(=Byte). So now the message looks like this:
  6404. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6405. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6406. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Show the seed ratio after torrent downloads.
  6408. For example, after torrent download completed and --seed-time and
  6409. --seed-ratio conditions are fulfilled, following message is printed
  6410. right after "Download complete: .....":
  6411. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6412. * src/RequestGroupMan.cc
  6413. * src/RequestGroup.{h, cc}
  6414. * src/message.h
  6415. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Remove a defunct control file. A defunct control file means that while
  6417. it exists, but the corresponding download file is missing.
  6418. After its removal, a download restarts from the beginning.
  6419. * src/RequestGroup.cc
  6420. * src/message.h
  6421. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Allocate bitfield in Peer when it is really used. More specifically,
  6423. bitfield in Peer is allocated after the connection is established and
  6424. deallocated when the connection is dropped.
  6425. Since 2 parameters(piece length and total length) was removed from the
  6426. constructor of Peer class, many test classes were modified accordingly.
  6427. See svn log for more detailed information.
  6428. * src/PeerInteractionCommand.cc
  6429. * src/CompactPeerListProcessor.cc
  6430. * src/Peer.cc
  6431. * src/DefaultPeerListProcessor.cc
  6432. * src/PeerListenCommand.cc
  6433. * src/PeerReceiveHandshakeCommand.cc
  6434. Fixed memory leak
  6435. * src/Piece.cc
  6436. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6438. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6439. command-line options.
  6440. * src/option_processing.cc
  6441. * src/ActivePeerConnectionCommand.cc
  6442. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Send have message to peer if it already has the piece.
  6444. * src/BtHaveMessage.{h, cc}
  6445. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6447. port.
  6448. * src/DefaultPeerStorage.{h, cc}
  6449. * test/DefaultPeerStorageTest.cc
  6450. * src/HandshakeExtensionMessage.cc
  6451. * test/HandshakeExtensionMessageTest.cc
  6452. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6453. * src/PeerStorage.h
  6454. * test/MockPeerStorage.h
  6455. * src/PeerListenCommand.cc
  6456. * src/PeerReceiveHandshakeCommand.cc
  6457. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Added --metalink-enable-unique-protocol option.
  6459. * src/Metalink2RequestGroup.cc
  6460. * src/option_processing.cc
  6461. * src/prefs.h
  6462. * src/version_usage.cc
  6463. * doc/aria2c.1.txt
  6464. * doc/aria2c.1
  6465. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Allow a peer in incomingPeer to be added peers.
  6467. * src/DefaultPeerStorage.cc
  6468. * test/DefaultPeerStorageTest.cc
  6469. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6471. I could reproduce this bug in following procedure:
  6472. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6473. 2. Restart aria2.
  6474. 3. You see the download stopped around 99%.
  6475. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6476. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6477. If timeout is reached, then _nextCommand is unused and it may contains
  6478. segments and they won't be canceled. Actually, timeout is not needed
  6479. here because if the server dropped connection, then retry is made.
  6480. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Added uTorrent compatible Peer Exchange.
  6482. * src/BencodeVisitor.{h, cc}
  6483. * test/BencodeVisitorTest.cc
  6484. * src/BtConstants.h
  6485. * src/BtContext.h: Added 'private' flag.
  6486. * src/BtExtendedMessage.{h, cc}
  6487. * test/BtExtendedMessageTest.cc
  6488. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6489. reserved field.
  6490. * test/BtHandshakeMessageTest.cc
  6491. * src/BtMessageFactory.h
  6492. * src/BtRegistry.h
  6493. * src/BtRuntime.h: This class holds default extension message IDs for
  6494. aria2. By default, aria2 uses ID 8 for ut_pex.
  6495. * src/DefaultBtContext.cc
  6496. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6497. When it is true, aria2 enables ut_pex. This value is set by
  6498. PeerInteractionCommand.
  6499. * src/DefaultBtMessageFactory.{h, cc}
  6500. * test/DefaultBtMessageFactoryTest.cc
  6501. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6502. handling to DefaultBtInteractive class.
  6503. * src/DefaultExtensionMessageFactory.{h, cc}
  6504. * test/DefaultExtensionMessageFactoryTest.cc
  6505. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6506. the container(peers and incomingPeers. The equality is determined by
  6507. Peer::id).
  6508. * test/DefaultPeerStorageTest.cc
  6509. * src/ExtensionMessage.h
  6510. * test/MockExtensionMessage.h
  6511. * src/ExtensionMessageFactory.h
  6512. * test/MockExtensionMessageFactory.h
  6513. * src/HandshakeExtensionMessage.{h, cc}
  6514. * test/HandshakeExtensionMessageTest.cc
  6515. * src/MetaEntry.h
  6516. * src/Peer.{h, cc}
  6517. * src/PeerInteractionCommand.cc
  6518. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6519. addIncomingPeer.
  6520. * src/PeerMessageUtil.{h, cc}
  6521. * src/PeerObject.h
  6522. * src/UTPexExtensionMessage.{h, cc}
  6523. * test/UTPexExtensionMessageTest.cc
  6524. * src/message.h
  6525. * src/prefs.h
  6526. Fixed the bug that returns incomplete data when it contains null
  6527. character. A convenient constructor was also added.
  6528. * src/Data.{h, cc}
  6529. Rewritten.
  6530. * src/CompactPeerListProcessor.cc
  6531. Fixed typos.
  6532. * src/message.h
  6533. * src/MetaFileUtil.cc
  6534. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Added "Status Legend" label to the explanation text of 'stat' in
  6536. download result and moved it to the last. BUG#1848214
  6537. * src/RequestGroupMan.cc
  6538. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6540. * src/Makefie.am
  6541. * test/Makefile.am
  6542. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Fixed the bug that prevents aria2 from loading cookie file when expire
  6544. value is greater than 2^31-1. BUG#1851066
  6545. * src/CookieBoxFactory.cc
  6546. * test/CookieBoxFactoryTest.cc
  6547. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Fixed possible memory leak when an exception is thrown.
  6549. * src/XML2SAXMetalinkProcessor.cc
  6550. Added Expat support. If both libxml2 and Expat are installed, then
  6551. libxml2 is used by default.
  6552. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6553. ExpatMetalinkProcessor according to the configuration.
  6554. * src/ExpatMetalinkProcessor.{h, cc}
  6555. * src/main.cc: Removed libxml2 specific header and init/free function.
  6556. * src/MetalinkProcessorFactory.{h, cc}
  6557. * src/MetalinkHelper.cc
  6558. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6559. * src/MetalinkProcessor.h
  6560. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6561. MetalinkProcessorTest is used instead.
  6562. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6563. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6564. MetalinkProcessorFactory::newInstance().
  6565. * m4/libexpat.m4
  6566. * configure.ac: Added configuration options for libexpat.
  6567. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Disabled -s option in metalink download.
  6569. * src/Metalink2RequestGroup.cc
  6570. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. If several protocols are available for a mirror in metalink file,
  6572. aria2 now use one of them. --metalink-preferred-protocol option was
  6573. added to specify the preference of protocol.
  6574. * src/AbstractCommand.cc
  6575. * src/OptionHandlerFactory.cc
  6576. * src/ServerHost.{h, cc}
  6577. * src/Metalink2RequestGroup.cc
  6578. * src/RequestGroup.{h, cc}
  6579. * test/RequestGroupTest.cc
  6580. * src/option_processing.cc
  6581. * src/prefs.h
  6582. * src/HttpResponseCommand.cc
  6583. * src/MetalinkResource.{h, cc}
  6584. * src/FtpNegotiationCommand.cc
  6585. * src/MetalinkEntry.{h, cc}
  6586. * src/MetalinkEntryTest.cc
  6587. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Code cleanup and added debug log.
  6589. * src/PeerConnection.cc
  6590. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Compiler error fix: applied the patch by Tiziano Mueller
  6592. * src/RequestGroup.cc
  6593. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6595. in stopped and completed event.
  6596. * src/AnnounceList.{h, cc}
  6597. * test/AnnounceListTest.cc
  6598. * src/DefaultBtAnnounce.cc
  6599. * test/DefaultBtAnnounceTest.cc
  6600. Sorted URLs.
  6601. * test/Metalink2RequestGroupTest.cc
  6602. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Removed unnecessary string copy. Updated doc and corrected indentation.
  6604. * src/Base64.cc
  6605. Fixed compilation warnings
  6606. * test/DataTest.cc
  6607. * test/HttpRequestTest.cc
  6608. * test/MetaFileUtilTest.cc
  6609. * test/RequestTest.cc
  6610. * Release 0.12.0
  6611. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Updated translations
  6613. * po/{de,fr,ja,nl,ru}.po
  6614. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6615. translations. Many thanks to translators.
  6616. * po/{ca,es,it,pt_BR,sv}.po
  6617. * po/LINGUAS
  6618. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Added a notice about URL
  6620. * src/version_usage.cc
  6621. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6622. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6623. aria2 repeatedly sends stopped request when tracker returns error code.
  6624. * src/AnnounceList.cc
  6625. * test/AnnounceListTest.cc
  6626. * src/AnnounceTier.h
  6627. Added a message when ctrl-c is hit.
  6628. Now second ctrl-c is also handled in signal handler.
  6629. * src/RequestGroupMan.{h, cc}
  6630. * src/RequestGroup.{h, cc}
  6631. * src/MultiUrlRequestInfo.cc
  6632. * src/DownloadEngine.cc
  6633. * src/TrackerWatcherCommand.cc
  6634. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Code cleanup
  6636. * src/Base64.cc (encode)
  6637. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Changed Direct/IO enable/disable procesure in file allocation routine.
  6639. * src/SingleFileAllocationIterator.cc
  6640. (SingleFileAllocationIterator):
  6641. Disable directIO if offset is not multiple of 512.
  6642. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6643. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6644. Enable created SingleFileAllocationIterator's directIO.
  6645. * src/FileAllocationEntry.cc
  6646. (FileAllocationEntry): Enable directIO here.
  6647. (~FileAllocationEntry): Disable directIO here.
  6648. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6650. * src/Peer.{h, cc}
  6651. * src/DefaultPieceStorage.cc
  6652. * test/DefaultPieceStorageTest.cc
  6653. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Rewritten direct I/O support routine
  6655. * src/SingleFileAllocationIterator.cc
  6656. * src/MultiDiskAdaptor.{h, cc}
  6657. * src/ByteArrayDiskWriter.h
  6658. * src/AbstractSingleDiskAdaptor.h
  6659. * src/AbstractDiskWriter.cc
  6660. * src/DefaultPieceStorage.cc
  6661. * src/DiskWriter.h
  6662. * src/BinaryStream.h
  6663. * src/IteratableChunkChecksumValidator.cc
  6664. * src/IteratableChecksumValidator.cc
  6665. * src/CheckIntegrityEntry.cc
  6666. * src/FileAllocationEntry.cc
  6667. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed typo
  6669. * src/version_usage.cc
  6670. Updated doc
  6671. * doc/aria2c.1.txt
  6672. * doc/aria2c.1
  6673. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Fixed compile error without message digest support.
  6675. * src/FileMetalinkParserState.cc
  6676. * src/MetalinkParserController.{h, cc}
  6677. * test/XML2SAXMetalinkProcessorTest.cc
  6678. * test/MetalinkParserControllerTest.cc
  6679. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Enable direct I/O support in checksum checking.
  6681. * src/IteratableChunkChecksumValidator.{h, cc}
  6682. * test/IteratableChunkChecksumValidatorTest.cc
  6683. * src/CheckIntegrityEntry.cc
  6684. * src/PieceHashCheckIntegrityEntry.cc
  6685. * src/IteratableChecksumValidator.{h, cc}
  6686. * src/BtCheckIntegrityEntry.cc: Added doc.
  6687. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6688. Added --allow-piece-length-change option.
  6689. * src/DefaultBtProgressInfoFile.cc
  6690. * test/DefaultBtProgressInfoFileTest.cc
  6691. * src/OptionHandlerFactory.cc
  6692. * src/option_processing.cc
  6693. * src/prefs.h
  6694. * src/version_usage.cc
  6695. * doc/aria2c.1.txt
  6696. * doc/aria2c.1
  6697. Fixed: duplicated result entry appears when exception is thrown in
  6698. RequestGroup::createInitiateConnectionCommand().
  6699. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6700. Add RequestGroup to _requestGroup after RequetGroup::
  6701. createInitiateConnectionCommand() succeeds.
  6702. Externalized message
  6703. * src/XML2SAXMetalinkProcessor.cc
  6704. * src/message.h
  6705. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Forced download abort when received negative response from http/ftp
  6707. server.
  6708. * src/HttpResponseCommand.cc
  6709. * src/FtpNegotiationCommand.cc
  6710. * src/HttpResponse.cc
  6711. * src/FtpConnection.cc
  6712. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6714. the predecessor, Xml2MetalinkParser class.
  6715. I tested them against 94KB metalink file with 1234 chunk checksums.
  6716. The new one parsed it in 22msec, while it took 6000msec with old one.
  6717. * src/XML2SAXMetalinkProcessor.{h, cc}
  6718. * test/XML2SAXMetalinkProcessorTest.cc
  6719. * src/MetalinkParserController.{h, cc}
  6720. * test/MetalinkParserControllerTest.cc
  6721. * src/MetalinkParserState.h: Also added 16 subclasses.
  6722. * src/main.cc
  6723. * src/Metalink2RequestGroup.cc
  6724. * src/MetalinkHelper.cc
  6725. * src/MetalinkEntry.cc
  6726. * src/ChunkChecksum.h
  6727. Rewritten Base64 class for better performance.
  6728. * src/Base64.{h, cc}
  6729. * test/Base64Test.cc
  6730. * src/HttpRequest.cc
  6731. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Fixed the bug#1841757: aria2 will connect to server to only get
  6733. file size.
  6734. * src/StreamFileAllocationEntry.cc
  6735. * src/option_processing.cc
  6736. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6737. downloads.
  6738. * src/FtpNegotiationCommand.cc
  6739. Suppressed wrong message when finding PreDownloadHandler
  6740. * src/RequestGroup.cc
  6741. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Updated usage
  6743. * src/version_usage.cc
  6744. Updated man page
  6745. * doc/aria2c.1.txt
  6746. * doc/aria2c.1
  6747. Updated po files
  6748. * po/aria2c.pot
  6749. * po/*.po
  6750. * po/*.gmo
  6751. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Eliminated g++-4.2 warning
  6753. * src/DownloadHandlerConstants.{h, cc}
  6754. * src/Util.cc
  6755. * test/MetaFileUtilTest.cc
  6756. * test/PStringBuildVisitorTest.cc
  6757. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6758. * src/RequestGroup.cc
  6759. * src/BtCheckIntegrityEntry.cc
  6760. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Fixed a2io.h
  6762. * src/a2io.h
  6763. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Added direct I/O support. The current implementation uses O_DIRECT,
  6765. which is not posix standard and is tested on linux 2.6.21.
  6766. Currently only file allocation uses direct I/O.
  6767. * src/SingleFileAllocationIterator.{h, cc}
  6768. * test/SingleFileAllocationIteratorTest.cc
  6769. * src/MultiFileAllocationIterator.{h, cc}
  6770. * test/MultiFileAllocationIteratorTest.cc
  6771. * src/BinaryStream.h
  6772. * src/DiskWriter.h
  6773. * src/AbstractDiskWriter.{h, cc}
  6774. * src/ByteArrayDiskWriter.h
  6775. * src/DiskAdaptor.h
  6776. * src/AbstractSingleDiskAdaptor.{h, cc}
  6777. * src/MultiDiskAdaptor.{h, cc}
  6778. * src/FileAllocationEntry.cc
  6779. * src/Util.{h, cc}
  6780. * src/OptionHandlerFactory.cc
  6781. * src/prefs.h
  6782. * src/version_usage.cc
  6783. * src/option_processing.cc
  6784. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6785. handleException.
  6786. * src/MultiFileAllocationIterator.cc
  6787. Added EINTR handling
  6788. * src/SocketCore.cc
  6789. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Updated usage
  6791. * src/version_usage.cc
  6792. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Applied Ross's patch for MinGW port.
  6794. * src/DownloadEngine.h
  6795. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Set Content-Type to SingleFileDownloadContext when http response is
  6797. received.
  6798. * src/HttpResponseCommand.cc
  6799. * src/HttpResponse.{h, cc}
  6800. * test/HttpResponseTest.cc
  6801. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Rewritten to add content-type support.
  6803. * src/DownloadHandler.{h, cc}
  6804. * src/BtPostDownloadHandler.{h, cc}
  6805. * test/BtPostDownloadHandlerTest.cc
  6806. * src/MetalinkPostDownloadHandler.{h, cc}
  6807. * test/MetalinkPostDownloadHandlerTest.cc
  6808. * src/PostDownloadHandler.{h, cc}
  6809. * src/DownloadHandlerConstants.{h, cc}
  6810. * src/RequestGroup.cc
  6811. * src/HttpResponseCommand.cc
  6812. * src/FtpNegotiationCommand.cc
  6813. * src/SingleFileDownloadContext.{h, cc}
  6814. * src/RequestGroup.h
  6815. * src/RequestGroupCriteria.h
  6816. * src/ContentTypeRequestGroupCriteria.h
  6817. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6818. If it is give, metalink/torrent file is not written to the disk, but
  6819. just is kept in memory. Parsing is occurred on memory.
  6820. * src/MetalinkHelper.{h, cc}
  6821. * src/MetalinkProcessor.h
  6822. * src/Xml2MetalinkProcessor.{h, cc}
  6823. * test/Xml2MetalinkProcessorTest.cc
  6824. * src/DownloadHandlerFactory.{h, cc}
  6825. * test/DownloadHandlerFactoryTest.cc
  6826. * src/PreDownloadHandler.{h, cc}
  6827. * src/OptionHandlerFactory.cc
  6828. * src/DefaultBtContext.{h, cc}
  6829. * test/DefaultBtContextTest.cc
  6830. * src/version_usage.cc
  6831. * src/Metalink2RequestGroup.{h, cc}
  6832. * src/RequestGroup.{h, cc}
  6833. * src/a2functional.h
  6834. * test/a2functionalTest.cc
  6835. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6836. * src/OptionHandlerImpl.h
  6837. * src/prefs.h
  6838. * src/Util.{h, cc}
  6839. * test/UtilTest.cc
  6840. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6841. memory usage.
  6842. * src/RequestGroupMan.{h, cc}
  6843. * src/DownloadEngine.cc
  6844. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6845. WeakHandle to SharedHandle because WeakHandle could be null.
  6846. * src/RequestGroup.{h, cc}
  6847. * src/DownloadEngineFactory.cc
  6848. * src/DownloadResult.h
  6849. Set totalLength after download finished
  6850. * src/UnknownLengthPieceStorage.{h, cc}
  6851. Keep torrent file specified in metalink in memory.
  6852. * src/Metalink2RequestGroup.cc
  6853. * src/BtDependency.cc
  6854. * src/TrueRequestGroupCriteria.h
  6855. Fixed the bug: seekg is used where seekp should be used.
  6856. * src/ByteArrayDiskWriter.cc
  6857. * test/ByteArraydiskWriterTest.cc
  6858. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Fixed syntax error
  6860. * test/SequenceTest.cc
  6861. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6863. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6864. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6865. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6866. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Added the check to see whether ares_host_callback accepts timeouts
  6868. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6869. * src/NameResolver.{h, cc}
  6870. * m4/libcares.m4
  6871. * configure.ac: Set C++ for language choice.
  6872. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Fixed: compilation fails without c-ares/ares
  6874. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6875. Generate http/ftp commands only when download is incomplete.
  6876. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6877. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Corrected typo. Examples are removed since they are available in man
  6879. page.
  6880. * src/version_usage.cc
  6881. Updated man page.
  6882. * doc/aria2c.1
  6883. * doc/aria2c.1.txt
  6884. * doc/makeman: Commented out sed command.
  6885. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Throw DlAbortEx when a remote file is not found.
  6887. * src/HttpResponse.cc
  6888. * src/FtpNegotiationCommand.cc
  6889. * src/message.h
  6890. Overwrite an existing file if --allow-overwrite=true is given.
  6891. * src/RequestGroup.cc
  6892. Removed unused functions
  6893. * src/AbstractCommand.h
  6894. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Removed 'extern' from 'extern typedef ...' in src/*.h
  6896. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Updated usage
  6898. * src/version_usage.cc
  6899. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Trim announce URL
  6901. * src/DefaultBtContext.cc
  6902. * test/ShaVisitorTest.cc
  6903. Trim argument s. Give trimed s to exception constructor.
  6904. * src/Util.cc (parseInt)(parseLLInt)
  6905. * test/UtilTest.cc
  6906. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Set precision back to 1.
  6908. * src/ConsoleStatCalc.cc (calculateStat)
  6909. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Replaced strtol with Util::parseInt
  6911. * src/ChunkedEncoding.cc
  6912. * src/HttpConnection.cc
  6913. * src/CookieBoxFactory.cc
  6914. * src/ParameterizedStringParser.cc
  6915. * src/Util.cc
  6916. * test/UtilTest.cc
  6917. * test/OptionHandlerTest.cc
  6918. * src/Request.cc
  6919. Throw exception when empty string is given. The message for exception
  6920. changed.
  6921. * src/Util.cc (parseInt)(parseLLInt)
  6922. * src/message.h
  6923. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6925. set to 1.
  6926. * src/ConsoleStatCalc.cc (calculateStat)
  6927. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Preallocate non-requested file which is adjacent forward to requested
  6929. file('requested' files means the files given in --select-file option)
  6930. if they share a same piece.
  6931. This fixes long pause in the file system which doesn't support sparse
  6932. files like FAT32 while downloading.
  6933. * src/MultiFileAllocationIterator.{h, cc}
  6934. * test/MultiFileAllocationIteratorTest.cc
  6935. * src/FileEntry.{h, cc}
  6936. Removed unused _option.
  6937. * src/MultiDiskAdaptor.h
  6938. * test/MultiDiskAdaptorTest.cc
  6939. * src/DefaultPieceStorage.cc
  6940. Set the default value of --seed-ratio to 1.0.
  6941. If 0.0 is given, then seeding continues regardless of share ratio.
  6942. * src/version_usage.cc
  6943. * src/option_processing.cc
  6944. * src/BtSetup.cc
  6945. * doc/aria2c.1.txt
  6946. * doc/aria2c.1
  6947. Fixed: Selective download is not working in BitTorrent
  6948. * src/RequestGroup.cc
  6949. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6950. * src/PieceStorage.h
  6951. * test/MockPieceStorage.h
  6952. * src/UnknownLengthPieceStorage.h
  6953. * src/DefaultPieceStorage.{h, cc}
  6954. * src/Metalink2RequestGroup.cc
  6955. * src/RequestGroup.cc
  6956. * src/Sequence.h
  6957. * test/SequenceTest.cc
  6958. * src/IntSequence.h
  6959. * src/message.h
  6960. * src/Util.{h, cc}
  6961. * test/UtilTest.cc
  6962. Added new function 'parse' to catch exception thrown by subclass's
  6963. parseArg
  6964. * src/OptionHandler.h
  6965. * src/OptionParser.cc
  6966. * src/NameMatchOptionHandler.h
  6967. * src/OptionHandlerImpl.h
  6968. * test/OptionHandlerTest.cc
  6969. Added IntegerRangeOptionHandler. Used for --listen-port and
  6970. --select-file. Now --listen-port accepts range of port.
  6971. * src/OptionHandlerFactory.cc
  6972. * src/version_usage.cc
  6973. * src/OptionHandlerImpl.h
  6974. * src/option_processing.cc
  6975. * src/BtSetup.cc
  6976. * src/PeerListenCommand.{h, cc}
  6977. * doc/aria2c.1.txt
  6978. * doc/aria2c.1
  6979. Implemented operator< for Exception class to provide easy way to print
  6980. exception stack trace.
  6981. * src/Exception.{h, cc}
  6982. * src/main.cc
  6983. * src/option_processing.cc
  6984. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. * src/version_usage.cc
  6986. (showVersion): Reworked.
  6987. (showUsage): Added examples.
  6988. Removed Hint for total length and file name.
  6989. * src/Metalink2RequestGroup.cc
  6990. * src/RequestGroup.{h, cc}
  6991. * src/HttpResponseCommand.cc
  6992. * src/FtpNegotiationCommand.cc
  6993. Now --follow-torrent and --follow-metalink option work properly.
  6994. * src/RequestGroup.cc
  6995. Updated man page
  6996. * doc/aria2c.1.txt
  6997. * doc/aria2c.1
  6998. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Removed.
  7000. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7001. Use Segment::operator==()
  7002. * src/HttpConnection.cc
  7003. * src/Segment.h
  7004. Updated usage
  7005. * src/version_usage.cc
  7006. Added EINTR treatment.
  7007. * src/SocketCore.cc
  7008. * src/AbstractDiskWriter.cc
  7009. Rewritten.
  7010. * src/Util.cc (rangedFileCopy)
  7011. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Fixed typo.
  7013. * src/version_usage.cc
  7014. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Implemented. Now -c option works fine.
  7016. * src/DefaultPieceStorage.cc (markPiecesDone)
  7017. * test/DefaultPieceStorageTest.cc
  7018. Removed.
  7019. * src/SegmentMan.{h, cc}
  7020. (markAllPiecesDone)
  7021. (markPieceDone)
  7022. Synchronized po files with
  7023. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7024. * src/fr.po
  7025. * src/ru.po
  7026. * src/de.po
  7027. * src/ja.po
  7028. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Added ifdef and some modifications to compile without BitTorrent,
  7030. Metalink, MessageDigest
  7031. support.
  7032. * src/PieceHashCheckIntegrityEntry.cc
  7033. * src/MetalinkEntry.h
  7034. * src/version_usage.cc
  7035. * src/main.cc
  7036. * src/DownloadEngine.{h, cc}
  7037. * src/Metalink2RequestGroup.cc
  7038. * src/Peer.cc
  7039. * src/RequestGroup.cc
  7040. * src/MetalinkHelper.cc
  7041. * test/DefaultPieceStorageTest.cc
  7042. * test/MetalinkPostDownloadHandlerTest.cc
  7043. * test/Metalink2RequestGroupTest.cc
  7044. Hide TOTAL SPD when all downloads complete.
  7045. * src/ConsoleStatCalc.cc
  7046. Log target system information.
  7047. * src/main.cc
  7048. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Now --metalink-location accepts a comma-deliminated list of locations.
  7050. * src/MetalinkEntry.{h, cc}
  7051. * test/MetalinkEntryTest.cc
  7052. * src/version_usage.cc
  7053. * src/Metalink2RequestGroup.cc
  7054. * src/Xml2MetalinkProcessor.cc
  7055. * test/Xml2MetalinkProcessorTest.cc
  7056. * doc/aria2c.1.txt
  7057. * doc/aria2c.1
  7058. * src/Util.cc (toUpper)(toLower): Rewritten.
  7059. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Added the ability to detect duplicate download entry which is about to
  7061. download the same file other RequestGroup is downloading.
  7062. * src/RequestGroup.cc
  7063. * src/HttpResponseCommand.cc
  7064. * src/FtpNegotiationCommand.cc
  7065. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Recalculates download progress when loading a control file,
  7067. if the piece length of DownloadContext is different from the one saved
  7068. in the control file. Currently in-flight pieces are ignored.
  7069. * src/DefaultBtProgressInfoFile.cc
  7070. * test/DefaultBtProgressInfoFileTest.cc
  7071. * src/Util.{h, cc}
  7072. * test/UtilTest.cc
  7073. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Do not rotate tiers in announce-list.
  7075. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7076. AnnounceList::allTiersFailed() used instead to detect whether all
  7077. tiers are tried and failed.
  7078. * test/DefaultBtAnnounceTest.cc
  7079. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7080. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7081. * test/AnnounceListTest.cc
  7082. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7083. clause. Catch RecoverableException instead of DlRetryEx instead.
  7084. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Implemented checksum validation feature(1 checksum for each file)
  7086. The validation takes place after the download.
  7087. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7088. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7089. * src/CheckIntegrityCommand.cc: Changed log message.
  7090. * src/Metalink2RequestGroup.cc: Set checksum to
  7091. SingleFileDownloadContext.
  7092. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7093. PieceHashCheckIntegrity class.
  7094. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7095. PieceHashCheckIntegrity class.
  7096. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7097. * src/IteratableValidator.h: New class.
  7098. * src/message.h
  7099. * src/CheckIntegrityEntry.{h, cc}
  7100. * src/IteratableChunkChecksumValidator.{h, cc}
  7101. * src/SingleFileDownloadContext.h
  7102. * src/DownloadCommand.cc
  7103. --allow-overwrite=true is no longer needed to check file integrity
  7104. before download in BitTorrent download.
  7105. * src/RequestGroup.cc (getInitialCommand)
  7106. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7107. throws exception.
  7108. * src/RequestGroupMan.cc (getInitialCommands)
  7109. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. urlencode the given url inside Request::parseUrl(...)
  7111. * src/Request.{h, cc}
  7112. * src/Util.{h, cc}
  7113. * test/RequestTest.cc
  7114. Removed #!metalink3! notation support because it is deleted from
  7115. the metalink specification.
  7116. * src/Request.{h, cc}
  7117. * test/RequestTest.cc
  7118. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Don't connect server before checking file integrity at startup, if
  7120. filesize and output file path are known.
  7121. * src/AbstractCommand.cc
  7122. * src/StreamFileAllocationEntry.cc
  7123. * src/Metalink2RequestGroup.cc
  7124. * src/RequestGroup.{h, cc}
  7125. * src/HttpResponseCommand.cc
  7126. * src/FtpNegotiationCommand.cc
  7127. Added DownloadFailureException. If it is thrown, RequestGroup should
  7128. halt.
  7129. * src/AbstractCommand.cc
  7130. * src/DownloadFailureException.h
  7131. * src/RequestGroup.cc
  7132. Catch RecoverableException, instead of DlAbortEx.
  7133. * src/RequestGroupMan.cc
  7134. * src/FillRequestGroupCommand.cc
  7135. * src/MetaFileUtil.cc
  7136. * src/IteratableChunkChecksumValidator.cc
  7137. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7138. getGID())
  7139. * src/CheckIntegrityCommand.cc
  7140. * src/message.h
  7141. Print gid instead of idx.
  7142. * src/RequestGroupMan.cc
  7143. Removed exception throwers declaration.
  7144. * src/DirectDiskAdaptor.{h, cc}
  7145. * src/SocketCore.{h, cc}
  7146. * src/MultiDiskAdaptor.{h, cc}
  7147. * src/HttpConnection.{h, cc}
  7148. * src/HttpResponse.{h, cc}
  7149. * src/DiskAdaptor.{h, cc}
  7150. * src/CopyDiskAdaptor.{h, cc}
  7151. * src/MultiDiskAdaptor.{h, cc}
  7152. * src/HttpHeaderProcessor.{h, cc}
  7153. * src/AbstractSingleDiskAdaptor.{h, cc}
  7154. * src/Util.{h, cc}
  7155. * test/UtilTest.cc
  7156. * src/DefaultDiskWriter.{h, cc}
  7157. * src/FtpConnection.{h, cc}
  7158. * src/AbstractDiskWriter.{h, cc}
  7159. Removed duplicate code.
  7160. * src/StreamCheckIntegrityEntry.cc
  7161. Removed unnecessary include.
  7162. * src/DiskWriter.h
  7163. Included Exception.h
  7164. * src/option_processing.cc
  7165. Included 2 files and added doc
  7166. * src/TrackerWatcherCommand.cc
  7167. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7168. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Changed CheckIntegrityEntry interface so that it can define
  7170. the action when all the chunk checksums are valid.
  7171. * src/CheckIntegrityEntry.h
  7172. * src/StreamCheckIntegrityEntry.{h, cc}
  7173. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7174. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7175. to exit rather than doing seeding. So, it would be good to toggle this
  7176. behavior.
  7177. * src/CheckIntegrityCommand.cc
  7178. * src/AbstractCommand.cc
  7179. * src/RequestGroup.cc
  7180. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Reflect the download length of in-flight pieces.
  7182. It makes the download length readout more precise.
  7183. * src/DefaultPieceStorage.{h, cc}
  7184. * test/DefaultPieceStorageTest.cc
  7185. * src/a2functional.h
  7186. * test/a2functionalTest.cc
  7187. Lower CPU load when --max-download-limit is used.
  7188. There is up and down in speed indicator when enabling
  7189. http-pipelining but a download goes well. I think the problem is that
  7190. because http-pipelining is enabled, DownloadCommand is created for
  7191. each segment and in its constructor, PeerStat::downloadStart() is
  7192. called. In PeerStat::downloadStart(), speed calculation object is
  7193. reseted, which makes download speed zero.
  7194. * src/DownloadCommand.cc
  7195. Rewritten using accumulate.
  7196. * src/RequestGroupMan.cc (calculateStat)
  7197. Code clearnup.
  7198. * src/FtpNegotiationCommand.cc
  7199. * src/HttpResponseCommand.cc
  7200. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Fixed: Can not resume: aria2 reports download already finished.
  7202. * src/AbstractCommand.{h, cc}
  7203. * src/HttpResponseCommand.cc
  7204. * src/FtpNegotiateCommand.cc
  7205. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Now a file is stored in the directory specified in .metalnk file
  7207. (file[@name]).
  7208. * src/Metalink2RequestGroup.cc
  7209. Create the directory structure when opening the file if it doesn't
  7210. exist.
  7211. * src/AbstractDiskWriter.cc
  7212. * src/Util.{h, cc}
  7213. * src/File.h
  7214. * test/UtilTest.cc
  7215. Removed file name comparison
  7216. * src/Metalink2RequestGroup.cc
  7217. * src/HttpResponseCommand.cc
  7218. Rewritten using Util::mkdirs()
  7219. * src/FileEntry.cc (setupDir)
  7220. * test/FileEntryTest.cc
  7221. Updated doc
  7222. * src/SingleFileDownloadContext.h
  7223. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Now SleepCommand dispatches nextCommand when halt is requested.
  7225. It avoids a possible long wait after hitting CTRL-C.
  7226. * src/SleepCommand.{h, cc}
  7227. * src/RequestGroupAware.{h, cc}
  7228. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7230. to open listen port, then remove the port number from the tracker
  7231. request.
  7232. * src/DefaultBtAnnounce.cc
  7233. * test/DefaultBtAnnounceTest.cc
  7234. * test/MockPieceStorage.h
  7235. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7236. them more testable.
  7237. * src/DefaultBtAnnounce.{h, cc}
  7238. * src/DefaultBtContext.{h, cc}
  7239. * src/Util.{h, cc}
  7240. * test/DefaultBtAnnounceTest.cc
  7241. * test/DefaultBtContextTest.cc
  7242. * test/UtilTest.cc
  7243. Added 'B' to upload bytes readout.
  7244. * src/ConsoleStatCalc.cc
  7245. Now the listen port for BitTorrent download is opened when it is
  7246. needed.
  7247. * src/DownloadEngineFactory.cc
  7248. * src/BtSetup.{h, cc}
  7249. * src/PeerListenCommand.{h, cc}
  7250. Now an exception thrown while parsing tracker response is now logged.
  7251. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7252. called, which means no retry is made in this case, assuming a tracker
  7253. has a problem.
  7254. * src/TrackerWatcherCommand.cc
  7255. Fixed: downloading a file whose length is unkown fails.
  7256. * src/DownloadCommand.cc
  7257. Simplified prepareForNextSegment()
  7258. * src/DownloadCommand.cc
  7259. Updated
  7260. * po/POTFILES.in
  7261. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Re-implemented a file listing for Metalink, which was dropped while
  7263. http/ftp/torrent integration was being implemented.
  7264. * src/MetalinkHelper.{h, cc}: New class.
  7265. * test/MetalinkHelperTest.cc
  7266. * src/main.cc
  7267. * src/Metalink2RequestGroup.cc
  7268. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Added the ability to display the detailed torrent file information.
  7270. Now -S option gives not only a file listing, but also total download
  7271. length, info hash, announce URI, piece length, the number of pieces,
  7272. and mode(single or multi-torrent).
  7273. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7274. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7275. KiB)
  7276. * test/UtilTest.cc
  7277. * src/main.cc
  7278. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Added ftp://USER:PASSWD@Servername automatic parsing.
  7280. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7281. _password. Recognize username and password in URI.
  7282. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7283. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7284. * src/RequestFactory.{h, cc}: Removed.
  7285. * src/AuthConfigFactory.{h, cc}: New class.
  7286. * src/FtpConnection.cc: Use AuthConfigFactory.
  7287. * src/HttpRequest.cc: Use AuthConfigFactory.
  7288. * test/HttpRequestTest.cc: Updated.
  7289. * test/RequestTest.cc: Updated.
  7290. * test/AuthConfigFactoryTest.cc: New class.
  7291. * test/RequestFactoryTest.cc: Removed.
  7292. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Use RequestGroup::allDownloadFinished() to decide whether the control
  7294. file should be removed or saved.
  7295. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7296. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7297. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Use File::renameTo()
  7299. * src/DefaultBtProgressInfoFile.cc
  7300. Added --no-file-allocation-limit command-line option.
  7301. * src/version_usage.cc
  7302. * src/option_processing.cc
  7303. * src/OptionHandlerFactory.cc
  7304. * src/RequestGroup.{h, cc}
  7305. * src/BtCheckIntegrityEntry.cc
  7306. * src/StreamCheckIntegrityEntry.cc
  7307. * src/prefs.h
  7308. * doc/aria2c.1.txt
  7309. * doc/aria2c.1
  7310. Now prealloc is the default value for --file-allocation option.
  7311. * src/version_usage.cc
  7312. * src/option_processing.cc
  7313. * doc/aria2c.1.txt
  7314. * doc/aria2c.1
  7315. Don't URL-encode user-agent.
  7316. * src/HttpRequest.cc
  7317. Updated translations
  7318. * po/LINGUAS: Added nl for Dutch translation.
  7319. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7320. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7321. * po/POTFILES.in: Updated.
  7322. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Added the ability to recognize url-list in a torrent file.
  7324. The retrieved URLs are attached to the corresponding FileEntry.
  7325. * src/DefaultBtContext.{h, cc}
  7326. * src/FileEntry.{h, cc}
  7327. * test/DefaultBtContextTest.cc
  7328. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7330. after the download finishes.
  7331. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7333. the data smaller than block length.
  7334. A block length can be specified by constructor's argument.
  7335. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7336. Get a missing piece in the range of given FileEntry. This function is
  7337. not used in the program yet.
  7338. * src/Util.h: Added some macros.
  7339. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Added HTTP/1.1 keep alive and pipelining support.
  7341. See --enable-http-keep-alive and --enable-http-pipelining option.
  7342. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7343. Segment.
  7344. * src/HttpDownloadCommand.{h, cc}
  7345. * src/OptionHandlerFactory.cc
  7346. * src/HttpConnection.{h, cc}
  7347. * src/version_usage.cc
  7348. * src/HttpInitiateConnectionCommand.cc
  7349. * src/FtpInitiateConnectionCommand.cc
  7350. * src/Segment.h
  7351. * src/HttpRequestCommand.{h, cc}
  7352. * src/option_processing.cc
  7353. * src/prefs.h
  7354. * src/HttpResponseCommand.cc
  7355. * src/SegmentMan.{h, cc}
  7356. * src/FtpNegotiateCommand.cc
  7357. * src/HttpProxyResponseCommand.cc
  7358. * src/Request.cc
  7359. * src/HttpRequest.cc
  7360. * src/DownloadCommand.cc
  7361. * test/HttpRequestTest.cc
  7362. * test/RequestTest.cc
  7363. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7365. finished.
  7366. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7368. catching it inside the method.
  7369. When no file entry is found in a metalink without querying user
  7370. preferences, throw the exception with the error message that suggests
  7371. metalink file is probably broken.
  7372. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7373. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7375. processed.
  7376. * src/RequestGroupMan.cc (removeStoppedGroup)
  7377. Added debug message.
  7378. * src/BtPostDownloadHandler.cc
  7379. * src/MetalinkPostDownloadHandler.cc
  7380. * src/PostDownloadHandler.{h, cc}
  7381. * src/RequestGroup.cc
  7382. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7384. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7386. stops and there are any unfinished or in-progress downloads.
  7387. Added the legend of "stat".
  7388. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Throw exception when chunck checksum verification fails.
  7390. * src/DownloadCommand.cc (validatePieceHash): New function.
  7391. * src/PiecedSegment.{h, cc} (clear): New function.
  7392. * src/GrowSegment.{h, cc} (clear): New function.
  7393. * src/Segment.h (clear): New function.
  7394. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7395. * test/SegmentTest.cc
  7396. * test/GrowSegmentTest.cc
  7397. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Do not send referer when redirected.
  7399. * src/Request.cc (redirectUrl)
  7400. * test/RequestTest.cc
  7401. * test/HttpRequestTest.cc
  7402. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Implemented BitTorrent/http/ftp integrated download.
  7404. I've rewritten lots of files and now some headers have forward
  7405. class declarations to reduce compile time.
  7406. The implementation is extremely alpha stage, I recommend to use this
  7407. for testing purpose only.
  7408. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Fixed the compilation error on 64bit platform.
  7410. * test/HttpHeaderProcessorTest.cc
  7411. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Merged Ross's patch that fixes compilation problem in MinGW
  7413. * test/DefaultBtProgressInfoFileTest.cc
  7414. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Updated fr.po by sebone
  7416. * po/fr.po
  7417. Updated man page.
  7418. * doc/aria2c.1.txt
  7419. * Release 0.11.3
  7420. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7422. failure in Metalink.
  7423. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Automatically save *.aria2 control file of http/ftp download in every
  7425. 60 seconds.
  7426. * src/AutoSaveCommand.{h, cc}: New class.
  7427. * src/TimeBasedCommand.{h, cc}: New class.
  7428. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7429. Disable parameterized URI support by default. Added -P option to
  7430. enable the feature.
  7431. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7432. * src/OptionHandlerFactory.cc
  7433. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7434. Updated Japanese translation.
  7435. * po/ja.po
  7436. Updated man page.
  7437. * doc/aria2c.1.txt
  7438. * Release 0.11.3-rc
  7439. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7441. it is successful, then renamed to *.aria2.
  7442. This prevents *.aria2 file from being truncated or corrupted when
  7443. file system becomes out of space.
  7444. * src/DefaultBtProgressInfoFile.cc (save)
  7445. * src/SegmentMan.cc (save)
  7446. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7447. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Reduced the fragmentation of bitfield in http/ftp download.
  7449. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7450. * test/BitfieldManTest.cc
  7451. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Added the ability to disable segmented download in .metalink.
  7453. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7454. 'url' tag.
  7455. * src/MetalinkEntry.{h, cc}
  7456. * src/RequestResource.{h, cc}
  7457. * src/MetalinkRequestInfo.cc
  7458. * src/Xml2MetalinkProcessor.cc
  7459. * test/Xml2MetalinkProcessorTest.cc
  7460. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Added parameterized URI support.
  7462. * src/main.cc: -Z option added.
  7463. * src/OptionHandlerFactory.cc
  7464. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7465. * src/PStringDatum.h: New class.
  7466. * src/PStringSegment.{h,cc}: New class.
  7467. * src/PStringNumLoop.h: New class.
  7468. * src/PStringSelect.h: New class.
  7469. * src/NumberDecorator.h: New class.
  7470. * src/FixedWidthNumberDecorator.h: New class.
  7471. * src/AlphaNumberDecorator.h: New class.
  7472. * src/PStringVisitor.h: New class.
  7473. * src/PStringBuildVisitor.{h,cc}: New class.
  7474. * src/ParameterizedStringParser.{h,cc}: New class.
  7475. * src/Util.{h,cc}
  7476. (isNumber): New function.
  7477. (isLowercase): New function.
  7478. (isUppercase): New function.
  7479. (alphaToNum): New function.
  7480. * test/ParameterizedStringParserTest.cc: New class.
  7481. * test/AlphaNumberDecoratorTest.cc: New class.
  7482. * test/PStringBuildVisitorTest.cc: New class.
  7483. * test/UtilTest.cc
  7484. (testIsNumber): New function.
  7485. (testIsLowercase): New function.
  7486. (testIsUppercase): New function.
  7487. (testAlphaToNum): New function.
  7488. Added '\n' after the error message
  7489. * src/RequestInfo.h (printDownloadAbortMessage)
  7490. Added auto file renaming feature in http(s)/ftp download.
  7491. * src/main.cc: Added --auto-file-renaming command-line option.
  7492. * src/OptionHandlerFactory.cc
  7493. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7494. * src/RequestGroup.{h, cc}
  7495. (shouldCancelDownloadForSafety): Rewritten
  7496. (tryAutoFileRenaming): New function.
  7497. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7498. * src/HttpResponseCommand.cc
  7499. (executeInternal): Removed the call to RequestGroupMan::
  7500. isSameFileBeingDownloaded()
  7501. * src/FtpNegotiateCommand.cc
  7502. (recvSize): Removed the call to RequestGroupMan::
  7503. isSameFileBeingDownloaded()
  7504. * test/RequestGroupTest.cc: New class.
  7505. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7507. IO.
  7508. * src/DefaultBtProgressInfoFile.cc
  7509. * src/MetaFileUtil.cc
  7510. * src/SimpleLogger.cc
  7511. * src/SegmentMan.cc
  7512. * src/Util.cc
  7513. * src/Platform.cc
  7514. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7516. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7518. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7519. Fixed the bug that prevents file allocation is not done when
  7520. dowloading multi-torrent file.
  7521. * src/AbstractDiskWriter.cc (openFile)
  7522. Increase the maximum number of -j option from 15 to 45.
  7523. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7524. Added fr.po, thanks to Charles Landemaine.
  7525. * po/fr.po
  7526. * po/LINGUAS
  7527. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7528. gcc 3.4.4 support:
  7529. * src/DefaultBtContext.cc: int32_t -> int
  7530. * src/main.cc: int -> int32_t, int32_t -> int
  7531. * src/messageDigest.h: uint32_t -> unsigned int
  7532. * src/NameResolver.h: int32_t -> int
  7533. * src/PeerConnection.cc: int -> int32_t
  7534. * src/SpeedCalc.cc: int32_t -> int
  7535. * src/TrackerUpdateCommand.h: int -> int32_t
  7536. * src/Util.cc: int32_t -> int
  7537. * src/Util.h: int32_t -> int
  7538. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7539. * test/AnnounceListTest.cc: int -> int32_t
  7540. * test/ChunkedEncodingTest.cc: int -> int32_t
  7541. * test/DataTest.cc: int -> int32_t
  7542. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7543. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7544. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7545. * test/FeatureConfigTest.cc: int -> int32_t
  7546. * test/MetalinkEntryTest.cc: int -> int32_t
  7547. * test/MockBtRequestFactory.h: int -> int32_t
  7548. * test/MockPieceStorage.h: int -> int32_t
  7549. * test/OptionTest.cc: int -> int32_t
  7550. * test/RequestTest.cc: int -> int32_t
  7551. * test/SegmentManTest.cc: int -> int32_t
  7552. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7553. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7554. Move sleep functions to Util class:
  7555. * src/Util.cc
  7556. (sleep): New function.
  7557. (usleep): New function.
  7558. * src/DownloadCommand.cc: sleep -> Util::sleep
  7559. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7560. MinGW build enhancements. The following files are added:
  7561. * src/timegm.{c,h}
  7562. Changes to support the above new files:
  7563. * configure.ac
  7564. * src/Makefile.am
  7565. * src/a2time.h
  7566. * src/Util.cc:
  7567. * src/strptime.c: Added support for %Z option.
  7568. Fixed MinGW non-blocking bug.
  7569. * src/SocketCore.cc
  7570. * src/HttpRequestCommand.cc
  7571. Miscellenous build fixes/enhancements.
  7572. * configure.ac: Added summary report.
  7573. * src/Platform.h: Tweaked #include's.
  7574. * src/a2netcompat.h: Tweaked #include's.
  7575. * src/strptime.h: Tweaked #include's.
  7576. * src/gai_strerror.c: Tweaked #include's.
  7577. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7578. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7579. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7580. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Increased the initial connection size in BitTorrent download to 40.
  7582. * src/BtRuntime.h
  7583. Added the usage message of --peer-id-prefix option.
  7584. * src/main.cc
  7585. * Release 0.11.2
  7586. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. MessageDigestHelper is introduced in order to simplify the use
  7588. of message digest. Removed repeated code.
  7589. The message digest algorithm is now specified by string, like "sha1",
  7590. "md5".
  7591. * src/messageDigest.{h, cc}
  7592. * src/MessageDigestHelper.{h, cc}: New class.
  7593. * src/DefaultPieceStorage.cc
  7594. * src/DefaultBtContext.{h, cc}
  7595. (computeFastSet): New function.
  7596. (setInfoHash): Added for unit testing.
  7597. (setNumPieces): Added for unit testing.
  7598. * src/DefaultBtInteractive.cc
  7599. * src/BtPieceMessage.cc
  7600. * src/Peer.cc
  7601. * src/Checksum.h
  7602. * src/message.h
  7603. * src/IteratableChecksumValidator.h
  7604. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7605. inside it.
  7606. * src/SegmentMan.{h, cc}
  7607. (checkIntegrity): Removed.
  7608. * src/IteratableChunkChecksumValidator.{h, cc}
  7609. * src/Util.h
  7610. (sha1Sum): Removed.
  7611. (simpleMessageDigest): Removed.
  7612. (fileChecksum): Removed.
  7613. (computeFastSet): Removed.
  7614. * src/ShaVisitor.cc
  7615. * src/ChunkChecksum.h
  7616. * src/DownloadCommand.cc
  7617. Removed messageDigest virtual functions.
  7618. * src/MultiDiskAdaptor.{h, cc}
  7619. * src/DiskAdaptor.h
  7620. * src/ByteArrayDiskWriter.h
  7621. * src/DiskWriter.h
  7622. * src/DiskAdaptorWriter.h
  7623. * src/AbstractSingleDiskAdaptor.{h, cc}
  7624. * src/AbstractDiskWriter.{h, cc}
  7625. Fixed comilation error when message digest is disabled.
  7626. * src/MetalinkEntry.{h, cc}
  7627. * src/MetalinkRequestInfo.cc
  7628. Removed srandom and random.
  7629. * src/SimpleRandomizer.h
  7630. Added size() virtual function to DiskAdaptor
  7631. * src/MultiDiskAdaptor.h
  7632. Fixed the bug that causes that files are not opened correctly in
  7633. multi-file torrent.
  7634. * src/TorrentRequestInfo.cc
  7635. * src/MultiDiskAdaptor.cc
  7636. Added SHA256 support
  7637. * src/messageDigest.cc
  7638. * src/Xml2MetalinkProcessor.cc
  7639. Show supported message digest algorithms
  7640. * src/main.cc
  7641. Updated contact info.
  7642. * src/main.cc
  7643. Applied Ross's patch
  7644. * src/a2netcompat.h
  7645. * src/main.cc
  7646. Fixed the bug that prevents a remote metalink from not being processed
  7647. even if '-o foo.metalink' is specified.
  7648. * src/MetalinkRequestInfo.cc
  7649. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Merged Dan's patch:
  7651. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7652. Use va_copy to avoid core dump on amd64:
  7653. * src/SimpleLogger.cc
  7654. Updated contact info.
  7655. * src/main.cc
  7656. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7657. digest is not available.
  7658. * src/MetalinkEntry.h
  7659. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Make a2netcompat.h include a2io.h to fix compilation error:
  7661. * src/a2netcompat.h
  7662. * src/SocketCore.cc: Removed include of a2io.h
  7663. * src/Util.cc: Removed include of a2io.h
  7664. Gather time related functions to a2time.h:
  7665. * src/a2time.h: New file.
  7666. * src/DefaultPeerStorage.cc
  7667. * src/SimpleLogger.cc
  7668. * src/Util.{h, cc}
  7669. * src/SimpleRandomizer.h
  7670. * src/TimeA2.{h,cc}
  7671. * src/DownloadCommand.cc
  7672. * src/main.cc
  7673. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7674. a2netcompat.h:
  7675. * src/NameResolver.cc
  7676. Fixed compilation error without openssl:
  7677. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7678. Added default block to suppress compiler warnings:
  7679. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7680. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7681. MinGW build enhancements. The following files are added:
  7682. * src/gai_strerror.{c,h}
  7683. * src/gettimeofday.{c,h}
  7684. Changes to support the above new files:
  7685. * configure.ac
  7686. * src/Makefile.am
  7687. * src/a2netcompat.h
  7688. * src/TimeA2.cc
  7689. * src/DefaultPeerStorage.cc
  7690. * src/NameResolver.cc: removed mingw_strerror() function.
  7691. * src/SocketCore.cc: removed mingw_strerror() function.
  7692. Miscellaneous MinGW build fixes.
  7693. * src/a2io.h: Use _lseeki64() instead of lseek()
  7694. * src/common.h
  7695. * src/DefaultFileAllocator.cc
  7696. * src/GlowFileAllocator.cc
  7697. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7698. * src/NameResolver.cc
  7699. (callback): Changed int32_t to int.
  7700. (resolve): Changed int32_t to int.
  7701. * src/Platform.cc
  7702. * src/Platform.h
  7703. * test/MultiDiskWriterTest.cc
  7704. * test/PeerMessageUtilTest.cc
  7705. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7706. Other enhancements and fixes.
  7707. * src/HttpRequestCommand.cc
  7708. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7709. * src/SocketCore.cc:
  7710. (error): New function to abstract errno/WSAGetLastError().
  7711. (errorMsg): New function to abstract errno/WSAGetLastError().
  7712. (initiateSecureConnection): Added more detailed error reporting.
  7713. * src/SocketCore.h: Added private variable blocking, to allow
  7714. proper handling of OpenSSL psuedo-errors.
  7715. * src/message.h
  7716. (EX_SSL_INIT_FAILURE)
  7717. (EX_SSL_IO_ERROR)
  7718. (EX_SSL_PROTOCOL_ERROR)
  7719. (EX_SSL_UNKNOWN_ERROR)
  7720. (EX_SSL_CONNECT_ERROR)
  7721. (EX_SOCKET_BLOCKING)
  7722. (EX_SOCKET_NONBLOCKING)
  7723. (EX_SOCKET_UNKNOWN_ERROR)
  7724. * src/Util.cc
  7725. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7726. reserved name.
  7727. (httpGMT): Fixed typo.
  7728. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Merged Ross's win32 patch(manually)
  7730. In the course of merging, following files are added.
  7731. * src/strptime.{h,c}
  7732. * src/libgen.{h,c}
  7733. * src/inet_aton.{h,c}
  7734. * src/Platform.{h,cc}
  7735. * src/localtime_r.{h,c}
  7736. * src/getaddrinfo.{h,c}
  7737. I've gethered network related things, and put them to following file:
  7738. * src/a2netcompat.h
  7739. Also io related things are put to following file:
  7740. * src/a2io.h
  7741. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7742. * src/message.h
  7743. (MSG_ALLOCATION_COMPLETED)
  7744. (EX_TOO_LARGE_FILE)
  7745. (EX_SIZE_MISMATCH)
  7746. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7747. (EX_INVALID_CHUNK_CHECKSUM)
  7748. (EX_INVALID_RANGE_HEADER)
  7749. * src/FileAllocationCommand.cc
  7750. * src/HttpResponse.cc
  7751. * src/RequestGroup.cc
  7752. * src/MultiDiskAdaptor.cc
  7753. * src/OptionHandlerImpl.h
  7754. * src/HttpResponseCommand.cc
  7755. * src/FtpNegotiateCommand.cc
  7756. * src/IteratableChecksumValidator.cc
  7757. * src/SegmentMan.cc
  7758. * src/ChunkChecksumValidator.cc
  7759. Added Randomizer::getRandomNumber(long int)
  7760. * src/Randomizer.h (getRandomNumber)
  7761. * src/SimpleRandomizer.h (getRandomNumber)
  7762. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7763. * src/Util.cc (randomAlpha): Use this new function.
  7764. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Converted int's to in32_t. long long int's are also converted to
  7766. int64_t
  7767. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Fixed the bug that prevents cookies from being sent to the server
  7769. if the domain of cookie is FQDN and starts with ".".
  7770. * src/Cookie.cc (match)
  7771. To add the ability to change peer id.
  7772. * src/DefaultBtContext.h
  7773. (_peerIdPrefix): New variable
  7774. (setPeerIdPrefix): New function.
  7775. * src/torrentRequestInfo.cc
  7776. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7777. DefaultBtContext.
  7778. * src/main.cc (main): Added peer-id-prefix command-line option.
  7779. The usage message is not added yet.
  7780. * src/DefaultBtContext.cc
  7781. (generatePeerId): Use _peerIdPrefix.
  7782. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7783. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Fixed the bug that prevents filename in content-disposition from
  7785. being retrieved when filename is not quoted.
  7786. * src/Util.cc (getContentDispositionFilename)
  7787. Fixed the bug that causes infinate loop and memory leak when file open
  7788. operation failed.
  7789. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7790. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Fixed the bug that causes segfault when all URIs specified are
  7792. unsupported.
  7793. * src/RequestGroupMan.cc (getInitialCommands)
  7794. Check if RequestGroup::createNextCommand() returns empty list of
  7795. commands.
  7796. * src/RequestGroup.cc (createNextCommand)
  7797. Change log level from info to error so that users can notice that
  7798. an error occurred.
  7799. Fixed the bug that causes segfault when a zero-sized file is
  7800. downloaded.
  7801. * src/BitfieldMan.cc (isAllBitSet)
  7802. Return true if bitfieldLength is 0.
  7803. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. * src/main.cc
  7805. (showUsage): Added 3 usage examples for metalink download.
  7806. Replace MetalinkChunkChecksum with ChunkChecksum.
  7807. * src/MetalinkChunkChecksum.h: Removed.
  7808. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7809. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7810. * src/Xml2MetalinkProcessor.cc
  7811. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7812. * src/MetalinkRequestInfo.cc (execute)
  7813. * Release 0.11.1
  7814. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Reads URIs from stdin when "-i -" is specified.
  7816. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7817. * src/UriListParser.h, src/UriListParser.cc: New class.
  7818. * src/StreamUriListParser.h: New class.
  7819. * src/FileUriListParser.h: New class.
  7820. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7821. instead of UriFileListParser.
  7822. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Made console readout more readable.
  7824. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7825. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Fix the bug that causes -s option not to work.
  7827. * src/main.cc (main)
  7828. * src/a2algo.h: New file.
  7829. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Create directory structure specified in metalink file.
  7831. * src/RequestGroup.h, src/RequestGroup.cc
  7832. (initAndOpenFile): Create a directory to store files if it does not
  7833. exist.
  7834. (getDir): New function.
  7835. Added ETA and download speed for an individual file to readout.
  7836. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7837. * src/RequestGroup.h
  7838. (calculateDownloadSpeed): New function.
  7839. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Made -S option work with metalink file and provided selective download
  7841. to metalink.
  7842. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7843. (filename): Removed.
  7844. (file): New variable.
  7845. (size): Removed.
  7846. (operator=): Updated.
  7847. (getPath): New function.
  7848. (getLength): New function.
  7849. (toFileEntry): New function.
  7850. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7851. (execute): Use toStream.
  7852. (showFileEntry): Removed.
  7853. * src/MetalinkRequestInfo.h
  7854. (targetFiles): New variable.
  7855. (setTargetFiles): New variable.
  7856. * src/MetalinkRequestInfo.cc
  7857. (execute): Added the ability to print file information included in
  7858. a metalink file.
  7859. Added selective download mode to metalink.
  7860. * src/main.cc
  7861. (showUsage): Updated to denote that -S and --select-file options are
  7862. applicable to metalink.
  7863. * src/FileEntry.h
  7864. (operator=): New function.
  7865. (getBasename): New function.
  7866. (getDirname): New function.
  7867. * src/Util.h, src/Util.cc
  7868. (toStream): New function.
  7869. * src/Xml2MetalinkProcessor.cc: Updated.
  7870. Made aria2 work with metalink with directory structure.
  7871. * src/File.h, src/File.cc
  7872. (getBasename): New function.
  7873. (getDirname): New function.
  7874. * src/RequestGroup.h, src/RequestGroup.cc
  7875. (_topDir): New variable.
  7876. (setTopDir): New function.
  7877. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7878. Rewrote HTTP header parsing with stringstream.
  7879. * src/HttpConnection.h, src/HttpConnection.cc
  7880. (HttpRequestEntry): New class.
  7881. (headerBuf): Removed.
  7882. (headerBufLength): Removed.
  7883. (outstandingHttpRequests): Now its element type is
  7884. HttpRequestEntryHandle.
  7885. (findEndOfHeader): Removed.
  7886. (receiveResponse): Rewritten.
  7887. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7888. Updated doc for -j option to notice that it should be used with -i
  7889. option.
  7890. * src/main.cc (showUsage)
  7891. Removed unused classes.
  7892. * src/RequestInfo.h
  7893. (FileInfo): Removed.
  7894. (checksum): Removed.
  7895. (fileInfo): Removed.
  7896. (setChecksum): Removed.
  7897. (getChecksum): Removed.
  7898. (getFileInfo): Removed.
  7899. Use ISO units.
  7900. * src/ConsoleDownloadEngine.cc
  7901. * src/TorrentConsoleDownloadEngine.cc
  7902. * src/Util.cc (abbrevSize)
  7903. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Added the default listening ports to the help message.
  7905. * src/main.cc (showUsage)
  7906. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Reduce the number of calls to gettimeofday to lower CPU load.
  7908. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7909. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7910. * src/Peer.h (calculateUploadSpeed): New function.
  7911. (calculateDownloadSpeed): New function.
  7912. * src/DefaultPeerStorage.cc
  7913. (CalculateStat): Added _now variable.
  7914. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7915. and Peer::calculateUploadSpeed(const struct timeval&)
  7916. Drop connection if no request or piece message is exchanged in
  7917. a certain interval.
  7918. * src/DefaultBtInteractive.h
  7919. (btRuntime): New variable.
  7920. (inactiveCheckPoint): New variable.
  7921. (checkActiveInteraction): New function.
  7922. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7923. request or piece message is received.
  7924. (checkActiveInteraction): New function.
  7925. (doInteractionProcessing): Call checkActiveInteraction.
  7926. Fixed the bug that causes remote Metalink and Torrent files are not
  7927. processed.
  7928. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7929. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Changed format of log file.
  7931. * src/SimpleLogger.cc
  7932. * Release 0.11.0
  7933. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. * src/AbstractCommand.cc
  7935. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7936. MSG_MAX_TRY from error to info.
  7937. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7938. * src/message.h
  7939. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7940. (MSG_DOWNLOAD_ABORTED): Added %s.
  7941. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7942. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7943. * src/PeerAbstractCommand.cc
  7944. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7945. * src/Request.h
  7946. (cookieBox): Made ShardHandle.
  7947. * src/RequestGroup.h, src/RequestGroup.cc
  7948. (createNextCommandWithAdj): New function.
  7949. * src/FileAllocationCommand.cc
  7950. (executeInternal): Use createNextCommandWithAdj().
  7951. * src/CheckIntegrityCommand.cc
  7952. (executeInternal): Use createNextCommandWithAdj().
  7953. Added --load-cookies command-option.
  7954. * src/OptionHandlerFactory.cc
  7955. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7956. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7957. Now aria2 can handle cookie's expiration date.
  7958. * src/Cookie.h (expires): Changed its type to time_t.
  7959. * src/main.cc: Added --load-cookies command-line option.
  7960. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7961. * src/Util.h, src/Util.cc (httpGMT): New function.
  7962. * src/Request.cc (Request): Initialize cookieBox using
  7963. CookieBoxFactory.
  7964. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7965. * src/CookieParser.h, src/CookieParser.cc: New class.
  7966. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7967. * src/HttpResponseCommand.cc
  7968. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7969. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7970. download.
  7971. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Added -j command-line option.
  7973. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7974. * src/main.cc
  7975. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7976. Rewritten using stringstream.
  7977. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7978. Rewritten using stringstream.
  7979. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Make download size shown in MB, KB.
  7981. * src/ConsoleDownloadEngine.h (sendStatistics)
  7982. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7983. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Accept incoming connections if download rate is low.
  7985. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7986. (_lowestSpeedLimit): New variable.
  7987. (setLowestSpeedLimit): New function.
  7988. (execute): Accept incoming connections if download rate is low.
  7989. MAX_PEERS is ignored in this case.
  7990. Disable PREF_OUT in multiple concurrent download:
  7991. * src/RequestGroup.h, src/RequestGroup.cc
  7992. (setUserDefinedFilename): New function.
  7993. * src/DownloadEngineFactory.cc
  7994. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7995. concurrent download.
  7996. * src/DefaultSegmentManFactory.cc
  7997. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7998. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8000. Added its overloaded method.
  8001. * src/RequestGroup.h
  8002. (_numConcurrentCommand): New variable.
  8003. (setNumConcurrentCommand): New function.
  8004. * src/RequestGroup.cc
  8005. Abort download if same file is being downloaded concurrently.
  8006. * src/RequestGroup.h, src/RequestGroupMan.cc
  8007. (isSameFileBeingDownloaded): New function.
  8008. * src/HttpResponseCommand.cc (executeInternal)
  8009. * src/FtpNegotiateCommand.cc (recvSize)
  8010. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8011. * main.cc: Added help message for -i option.
  8012. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8014. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8015. * src/MetalinkEntry.h
  8016. (checksum): Changed to ChecksumHandle
  8017. * src/MetalinkRequestInfo.cc
  8018. (checksum): Changed to ChecksumHandle
  8019. * src/File.cc
  8020. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8021. * src/common.h
  8022. (DIR_OPEN_MODE): New definition
  8023. * src/RequestGroup.cc
  8024. (prepareForNextAction): Added an argument.
  8025. * src/message.h
  8026. (MSG_GOOD_CHECKSUM): New definition
  8027. (MSG_BAD_CHECKSUM): New definition
  8028. * src/HttpResponseCommand.cc
  8029. (handleDefaultEncoding): Continue download sequence in new
  8030. non-segmented download.
  8031. * src/FileAllocationEntry.h
  8032. (_nextDownloadCommand): New variable.
  8033. * src/DownloadCommand.cc
  8034. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8035. available.
  8036. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8037. * src/IteratableChecksumValidator.h,
  8038. src/IteratableChecksumValidator.cc: New class.
  8039. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8040. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Change file mode to 666:
  8042. * src/common.h (OPEN_MODE): New definition.
  8043. * src/File.cc
  8044. * src/Util.cc
  8045. * src/Directry.cc
  8046. * src/AbstractDiskWriter.cc
  8047. Change the level of log message "download aborted" to debug:
  8048. * src/PeerAbstractCommand.cc (execute)
  8049. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8050. * src/TrackerWatcherCommand.cc
  8051. (createCommand): Sleep some seconds after request failed.
  8052. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8053. then abort tracker request.
  8054. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. * Added the simultaneous download feature.
  8056. * src/main.cc: Print "Exception caught: " when exception is caught.
  8057. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8058. * src/ActivePeerConnectionCommand.cc
  8059. * src/PeerInteractionCommand.cc
  8060. * src/BtRuntime.h
  8061. (cuidCounter): Removed.
  8062. (getNewCuid): Removed.
  8063. * src/DownloadEngineFactory.cc
  8064. * src/PeerListenCommand.cc
  8065. * src/TrackerUpdateCommand.cc
  8066. * src/PeerInitiateConnectionCommand.cc
  8067. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. * src/PeerAbstractCommand.cc
  8069. (onAbort): Call PeerStorage::returnPeer()
  8070. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8071. (incomingPeers): New variable.
  8072. (addIncomingPeer): New function.
  8073. (returnPeer): New function.
  8074. (onErasingPeer): New function.
  8075. (addPeer): push_back -> push_front
  8076. (getActivePeers): Rewritten.
  8077. (calculateStat): Rewritten.
  8078. * src/PeerStorage.h
  8079. (TransferStat::copy): New function.
  8080. (TransferStat::TransferStat): New function.
  8081. (TransferStat::operator=): New function.
  8082. (addIncomingPeer): New function.
  8083. (returnPeer): New function.
  8084. * src/PeerListenCommand.cc
  8085. (execute): Use PeerStorage::addIncomingPeer() instead of
  8086. Peer::addPeer().
  8087. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Connect to a peer actively when download speed is lower than specified
  8089. speed in torrent download:
  8090. * src/ActivePeerConnectionCommand.h: New class.
  8091. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8093. * src/main.cc: Fixed the bug that prevents download if .netrc
  8094. doesn't exist.
  8095. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. To cache resolved hostname:
  8097. * src/AbstractCommand.h, src/AbstractCommand.cc
  8098. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8099. Added dns cache.
  8100. * src/FtpInitiateConnectionCommand.cc
  8101. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8102. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8103. NameResolver working without ares.
  8104. * src/TorrentRequestInfo.cc
  8105. (execute): Don't cache dns in torrent download.
  8106. * src/HttpInitiateConnectionCommand.cc
  8107. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8108. * src/DNSCache.h: New class.
  8109. * src/UrlRequestInfo.cc
  8110. (execute): Use dns cache.
  8111. In http request, suppress port number in http request header if port
  8112. is 80 or 443:
  8113. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8114. request header if port is 80 or 443.
  8115. (createProxyRequest): Allways send port number.
  8116. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. To add the command-line option which disables netrc support:
  8118. * src/OptionHandlerFactory.cc
  8119. (createOptionHandlers): Added PREF_NO_NETRC.
  8120. * src/main.cc: Added -n option.
  8121. * src/prefs.h (PREF_NO_NETRC): New definition.
  8122. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8123. V_TRUE.
  8124. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8125. is V_FALSE. This may get configurable in the future release.
  8126. To clear peer's error status by time basis:
  8127. * src/PeerAbstractCommand.cc
  8128. (onAbort): Call Peer::startBadCondition().
  8129. * src/Peer.h, src/Peer.cc
  8130. (error): Removed.
  8131. (_badConditionStartTime): New variable.
  8132. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8133. (startBadCondition): New function.
  8134. (isGood): New function.
  8135. * src/DefaultPeerStorage.cc
  8136. (addPeer): Use Peer::isGood().
  8137. (FindFinePeer): Use Peer::isGood().
  8138. Always include port number in http request header:
  8139. * src/HttpRequest.cc (getHostText): Always include port number in
  8140. http request header.
  8141. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. To the ability to read options from a config file:
  8143. * src/main.cc: Command-line parameter validation is delegated to
  8144. OptionHandler class.
  8145. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8146. * src/Option.h, src/Option.cc (clear): New function.
  8147. * src/OptionParser.h, src/OptionParser.cc: New class.
  8148. * src/OptionHandler.h: New class.
  8149. * src/NameMatchOptionHandler.h: New class.
  8150. * src/OptionHandlerImpl.h: New classes.
  8151. * src/prefs.h: '_' -> '-'
  8152. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8153. (FTP_PASV): New definition.
  8154. * src/Util.h, src/Util.cc (getRealSize): New function.
  8155. To disable netrc support if .netrc file does not have correct
  8156. permissions:
  8157. * src/File.h, src/File.cc (mode): New function.
  8158. To prevent confidential information to be logged:
  8159. * src/HttpConnection.h, src/HttpConnection.cc
  8160. (eraseConfidentialInfo): New function.
  8161. (sendRequest): Call eraseConfidentialInfo().
  8162. (sendProxyRequest): Call eraseConfidentialInfo().
  8163. * src/main.cc: Validate permissions of .netrc file.
  8164. To add --user-agent command-line option:
  8165. * src/main.cc: Added new command line option: --user-agent
  8166. * src/prefs.h (PREF_USER_AGENT): New definition.
  8167. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8168. parameter to HttpRequest object.
  8169. * src/AbstractProxyRequestCommand.cc
  8170. (executeInternal): Set user-agent option parameter to HttpRequest
  8171. object.
  8172. Marged the patches from Dan Fandrich.
  8173. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Use filename and size from Metalink file instead of sending HEAD
  8175. request:
  8176. * src/UrlRequestInfo.h
  8177. (_filename): New variable.
  8178. (_totalLength): New variable.
  8179. (setTotalLength): New variable.
  8180. (setFilename): New variable.
  8181. * src/MetalinkRequestInfo.cc
  8182. (execute): Set filename and size to UrlRequestInfo
  8183. * src/UrlRequestInfo.cc
  8184. (execute): Use filename and size from Metalink instead of seding
  8185. HEAD request to servers.
  8186. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. To add the ability to resume downloading a partially downloaded file
  8188. which is downloaded from the beginning:
  8189. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8190. takes this role.
  8191. * src/main.cc: Added -c option.
  8192. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8193. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8194. * src/prefs.h (PREF_CONTINUE): New definition.
  8195. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8196. * src/DefaultDiskWriter.cc
  8197. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8198. * src/AbstractDiskWriter.h
  8199. (glowFileAllocator): New variable.
  8200. * src/AbstractDiskWriter.cc
  8201. (openExistingFile): Now preallocate file space from the end of the
  8202. existing file if totalLength argument is specified and grater than 0.
  8203. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8204. to download exists in local, continue the download of the file.
  8205. --allow-overwrite=true is assumed in this context.
  8206. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8207. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8208. Throw exception if --check-integrity=true is specified but chunk
  8209. checksums are not provided:
  8210. * src/UrlRequestInfo.cc
  8211. Do not print URLs to stdout:
  8212. * src/UrlRequestInfo.cc
  8213. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. * src/Request.h: Use AuthResolver to get authentication information.
  8215. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8216. set to RequestFactory object.
  8217. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8218. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8219. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8220. create Request object.
  8221. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8222. To integrate Netrc into exsiting classes:
  8223. * src/Request.h
  8224. (_userDefinedAuthConfig): New variable.
  8225. (findNetrcAuthenticator): New function.
  8226. (segment): Removed.
  8227. (setUserDefinedAuthConfig): New function.
  8228. (resolveHttpAuthConfigItem): New function.
  8229. (resolveFtpAuthConfigItem): New function.
  8230. (resolveHttpProxyAuthConfigItem): New function.
  8231. * src/HttpRequest.h
  8232. (authConfig): Removed.
  8233. (proxyAuthConfig): Removed.
  8234. (setAuthConfig): Removed.
  8235. (setProxyAuthConfig): Removed.
  8236. * src/UrlRequest.h
  8237. (getHeadResult): Added a parameter: authConfigHandle
  8238. * src/common.h
  8239. (SingletonHolder.h): New include.
  8240. * src/main.cc
  8241. (Netrc.h): New include.
  8242. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8243. Added initial value of PREF_NETRC_PATH.
  8244. Added the initialization of netrc.
  8245. * src/AuthConfig.h: New class.
  8246. * src/prefs.h
  8247. (PREF_NETRC_PATH): New definition.
  8248. * src/HttpAuthConfig.h: Removed.
  8249. * src/Netrc.cc
  8250. (getRequiredNextToken): New function.
  8251. (skipMacdef): New function.
  8252. (parse): Rewritten.
  8253. * src/Netrc.h
  8254. (getRequiredNextToken): New function.
  8255. (skipMacdef): New function.
  8256. * src/Util.h, src/Util.cc
  8257. (getHomeDir): New function.
  8258. * src/TrackerWatcherComand.cc
  8259. (createRequestCommand): Use AuthConfig.
  8260. * src/FtpConnection.cc
  8261. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8262. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8263. * src/Request.cc
  8264. (findNetrcAuthenticator): New function.
  8265. (resolveHttpAuthConfigItem): New function.
  8266. (resolveFtpAuthConfigItem): New function.
  8267. (resolveHttpProxyAuthConfigItem): New function.
  8268. * src/UrlRequestInfo.cc: Use AuthConfig.
  8269. * src/HttpRequest.cc
  8270. (createRequest): Use authConfig.
  8271. (getProxyAuthString): Use authConfig.
  8272. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8273. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8274. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. To reduce overhead to find commands whose socket is either
  8276. readable or writable in the download engine loop:
  8277. * src/Command.h, src/Command.cc
  8278. (STATUS): New enum.
  8279. (status): New variable.
  8280. (statusMatch): New function.
  8281. (setStatusActive): New function.
  8282. (setStatusInactive): New function.
  8283. * src/DownloadEngine.h, src/DownloadEngine.cc
  8284. (executeCommand): New function.
  8285. (run): Simplified.
  8286. (waitData): Call Command::setStatusActive() when command's socket is
  8287. readable or writable.
  8288. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. To handle Segment as SegmentHandle:
  8290. * src/AbstractCommand.cc (execute): Rewritten.
  8291. * src/SegmentMan.h: Segment -> SegmentHandle
  8292. Introducded HttpResponse class, HttpRequest class to improve code
  8293. extensiveness and make it clear:
  8294. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8295. HttpResponse class.
  8296. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8297. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8298. * src/HttpConnection.cc: Contruction of http request were moved to
  8299. HttpRequest class.
  8300. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8301. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8302. * src/HttpAuthConfig.h: New class.
  8303. * src/Range.h: New class.
  8304. To make FtpTunnel{Request, Response}Command and
  8305. HttpProxy{Request, Response}Command derived from
  8306. AbstractProxy{Request, Response}Command:
  8307. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8308. Derived from AbstractProxyRequestCommand class.
  8309. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8310. Derived from AbstractProxyResponseCommand class.
  8311. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8312. Derived from AbstractProxyRequestCommand class.
  8313. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8314. Derived from AbstractProxyResponseCommand class.
  8315. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8316. : New class.
  8317. * src/AbstractProxyResponseCommand.h,
  8318. src/AbstractProxyResponseCommand.cc: New class.
  8319. To add netrc support:
  8320. * src/Netrc.h, src/Netrc.cc: New class.
  8321. * src/Util.h, src/Util.cc (split): New function.
  8322. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8323. "Content-Range" header instead of "Range" header.
  8324. * src/HttpHeader.h
  8325. (getStatus): Removed.
  8326. (setStatus): Removed.
  8327. * src/Segment.h
  8328. (getPositionToWrite): New function.
  8329. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. * src/HttpHeader.h
  8331. (Range.h): New include.
  8332. (status): New variable.
  8333. (HttpHeader): Initialized status with 0.
  8334. (getStatus): New function.
  8335. (setStatus): New function.
  8336. (getRange): New function.
  8337. (HttpHeaderHandle): New function.
  8338. * src/HttpHeader.cc
  8339. (getRange): New function.
  8340. * src/Request.h
  8341. (RequestWeakHandle): New definition.
  8342. * src/HttpConnection.h
  8343. (HttpConnectionHandle): New type definition.
  8344. * src/HttpConnection.cc
  8345. (receiveResponse): Set HTTP status to headers.
  8346. * src/main.cc
  8347. (showUsage): Fixed typo.
  8348. * src/Segment.h
  8349. (SegmentHandle): New type definition.
  8350. * src/BitfieldMan.h
  8351. (getMissingUnusedLength): New function.
  8352. * src/BitfieldMan.cc
  8353. (getMissingUnusedLength): New function.
  8354. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. To fix static initialization order problem:
  8356. * src/BitfieldManFactory.h
  8357. (defaultRandomizer): Removed.
  8358. (factory): New variable.
  8359. (getNewFactory): Removed.
  8360. (getFactoryInstance): New function.
  8361. (setDefaultRandomizer): Rewritten.
  8362. (getDefaultRandomizer): Rewritten.
  8363. * src/BitfieldManFactory.cc
  8364. (defaultRandomizer): Removed.
  8365. (factory): Initialized to 0.
  8366. (BitfieldManFactory): Initialized randomizer to 0.
  8367. * src/DefaultPieceStorage.cc
  8368. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8369. * src/Peer.cc
  8370. (Peer): getNewFactory() -> getFactoryInstance()
  8371. * src/SegmentMan.cc
  8372. (initBitfield): getNewFactory() -> getFactoryInstance()
  8373. * src/Piece.cc
  8374. (Piece): getNewFactory() -> getFactoryInstance()
  8375. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. To fix the bug that causes crash on Max OS X:
  8377. * src/SimpleRandomizer.h
  8378. (getInstance): Create new instance if the static variable is null.
  8379. * src/SimpleRandomizer.cc
  8380. (randomizer): Initialized to 0.
  8381. * src/BitfieldManFactory.h
  8382. (getNewFactory): Removed the call to setRandomizer().
  8383. To fix the miscalculation of the range of checksum:
  8384. * src/BitfieldMan.h
  8385. (isBitSetOffsetRange): New function.
  8386. * src/BitfieldMan.cc
  8387. (isBitSetOffsetRange): New function.
  8388. * src/SegmentMan.cc
  8389. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8390. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8391. * Release 0.10.1
  8392. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. To lower CPU usage in BitTorrent download when --max-upload-limit
  8394. command-line option specified:
  8395. * src/DefaultBtMessageDispatcher.cc
  8396. (sendMessages): Calculate uploading speed only when current message
  8397. is uploading data and is not sent yet.
  8398. * src/DefaultPeerStorage.h
  8399. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8400. * src/HttpResponseCommand.cc
  8401. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8402. This fixes compile error in Soralis 10.
  8403. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. To fix segfault in Metalink download:
  8405. * src/UrlRequestInfo.h
  8406. (filename): Removed.
  8407. (totalLength): Removed.
  8408. (setTotalLength): Removed.
  8409. (setFilename): Removed.
  8410. * src/MetalinkRequestInfo.cc
  8411. (execute): Do not set filename and totalLength to reqInfo.
  8412. Set chunk checksum to reqInfo if it is not null.
  8413. * src/HttpResponseCommand.cc
  8414. (executeInternal): Fixed filename in log.
  8415. (handleDefaultEncoding): Removed the call to initBitfield() and
  8416. markAllPiecesDone().
  8417. (handleOtherEncoding): Added HEAD method handling.
  8418. * src/FtpNegotiateCommand.cc
  8419. (executeInternal): Added SEQ_HEAD_OK handling.
  8420. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8421. return false.
  8422. * src/FtpNegotiateCommand.h
  8423. (SEQ_HEAD_OK): New definition.
  8424. * src/SegmentMan.cc
  8425. (initBitfield): Delete bitfield.
  8426. (isChunkChecksumValidationReady): Fixed the condition.
  8427. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8428. works fine.
  8429. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. * src/Xml2MetalinkProcessor.h
  8431. (xpathExists): New function.
  8432. * src/Xml2MetalinkProcessor.cc
  8433. (xpathExists): New function.
  8434. Not to send HEAD request if filename and size are available in Metalink
  8435. file:
  8436. * src/UrlRequestInfo.h
  8437. (filename): New variable.
  8438. (totalLength): New variable.
  8439. (setTotalLength): New function.
  8440. (setFilename): New function.
  8441. * src/MetalinkRequestInfo.cc
  8442. (execute): Set filename and size to UrlRequestInfo.
  8443. * src/MetalinkEntry.cc
  8444. (MetalinkEntry): Initialize size with 0.
  8445. * src/UrlRequestInfo.cc
  8446. (execute): Set filename and size to SegmentMan.
  8447. Not to download rest of the files after selected files are downloaded
  8448. in BitTorrent:
  8449. * src/PieceStorage.h
  8450. (allDownloadFinished): New function.
  8451. * src/DefaultBtAnnounce.cc
  8452. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8453. downloadFinished.
  8454. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8455. * src/DefaultPieceStorage.cc
  8456. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8457. Commented out the call to finishSelectiveDownloadingMode().
  8458. (downloadFinished): Call isFilteredAllBitSet() instead of
  8459. isAllBitSet().
  8460. (allDownloadFinished): New function.
  8461. * src/DefaultBtInteractive.cc
  8462. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8463. downloadFinished().
  8464. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8465. * src/TorrentDownloadEngine.cc
  8466. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8467. * src/BitfieldMan.h
  8468. (isFilteredAllBitSet): New function.
  8469. * src/ShareRatioSeedCriteria.h
  8470. (PieceStorage.h): New include.
  8471. (pieceStorage): New variable.
  8472. (evaluate):
  8473. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8474. * src/BitfieldMan.cc
  8475. (isFilteredAllBitSet): New function.
  8476. (isAllBitSet): Filter is not took into account.
  8477. Rename --force-truncate as --allow-overwrite:
  8478. * src/TorrentRequestInfo.cc
  8479. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8480. * src/main.cc
  8481. (showUsage): --force-truncate -> --allow-overwrite
  8482. * src/message.h
  8483. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8484. * src/prefs.h
  8485. (PREF_FORCE_TRUNCATE): Removed.
  8486. (PREF_ALLOW_OVERWRITE): New definition.
  8487. * src/SegmentMan.cc
  8488. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8489. * src/MetalinkRequestInfo.cc
  8490. (execute): Queueing message are now logged in info level.
  8491. * src/common.h
  8492. (LONG_LONG_MAX): Removed.
  8493. (LONG_LONG_MIN): Removed.
  8494. * src/HttpResponseCommand.cc
  8495. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8496. * src/FtpNegotiateCommand.cc
  8497. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8498. * src/main.cc
  8499. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8500. command-line option.
  8501. (main): Added --check-integriy and --realtime-chunk-checksum
  8502. command-line option.
  8503. --force-truncate -> --allow-overwrite
  8504. Set initial value of --check-integrity option to false.
  8505. Don't show usage when error occurs while persing command-line options.
  8506. Removed deprecated --upload-limit option.
  8507. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8509. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8510. * src/BtAllowedFastMessage.cc:
  8511. * src/BtBitfieldMessage.cc
  8512. * src/BtCancelMessage.cc
  8513. * src/BtChokeMessage.cc
  8514. * src/BtHaveAllMessage.cc
  8515. * src/BtHaveMessage.cc
  8516. * src/BtHaveNoneMessage.cc
  8517. * src/BtInterestedMessage.cc
  8518. * src/BtNotInterestedMessage.cc
  8519. * src/BtPieceMessage.cc
  8520. * src/BtPortMessage.cc
  8521. * src/BtRejectMessage.cc
  8522. * src/BtRequestMessage.cc
  8523. * src/BtSuggestPieceMessage.cc
  8524. * src/BtUnchokeMessage.cc
  8525. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8526. files are affected.
  8527. * src/ChunkChecksumValidator.cc
  8528. * src/SegmentMan.cc
  8529. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. To add chunk checksum validation:
  8531. * src/MetalinkEntry.h
  8532. (MetalinkChunkChecksum.h): New include.
  8533. (chunkChecksum): New variable.
  8534. * src/Request.h
  8535. (method): New variable.
  8536. (setMethod): New function.
  8537. (getMethod): New function.
  8538. (METHOD_GET): New static constant.
  8539. (METHOD_HEAD): New static constant.
  8540. * src/Xml2MetalinkProcessor.h
  8541. (getPieceHash): New function.
  8542. * src/PieceStorage.h
  8543. (markAllPiecesDone): New function.
  8544. (checkIntegrity): New function.
  8545. * src/FileAllocator.h
  8546. (NullFileAllocationMonitor.h): New include.
  8547. (FileAllocator): Initialize fileAllocationMonitor with new
  8548. NullFileAllocationMonitor().
  8549. * src/MultiDiskAdaptor.h
  8550. (messageDigest.h): Remove include.
  8551. (ctx): Removed.
  8552. (hashUpdate): Added ctx.
  8553. (MultiDiskAdaptor): Removed ctx.
  8554. (sha1Sum): Renamed as messageDigest.
  8555. (messageDigest): New function.
  8556. * src/UrlRequestInfo.h
  8557. (HeadResult): New class.
  8558. (digestAlgo): New variable.
  8559. (chunkChecksumLength): New variable.
  8560. (chunkChecksums): New variable.
  8561. (getHeadResult): New function.
  8562. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8563. (setDigestAlgo): New function.
  8564. (setChunkChecksumLength): New function.
  8565. (setChunkChecksums): New function.
  8566. * src/DefaultPieceStorage.cc
  8567. (DiskAdaptorWriter.h): New include.
  8568. (ChunkChecksumValidator.h): New include.
  8569. (markAllPiecesDone): New function.
  8570. (checkIntegrity): New function.
  8571. * src/DefaultBtContext.h
  8572. (getPieceHashes): New function.
  8573. * src/TorrentRequestInfo.cc
  8574. (execute): Try to validate chunk checksum if file already exists and
  8575. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8576. * src/messageDigest.h
  8577. (~MessageDigestContext): Added digestFree().
  8578. * src/MetalinkRequestInfo.cc
  8579. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8580. * src/DiskAdaptor.h
  8581. (messageDigest.h): New include.
  8582. (sha1Sum): Renamed as messageDigest.
  8583. (messageDigest): New function.
  8584. * src/DownloadCommand.h
  8585. (PeerStat.h): New include.
  8586. (maxDownloadSpeedLimit): New variable.
  8587. (startupIdleTime): New variable.
  8588. (lowestDownloadSpeedLimit): New variable.
  8589. (peerStat): New variable.
  8590. (setMaxDownloadSpeedLimit): New function.
  8591. (setStartupIdleTime): New function.
  8592. (setLowestDownloadSPeedLimit): New function.
  8593. * src/BtContext.h
  8594. (getPieceHashes): New function.
  8595. * src/main.cc
  8596. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8597. option to true for testing purpose.
  8598. * src/BtPieceMessage.cc
  8599. (checkPieceHash): Use messageDigest
  8600. * src/DownloadEngine.cc
  8601. (SetDescriptor): Removed.
  8602. (AccumulateActiveCommand): Removed.
  8603. (waitData): Rewritten.
  8604. (updateFdSet): Rewritten.
  8605. * src/MultiDiskAdaptor.cc
  8606. (hashUpdate): Added ctx.
  8607. (sha1Sum): Renamed as messageDigest.
  8608. (messageDigest): New function.
  8609. * src/BitfieldMan.h
  8610. (isBitRangeSet): New function.
  8611. (unsetBitRange): New function.
  8612. * src/ByteArrayDiskWriter.h
  8613. (sha1Sum): Renamed as messageDigest.
  8614. (messageDigest): New function.
  8615. * src/ConsoleDownloadEngine.cc
  8616. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8617. * src/DiskWriter.h
  8618. (messageDigest.h): New include.
  8619. (sha1Sum): Renamed as messageDigest.
  8620. (messageDigest): New function.
  8621. * src/ChunkChecksumValidator.h: New class.
  8622. * src/DiskAdaptorWriter.h: New class.
  8623. * src/prefs.h
  8624. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8625. (PREF_CHECK_INTEGRITY): New definition.
  8626. * src/HttpResponseCommand.cc
  8627. (handleDefaultEncoding): Added method "HEAD" handling.
  8628. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8629. (handleOtherEncoding):
  8630. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8631. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8632. startupIdleTime, lowestDownloadSpeedLimit to command.
  8633. * src/SegmentMan.h
  8634. (getSegmentEntryByIndex): New function.
  8635. (getSegmentEntryByCuid): New function.
  8636. (getSegmentEntryIteratorByCuid): New function.
  8637. (diskWriter): DiskWriter -> DiskWriterHandle
  8638. (pieceHashes): New variable.
  8639. (chunkHashLength): New variable.
  8640. (digestAlgo): New variable.
  8641. (FindPeerStat): Removed.
  8642. (getPeerStat): Rewritten.
  8643. (markAllPiecesDone): New function.
  8644. (checkIntegrity): New function.
  8645. (tryChunkChecksumValidation): New function.
  8646. (isChunkChecksumValidationReady): New function.
  8647. * src/BitfieldMan.cc
  8648. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8649. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8650. blocks to 0.
  8651. (isBitRangeSet): New function.
  8652. (unsetBitRange): New function.
  8653. * src/FtpNegotiateCommand.cc
  8654. (executeInternal): Set maxDownloadSpeedLimit,
  8655. startupIdleTime, lowestDownloadSpeedLimit to command.
  8656. (recvSize): Added method "HEAD" handling.
  8657. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8658. * src/AbstractSingleDiskAdaptor.cc
  8659. (sha1Sum): Renamed as messageDigest.
  8660. (messageDigest): New function.
  8661. * src/AbstractSingleDiskAdaptor.h
  8662. (sha1Sum): Renamed as messageDigest.
  8663. (messageDigest): New function.
  8664. * src/Util.h
  8665. (indexRange): New function.
  8666. * src/MetalinkEntry.cc
  8667. (MetalinkEntry): Initialized chunkChecksum to 0.
  8668. * src/ShaVisitor.cc
  8669. (~ShaVisitor): Removed the call to ctx.digestFree().
  8670. * src/SegmentMan.cc
  8671. (ChunkChecksumValidator.h): New include.
  8672. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8673. to DIGEST_ALGO_SHA1.
  8674. (~SegmentMan): Removed diskWriter.
  8675. (FindSegmentEntryByIndex): Removed.
  8676. (FindSegmentEntryByCuid): Removed.
  8677. (checkoutSegment): Rewritten.
  8678. (findSlowerSegmentEntry): Rewritten.
  8679. (getSegment): Rewritten.
  8680. (updateSegment): Rewritten.
  8681. (completeSegment): Rewritten.
  8682. (markAllPiecesDone): New function.
  8683. (checkIntegrity): New function.
  8684. (isChunkChecksumValidationReady): New function.
  8685. (tryChunkChecksumValidation): New function.
  8686. * src/Xml2MetalinkProcessor.cc
  8687. (getEntry): Get size and set it to entry.
  8688. Get chunk checksum and set it to entry.
  8689. (getPieceHash): New function.
  8690. * src/Util.cc
  8691. (sha1Sum): Removed ctx.digestFree()
  8692. (fileChecksum): Removed ctx.digestFree()
  8693. (indexRange): New function.
  8694. * src/Request.cc
  8695. (METHOD_GET): New variable.
  8696. (METHOD_HEAD): New variable.
  8697. (Request): Added method.
  8698. * src/UrlRequestInfo.cc
  8699. (FatalException.h): New include.
  8700. (message.h): New include.
  8701. (operator<<): Added operator<< for class HeadResult.
  8702. (getHeadResult): New function.
  8703. (execute): Get filename and size in separate download engine.
  8704. * src/ChunkChecksumValidator.cc: New class.
  8705. * src/DownloadCommand.cc:
  8706. (DownloadCommand): Added peerStat.
  8707. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8708. the value from Option.
  8709. The buffer size is now 16KB.
  8710. Use peerStat member instead of getting it from SegmentMan.
  8711. Use startupIdleTime member instead of gettingit from Option.
  8712. Added chunk checksum validation.
  8713. * src/AbstractDiskWriter.cc
  8714. (AbstractDiskWriter): Removed ctx.
  8715. (~AbstractDiskWriter): Removed ctx.digestFree()
  8716. (writeDataInternal): Returns the return value of write.
  8717. (readDataInternal): Returns the return value of read.
  8718. (sha1Sum): Renamed as messageDigest
  8719. (messageDigest): New function.
  8720. * src/AbstractDiwkWriter.h
  8721. (messageDigest.h): Removed include.
  8722. (ctx): Removed.
  8723. (sha1Sum): Renamed as messageDigest
  8724. (messageDigest): New function.
  8725. * src/DefaultPieceStorage.h
  8726. (markAllPiecesDone): New function.
  8727. (checkIntegrity): New function.
  8728. * src/NullFileAllocationMonitor.h: New class.
  8729. * src/MetalinkChunkChecksum.h: New class.
  8730. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. To decrease CPU usage in bittorrent download, calculation results in
  8732. BitfieldMan were cached and realtime fetching PeerObject was removed
  8733. with WeakHandle introduced. Option values are set to the objects
  8734. by setter before download begins.
  8735. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8736. * src/DefaultBtRequestFactory.h
  8737. (dispatcher): BtMessageDispatcherHandle ->
  8738. BtMessageDispatcherWeakHandle.
  8739. (messageFactory): New variable.
  8740. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8741. BtMessageDispatcherWeakHandle.
  8742. (setBtMessageFactory): New function.
  8743. * src/DefaultBtMessageDispatcher.cc:
  8744. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8745. from Option.
  8746. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8747. feating the value from Option.
  8748. Use messageFactory member.
  8749. * src/PeerInteractionCommand.cc
  8750. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8751. Add reverse dependencies to factory object.
  8752. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8753. dispatcher.
  8754. Set messageFactory to receiver.
  8755. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8756. btInteractive.
  8757. Set receiver to peerObject.
  8758. Set maxDownloadSpeedLimit to this.
  8759. (executeInternal): Use maxDownloadSpeedLimit member.
  8760. * src/BtChokeMessage.cc
  8761. (doReceivedAction): Use dispatcher, requestFactory member.
  8762. (onSendComplete): Use dispatcher member.
  8763. * src/PeerInteractionCommand.h
  8764. (maxDownloadSpeedLimit): New variable.
  8765. * src/DefaultBtMessageReceiver.h
  8766. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8767. (dispatcher):
  8768. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8769. (messageFactory): New variable.
  8770. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8771. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8772. (setDispatcher):
  8773. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8774. (setBtMessageFactory): New function.
  8775. * src/DefaultBtInteractive.cc
  8776. (initiateHandshake): Use messageFactory member.
  8777. (addBitfieldMessageToQueue): Use messageFactory member.
  8778. (addAllowedFastMessageToQueue): Use messageFactory member.
  8779. (decideChoking): Use messageFactory member.
  8780. (checkHave): Use messageFactory member.
  8781. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8782. (receiveMessages): Use maxDownloadSpeedLimit member.
  8783. (decideInterest): Use messageFactory member.
  8784. * src/BtRequestMessage.cc
  8785. (doReceivedAction): Use messageFactory, dispatcher member.
  8786. (onQueued): Use dispatcher member.
  8787. * src/BtPieceMessage.cc
  8788. (doReceivedAction): Use dispatcher member.
  8789. (send): Use peerConnection member.
  8790. (onWrongPiece): Use requestFactory member.
  8791. (handleChokingEvent): Use messageFactory, dispatcher member.
  8792. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8793. * src/BtMessageDispatcher.h
  8794. (BtMessageDispatcherWeakHandle): New type definition.
  8795. * src/SimpleBtMessage.cc
  8796. (send): Use peerConnection member.
  8797. * src/BtRejectMessage.cc
  8798. (doReceivedAction): Use dispatcher member.
  8799. * src/DefaultBtMessageDispatcher.h
  8800. (Option.h): Removed include.
  8801. (messageFactory): New variable.
  8802. (option): Removed.
  8803. (maxUploadSpeedLimit): New variable.
  8804. (requestTimeout): New variable.
  8805. (DefaultBtMessageDispatcher): Removed option.
  8806. Added maxUploadSpeedLimit, requestTimeout.
  8807. (setOption): Removed.
  8808. (getOption): Removed.
  8809. (setMaxUploadSpeedLimit): New function.
  8810. (setRequestTimeout): New function.
  8811. (setBtMessageFactory): New function.
  8812. * src/DefaultBtInteractive.h
  8813. (btMessageReceiver):
  8814. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8815. (dispatcher):
  8816. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8817. (btRequestFactory):
  8818. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8819. (peerConnection):
  8820. PeerConnectionHandle -> PeerConnectionWeakHandle
  8821. (messageFactory): New variable.
  8822. (option): Removed.
  8823. (keepAliveInterval): New variable.
  8824. (maxDownloadSpeedLimit): New variable.
  8825. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8826. (setBtMessageReceiver):
  8827. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8828. (setDispatcher):
  8829. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8830. (setBtRequestFactory):
  8831. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8832. (setPeerConnection):
  8833. PeerConnectionHandle -> PeerConnectionWeakHandle
  8834. (setOption): Removed.
  8835. (setKeepAliveInterval): New function.
  8836. (setMaxDownloadSpeedLimit): New function.
  8837. (setBtMessageFactory): New function.
  8838. * src/BitfieldMan.h
  8839. (cachedNumMissingBlock): New variable.
  8840. (cachedNumFilteredBlock): New variable.
  8841. (cachedCompletedLength): New variable.
  8842. (cachedFilteredComletedLength): New variable.
  8843. (cachedFilteredTotalLength): New variable.
  8844. (countMissingBlockNow): New function.
  8845. (countFilteredBlockNow): New function.
  8846. (getFilteredTotalLengthNow): New function.
  8847. (getCompletedLengthNow): New function.
  8848. (getFilteredCompletedLengthNow): New function.
  8849. (updateCache): New function.
  8850. * src/AbstractBtMessage.h
  8851. (BtMessageDispatcher.h): New include.
  8852. (PeerConnection.h): New include.
  8853. (BtRequestFactory.h): New include
  8854. (BtMessageFactory.h): New include.
  8855. (dispatcher): New variable.
  8856. (messageFactory): New variable.
  8857. (peerConnection: New variable.
  8858. (setBtMessageDispatcher): New function.
  8859. (setPeerConnection): New function.
  8860. (setBtMessageFactory): New function.
  8861. (setBtRequestFactory): New function.
  8862. * src/DefaultBtMessageFactory.cc
  8863. (setCommonProperty): Set dispatcher, requestFactory, this,
  8864. peerConnection to msg.
  8865. * src/BtRegistry.h
  8866. (BT_MESSAGE_RECEIVER): New macro.
  8867. * src/PeerConnection.h
  8868. (PeerConnectionWeakHandle): New type definition.
  8869. * src/BtMessageFactory.h
  8870. (BtMessageFactoryWeakHandle): New type definition.
  8871. * src/BitfieldMan.cc
  8872. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8873. cachedCompletedLength, cachedFilteredComletedLength,
  8874. cachedFilteredTotalLength.
  8875. Call updateCache().
  8876. (countMissingBlock): Return cachedNumMissingBlock.
  8877. (countMissingBlockNow): New function.
  8878. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8879. (countFilteredBlockNow): New function.
  8880. (setBit): Call updateCache().
  8881. (unsetBit): Call updateCache().
  8882. (setBitfield): Call updateCache().
  8883. (clearAllBit): Call updateCache().
  8884. (setAllBit): Use setBitInternal instead of setBit.
  8885. Call updateCache().
  8886. (addFilter): Call updateCache().
  8887. (enableFilter): Call updateCache().
  8888. (disableFilter): Call updateCache().
  8889. (clearFilter): Call updateCache().
  8890. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8891. (getFilteredTotalLengthNow): New function.
  8892. (getCompletedLength): Return cachedCompletedLength.
  8893. (getCompletedLengthNow): New function.
  8894. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8895. (getFilteredCompletedLengthNow): New function.
  8896. (updateCache): New function.
  8897. * src/BtMessageReceiver.h
  8898. (BtMessageReceiverWeakHandle): New type definition.
  8899. * src/DefaultBtMessageReceiver.cc
  8900. (receiveHandshake): Use messageFactory member.
  8901. (sendHandshake): Use messageFactory member.
  8902. (receiveMessage): Use messageFactory member.
  8903. * src/DefaultBtMessageFactory.h
  8904. (dispatcher): New variable.
  8905. (requestFactory): New variable.
  8906. (peerConnection): New variablle.
  8907. (setBtMessageDispatcher): New function.
  8908. (setBtRequestFactory): New function.
  8909. (setPeerConnection): New function.
  8910. * src/SharedHandle.h
  8911. (RefCount): New class.
  8912. (WeakHandle): New class.
  8913. * src/PeerObject.h
  8914. (BtMessageReceiver.h): New include.
  8915. (PeerObject): Added btMessageReceiver.
  8916. (btMessageReceiver): New variable.
  8917. * src/Util.cc
  8918. (countBit): Simplified.
  8919. * src/BtCancelMessage.cc
  8920. (doReceivedAction): Use dispatcher member.
  8921. * src/BtRequestFactory.h
  8922. (BtRequestFactoryWeakHandle): New type definition.
  8923. * src/PeerStorage.h
  8924. (downloadSpeed): int -> uint32_t
  8925. (uploadSpeed): int -> uint32_t
  8926. (sessionDownloadLength): long long int -> uint64_t
  8927. (sessionUploadLength): long long int -> uint64_t
  8928. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. To add RecoverableException, FatalException:
  8930. * src/AbstractCommand.cc
  8931. (onAbort): Exception -> RecoverableException
  8932. * src/PeerAbstractCommand.h
  8933. (RecoverableException.h): New include.
  8934. (onAbort): Exception -> RecoverableException.
  8935. * src/PeerInteractionCommand.cc
  8936. (onAbort): Exception -> RecoverableException.
  8937. * src/PeerAbstractCommand.cc
  8938. (execute): Exception -> RecoverableException.
  8939. (onAbort): Exception -> RecoverableException.
  8940. * src/TorrentRequestInfo.cc
  8941. (execute): Exception -> RecoverableException.
  8942. * src/MetalinkRequestInfo.cc
  8943. (execute): Exception -> RecoverableException.
  8944. * src/MetaFileUtil.cc: RecoverableException.
  8945. * src/AbstractCommand.h
  8946. (onAbort): Exception -> RecoverableException.
  8947. * src/DlRetryEx.h: Exception -> RecoverableException.
  8948. * src/DlAbortEx.h: Exception -> RecoverableException.
  8949. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8950. * src/Util.cc: Exception -> RecoverableException.
  8951. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8952. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8953. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8954. To make ID static const int
  8955. * src/BtInterestedMessage.h
  8956. (ID_t): Removed.
  8957. (ID): New variable.
  8958. (getId): Made non-const.
  8959. * src/BtPieceMessage.h
  8960. (ID_t): Removed.
  8961. (ID): New variable.
  8962. (getId): Made non-const.
  8963. * src/BtChokeMessage.h
  8964. (ID_t): Removed.
  8965. (ID): New variable.
  8966. (getId): Made non-const.
  8967. * src/BtHaveAllMessage.h
  8968. (ID_t): Removed.
  8969. (ID): New variable.
  8970. (getId): Made non-const.
  8971. * src/BtKeepAliveMessage.h
  8972. (ID_t): Removed.
  8973. (ID): New variable.
  8974. (getId): Made non-const.
  8975. * src/BtHandshakeMessage.h
  8976. (ID): New variable.
  8977. (getId): Made non-const.
  8978. * src/BtSuggestPieceMessage.h
  8979. (ID_t): Removed.
  8980. (ID): New variable.
  8981. (getId): Made non-const.
  8982. * src/BtPortMessage.h
  8983. (ID_t): Removed.
  8984. (ID): New variable.
  8985. (getId): Made non-const.
  8986. * src/AbstractBtMessage.h
  8987. (id): Removed.
  8988. (AbstractBtMessage): Removed id.
  8989. (getId): Removed.
  8990. * src/BtHaveMessage.h
  8991. (ID_t): Removed.
  8992. (ID): New variable.
  8993. (getId): Made non-const.
  8994. * src/BtAllowedFastMessage.h
  8995. (ID_t): Removed.
  8996. (ID): New variable.
  8997. (getId): Made non-const.
  8998. * src/BtCancelMessage.h
  8999. (ID_t): Removed.
  9000. (ID): New variable.
  9001. (getId): Made non-const.
  9002. * src/BtNotInterestedMessage.h
  9003. (ID_t): Removed.
  9004. (ID): New variable.
  9005. (getId): Made non-const.
  9006. * src/BtChokeMessage.h
  9007. (ID_t): Removed.
  9008. (ID): New variable.
  9009. (getId): Made non-const.
  9010. * src/BtRejectMessage.h
  9011. (ID_t): Removed.
  9012. (ID): New variable.
  9013. (getId): Made non-const.
  9014. * src/BtBitfieldMessage.h
  9015. (ID_t): Removed.
  9016. (ID): New variable.
  9017. (getId): Made non-const.
  9018. * src/BtUnchokeMessage.h
  9019. (ID_t): Removed.
  9020. (ID): New variable.
  9021. (getId): Made non-const.
  9022. * src/BtRequestMessage.h
  9023. (ID_t): Removed.
  9024. (ID): New variable.
  9025. (getId): Made non-const.
  9026. * src/BtHaveMessage.h
  9027. (ID_t): Removed.
  9028. (ID): New variable.
  9029. (getId): Made non-const.
  9030. To add --force-truncate command-line option and a check whether
  9031. the file already exists:
  9032. * src/DirectDiskAdaptor.h
  9033. (getFilePath): Made virtual public.
  9034. * src/MultiDiskAdaptor.h
  9035. (File.h): New include.
  9036. (DiskWriterEntry::fileEntry): Made private.
  9037. (DiskWriterEntry::fileExists): New function.
  9038. (DiskWriterEntry::getFileEntry): New function.
  9039. (fileExists): New function.
  9040. (getFilePath): New function.
  9041. * src/TorrentRequestInfo.cc
  9042. (FatalException.h): New include.
  9043. (message.h): New include.
  9044. (RecoverableException.h): New include.
  9045. (execute): Added a check whether file is already exists or not.
  9046. * src/DiskAdaptor.h
  9047. (fileExists): New function.
  9048. (getFilePath): New function.
  9049. * src/main.cc
  9050. (showUsage): Added an explanation of --force-truncate command-line
  9051. option.
  9052. (main): Added --force-truncate command-line option.
  9053. * src/Exception.h
  9054. (setMsg): buf[256] -> buf[1024]
  9055. * src/CopyDiskWriter.h
  9056. (getFilePath): Made public virtual.
  9057. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9058. (fileExists): New function.
  9059. * src/DownloadEngineFactory.cc
  9060. (newTorrentConsoleEngine): Don't open file here.
  9061. * src/message.h
  9062. (EX_FILE_ALREADY_EXISTS): New definition.
  9063. * src/prefs.h
  9064. (PREF_FOECE_TRUNCATE): New definition.
  9065. * src/HttpResponseCommand.cc
  9066. (handleDefaultEncoding): Added a check whether the file already exists.
  9067. * src/SegmentMan.h
  9068. (fileExists): New function.
  9069. (shouldCancelDownloadForSafety): New function.
  9070. * src/FtpNegotiateCommand.cc
  9071. (recvSize): Added a check whether the file already exists.
  9072. * src/AbstractSingleDiskAdaptor.cc
  9073. (File.h): New include.
  9074. (fileExists): New function.
  9075. * src/AbstractSingleDiskAdaptor.h
  9076. (getFilePath): Removed.
  9077. (fileExists): New function.
  9078. * src/SegmentMan.cc
  9079. (fileExists): New function.
  9080. (shouldCancelDownloadForSafety): New function.
  9081. To fix regression bug in torrent downloading:
  9082. * src/DefaultBtRequestFactory.cc
  9083. (doChokedAction): New function.
  9084. * src/DefaultBtRequestFactory.h
  9085. (doChokedAction): New function.
  9086. * src/DefaultBtMessageDispatcher.cc
  9087. (doChokedAction): Do not delete request if its target is in allowed
  9088. fast set.
  9089. * src/DefaultBtInteractive.cc
  9090. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9091. (sendKeepAlive): Send keep alive message even if the outgoing message
  9092. queue is not empty.
  9093. (decideInterest): Simplified the code.
  9094. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9095. it is already called when BtChokeMessage is received from a peer.
  9096. * src/BtRequestFactory.h
  9097. (doChokedAction): New function.
  9098. To clean up code:
  9099. * src/PeerInteractionCommand.h
  9100. (executeInternal): Added virtual keyword explicitly.
  9101. (prepareForRetry): Added virtual keyword explicitly.
  9102. (prepareForNextPeer): Added virtual keyword explicitly.
  9103. (onAbort): Added virtual keyword explicitly.
  9104. * src/RequestSlot.cc
  9105. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9106. * src/BtPieceMessage.cc
  9107. (doReceivedAction): Added a debug log of piece's bitfield.
  9108. * src/Piece.h
  9109. (getBitfieldLength): New function.
  9110. * src/ByteArrayDiskWriter.cc
  9111. (clear): Added buf = 0 to avoid double free corruption.
  9112. * src/FileAllocator.cc
  9113. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9114. Added cp.reset().
  9115. * src/BitfieldMan.h
  9116. (operator=): Rewritten.
  9117. * src/BitfieldMan.cc
  9118. (BitfieldMan): Initialized bitfield, useBitfield.
  9119. * src/PeerConnection.cc
  9120. (receiveMessage): Added a call to socket->readable() after getting
  9121. message length to avoid possible EOF.
  9122. * src/Util.cc
  9123. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9124. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. To add an ability to pre-allocate file space:
  9126. * src/DirectDiskAdaptor.h: Rewritten.
  9127. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9128. * src/MultiDiskAdaptor.h: Rewritten.
  9129. * src/DefaultPieceStorage.cc
  9130. (MultiDiskWriter.h): Removed include.
  9131. (PreAllocationDiskWriter.h): Removed include.
  9132. (FileAllocationMonitor.h): New include.
  9133. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9134. (initStorage): Rewritten.
  9135. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9136. * src/FileAllocator.h: New class.
  9137. * src/FileAllocator.cc: New class.
  9138. * src/FileAllocationMonitor.h: New class.
  9139. * src/FileAllocationMonitor.cc: New class.
  9140. * src/ConsoleFileAllocationMonitor.h: New class.
  9141. * src/ConsoleFileAllocationMonitor.cc: New class.
  9142. * src/AbstractSingleDiskAdaptor.h: New class.
  9143. * src/AbstractSingleDiskAdaptor.cc: New class.
  9144. * src/DiskAdaptor.h
  9145. (Directory.h): Removed include.
  9146. (DiskWriter.h): Removed include.
  9147. (FileEntry.h): Removed include.
  9148. (diskWriter): Removed.
  9149. (DiskAdaptor): Removed diskWriter.
  9150. (openFile): Made pure virtual.
  9151. (closeFile): Made pure virtual.
  9152. (openExistingFile): Made pure virtual.
  9153. (initAndOpenFile): Made pure virtual.
  9154. (writeData): Made pure virtual.
  9155. (readData): Made pure virtual.
  9156. (sha1Sum): Made pure virtual.
  9157. (getStoreDir): Returns const reference of storeDir.
  9158. (DiskAdaptorHandle): New type definition.
  9159. * src/main.cc
  9160. (ConsoleFileAllocationMonitor.h): New include.
  9161. (showUsage): Added default value description of -s option.
  9162. Added the description of --file-allocation option.
  9163. (main): Set default value of --file-allocation option to 'none'.
  9164. Added --file-allocation command-line option.
  9165. Setup FileAllocationMonitorFactory.
  9166. * src/FtpInitiateConnectionCommand.cc
  9167. (executeInternal): Removed diskWriter related processing, which was
  9168. moved to FtpNegotiationCommand.cc.
  9169. * src/DirectDiskAdaptor.cc
  9170. (getFilePath): Made non-const.
  9171. * src/CopyDiskAdaptor.h
  9172. (DiskAdaptor.h): Removed include.
  9173. (DiskWriter.h): Removed include.
  9174. (AbstractSingleDiskAdaptor.h): New include.
  9175. (getFilePath): Made non-const. Added virtual keyword.
  9176. (CopyDiskAdaptor): Removed diskWriter.
  9177. (getTempFile): Returns const reference.
  9178. (CopyDiskAdaptorHandle): New type definition.
  9179. * src/ByteArrayDiskWriter.cc
  9180. (clear): Simplified.
  9181. (initAndOpenFile): Rewritten.
  9182. (openFile): Call initAndOpenFile()
  9183. * src/MultiDiskAdaptor.cc: Rewritten.
  9184. * src/DownloadEngineFactory.cc
  9185. (FileAllocator.h): New include.
  9186. (FileAllocationMonitor.h): New include.
  9187. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9188. create DefaultDiskWriter with file allocator.
  9189. * src/DiskWriter.h
  9190. (initAndOpenFile): Added totalLength argument.
  9191. (openFile): Added totalLength argument.
  9192. * src/prefs.h
  9193. (PREF_FILE_ALLOCATION): New definition.
  9194. (V_PREALLOC): New definition.
  9195. (V_NONE): New definition.
  9196. * src/HttpResponseCommand.cc
  9197. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9198. size.
  9199. * src/FtpNegotiateCommand.cc
  9200. (Util.h): New include.
  9201. (recvSize): Open file here.
  9202. * src/Util.h
  9203. (ullitos): New function.
  9204. * src/CopyDiskWriter.h
  9205. (getFilePath): Made non-const.
  9206. * src/DefaultDiskWriter.h
  9207. (Option.h): New include.
  9208. (totalLength): Removed.
  9209. (DefaultDiskWriter): Removed totalLength.
  9210. (initAndOpenFile): Added totalLength argument.
  9211. (DefaultDiskWriterHandle): New type definition.
  9212. (createNewDiskWriter): New function.
  9213. * src/Util.cc
  9214. (ullitos): New function.
  9215. * src/DefaultDiskWriter.cc
  9216. (message.h): New include.
  9217. (FileAllocator.h): New include.
  9218. (prefs.h): New include.
  9219. (Util.h): New include.
  9220. (DefaultDiskWriter): Removed totalLength.
  9221. (initAndOpenFile): Added file allocation.
  9222. (createNewDiskWriter): New function. Just for temporary solution.
  9223. It will be rewritten later.
  9224. * src/DiskAdaptor.cc
  9225. (DiskAdaptor): Removed diskWriter.
  9226. * src/AbstractDiskWriter.cc
  9227. (LogFactory.h): New include.
  9228. (AbstractDiskWriter): Added fileAllocator, logger.
  9229. (openFile): Added totalLength argument.
  9230. * src/AbstractDiskWriter.h
  9231. (FileAllocator.h): New include.
  9232. (Logger.h): New include.
  9233. (fileAllocator): New variable.
  9234. (logger): New variable.
  9235. (openFile): Added totalLength argument. Added virtual keyword
  9236. explicitly.
  9237. (openExistingFile): Added totalLength argument. Added virtual keyword
  9238. explicitly.
  9239. (closeFile): Added virtual keyword explicitly.
  9240. (sha1Sum): Added virtual keyword explicitly.
  9241. (writeData): Added virtual keyword explicitly.
  9242. (readData): Added virtual keyword explicitly.
  9243. (setFileAllocator): New function.
  9244. * src/DefaultPieceStorage.h
  9245. (FileAllocator.h): New include.
  9246. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9247. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9248. * src/FileProgressMonitor.h: New class.
  9249. To compile aria2 on PC-BSD:
  9250. * src/DefaultBtContext.cc
  9251. (libgen.h): New include.
  9252. To fix memory leak:
  9253. * src/Exception.h
  9254. (~Exception): Delete cause. Fixed memory leak.
  9255. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Rewritten a portion of bittorrent implementation:
  9257. * src/BtMessageValidator.h: New class.
  9258. * src/BtBitfieldMessageValidator.h: New class.
  9259. * src/BtHandshakeMessageValidator.h: New class.
  9260. * src/BtRequestMessageValidator.h: New class.
  9261. * src/BtSuggestPieceMessageValidator.h: New class.
  9262. * src/BtAllowedFastMessageValidator.h: New class.
  9263. * src/BtRejectMessageValidator.h: New class.
  9264. * src/BtCancelMessageValidator.h: New class.
  9265. * src/BtPieceMessageValidator.h: New class.
  9266. * src/BtHaveMessageValidator.h: New class.
  9267. * src/BtEventListener.h: New class.
  9268. * src/AbstractBtEventListener.h: New class.
  9269. * src/BtEvent.h: New class.
  9270. * src/BtChokingEvent.h: New class.
  9271. * src/BtChokedEvent.h: New class.
  9272. * src/BtCancelSendingPieceEvent.h: New class.
  9273. * src/BtAbortOutstandingRequestEvent.h: New class.
  9274. * src/Randomizer.h: New class.
  9275. * src/SimpleRandomizer.h: New class.
  9276. * src/BtMessage.h: New class.
  9277. * src/AbstractBtMessage.h: New class.
  9278. * src/SimpleBtMessage.h: New class.
  9279. * src/BtHaveMessage.h: New class.
  9280. * src/BtInterestedMessage.h: New class.
  9281. * src/BtAllowedFastMessage.h: New class.
  9282. * src/BtUnchokeMessage.h: New class.
  9283. * src/BtCancelMessage.h: New class.
  9284. * src/BtNotInterestedMessage.h: New class.
  9285. * src/BtChokeMessage.h: New class.
  9286. * src/BtHaveNoneMessage.h: New class.
  9287. * src/BtHandshakeMessage.h: New class.
  9288. * src/BtSuggestPieceMessage.h: New class.
  9289. * src/BtHaveMessage.h: New class.
  9290. * src/BtPieceMessage.h: New class.
  9291. * src/BtHaveAllMessage.h: New class.
  9292. * src/BtKeepAliveMessage.h: New class.
  9293. * src/BtPortMessage.h: New class.
  9294. * src/BtRejectMessage.h: New class.
  9295. * src/BtBitfieldMessage.h: New class.
  9296. * src/BtRequestMessage.h: New class.
  9297. * src/DefaultBtRequestFactory.h: New class.
  9298. * src/DefaultBtMessageReceiver.h: New class.
  9299. * src/BtInteractive.h: New class.
  9300. * src/BtMessageDispatcher.h: New class.
  9301. * src/DefaultBtMessageDispatcher.h: New class.
  9302. * src/DefaultBtInteractive.h: New class.
  9303. * src/BitfieldManFactory.h: New class.
  9304. * src/HandleRegistry.h: New class.
  9305. * src/BtMessageFactory.h: New class.
  9306. * src/BtMessageReceiver.h: New class.
  9307. * src/DefaultBtMessageFactory.h: New class.
  9308. * src/PeerObject.h: New class.
  9309. * src/BtRequestFactory.h: New class.
  9310. * src/SuggestPieceMessage.h: Removed.
  9311. * src/PortMessage.h: Removed.
  9312. * src/SuggestPieceMessage.h: Removed.
  9313. * src/KeepAliveMessage.h: Removed.
  9314. * src/HandshakeMessage.h: Removed.
  9315. * src/PeerInteraction.h: Removed.
  9316. * src/UnchokeMessage.h: Removed.
  9317. * src/PieceMessage.h: Removed.
  9318. * src/RequestMessage.h: Removed.
  9319. * src/InterestedMessage.h: Removed.
  9320. * src/HaveMessage.h: Removed.
  9321. * src/CancelMessage.h: Removed.
  9322. * src/RejectMessage.h: Removed.
  9323. * src/AllowedFastMessage.h: Removed.
  9324. * src/HaveNoneMessage.h: Removed.
  9325. * src/SimplePeerMessage.h: Removed.
  9326. * src/HaveAllMessage.h: Removed.
  9327. * src/BitfieldMessage.h: Removed.
  9328. * src/PeerMessageFactory.h: Removed.
  9329. * src/NotInterestedMessage.h: Removed.
  9330. * src/ChokeMessage.h: Removed.
  9331. * src/PeerMessage.h: Removed.
  9332. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. To know root cause of exception:
  9334. * src/Exception.h
  9335. (cause): New variable.
  9336. (Exception): Added a parameter.
  9337. (getMsg): Return const reference to msg.
  9338. (getCause): New function.
  9339. * src/DlRetryEx.h
  9340. (DlRetryEx): Added a parameter 'cause'.
  9341. Added an overloaded constructor.
  9342. (DlAbortEx): Added a parameter 'cause'.
  9343. Added an overloaded constructor.
  9344. * src/SimpleLogger.cc
  9345. (writeLog): Log nested exception messages recursively.
  9346. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. * src/DefaultBtProgressInfoFile.cc
  9348. (load): Fixed memory leak when the infohash doesn't match.
  9349. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. * src/DefaultPeerStorage.cc
  9351. (calculateStat): Simplified the code by combining 2 loops into 1.
  9352. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9353. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9354. for BitTorrent download:
  9355. * src/PeerAbstractCommand.cc
  9356. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9357. * src/main.cc:
  9358. (timeoutSpecified): Removed.
  9359. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9360. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9361. * src/TorrentRequestInfo.cc
  9362. (timeoutSpecified): Removed.
  9363. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9364. timeout value.
  9365. * src/prefs.h
  9366. (PREF_BT_TIMEOUT): New definition.
  9367. Delete unused variables:
  9368. * src/TorrentRequestInfo.cc
  9369. (requestInfo): Removed.
  9370. Move setSignalHander to Util::setGlobalSignalHandler:
  9371. * src/TorrentRequestInfo.cc:
  9372. setSignalHander -> Util::setGlobalSignalHandler
  9373. * src/main.cc
  9374. (setSignalHander): Removed.
  9375. (main): setSignalHander -> Util::setGlobalSignalHandler
  9376. * src/Util.h
  9377. (setGlobalSignalHandler): New function.
  9378. * src/Util.cc
  9379. (setGlobalSignalHandler): New function.
  9380. * src/UrlRequestInfo.cc:
  9381. setSignalHander -> Util::setGlobalSignalHandler
  9382. Reset peer status in order to exit gracefully:
  9383. * src/PeerAbstractCommand.cc
  9384. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9385. To fix the bug that causes the number of bytes uploaded is not saved
  9386. to .aria2 file:
  9387. * src/DefaultPeerStorage.h
  9388. (removedPeerSessionDownloadLength): New variable.
  9389. (removedPeerSessionUploadLength): New variable.
  9390. * src/DefaultPeerStorage.cc
  9391. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9392. removedPeerSessionUploadLength(0).
  9393. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9394. through all peers, and then add removedPeerSessionDownloadLength(
  9395. removedPeerSessionUploadLength) to it.
  9396. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9397. (to) the peer to removedPeerSessionDownloadLength
  9398. (removedPeerSessionUploadLength).
  9399. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. To add Metalink location option:
  9401. * src/MetalinkRequestInfo.cc
  9402. (execute): Call MetalinkEntry::setLocationPreference()
  9403. * src/main.cc
  9404. (showUsage): Added the help message for --metalink-location option.
  9405. (main): Added --metalink-location option.
  9406. * src/prefs.h
  9407. (PREF_METALINK_LOCATION): New definition.
  9408. * src/MetalinkEntry.cc
  9409. (AddLocationPreference): New function object.
  9410. (setLocationPreference): New function.
  9411. * src/Xml2MetalinkProcessor.cc
  9412. (getResource): Set location attribute to MetalinkResource
  9413. To show URLs to download
  9414. * src/UrlRequestInfo.h
  9415. (printUrls): New function.
  9416. To add multiple <file> Metalink support:
  9417. * src/MetalinkEntry.h
  9418. (MetalinkResources): Removed.
  9419. (setLocationPreference): New function.
  9420. (MetalinkEntryHandle): New type definition.
  9421. (MetalinkEntries): New type definition.
  9422. * src/Xml2MetalinkProcessor.h
  9423. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9424. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9425. (parseFile): Metalinker* -> MetalinkerHandle
  9426. * src/UrlRequestInfo.h
  9427. (execute): RequestInfo* -> RequestInfos
  9428. * src/MetalinkRequestInfo.cc
  9429. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9430. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9431. (execute): RequestInfo* -> RequestInfos
  9432. Added multiple <file> support. Print filename when it is queued.
  9433. * src/MetalinkRequestInfo.h
  9434. (execute): RequestInfo* -> RequestInfos
  9435. (getDownloadEngine): Removed.
  9436. * src/RequestInfo.h
  9437. (RequestInfoHandle): New type definition.
  9438. (RequestInfos): New type definition.
  9439. (execute): RequestInfo* -> RequestInfos
  9440. (getDownloadEngine): Removed.
  9441. * src/MetalinkResource.h
  9442. (MetalinkResourceHandle): New type definition.
  9443. (MetalinkResources): New type definition.
  9444. * src/MetalinkEntry.cc
  9445. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9446. because the element is now of type MetalinkResourceHandle.
  9447. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9448. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9449. (dropUnsupportedResource): Removed the deletion of the elements of
  9450. resources because the element is now of type MetalinkResourceHandle.
  9451. * src/Xml2MetalinkProcessor.cc
  9452. (parseFile): Metalinker* -> MetalinkerHandle
  9453. MetalinkEntry* -> MetalinkEntryHandle
  9454. Removed try-catch block.
  9455. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9456. MetalinkResource* -> MetalinkResourceHandle
  9457. Removed try-catch block.
  9458. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9459. Free result by using xmlXPathFreeObject()
  9460. * src/Metalinker.cc
  9461. (~Metalinker): Removed the deletion of entries.
  9462. MetalinkEntry* -> MetalinkEntryHandle
  9463. (queryEntry): Add multiple <file> Metalink support.
  9464. * src/Metalinker.h
  9465. (MetalinkEntries): Removed.
  9466. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9467. * src/MetalinkProcessor.h
  9468. (parseFile): Metalinker* -> MetalinkerHandle
  9469. Bug fixes:
  9470. * src/PeerChokeCommand.cc
  9471. (execute): cat01->cat02
  9472. * src/DefaultPieceStorage.cc
  9473. (DefaultPieceStorage): Added diskAdaptor(0)
  9474. * src/TrackerWatcherComand.cc:
  9475. (execute): Use btAnnounce->noMoreAnnounce()
  9476. to determin whether the function returns true or not.
  9477. * src/TrackerUpdateCommand.cc:
  9478. (execute): Use btAnnounce->noMoreAnnounce()
  9479. to determin whether the function returns true or not.
  9480. * src/FtpConnection.cc
  9481. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9482. This is the fix of the busy loop bug.
  9483. * src/DownloadCommand.cc
  9484. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9485. cached PeerStat.
  9486. The value of "name" entry in torrent file is now set by
  9487. *DiskAdaptor::setTopDir(...) methods.
  9488. * src/MultiDiskAdaptor.h
  9489. (topDir): New variable.
  9490. (setTopDir): New function.
  9491. (getTopDir): New function.
  9492. * src/MultiDiskAdaptor.cc
  9493. (getFilePath): Concat storDir, "/" and topDir.
  9494. (mkdir): Use getFilePath() to get the directory path for output.
  9495. * src/DefaultPieceStorage.cc
  9496. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9497. CopyDiskAdaptor.
  9498. * src/CopyDiskAdaptor.h
  9499. (topDir): New variable.
  9500. (setTopDir): New function.
  9501. (getTopDir): New function.
  9502. * src/CopyDiskAdaptor.cc
  9503. (fixFilename): Updated.
  9504. Misc
  9505. * src/UrlRequestInfo.h
  9506. (e): Removed.
  9507. (UrlRequestInfo): Removed e.
  9508. (getDownloadEngine): Removed.
  9509. * src/UrlRequestInfo.cc
  9510. (handler): Rewritten.
  9511. (printUrls): New function.
  9512. (execute): Call printUrls().
  9513. * src/HandshakeMessage.cc
  9514. (check): peerinteraction->getBtContext() -> btContext
  9515. * src/PeerInteraction.h
  9516. (getBtContext): Removed.
  9517. * src/TorrentRequestInfo.h
  9518. (execute): RequestInfo* -> RequestInfos
  9519. (getDownloadEngine): Removed.
  9520. * src/TorrentRequestInfo.cc
  9521. (haltRequested): Removed.
  9522. (btHaltRequested): New variable.
  9523. (torrentHandler): haltRequested -> btHaltRequested
  9524. (execute): RequestInfo* -> RequestInfos
  9525. * src/TorrentConsoleDownloadEngine.cc
  9526. (afterEachIteration): haltRequested -> btHaltRequested.
  9527. * src/ConsoleDownloadEngine.h
  9528. (initStatistics): Added virtual.
  9529. (calculateStatistics): Added virtual.
  9530. (onEndOfRun): Added virtual.
  9531. (afterEachIteration): Added virtual.
  9532. * src/ConsoleDownloadEngine.cc
  9533. (haltRequested): New variable.
  9534. (afterEachIteration): New function.
  9535. * src/main.cc
  9536. (requestInfo): Removed.
  9537. * src/SegmentMan.cc
  9538. (findSlowerSegmentEntry): Refactored.
  9539. * Release 0.9.0
  9540. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9542. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9543. * src/TorrentMan.h: Removed.
  9544. * src/TorrentMan.cc: Removed.
  9545. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9546. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9547. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9548. * src/PeerAbstractCommand.cc: Use btRuntime.
  9549. * src/BtContextAwareCommand.h: New class.
  9550. * src/FileEntry.h: Added accessor methods for following variables.
  9551. (path): Made private.
  9552. (length): Made private.
  9553. (offset): Made private.
  9554. (extracted): Made private.
  9555. (requested): Made private.
  9556. (FileEntries): New definition.
  9557. (FileEntryHandle): New definition.
  9558. * src/FileEntry.cc: New file.
  9559. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9560. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9561. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9562. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9563. * src/PieceStorage.h: New file.
  9564. * src/PeerInteractionCommand.h: Use btContext.
  9565. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9566. btRuntime.
  9567. * src/DefaultBtProgressInfoFile.h: New file.
  9568. * src/DefaultBtProgressInfoFile.cc: New file.
  9569. * src/File.cc
  9570. (Util.h): New include.
  9571. (mkdirs): New function.
  9572. * src/MultiDiskAdaptor.h
  9573. (mkdir): New function.
  9574. * src/PeerListProcessor.h
  9575. (Peers): Removed.
  9576. * src/PeerInteraction.h
  9577. (torrentMan): Removed.
  9578. (btContext): New variable.
  9579. (peerStorage): New variable.
  9580. (pieceStorage): New variable.
  9581. (btAnnounce): New variable.
  9582. (getTorrentMan): Removed.
  9583. (getBtContext): New function.
  9584. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9585. btAnnounce.
  9586. * src/HandshakeMessage.h
  9587. (TorrentMan.h): Removed.
  9588. * src/HandshakeMessage.cc: Use btContext.
  9589. * src/DefaultBtAnnounce.cc: New file.
  9590. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9591. * src/DefaultPieceStorage.cc: New file.
  9592. * src/DefaultBtContext.h: New file.
  9593. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9594. Use the accessor methods of FileEntry.
  9595. * src/CookieBox.cc: Updated to use Util::slice().
  9596. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9597. * src/common.h (SharedHandle.h): New include.
  9598. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9599. pieceStorage.
  9600. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9601. * src/DiskAdaptor.h
  9602. (topDir): Removed.
  9603. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9604. (setTopDir): Removed.
  9605. (getTopDir): Removed.
  9606. * src/BtContext.h: New file.
  9607. * src/DefaultPeerStorage.h: New file.
  9608. * src/PieceMessage.h (TorrentMan.h): Removed.
  9609. * src/RequestMessage.h (TorrentMan.h): Removed.
  9610. * src/TorrentDownloadEngine.h
  9611. (uploadLength): New variable.
  9612. (btContext): New variable.
  9613. (btRuntime): New variable.
  9614. (pieceStorage): New variable.
  9615. (peerStorage): New variable.
  9616. (btAnnounce): New variable.
  9617. (btProgressInfoFile): New variable.
  9618. (torrentMan): Removed.
  9619. (setBtContext): New function.
  9620. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9621. peerStorage, btAnnounce, btProgressInfoFile.
  9622. * src/Piece.h
  9623. (toString): New function.
  9624. (Pieces): New type definition.
  9625. * src/Peer.h
  9626. (active): New variable.
  9627. (Peer): Added active.
  9628. (activate): Set active to true.
  9629. (deactivate): Set active to false.
  9630. (isActive): New function.
  9631. (Peers): New type definition.
  9632. * src/DirectDiskAdaptor.cc
  9633. (getFilePath): Use the accessor methods of FileEntry.
  9634. * src/TorrentConsoleDownloadEngine.h
  9635. (afterEachIteration): New function.
  9636. * src/TorrentConsoleDownloadEngine.cc
  9637. (haltRequested): New variable.
  9638. (sendStatistics): Use pieceStorage, btRuntime.
  9639. (afterEachIteration): New function.
  9640. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9641. * src/Directry.h
  9642. (Directory): New function.
  9643. (DirectoryHandle): New type definition.
  9644. * src/BtProgressInfoFile.h: New file.
  9645. * src/RequestMessage.cc: Use pieceStorage.
  9646. * src/BtRuntime.h: New file.
  9647. * src/DefaultBtContext.cc: New file.
  9648. * src/BitfieldMan.h
  9649. (getCompletedLength): New function(private).
  9650. (getCompletedLength): New function.
  9651. (getFilteredCompletedLength): New function.
  9652. * src/BitfieldMan.h
  9653. (getCompletedLength): New function(private).
  9654. (getCompletedLength): New function.
  9655. (getFilteredCompletedLength): New function.
  9656. * src/MultiDiskAdaptor.cc
  9657. (mkdir): New function.
  9658. (openFile): Call mkdir().
  9659. (initAndOpenFile): Call mkdir().
  9660. * src/CancelMessage.h
  9661. (TorrentMan.h): Removed.
  9662. * src/RejectMessage.h
  9663. (TorrentMan.h): Removed.
  9664. * src/DownloadEngineFactory.cc
  9665. (DefaultPieceStorage.h): New include.
  9666. (DefaultPeerStorage.h): New include.
  9667. (DefaultBtAnnounce.h): New include.
  9668. (DefaultBtProgressInfoFile.h): New include.
  9669. (newTorrentConsoleEngine): Rewritten.
  9670. * src/ShareRatioSeedCriteria.h
  9671. (torrentMan): Removed.
  9672. (btContext): New variable.
  9673. (peerStorage): New variable.
  9674. (btRuntime): New variable.
  9675. (evaluate): Use btContext, btRuntime, peerStorage.
  9676. * src/AnnounceTier.h: New file.
  9677. * src/BtAnnounce.h: New file.
  9678. * src/BtRegistry.h: New file.
  9679. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9680. * src/PeerConnection.h (TorrentMan.h): Removed.
  9681. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9682. * src/Util.h
  9683. (slice): Added an argument.
  9684. * src/Util.cc
  9685. (slice): Added an argument to control whether trim is made or not.
  9686. * src/PeerStorage.h: New file.
  9687. * src/BtRegistry.cc: New file.
  9688. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9689. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9690. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9691. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9692. * src/TorrentRequestInfo.h
  9693. (e): Removed.
  9694. (showFileEntry): Added an argument.
  9695. (getDownloadEngine): Return 0.
  9696. * src/DefaultBtAnnounce.h: New file.
  9697. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9698. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9699. * src/PeerMessageFactory.h
  9700. (btContext): New variable.
  9701. (pieceStorage): New variable.
  9702. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9703. btAnnounce.
  9704. * src/DiskAdaptor.cc
  9705. (DiskAdaptor): Removed topDir.
  9706. (~DiskAdaptor): Removed topDir.
  9707. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9708. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9709. * src/File.h (mkdirs): New function.
  9710. * src/DefaultPeerStorage): New file.
  9711. * src/DownloadEngineFactory.h
  9712. (newTorrentConsoleEngine): Use btContext.
  9713. * src/BtContextAwareCommand.cc: New file.
  9714. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9715. * src/PeerMessage.h
  9716. (btContext): New variable.
  9717. (peerStorage): New variable.
  9718. (pieceStorage): New variable.
  9719. (setBtContext): New function.
  9720. * src/Directry.cc
  9721. (Directory): New function.
  9722. (createDir): Do nothing if name.size() == 0.
  9723. * src/AnnounceList.h
  9724. (AnnounceTier): Removed.
  9725. (AnnounceTiers): Removed.
  9726. * src/DefaultPieceStorage.h: New file.
  9727. * src/Piece.cc (toString): New function.
  9728. To fix typo:
  9729. * src/main.cc (showVersion): Fixed typo.
  9730. To fix compile warning:
  9731. * src/DelegatingPeerListProcessor.cc
  9732. (canHandle): Added "return false".
  9733. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9735. make the process of announce request testable.
  9736. * src/TrackerWatcherCommand.h
  9737. (TimeA2.h): Removed.
  9738. (interval): Removed.
  9739. (checkPoint): Removed.
  9740. (createRequestCommand): Added an argument 'url'.
  9741. (TrackerWatherCommand): Removed interval.
  9742. (createCommand): New function.
  9743. * src/DownloadEngineFactory.cc
  9744. (newTorrentConsoleEngine): Updated according to the changes in
  9745. TrackerWatherCommand.
  9746. * src/TorrentMan.cc
  9747. (DelegatingPeerListProcessor.h): New includes.
  9748. (TorrentMan): Added the initialization of announceInterval.
  9749. (isStoppedAnnounceReady): New function.
  9750. (isCompletedAnnounceReady): New function.
  9751. (isDefaultAnnounceReady): New function.
  9752. (isAnnounceReady): New function.
  9753. (getAnnounceUrl): New function.
  9754. (announceStart): New function.
  9755. (announceFailure): New function.
  9756. (announceSuccess): New function.
  9757. (isAllAnnounceFailed): New function.
  9758. (resetAnnounce): New function.
  9759. (processAnnounceResponse): New function.
  9760. (needMorePeerConnection): New function.
  9761. (noMoreAnnounce): New function.
  9762. * src/TrackerUpdateCommand.h
  9763. (getTrackerResponse): int->size_t
  9764. * src/TorrentMan.h
  9765. (isStoppedAnnounceReady): New function.
  9766. (isCompletedAnnounceReady): New function.
  9767. (isDefaultAnnounceReady): New function.
  9768. (announceInterval): New variable.
  9769. (isAnnounceReady): New function.
  9770. (getAnnounceUrl): New function.
  9771. (announceStart): New function.
  9772. (announceFailure): New function.
  9773. (announceSuccess): New function.
  9774. (isAllAnnounceFailed): New function.
  9775. (resetAnnounce): New function.
  9776. (processAnnounceResponse): New function.
  9777. (needMorePeerConnection): New function.
  9778. (noMoreAnnounce): New function.
  9779. * src/TrackerWatcherCommand.cc
  9780. (TrackerWatherCommand): Removed interval and checkPoint.
  9781. (execute): Rewritten.
  9782. (createCommand): New function.
  9783. (createRequestCommand): Rewritten.
  9784. * src/TrackerUpdateCommand.cc
  9785. (MetaFileUtil.h): Removed.
  9786. (DelegatingPeerListProcessor.h): Removed.
  9787. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9788. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Request -> RequestHandle:
  9790. * src/HttpResponseCommand.h: Request->RequestHandle
  9791. * src/AbstractCommand.cc: Request->RequestHandle
  9792. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9793. * src/HttpRequestCommand.cc: Request->RequestHandle
  9794. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9795. * src/AbstractCommand.h: Request->RequestHandle
  9796. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9797. * src/HttpResponseCommand.cc: Request->RequestHandle
  9798. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9799. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9800. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9801. * src/HttpConnection.h: Request->RequestHandle
  9802. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9803. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9804. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9805. * src/DownloadCommand.h: Request->RequestHandle
  9806. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9807. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9808. * src/HttpRequestCommand.h: Request->RequestHandle
  9809. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9810. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9811. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9812. * src/HttpDownloadCommand.h: Request->RequestHandle
  9813. * src/FtpConnection.cc: Request->RequestHandle
  9814. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9815. * src/UrlRequestInfo.cc: Request->RequestHandle
  9816. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9817. * src/HttpConnection.h: Request->RequestHandle
  9818. * src/DownloadCommand.cc: Request->RequestHandle
  9819. * src/FtpConnection.h: Request->RequestHandle
  9820. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9821. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9822. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9823. * src/Request.h
  9824. (SharedHandle.h): New include.
  9825. (RequestHandle): New type definition.
  9826. (Requests): Redefined.
  9827. To add MULTITRACKER support:
  9828. * src/TrackerWatcherCommand.h
  9829. (createRequestCommand): New function.
  9830. * src/DownloadEngineFactory.cc
  9831. (newTorrentConsoleEngine): Removed req.
  9832. * src/prefs.h
  9833. (PREF_TRACKER_MAX_TRIES): New definition.
  9834. * src/TorrentMan.cc
  9835. (TorrentMan): Removed req. Added trackerNumTry.
  9836. (~TorrentMan): Removed req.
  9837. (setupInternal1): Added announceList.
  9838. * src/TorrentRequestInfo.cc
  9839. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9840. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9841. * src/main.cc
  9842. (main): Added PREF_TRACKER_MAX_TRIES.
  9843. * src/TorrentMan.h
  9844. (Request.h): Removed.
  9845. (AnnounceList.h): New include.
  9846. (trackerNumTry): New variable.
  9847. (req): Removed.
  9848. (announceList): New variable.
  9849. * src/TrackerWatcherCommand.cc
  9850. (execute): Rewritten.
  9851. (createRequestCommand): New function.
  9852. * src/TrackerUpdateCommand.cc
  9853. (execute): Updated with the use of AnnounceList.
  9854. * src/AnnounceList.cc: New class.
  9855. * src/AnnounceList.h: New class.
  9856. To fix typo:
  9857. * src/prefs.h
  9858. (PREF_MAX_TRIES): max_try->max_tries
  9859. To not to decode "+" as space in URL decode:
  9860. * src/Util.cc
  9861. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9862. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. To add timeout to async name resolution:
  9864. * src/AbstractCommand.h
  9865. (nameResolveFinished): New function. This is not elegant way. It needs
  9866. to be more refined.
  9867. (nameResolverCheck): New variable.
  9868. * src/AbstractCommand.cc
  9869. (AbstractCommand): Added nameResolverCheck.
  9870. (execute): Added the check whether the name resolution has finished.
  9871. (setNameResolverCheck): Set nameResolverCheck to true.
  9872. (disableNameResolverCheck): Set nameResolverCheck to false.
  9873. (nameResolverFinished): New function.
  9874. * src/FtpInitiateConnectionCommand.h
  9875. (nameResolverFinished): New function.
  9876. * src/FtpInitiateConnectionCommand.cc
  9877. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9878. * src/HttpInitiateConnectionCommand.h
  9879. (nameResolverFinished): New function.
  9880. * src/HttpInitiateConnectionCommand.cc
  9881. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9882. * src/prefs.h
  9883. (PREF_DNS_TIMEOUT): New definition.
  9884. * src/main.cc
  9885. (main): Added PREF_DNS_TIMEOUT.
  9886. To add the support for a non-compact response from a tracker:
  9887. * src/PeerListProcessor.h: New class.
  9888. * src/DefaultPeerListProcessor.h: New class.
  9889. * src/DefaultPeerListProcessor.cc: New class.
  9890. * src/CompactPeerListProcessor.h: New class.
  9891. * src/CompactPeerListProcessor.cc: New class.
  9892. * src/DelegatingPeerListProcessor.h: New class.
  9893. * src/DelegatingPeerListProcessor.cc: New class.
  9894. * src/TorrentMan.cc
  9895. (addPeer): New function(overload).
  9896. (addPeer): Delete unused peers only when new peer is added.
  9897. * src/TorrentMan.h
  9898. (PeerListProcessor.h): Included.
  9899. (Peers): Removed.
  9900. (addPeer): New function(overload).
  9901. * src/TrackerUpdateCommand.cc
  9902. (netinet/in.h): Removed.
  9903. (DelegatingPeerListProcessor.h): Included.
  9904. (execute): Updated to use DelegatingPeerListProcessor.
  9905. To fix the memory leak in TorrentMan::peers:
  9906. * src/PeerAbstractCommand.cc
  9907. (onAbort): Added peer->resetStatus().
  9908. * src/Peer.h
  9909. (resetStatus): Made public.
  9910. To improve the precision of the speed calculation:
  9911. * src/SpeedCalc.h
  9912. (nextInterval): New variable.
  9913. * src/SpeedCalc.cc
  9914. (reset): Added nextInterval.
  9915. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9916. (changeSw): Set nextInterval to 15 seconds relative to the current
  9917. instant time.
  9918. * src/main.cc
  9919. (showVersion): Updated.
  9920. (showUsage): Updated.
  9921. * Release 0.8.1
  9922. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. * src/main.cc
  9924. (showUsage): Commented out --min-segment-size option.
  9925. (main): Commented out --min-segment-size option.
  9926. * Release 0.8.0
  9927. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. * src/*.{h,cc}:
  9929. Added an exception to the license which allows linking with OpenSSL.
  9930. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. * src/AbstractCommand.cc
  9932. (execute): Check whether the download has finished before checking
  9933. socket status.
  9934. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9935. Do not exit even if no segment is available.
  9936. * src/prefs.h
  9937. (PREF_STARTUP_IDLE_TIME): New definition.
  9938. * src/PeerInteractionCommand.cc
  9939. (executeInternal): Removed max speed limit. Because it performs bad.
  9940. (receiveMessages): Added max speed limit. This was better than above,
  9941. but still a little bit to be desired. Sometimes the download speed
  9942. became much faster than I specified.
  9943. * src/SpeedCalc.h
  9944. (start): New variable.
  9945. (accumulatedLength): New variable.
  9946. (getAvgSpeed): New function.
  9947. * src/SpeedCalc.cc
  9948. (reset): Added start, accumulatedLength.
  9949. (update): Added calculation of an average speed.
  9950. (getAvgSpeed): New function.
  9951. * src/DownloadCommand.h
  9952. (sw): Removed.
  9953. * src/main.cc
  9954. (main): Added PREF_STARTUP_IDLE_TIME.
  9955. * src/PeerStat.h
  9956. (STATUS): Added REQUEST_IDLE.
  9957. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9958. (getAvgDownloadSpeed): New function
  9959. (requestIdle): New function.
  9960. * src/SegmentMan.h
  9961. (SegmentEntryHandle): New type definition.
  9962. (SegmentEntries): Now holds SegmentEntryHandle.
  9963. (findSlowerSegmentEntry): New funtion.
  9964. * src/SegmentMan.cc
  9965. (save): Updated according to the changes in SegmentEntries.
  9966. (read): Updated according to the changes in SegmentEntries.
  9967. (FindSegmentEntryByIndex): Updated according to the changes in
  9968. SegmentEntries.
  9969. (FindSegmentEntryByCuid): Updated according to the changes in
  9970. SegmentEntries.
  9971. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9972. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9973. Renamed uitr as itr.
  9974. (findSlowerSegmentEntry): New function.
  9975. (getSegment): Updated according to the changes in SegmentEntries.
  9976. Added the feature that cancels the segment with slow server and fast
  9977. one takes it over.
  9978. (cancelSegment): Updated according to the changes in SegmentEntries.
  9979. (getDownloadLength): Updated according to the changes in
  9980. SegmentEntries.
  9981. (init): Assigned 0 to bitfield after deleting it.
  9982. * src/DownloadCommand.cc
  9983. (STARTUP_IDLE_TIME): Removed.
  9984. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9985. * src/PeerChokeCommand.cc
  9986. (optUnchokingPeer): Updated according to the changes in Peer.
  9987. (ResetDelta): Removed.
  9988. (UploadFaster): Updated according to the changes in Peer.
  9989. (DownloadFaster): Updated according to the changes in Peer.
  9990. (execute): I clarify the meaning of "upload" and "download" here.
  9991. "upload" means the transfer from localhost to remote host.
  9992. "download" means the transfer from remote host to localhost.
  9993. Based on this rule, I swapped orderByUploadRate and
  9994. orderByDownloadRate.
  9995. * src/PeerInteractionCommand.cc
  9996. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9997. (executeInternal): Removed the argument of
  9998. peerInteraction->sendMessages().
  9999. (receiveMessages): Rewritten download speed limit.
  10000. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10001. * src/HttpResponseCommand.cc
  10002. (handleDefaultEncoding): If file size is unknown in torrent request,
  10003. do not call segmentMan->initBitfield() here.
  10004. Disabled persistent connection feature in torrent request.
  10005. * src/UrlRequestInfo.h
  10006. (UrlRequestInfo): Removed const qualifier from option.
  10007. * src/TorrentMan.h
  10008. (TransferStat): New class.
  10009. (deltaDownloadLength): Removed.
  10010. (deltaUploadLength): Removed.
  10011. (addDeltaDownloadLength): Removed.
  10012. (getDeltaDownloadLength): Removed.
  10013. (resetDeltaDownloadLength): Removed.
  10014. (addDeltaUploadLength): Removed.
  10015. (getDeltaUploadLength): Removed.
  10016. (resetDeltaUploadLength): Removed.
  10017. (addActivePeer): Added peer->activate().
  10018. (deleteActivePeer): Added peer->deactivate().
  10019. (calculateStat): New function.
  10020. * src/TorrentMan.cc
  10021. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10022. (calculateStat): New function.
  10023. * src/PeerInteraction.h
  10024. (uploadLimit): Removed.
  10025. (option): New variable.
  10026. (setUploadLimit): Removed.
  10027. (getUploadSpeed): Removed.
  10028. (sendMessages): Removed the argument "currentUploadSpeed".
  10029. * src/PeerInteraction.cc
  10030. (prefs.h): Included.
  10031. (PeerInteraction): Removed uploadLimit. Added option.
  10032. (sendMessages): Rewritten upload speed limit.
  10033. (sendHandshake): Removed the argument from sendMessages().
  10034. (sendBitfield): Removed the argument from sendMessages().
  10035. * src/PeerAbstractCommand.cc
  10036. (execute): Commented out the portion of upload limit.
  10037. (onAbort): Removed peer->resetStatus().
  10038. * src/TorrentRequestInfo.cc
  10039. (timeoutSpecified): Declared extern.
  10040. (execute): Set timeout to 180 if timeout is not specified by.
  10041. command-line.
  10042. * src/PieceMessage.cc
  10043. (receivedAction): Added peer->updateDownloadLength().
  10044. Removed peer->addPeerUpload().
  10045. Removed torrentMan->addDeltaDownloadLength().
  10046. (send): Added peer->updateUploadLength().
  10047. Removed peer->addPeerDownload().
  10048. Removed torrentMan->addDeltaUploadLength().
  10049. * src/main.cc
  10050. (timeoutSpecified): New variable.
  10051. (main): Set timeoutSpecified to false.
  10052. If the command-line option "--upload-limit" is specified, then
  10053. timeoutSpecified is set to true. This option will remain in the next
  10054. release, but be deprecated in the future release.
  10055. * src/TorrentRequestInfo.h
  10056. (TorrentRequestInfo): Removed const qualifier from op.
  10057. * src/PeerStat.h
  10058. (uploadSpeed): New variable.
  10059. (PeerStat): Added default value to cuid.
  10060. (calculateUploadSpeed): New function.
  10061. (updateUploadLength): New function.
  10062. (getMaxUploadSpeed): New function.
  10063. (getAvgUploadSpeed): New function.
  10064. (reset): Added uploadSpeed. Set status to IDLE.
  10065. * src/TorrentDownloadEngine.h
  10066. (cp): Declared as Time.
  10067. (sessionDownloadLengthArray): Removed.
  10068. (sessionUploadLengthArray): Removed.
  10069. (currentCp): Removed.
  10070. (lastCalcStat): New variable
  10071. (lastElapsed): Removed.
  10072. (sessionDownloadLength): Removed.
  10073. (calculateStat): New function.
  10074. * src/TorrentDownloadEngine.cc
  10075. (initStatistics): Removed lastElapsed, cp[],
  10076. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10077. currentCp, sessionDownloadLength.
  10078. Added cp.reset() and lastCalcStat.reset().
  10079. (calculateSpeed): Changed the name of the argument.
  10080. (calculateStatistics): Rewritten.
  10081. (calculateStat): New function.
  10082. * src/Peer.h
  10083. (PeerStat.h): Included.
  10084. (peerUpload): Removed.
  10085. (peerDownload): Removed.
  10086. (peerStat): New variable.
  10087. (sessionUploadLength): New variable.
  10088. (sessionDownloadLength): New variable.
  10089. (deltaUpload): Removed.
  10090. (deltaDownload): Removed.
  10091. (resetStatus): Made private.
  10092. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10093. Removed peerUpload, peerDownload.
  10094. (updateUploadLength): New function.
  10095. (addDeltaUpload): Removed.
  10096. (updateDownloadLength): New function.
  10097. (resetDeltaUpload): Removed.
  10098. (getDeltaUpload): Removed.
  10099. (addDeltaDownload): Removed.
  10100. (calculateUploadSpeed): New function.
  10101. (resetDeltaDownload): Removed.
  10102. (getDeltaDownload): Removed.
  10103. (calculateDownloadSpeed): New function.
  10104. (getSessionUploadLength): New function.
  10105. (getSessionDownloadLength): New function.
  10106. (activate): New function.
  10107. (deactivate): New function.
  10108. (addPeerUpload): Removed.
  10109. (setPeerUpload): Removed.
  10110. (getPeerUpload): Removed.
  10111. (addPeerDownload): Removed.
  10112. (setPeerDownload): Removed.
  10113. (getPeerDownload): Removed.
  10114. * src/Peer.cc
  10115. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10116. * src/MetalinkRequestInfo.h
  10117. (MetalinkRequestInfo): Removed const qualifier from op.
  10118. * src/RequestInfo.h
  10119. (op): Removed const qualifier.
  10120. (RequestInfo): Removed const qualifier from op.
  10121. * src/prefs.h
  10122. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10123. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10124. * src/PeerInteractionCommand.cc
  10125. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10126. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10127. * src/PeerInteraction.cc
  10128. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10129. * src/main.cc
  10130. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10131. Added the description of "--max-download-limit" option.
  10132. Removed the description of "--upload-limit" option.
  10133. Added the description of "--max-upload-limit" option.
  10134. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10135. Added "--max-download-limit" option and "--max-upload-limit" option.
  10136. Added the warning message if "--upload-limit" option is used.
  10137. * src/DownloadCommand.cc
  10138. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10139. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. To rewrite segment download mechanism for HTTP/FTP download.
  10141. Use BitfieldMan to manage segment download.
  10142. * src/HttpResponseCommand.h
  10143. (executeInternal): Pass the reference of segment.
  10144. * src/AbstractCommand.cc
  10145. (prepareForRetry): Call segmentMan->cancelSegment here.
  10146. (onAbort): Call segmentMan->cancelSegment here.
  10147. * src/HttpDownloadCommand.cc
  10148. (prepareForNextSegment): New function.
  10149. * src/DownloadEngineFactory.cc
  10150. (newConsoleEngine): Removed splitter.
  10151. (newTorrentConsoleEngine): Removed splitter.
  10152. * src/Request.h
  10153. (segment): Renamed from seg.
  10154. * src/FtpInitiateConnectionCommand.h
  10155. (executeInternal): Pass the reference of segment.
  10156. * src/AbstractCommand.h
  10157. (executeInternal): Pass the reference of segment.
  10158. * src/pref.h
  10159. (PREF_SEGMENT_SIZE): New definition.
  10160. * src/HttpProxyRequestCommand.h
  10161. (executeInternal): Pass the reference of segment.
  10162. * src/HttpResponseCommand.cc
  10163. (checkResponse): Allowed status 206 when a request range starts 0.
  10164. (handleDefaultEncoding): Rewritten the code related to Segment.
  10165. (handleOtherEncoding): Rewritten the code related to Segment.
  10166. * src/SegmentMan.h
  10167. (SegmentEntry): New class.
  10168. (SegmentEntries): New type definition.
  10169. (bitfield): New variable.
  10170. (usedSegmentEntries): New variable.
  10171. (onNullBitfield): New function.
  10172. (checkoutSegment): New function.
  10173. (segments): Removed.
  10174. (splitter): Removed.
  10175. (unregisterId): Removed.
  10176. (getSegment): New function(overload)
  10177. (getDownloadedSize): Removed.
  10178. (cancelSegment): New function.
  10179. (completeSegment): New function.
  10180. (initBitfield): New function.
  10181. (hasSegment): New function.
  10182. (getDownloadLength): New function.
  10183. * src/BitfieldMan.h
  10184. (getStartIndex): New function.
  10185. (getEndIndex): New function.
  10186. (getMissingUnusedIndex): New function(overload).
  10187. (getSparseMissingUnusedIndex): New function.
  10188. * src/BitfieldMan.cc
  10189. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10190. (getMissingUnusedIndex): New function(overload).
  10191. (Range): New class.
  10192. (getStartIndex): New function.
  10193. (getEndIndex): New function.
  10194. (getSparseMissingUnusedIndex): New function.
  10195. (isBitSetInternal): Return false if the given index is less than 0.
  10196. * src/HttpInitiateConnectionCommand.h
  10197. (executeInternal): Pass the reference of segment.
  10198. * src/FtpNegotiateCommand.h
  10199. (executeInternal): Pass the reference of segment.
  10200. * src/FtpNegotiateCommand.cc
  10201. (recvSize): Initialize bitfield here.
  10202. * src/FtpTunnelResponseCommand.h
  10203. (executeInternal): Pass the reference of segment.
  10204. * src/HttpConnection.cc
  10205. (createRequest): Rewritten range header processing.
  10206. * src/DownloadCommand.h
  10207. (executeInternal): Pass the reference of segment.
  10208. (prepareForRetry): Removed.
  10209. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10210. function.
  10211. * src/main.cc
  10212. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10213. * src/SegmentMan.cc
  10214. (SegmentMan): Added bitfield. Removed splitter.
  10215. (~SegmentMan): Added bitfield. Removed splitter.
  10216. (unregisterId): Removed.
  10217. (getSegment): Rewritten.
  10218. (updateSegment): Rewritten.
  10219. (save): Rewritten.
  10220. (read): Rewritten.
  10221. (finished): Rewritten.
  10222. (getDownloadedSize): Removed.
  10223. (initBitfield): New function.
  10224. (FindSegmentEntryByIndex): New function object.
  10225. (FindSegmentEntryByCuid): New function object.
  10226. (checkoutSegment): New function.
  10227. (onNullBitfield): New function.
  10228. (getSegment): New function(overload).
  10229. (CancelSegment): New function object.
  10230. (cancelSegment): New function.
  10231. (completeSegment): New function.
  10232. (hasSegment): New function.
  10233. (getDownloadLength): New function.
  10234. * src/FtpInitiateConnectionCommand.cc
  10235. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10236. * src/Segment.h: Rewritten.
  10237. * src/Segment.cc (operator<<): New function.
  10238. * src/HttpDownloadCommand.h
  10239. (prepareForNextSegment): New function.
  10240. * src/Request.cc
  10241. (resetUrl): Made segment null.
  10242. * src/DownloadEngine.cc
  10243. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10244. * src/HttpProxyRequestCommand.h
  10245. (executeInternal): Pass the reference of segment.
  10246. * src/DownloadCommand.cc
  10247. (executeInternal): Rewritten the code related to Segment.
  10248. (prepareForRetry): Removed.
  10249. (prepareForNextSegment): Rewritten.
  10250. * src/FtpTunnelResponseCommand.h
  10251. (executeInternal): Pass the reference of segment.
  10252. To add HTTP 1.1 persistent connection support(experimental)
  10253. * src/HttpRequestCommand.cc
  10254. (executeInternal): Disable keep alive if it is disabled by
  10255. configuration.
  10256. * src/Request.h
  10257. (keepAlive): New variable.
  10258. (isKeepAlive): New function.
  10259. (setKeepAlive): New function.
  10260. * src/pref.h
  10261. (PREF_HTTP_KEEP_ALIVE): New definition.
  10262. * src/HttpResponseCommand.cc
  10263. (executeInternal): Check the remote server supports keep alive.
  10264. * src/HttpConnection.cc
  10265. (createRequest): Send "Connection: close" only if keep alive is
  10266. disabled.
  10267. * src/main.cc
  10268. (main):
  10269. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10270. To add max download speed limit:
  10271. * src/pref.h
  10272. (PREF_MAX_SPEED_LIMIT): New definition.
  10273. * src/PeerInteractionCommand.cc
  10274. (executeInternal): Added max download speed limit. Not tested yet.
  10275. * src/SegmentMan.h
  10276. (PeerStats): New type definition.
  10277. (peerStats): New variable.
  10278. (registerPeerStat): New function.
  10279. (FindPeerStat): New function object.
  10280. (getPeerStat): New function.
  10281. (calculateDownloadSpeed): New function.
  10282. * src/SpeedCalc.h: New class.
  10283. * src/SpeedCalc.cc: New class.
  10284. * src/main.cc
  10285. (main):
  10286. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10287. download speed is not restricted).
  10288. * src/PeerStat.h: New class.
  10289. * src/SegmentMan.cc
  10290. (registerPeerStat): New function.
  10291. (calculateDownloadSpeed): New function.
  10292. * src/DownloadCommand.cc
  10293. (STARTUP_IDLE_TIME): New definition.
  10294. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10295. downloadStart.
  10296. (~DownloadCommand): Call peerStat->downloadStop.
  10297. (executeInternal): Added download speed limitter. Rewritten lowest
  10298. speed limitter.
  10299. * src/HttpConnection.cc
  10300. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10301. * src/AbstractCommand.cc
  10302. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10303. Added hostname to the error message.
  10304. * src/ConsoleDownloadEngine.cc
  10305. (calculateStatistics): Initialize psize with dlSize.
  10306. * src/PieceMessage.cc
  10307. (receivedAction): Do not call peerInteraction->abortPiece here.
  10308. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10309. * src/BitfieldMan.h
  10310. (clearAllUseBit): New function.
  10311. (setAllUseBit): New function.
  10312. * src/BitfieldMan.cc
  10313. (clearAllBit): Do not clear useBitfield here.
  10314. (clearAllUseBit): New function.
  10315. (setAllUseBit): New function.
  10316. * src/Piece.cc
  10317. (clearAllBlock): Call bitfield->clearAllUseBit().
  10318. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. To make filename URL-decoded:
  10320. * src/HttpResponseCommand.h: Updated doc.
  10321. * src/HttpResponseCommand.cc
  10322. (determinFilename): Made filename URL-decoded.
  10323. * src/FtpInitiateConnectionCommand.cc
  10324. (executeInternal): Made filename URL-decoded.
  10325. * src/Util.h (urldecode): New function.
  10326. * src/Util.cc (urldecode): New function.
  10327. To fix a bug that caused assertion failure in ares_strerror:
  10328. * src/NameResolver.cc (callback): Fixed the bug.
  10329. * Release 0.7.3
  10330. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. To add --seed-time and --seed-ratio command-line option:
  10332. * src/Option.h (getAsDouble): New function.
  10333. * src/Option.cc (getAsDouble): New function.
  10334. * src/SeedCheckCommand.h: New class.
  10335. * src/SeedCheckCommand.cc: New class.
  10336. * src/DownloadEngineFactory.cc
  10337. (SeedCheckCommand.h): Included.
  10338. (UnionSeedCriteria.h): Included.
  10339. (TimeSeedCriteria.h): Included.
  10340. (ShareRatioSeedCriteria.h): Included.
  10341. (newTorrentConsoleEngine): Added the processing of seed option.
  10342. * src/SeedCriteria.h: New class.
  10343. * src/ShareRatioSeedCriteria.h: New class.
  10344. * src/TimeSeedCriteria.h: New class.
  10345. * src/UnionSeedCriteria.h: New class.
  10346. * src/prefs.h
  10347. (PREF_SEED_TIME): New definition.
  10348. (PREF_SEED_RATIO): New definition.
  10349. * src/main.cc
  10350. (showUsage): Added --seed-time and --seed-ratio option.
  10351. (main): Added --seed-time and --seed-ratio option.
  10352. Made default log file name "/dev/null".
  10353. * src/SharedHandle.h
  10354. (SharedHandle): Copy constructor. Made it assignable from the
  10355. SharedHandle of the subclasses.
  10356. (operator=): Made it assignable from the SharedHandle of the
  10357. subclasses.
  10358. (getRefCount): New function.
  10359. To add notice log level and the switch to write log to stdout. This
  10360. switch is configurable per log level.
  10361. * src/Logger.h
  10362. (notice): New function.
  10363. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10364. constant.
  10365. * src/LogFactory.cc
  10366. (getInstance): The use of NullLogger was removed. A log message with
  10367. notice log level was made written to stdout along with log file.
  10368. * src/NullLogger.h
  10369. (notice): New function.
  10370. * src/SimpleLogger.h
  10371. (writeHeader): Added the 'file' argument.
  10372. (writeLog): Added the 'file' argument.
  10373. (writeFile): New function.
  10374. (stdoutField): New variable.
  10375. (SimpleLogger): Removed the default constructor.
  10376. (SimpleLogger): Made the default value of logfile 0.
  10377. (debug): Added 'virtual' keyword.
  10378. (info): Added 'virtual' keyword.
  10379. (warn): Added 'virtual' keyword.
  10380. (error): Added 'virtual' keyword.
  10381. (notice): New function.
  10382. (setStdout): New function.
  10383. * src/SimpleLogger.cc
  10384. (WRITE_LOG): Replaced writeLog with writeFile.
  10385. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10386. (SimpleLogger): Removed the default constructor.
  10387. (setStdout): New function.
  10388. (writeLog): Added the handling of NOTICE log level.
  10389. (writeFile): New function.
  10390. (notice): New function.
  10391. * src/TorrentMan.h: Updated doc.
  10392. * src/BitfieldMan.h: Updated doc.
  10393. * src/TrackerWatcherCommand.cc
  10394. (execute): Return true if error occurred in the request to the tracker
  10395. and halt is requested.
  10396. * src/TrackerUpdateCommand.cc
  10397. (execute): Return true if error occurred in the request to the tracker
  10398. and halt is requested.
  10399. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10400. DownloadEngine:
  10401. * src/TorrentConsoleDownloadEngine.h
  10402. (onSelectiveDownloadingCompletes): Removed.
  10403. * src/TorrentConsoleDownloadEngine.cc
  10404. (onSelectiveDownloadingCompletes): Removed.
  10405. * src/TorrentDownloadEngine.h
  10406. (onEndOfRun): Added 'virtual' keyword.
  10407. (afterEachIteration): Removed.
  10408. (onSelectiveDownloadingCompletes): Removed.
  10409. * src/TorrentDownloadEngine.cc
  10410. (onEndOfRun): Removed filenameFixed.
  10411. (afterEachIteration): Removed.
  10412. * src/TorrentMan.cc
  10413. (completePiece): Call onDownloadComplete here.
  10414. (onDownloadComplete): Added 2 log messages.
  10415. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10417. * src/NameResolver.h: Added the prototype declaration of callback().
  10418. To support c-ares library:
  10419. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10420. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10421. * src/FtpInitiateConnectionCommand.h:
  10422. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10423. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10424. * src/HttpInitiateConnectionCommand.h:
  10425. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10426. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10427. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10428. #1542285 by tizianomueller)
  10429. * src/HttpInitiateConnectionCommand.cc:
  10430. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10431. * src/FtpInitiateConnectionCommand.cc:
  10432. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10433. * src/DownloadEngine.h:
  10434. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10435. * src/DownloadEngine.cc:
  10436. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10437. To fix the bug that causes compilation failure with metalink-support
  10438. disabled(bug#1543587):
  10439. * src/main.cc: Fixed with the patch by tizianomueller.
  10440. * Release 0.7.2
  10441. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. * src/main.cc
  10443. (main): Added a message to inform users that aria2 is starting to
  10444. verify checksum.
  10445. * src/RequestInfo.cc
  10446. (printDownloadAbortMessage): Added a message to inform users that
  10447. transfer can be resumed.
  10448. * src/FeatureConfig.cc
  10449. (FEATURE_ASYNC_DNS): New definition.
  10450. (FeatureConfig): Added aysnc DNS entry.
  10451. To replace CommandUuid with Command* in SocketEntry and
  10452. NameResolverEntry:
  10453. * src/DownloadEngine.h
  10454. (CommandUuids): Removed.
  10455. (SocketEntry::commandUuid): Removed.
  10456. (SocketEntry::command): New variable.
  10457. (SocketEntry::SocketEntry): Updated.
  10458. (SocketEntry::operator==): Updated.
  10459. (NameResolverEntry::commandUuid): Removed.
  10460. (NameResolverEntry::command): New variable.
  10461. (NameResolverEntry::NameResolverEntry): Updated.
  10462. (NameResolverEntry::operator==): Updated.
  10463. (waitData): Changed the argument type.
  10464. (addSocketForReadCheck): Changed the argument type.
  10465. (deleteSocketForReadCheck): Changed the argument type.
  10466. (addSocketForWriteCheck): Changed the argument type.
  10467. (deleteSocketForWriteCheck): Changed the argument type.
  10468. (addNameResolverCheck): Changed the argument type.
  10469. (deleteNameResolverCheck): Changed the argument type.
  10470. * src/DownloadEngine.cc
  10471. (FindCommand): Removed.
  10472. (run): Removed activeUuid. Added activeCommands instead.
  10473. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10474. (AccumulateActiveCommand): New function object.
  10475. (waitData): Use AccumulateActiveCommand.
  10476. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10477. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10478. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10479. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10480. (addNameResolverCheck): Use Command instead of CommandUuid.
  10481. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10482. * src/AbstractCommand.cc
  10483. (disableReadCheckSocket): Updated according to the changes in
  10484. DownloadEngine.
  10485. (setReadCheckSocket): Updated according to the changes in
  10486. DownloadEngine.
  10487. (disableWriteCheckSocket): Updated according to the changes in
  10488. DownloadEngine.
  10489. (setWriteCheckSocket): Updated according to the changes in
  10490. DownloadEngine.
  10491. (setNameResolverCheck): Updated according to the changes in
  10492. DownloadEngine.
  10493. (disableNameResolverCheck): Updated according to the changes in
  10494. DownloadEngine.
  10495. * src/AbstractCommand.cc
  10496. (disableReadCheckSocket): Updated according to the changes in
  10497. DownloadEngine.
  10498. (setReadCheckSocket): Updated according to the changes in
  10499. DownloadEngine.
  10500. (disableWriteCheckSocket): Updated according to the changes in
  10501. DownloadEngine.
  10502. (setWriteCheckSocket): Updated according to the changes in
  10503. DownloadEngine.
  10504. * release 0.7.1
  10505. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. To handle the case where some BitTorrent tracker requires all letters
  10507. except for [A-Za-z0-9] is URL encoded.
  10508. * src/Util.h
  10509. (torrentUrlencode): New function.
  10510. * src/Util.cc
  10511. (ctype.h): Included.
  10512. (torrentUrlencode): New function.
  10513. * src/TrackerWatcherCommand.cc
  10514. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10515. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. To add asynchronous DNS support(libares):
  10517. * src/AbstractCommand.h
  10518. (setNameResolverCheck): New function.
  10519. (disableNameResolverCheck): New function
  10520. (resolveHostname): New function.
  10521. * src/AbstractCommand.cc
  10522. (setNameResolverCheck): New function.
  10523. (disableNameResolverCheck): New function
  10524. (resolveHostname): New function.
  10525. * src/FtpInitiateConnectionCommand.h
  10526. (nameResolver): New function.
  10527. * src/FtpInitiateConnectionCommand.cc
  10528. (Util.h): Included.
  10529. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10530. disableWriteCheckSocket.
  10531. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10532. (executeInternal): Added async DNS support.
  10533. * src/HttpInitiateConnectionCommand.h
  10534. (nameResolver): New function.
  10535. * src/HttpInitiateConnectionCommand.cc
  10536. (DlRetryEx.h): Included.
  10537. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10538. disableWriteCheckSocket.
  10539. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10540. (executeInternal): Added async DNS support.
  10541. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10542. by extern "C" declaration.
  10543. * src/NameResolver.cc: New class.
  10544. * src/Util.h:
  10545. (isNumberAndDotsNotation): New function
  10546. * src/Util.cc
  10547. (isNumberAndDotsNotation): New function.
  10548. * src/DownloadEngine.h
  10549. (NameResolver.h): Included.
  10550. (NameResolverEntry): New class.
  10551. (NameResolverEntries): New type definition.
  10552. (addNameResolverCheck): New function.
  10553. (deleteNameResolverCheck): New function.
  10554. * src/DownloadEngine.cc
  10555. (run): Initialize cp with 0.
  10556. (SetDescriptor::operator()): Added for NameResolverEntry.
  10557. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10558. (waitData): Check nameResolver entries.
  10559. (updateFdSet): Update fds in nameResolver entries.
  10560. (addNameResolverCheck): New function.
  10561. (deleteNameResolverCheck): new function.
  10562. * src/PeerInteractionCommand.cc
  10563. (executeInternal): Fixed wrong socket handling.
  10564. * src/main.cc
  10565. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10566. * src/Util.cc
  10567. (fileChecksum): Removed the call to ctx.digestReset().
  10568. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. * po/ru.po: Azamat sent me Russian translation.
  10570. * src/FtpNegotiateCommand.cc
  10571. (recvGreeting): Call disableWriteCheckSocket just after
  10572. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10573. (recvRetr): Recognized status code 125 as a acceptable response code.
  10574. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10575. case-insesitive filesystem(BUG#1531057).
  10576. * src/Time.h: Renamed as TimeA2.h.
  10577. * src/Time.cc: Renamed as TimeA2.cc.
  10578. * src/TimeA2.h: New class.
  10579. * src/TimeA2.cc: New class.
  10580. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10581. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10582. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10583. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10584. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10585. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10586. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10587. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10588. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10589. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10590. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10591. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10592. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10593. * release 0.7.0
  10594. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. * src/PeerChokeCommand.h
  10596. (PeerChokeCommand): Rearranged the arguments.
  10597. * src/PeerChokeCommand.cc
  10598. (PeerChokeCommand): Rearranged the arguments.
  10599. * src/MetalinkEntry.h
  10600. (Checksum.h): Included.
  10601. (md5): Removed.
  10602. (sha1): Removed.
  10603. (checksum): New variable.
  10604. (operator=): Updated.
  10605. (check): Removed.
  10606. * src/prefs.h
  10607. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10608. (PREF_FOLLOW_TORRENT): New definition.
  10609. (PREF_SELECT_FILE): New definition.
  10610. (PREF_FOLLOW_METALINK): New definition.
  10611. * src/MetalinkResource.h
  10612. (TYPE_HTTPS): Added to enum TYPE.
  10613. * src/TorrentMan.cc
  10614. (~TorrentMan): Rewritten.
  10615. * src/MultiDiskWriter.cc
  10616. (MultiDiskAdaptor): Updated according to the changes in
  10617. MessageDigestContext.
  10618. (~MultiDiskAdaptor): Updated according to the changes in
  10619. MessageDigestContext.
  10620. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10621. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10622. * src/Util.h
  10623. (fileChecksum): Updated according to the changes in
  10624. MessageDigestContext.
  10625. * src/Util.cc
  10626. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10627. (fileChecksum): Updated according to the changes in
  10628. MessageDigestContext.
  10629. * src/messageDigest.h: Rewritten.
  10630. * src/MetalinkEntry.cc
  10631. (check): Removed.
  10632. (Supported): Updated.
  10633. (dropUnsupportedResource): Fixed a memory leak.
  10634. * src/ShaVisitor.cc
  10635. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10636. (~ShaVisitor): Updated according to the changes in
  10637. MessageDigestContext.
  10638. (visit): Updated according to the changes in MessageDigestContext.
  10639. * src/main.cc
  10640. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10641. command-line option added.
  10642. * src/DownloadEngine.h
  10643. (SocketEntry): New class.
  10644. (SocketEntries): New definition.
  10645. (PairFind): Removed.
  10646. (SockCmdMap): Removed.
  10647. * src/DownloadEngine.cc
  10648. (DownloadEngine): Rewritten.
  10649. (~DownloadEngine): Rewritten.
  10650. (run): Renamed activeCommandUuids as activeUuids.
  10651. (SetDescriptor): Rewritten.
  10652. (AccumulateActiveCommandUuid): Removed.
  10653. (AccumulateActiveUuid): New function object.
  10654. (waitData): Rewritten.
  10655. (updateFdSet): Rewritten.
  10656. (addSocket): Rewritten.
  10657. (deleteSocket): Rewritten.
  10658. (addSocketForReadCheck): Rewritten.
  10659. (deleteSocketForReadCheck): Rewritten.
  10660. (addSocketForWriteCheck): Rewritten.
  10661. (deleteSocketForWriteCheck): Rewritten.
  10662. * src/Xml2MetalinkProcessor.cc
  10663. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10664. * src/DownloadCommand.cc
  10665. (executeInternal): Added the check routine for lowest speed limit.
  10666. * src/AbstractDiskWriter.cc
  10667. (AbstractDiskWriter): Updated according to the changes in
  10668. MessageDigestContext.
  10669. (~AbstractDiskWriter): Updated according to the changes in
  10670. MessageDigestContext.
  10671. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10672. * src/RequestInfo.h: New class.
  10673. * src/UrlRequestInfo.h: New class.
  10674. * src/UrlRequestInfo.cc: New class.
  10675. * src/TorrentRequestInfo.h: New class.
  10676. * src/TorrentRequestInfo.cc: New class.
  10677. * src/MetalinkRequestInfo.h: New class.
  10678. * src/MetalinkRequestInfo.cc: New class.
  10679. * src/Checksum.h: New class.
  10680. * src/DownloadEngineFactory.h: New class.
  10681. * src/DownloadEngineFactory.cc: New class.
  10682. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. * src/Option.h
  10684. (getAsBool): New function.
  10685. * src/Option.cc
  10686. (prefs.h): Included.
  10687. (defined): 0-length value is now recognized as undefined.
  10688. (getAsInt): Rewritten.
  10689. (getAsLLInt): Rewritten.
  10690. (getAsBool): New function.
  10691. * src/FeatureConfig.h: Rewritten.
  10692. * src/FeatureConfig.cc: Rewritten.
  10693. * src/prefs.h
  10694. (PREF_STDOUT_LOG): New definition.
  10695. (PREF_LOG): New definition.
  10696. (PREF_DIR): New definition.
  10697. (PREF_OUT): New definition.
  10698. (PREF_SPLIT): New definition.
  10699. (PREF_DAEMON): New definition.
  10700. (PREF_REFERER): New definition.
  10701. (PREF_TORRENT_FILE): New definition.
  10702. (PREF_LISTEN_PORT): New definition.
  10703. (PREF_METALINK_FILE): New definition.
  10704. (PREF_METALINK_VERSION): New definition.
  10705. (PREF_METALINK_LANGUAGE): New definition.
  10706. (PREF_METALINK_OS): New definition.
  10707. (PREF_METALINK_SERVERS): New definition.
  10708. * src/main.cc
  10709. (main): Following command-line parameters are now put into Option
  10710. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10711. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10712. metalinkLanguage, metalinkOs, metalinkServers
  10713. To fix the bug that aria2 can not handle http response header properly.
  10714. * src/HttpHeader.cc
  10715. (put): Made name lowercased.
  10716. (defined): Made name lowercased.
  10717. (getFirst): Made name lowercased.
  10718. (get): Made name lowercased.
  10719. (getFirstAsInt): Rewritten.
  10720. (getFirstAsLLInt): Rewritten.
  10721. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. * src/TorrentMan.h:
  10723. (advertisePiece): Updated doc.
  10724. (getAdvertisedPieceIndexes): Updated doc.
  10725. (removeAdvertisedPiece); New function.
  10726. * src/TorrentMan.cc
  10727. (FindElapsedHave): New function object.
  10728. (removeAdvertisedPiece): New function.
  10729. * src/HaveEraseCommand.h: New class.
  10730. * src/HaveEraseCommand.cc: New class.
  10731. * src/FeatureConfig.h: New class.
  10732. * src/FeatureConfig.cc: New class.
  10733. * src/Request.h
  10734. (defaultPorts): Removed.
  10735. * src/Request.cc
  10736. (FeatureConfig.h): Included.
  10737. (Request): Removed the statements related to defaultPorts.
  10738. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10739. A default port number is now retrieved from FeatureConfig.
  10740. * src/main.cc
  10741. (HaveEraseCommand.h): Included.
  10742. (showVersion): Added the output of feature list.
  10743. (main): Added HaveEraseCommand to command queue in BitTorrent
  10744. downloading.
  10745. * src/PeerInteractionCommand.h
  10746. (chokeCheckPoint): Commented out.
  10747. (periodicExecPoint): New variable.
  10748. * src/PeerInteractionCommand.cc
  10749. (executeInternal): Following methods are now called in at least every
  10750. 0.5 seconds to reduce CPU usage:
  10751. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10752. checkHave(), sendKeepAlive().
  10753. (checkLongTimePeerChoking): Commented out.
  10754. * src/BitfieldMan.h
  10755. (getNthBitIndex): Changed the method signature.
  10756. (getMissingIndexRandomly): Changed the method signature.
  10757. * src/BitfieldMan.cc
  10758. (getNthBitIndex): Rewritten
  10759. (getMissingIndexRandomly): Rewritten.
  10760. (hasMissingPiece): Rewritten.
  10761. (getMissingIndex): Refactored.
  10762. (getMissingUnusedIndex); Refactored.
  10763. (getMissingIndex): Refactored.
  10764. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. * src/PeerMessage.h
  10766. (Piece.h): Included.
  10767. (SharedHandle.h): Included.
  10768. (invalidate): New variable.
  10769. (uploading): New variable.
  10770. (isInvalidate): New function.
  10771. (isUploading): New function.
  10772. (onPush): New function.
  10773. (onChoked): New function.
  10774. (onCanceled): New function.
  10775. (onAbortPiece): New function.
  10776. (PeerMessageHandle): New type definition.
  10777. * src/PeerMessage.cc
  10778. (PeerMessage): Added the initialization for invalidate and uploading.
  10779. * src/CancelMessage.h
  10780. (CancelMessage): Rewritten.
  10781. * src/RejectMessage.h
  10782. (RejectMessage): Rewritten.
  10783. * src/Metalinker.h
  10784. (operator=): Defined.
  10785. * src/MetaEntry.h
  10786. (operator=): Defined.
  10787. * src/MetalinkResource.h
  10788. (operator=): Defined.
  10789. * src/AllowedFastMessage.h
  10790. (AllowedFastMessage): Rewritten.
  10791. * src/HandshakeMessage.h
  10792. (HandshakeMessage): New function(overload).
  10793. * src/HandshakeMessage.cc
  10794. (HandshakeMessage): Rewritten.
  10795. (init): New function.
  10796. * src/HaveMessage.h
  10797. (HaveMessage): Rewritten.
  10798. * src/Time.h
  10799. (operator=): Defined the function body here.
  10800. * src/Time.cc
  10801. (operator=): Removed.
  10802. * src/SocketCore.h
  10803. (operator==): Defined here.
  10804. (operator!=): Defined here.
  10805. (operator<): Defined here.
  10806. * src/SocketCore.cc
  10807. (operator==): Removed.
  10808. (operator<): Removed.
  10809. * src/BitfieldMan.h
  10810. (operator=): Defined the function body here.
  10811. * src/BitfieldMan.cc
  10812. (operator=): Removed.
  10813. * src/TorrentMan.h
  10814. (deleteErrorPeer): Removed.
  10815. (deleteUnusedPeer); New function.
  10816. * src/TorrentMan.cc
  10817. (addPeer): Call deleteUnusedPeer.
  10818. (deleteErrorPeer): Removed.
  10819. (deleteUnusedPeer): New function.
  10820. * src/PeerAbstractCommand.h
  10821. (setNoCheck): New function.
  10822. (noCheck): New variable.
  10823. * src/PeerAbstractCommand.cc
  10824. (PeerAbstractCommand): Added the initialization of noCheck.
  10825. (execute): Added a check for noCheck.
  10826. (setNoCheck): New function.
  10827. * src/Util.h
  10828. (stdio.h): Included.
  10829. * src/Util.cc
  10830. (unistd.h): Included.
  10831. * src/DefaultDiskWriter.cc
  10832. (unistd.h): Included.
  10833. * src/Peer.h
  10834. (operator==): Defined the function body here.
  10835. (operator!=): Defined the function body here.
  10836. * src/Peer.cc
  10837. (operator==): Removed.
  10838. (operator!=): Removed.
  10839. * src/Piece.h
  10840. (Piece): Defined the function body here(copy constructor).
  10841. (operator=): Defined the function body here.
  10842. (operator==): Defined the function body here.
  10843. * src/Piece.cc
  10844. (Piece): Removed(copy constructor).
  10845. (operator=): Removed.
  10846. (operator==): Removed.
  10847. * src/PeerMessageUtil.h
  10848. (ChokeMessage.h): Removed.
  10849. (UnchokeMessage.h): Removed.
  10850. (InterestedMessage.h): Removed.
  10851. (NotInterestedMessage.h): Removed.
  10852. (HaveMessage.h): Removed.
  10853. (BitfieldMessage.h): Removed.
  10854. (RequestMessage.h): Removed.
  10855. (CancelMessage.h): Removed.
  10856. (PieceMessage.h): Removed.
  10857. (HandshakeMessage.h): Removed.
  10858. (KeepAliveMessage.h): Removed.
  10859. (PortMessage.h): Removed.
  10860. (HaveAllMessage.h): Removed.
  10861. (HaveNoneMessage.h): Removed.
  10862. (PeerConnection.h): Removed.
  10863. (HandshakeMessage.h): Included.
  10864. * src/BitfieldMessage.h
  10865. (init): New function.
  10866. (BitfieldMessage): Rewritten.
  10867. (BitfieldMessage): New function(overload).
  10868. * src/RequestSlot.h
  10869. (operator=): Defined the function body here.
  10870. (operator==): Defined the function body here.
  10871. * src/RequestSlot.cc
  10872. (operator=): Removed.
  10873. (operator==): Removed.
  10874. To remove the dependency on the PeerMessage subclass from
  10875. PeerInteraction:
  10876. * src/PeerMessageFactory.h: New class.
  10877. * src/PeerMessageFactory.cc: New class.
  10878. * src/SimplePeerMessage.cc
  10879. (send): If invalidate is true then do nothing.
  10880. * src/PeerInteractionCommand.cc
  10881. (HandshakeMessage.h): Included.
  10882. (KeepAliveMessage.h): Included.
  10883. (ChokeMessage.h): Included.
  10884. (UnchokeMessage.h): Included.
  10885. (HaveMessage.h): Included.
  10886. (executeInternal): Call setNoCheck().
  10887. Removed setWriteCheckSocket(socket).
  10888. * src/PeerInteraction.h
  10889. (ChokeMessage.h): Removed.
  10890. (UnchokeMessage.h): Removed.
  10891. (InterestedMessage.h): Removed.
  10892. (NotInterestedMessage.h): Removed.
  10893. (HaveMessage.h): Removed.
  10894. (BitfieldMessage.h): Removed.
  10895. (RequestMessage.h): Removed.
  10896. (CancelMessage.h): Removed.
  10897. (PieceMessage.h): Removed.
  10898. (HandshakeMessage.h): Removed.
  10899. (KeepAliveMessage.h): Removed.
  10900. (PortMessage.h): Removed.
  10901. (HaveAllMessage.h): Removed.
  10902. (HaveNoneMessage.h): Removed.
  10903. (RejectMessage.h): Removed.
  10904. (AllowedFastMessage.h): Removed.
  10905. (SuggestPieceMessage.h): Removed.
  10906. (PeerMessageFactory.h): Included.
  10907. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10908. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10909. (PeerMessageFactory): New variable.
  10910. (createPeerMessage): Removed.
  10911. (createHandshakeMessage): Removed.
  10912. (setPeerMessageCommonProperty): Removed.
  10913. (addRequestSlot): New function.
  10914. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10915. (getPeerMessageFactory): New function.
  10916. (createRequestMessage): Removed.
  10917. (createCancelMessage): Removed.
  10918. (createPieceMessage): Removed.
  10919. (createHaveMessage): Removed.
  10920. (createChokeMessage): Removed.
  10921. (createUnchokeMessage): Removed.
  10922. (createInterestedMessage): Removed.
  10923. (createNotInterestedMessage): Removed.
  10924. (createBitfieldMessage): Removed.
  10925. (createKeepAliveMessage): Removed.
  10926. (createHaveAllMessage): Removed.
  10927. (createHaveNoneMessage): Removed.
  10928. (createRejectMessage): Removed.
  10929. (createAllowedFastMessage): Removed.
  10930. * src/PeerInteraction.cc
  10931. (PeerInteraction): Allocate PeerMessageFactory here.
  10932. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10933. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10934. PieceMessage::ID.
  10935. (addMessage): Simplified by using PeerMessage::onPush().
  10936. (addRequestSlot): New function.
  10937. (rejectAllPieceMessageInQueue): Simplified by using
  10938. PeerMessage::onChoked().
  10939. (rejectPieceMessageInQueue): Simplified by using
  10940. PeerMessage::onCanceled().
  10941. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10942. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10943. (createHandshakeMessage): Removed.
  10944. (createPeerMessage): Removed.
  10945. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10946. (setPeerMessageCommonProperty): Removed.
  10947. (createRequestMessage): Removed.
  10948. (createCancelMessage): Removed.
  10949. (createPieceMessage): Removed.
  10950. (createHaveMessage): Removed.
  10951. (createChokeMessage): Removed.
  10952. (createUnchokeMessage): Removed.
  10953. (createInterestedMessage): Removed.
  10954. (createNotInterestedMessage): Removed.
  10955. (createBitfieldMessage): Removed.
  10956. (createKeepAliveMessage): Removed.
  10957. (createHaveAllMessage): Removed.
  10958. (createHaveNoneMessage): Removed.
  10959. (createRejectMessage): Removed.
  10960. (createAllowedFastMessage): Removed.
  10961. * src/PieceMessage.h
  10962. (createRejectMessage): New function.
  10963. (PieceMessage): Rewritten.
  10964. (onChoked): New function.
  10965. (onCanceled): New function.
  10966. * src/PieceMessage.cc
  10967. (send): If invalidate is true then do nothing, just return.
  10968. (createRejectMessage): New function.
  10969. (onChoked): New function.
  10970. (onCanceled): New function.
  10971. * src/RequestMessage.h
  10972. (RequestMessage): Rewritten.
  10973. (onPush): New function.
  10974. (onAbortPiece): New function.
  10975. * src/RequestMessage.cc
  10976. (onPush): New function.
  10977. (onAbortPiece): New function.
  10978. Update fd_set when a socket is added or deleted in order to improve
  10979. performance:
  10980. * src/DownloadEngine.h
  10981. (rfdset): New variable.
  10982. (wfdset): New variable.
  10983. (updateFdSet): New function.
  10984. * src/DownloadEngine.cc
  10985. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10986. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10987. (waitData): Copy rfdset and wfdset.
  10988. (updateFdSet): New function.
  10989. (addSocket): Call updateFdSet.
  10990. (deleteSocket): Call updateFdSet.
  10991. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. To add the support for Metalink3.0 backward compatible links:
  10993. * src/Request.h
  10994. (SAFE_CHARS): Added '#'.
  10995. (METALINK_MARK): New definition.
  10996. * src/Request.cc
  10997. (parseUrl): Added the support for Metalink3.0 backward compatible
  10998. links.
  10999. etc
  11000. * src/PeerInteraction.cc
  11001. (MsgPushBack): Removed.
  11002. (sendMessages): Use STL copy and back_inserter.
  11003. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11004. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11005. * src/TorrentMan.h
  11006. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11007. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11008. * src/SharedHandle.h: New class.
  11009. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11010. * src/HttpResponseCommand.h
  11011. (HttpResponseCommand): Wrapped Socket.
  11012. * src/SocketCore.h
  11013. (operator==): New function.
  11014. (operator!=): New function.
  11015. (operator<): New function.
  11016. (getSockfd): New function.
  11017. (isOpen): New function.
  11018. (writeData): New function.
  11019. * src/SocketCore.cc
  11020. (operator==): New function.
  11021. (operator!=): New function.
  11022. (operator<): New function.
  11023. * src/AbstractCommand.h
  11024. (socket): Changed its type to SocketHandle.
  11025. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11026. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11027. (disableReadCheckSocket): New function.
  11028. (disableWriteCheckSocket): New function.
  11029. (readCheckTarget): Changed its type to SocketHandle.
  11030. (writeCheckTarget): Changed its type to SocketHandle.
  11031. (AbstractCommand): Replaced Socket with SocketHandle.
  11032. * src/AbstractCommand.cc
  11033. (AbstractCommand): Replaced Socket with SocketHandle.
  11034. (~AbstractCommand): Removed the deallocation for Socket object.
  11035. (disableReadCheckSocket): New function.
  11036. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11037. (disableWriteCheckSocket): New function.
  11038. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11039. * src/HttpDownloadCommand.cc
  11040. (DownloadCommand): Replaced Socket with SocketHandle.
  11041. * src/PeerAbstractCommand.h
  11042. (socket): Changed its type to SocketHandle.
  11043. (peer): Changed its type to PeerHandle.
  11044. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11045. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11046. (disableReadCheckSocket): New function.
  11047. (disableWriteCheckSocket): New function.
  11048. (readCheckTarget): Changed its type to SocketHandle.
  11049. (writeCheckTarget): Changed its type to SocketHandle.
  11050. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11051. Replaced Peer with PeerHandle.
  11052. * src/HttpRequestCommand.cc
  11053. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11054. Use disableReadCheckSocket.
  11055. * src/PeerInitiateConnectionCommand.h
  11056. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11057. * src/PeerChokeCommand.cc
  11058. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11059. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11060. (execute): Use PeerHandle.
  11061. * src/PeerConnection.h
  11062. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11063. (socket): Changed its type to SocketHandle.
  11064. (PeerConnection): Replaced Socket with SocketHandle.
  11065. * src/PeerConnection.cc
  11066. (PeerConnection): Replaced Socket with SocketHandle.
  11067. * src/PeerInteractionCommand.h
  11068. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11069. Replaced Peer with PeerHandle.
  11070. * src/PeerInteractionCommand.cc
  11071. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11072. Replaced Peer with PeerHandle.
  11073. (executeInternal): Use disableWriteCheckSocket.
  11074. Use HandshakeMessageHandle.
  11075. (receiveMessages): Use PeerMessageHandle.
  11076. (prepareForNextPeer): Use PeerHandle.
  11077. * src/HttpProxyRequestCommand.h
  11078. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11079. * src/HttpResponseCommand.cc
  11080. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11081. * src/TorrentMan.cc
  11082. (nullPeer): Added external reference.
  11083. (~TorrentMan): Removed the deallocation of the elements of peers.
  11084. (addPeer): Rewritten.
  11085. (isPeerAvailable): Use nullPeer.
  11086. (deleteOldpeers): Replaced with deleteErrorPeer.
  11087. (deleteErrorPeer): New function.
  11088. (getPeer): Use PeerHandle and nullPeer.
  11089. (hasMissingPiece): Replaced Peer with PeerHandle.
  11090. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11091. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11092. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11093. (getMissingPiece): Replaced Peer with PeerHandle.
  11094. * src/FtpNegotiateCommand.cc
  11095. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11096. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11097. (recvGreeting): Use disableWriteCheckSocket.
  11098. (recvPasv): Removed the allocation of Socket.
  11099. Use disableReadCheckSocket.
  11100. (sendRestPasv): Use disableWriteCheckSocket.
  11101. (recvRetr): Changed assertion.
  11102. * src/PeerInteraction.h
  11103. (SharedHandle.h): Included SharedHandle.h.
  11104. (PeerMessageHandle): New type definition.
  11105. (HandshakeMessageHandle): New type definition.
  11106. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11107. (peer): Changed its type to PeerHandle.
  11108. (createHandshakeMessage): Replaced HandshakeMessage with
  11109. HandshakeMessageHandle.
  11110. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11111. (PeerInteraction): Replaced Peer with PeerHandle.
  11112. Replaced Socket with SocketHandle.
  11113. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11114. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11115. (receiveHandshake): Replaced HandshakeMessage with
  11116. HandshakeMessageHandle.
  11117. * src/PeerInteraction.cc
  11118. (PeerInteraction): Replaced Peer with PeerHandle.
  11119. Replaced Socket with SocketHandle.
  11120. (~PeerInteraction): Removed the deallocation of the elements of
  11121. messageQueue.
  11122. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11123. (isSendingMessageInProgress): Replaced PeerMessage with
  11124. PeerMessageHandle.
  11125. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11126. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11127. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11128. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11129. (abortPiece): Use PeerMessageHandle.
  11130. (receiveHandshake): Replaced HandshakeMessage with
  11131. HandshakeMessageHandle. Removed try-catch block.
  11132. (createHandshakeMessage): Replaced HandshakeMessage with
  11133. HandshakeMessageHandle.
  11134. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11135. Removed try-catch block.
  11136. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11137. * src/HttpProxyResponseCommand.cc
  11138. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11139. * src/FtpTunnelResponseCommand.h
  11140. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11141. * src/HttpConnection.cc
  11142. (HttpConnection): Replaced Socket with SocketHandle.
  11143. * src/PeerAbstractCommand.cc
  11144. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11145. (~PeerAbstractCommand): Removed the deallocation of socket.
  11146. Use disableReadCheckSocket, disableWriteCheckSocket.
  11147. (disableReadCheckSocket): New function.
  11148. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11149. (disableWriteCheckSocket): New function.
  11150. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11151. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11152. * src/FtpTunnelRequestCommand.cc
  11153. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11154. (~FtpTunnelRequestCommand): Corrected indentation.
  11155. * src/DownloadCommand.h
  11156. (DownloadCommand): Replaced Socket with SocketHandle.
  11157. * src/PeerListenCommand.cc
  11158. (PeerListenCommand): Removed the initialization of socket.
  11159. (~PeerListenCommand): Removed the deallocation of socket.
  11160. (bindPort): Use SocketHandle.
  11161. (execute): Use SocketHandle and PeerHandle.
  11162. * src/FtpDowndloadCommand.cc
  11163. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11164. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11165. * src/main.cc
  11166. (main): Corrected indentation.
  11167. * src/HttpInitiateConnectionCommand.cc
  11168. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11169. (executeInternal): Removed the allocation of socket.
  11170. * src/HttpRequestCommand.h
  11171. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11172. * src/FtpNegotiationCommand.h
  11173. (dataSocket): Changed its type to SocketHandle.
  11174. (serverSocket): Changed its type to SocketHandle.
  11175. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11176. * src/TorrentMan.h
  11177. (MAX_PEER_UPDATE): Removed.
  11178. (MAX_PEERS): New definition.
  11179. (Peers): The element is now of type PeerHandle.
  11180. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11181. (getPeer): Replaced Peer with PeerHandle.
  11182. (deleteOldErrorPeers): Removed.
  11183. (deleteErrorPeer): New function.
  11184. (hasMissingPiece): Replaced Peer with PeerHandle.
  11185. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11186. (getMissingPiece): Replaced Peer with PeerHandle.
  11187. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11188. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11189. (addActivePeer): Replaced Peer with PeerHandle.
  11190. (deleteActivePeer): Replaced Peer with PeerHandle.
  11191. Added a check for the return value of find.
  11192. * src/FtpTunnelResponseCommand.cc
  11193. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11194. * src/FtpInitiateConnectionCommand.cc
  11195. (executeInternal): Removed the allocation of socket.
  11196. * src/DownloadEngine.h
  11197. (Sockets): An element is now of type SocketHandle.
  11198. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11199. (CommandUuids): New type definition.
  11200. (rsockets): Changed its type to SockCmdMap.
  11201. (wsockets): Changed its type to SockCmdMap.
  11202. (addSocket): Rewritten.
  11203. (deleteSocket): Rewritten.
  11204. (addSocketForReadCheck): Rewritten.
  11205. (deleteSocketForReadCheck): Rewritten.
  11206. (addSocketForWriteCheck): Rewritten.
  11207. (deleteSocketForWriteCheck): Rewritten.
  11208. (PairFind): New template class.
  11209. * src/HttpDownloadCommand.h
  11210. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11211. * src/FtpConnection.cc
  11212. (FtpConnection): Replaced Socket with SocketHandle.
  11213. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11214. block.
  11215. * src/InitiateConnectionCommandFactory.cc
  11216. (DlAbortEx.h): Included DlAbortEx.h.
  11217. (createInitiateConnectionCommand): Throw exception if the protocol of
  11218. requested URI is not supported.
  11219. * src/Peer.cc
  11220. (nullPeer): Changed its type to PeerHandle.
  11221. (operator==): New function.
  11222. (operator!=): New function.
  11223. * src/Peer.h
  11224. (SharedHandle.h): Included SharedHandle.h.
  11225. (operator==): New function.
  11226. (operator!=): New function.
  11227. (Peer): Added the default constructor.
  11228. Use resetStatus() to initialize member variables.
  11229. (nullPeer): Removed.
  11230. * src/TrackerUpdateCommand.cc
  11231. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11232. with MIN_PEERS.
  11233. * src/PeerListenCommand.h
  11234. (socket): Changed its type to SocketHandle.
  11235. * src/Command.h
  11236. (CommandUuid): New type definition.
  11237. (uuid): New variable.
  11238. (uuidGen): New variable.
  11239. (Command): Added the initialization of uuid.
  11240. (getUuid): New function.
  11241. * src/Socket.h
  11242. (Socket): Removed.
  11243. (SocketHandle): New type definition.
  11244. * src/DownloadEngine.h
  11245. (FindCommand): New function object.
  11246. (run): The portion of socket check was rewritten.
  11247. (SetDescriptor): New function object.
  11248. (AccumulateActiveCommandUuid): New function object.
  11249. (waitData): Rewritten.
  11250. (addSocket): Rewritten.
  11251. (deleteSocket): Rewritten.
  11252. (addSocketForReadCheck): Rewritten.
  11253. (addSocketForWriteCheck): Rewritten.
  11254. (deleteSocketForReadCheck): Rewritten.
  11255. (deleteSocketForWriteCheck): Rewritten.
  11256. * src/HttpProxyResponseCommand.h
  11257. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11258. * src/HttpConnection.h
  11259. (socket): Changed its type to SocketHandle.
  11260. (HttpConnection): Replaced Socket with SocketHandle.
  11261. * src/PeerInitiateConnectionCommand.cc
  11262. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11263. (executeInternal): Removed the allocation of socket.
  11264. (prepareForNextPeer): Use PeerHandle.
  11265. * src/PeerMessage.h
  11266. (peer): Changed its type to PeerHandle.
  11267. (getPeer): Replaced Peer with PeerHandle.
  11268. (setPeer): Replaced Peer with PeerHandle.
  11269. * src/DownloadCommand.cc
  11270. (DownloadCommand): Replaced Socket with SocketHandle.
  11271. * src/FtpConnection.h
  11272. (socket): Changed its type to SocketHandle.
  11273. (FtpConnection): Replaced Socket with SocketHandle.
  11274. (sendPort); Replaced Socket with SocketHandle.
  11275. * src/FtpDowndloadCommand.h
  11276. (ctrlSocket): Changed its type to SocketHandle.
  11277. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11278. * src/HttpProxyRequestCommand.cc
  11279. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11280. * src/FtpTunnelRequestCommand.h
  11281. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11282. etc
  11283. * src/PeerChokeCommand.h
  11284. (setAllPeerChoked): Removed.
  11285. (setAllPeerResetDelta): Removed.
  11286. * src/PeerChokeCommand.cc
  11287. (setAllPeerChoked): Removed.
  11288. (ChokePeer): New function object.
  11289. (setAllPeerResetDelta): Removed.
  11290. (ResetDelta): New function object.
  11291. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11292. (execute): Show download speed when the local node is a seeder.
  11293. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11294. using STL.
  11295. * src/TrackerWatcherCommand.h
  11296. (MIN_PEERS): Removed.
  11297. * src/TorrentMan.cc
  11298. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11299. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11300. To fix the bug that .aria2 file is not saved if downloading is stopped
  11301. by the errors:it results that aria2 can not resume downloading:
  11302. * src/main.cc
  11303. (normalDownload): Added the call to save().
  11304. (main): Added the deletion of the elements in 'reserved'.
  11305. To fix log:
  11306. * src/PeerInteraction.cc
  11307. (receiveHandshake): Fixed log.
  11308. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. To improve download performance in BitTorrent:
  11310. * src/TorrentMan.cc
  11311. (getPeer): Check the number of connections. Return nullPeer if
  11312. it is greater than MAX_PEER_UPDATE.
  11313. This code was originally here, but was removed in 0.5.1.
  11314. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. To improve the conditional compilation:
  11316. * src/MultiDiskWriter.h:
  11317. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11318. * src/MultiDiskWriter.cc:
  11319. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11320. * src/Util.h:
  11321. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11322. Added ENABLE_BITTORRENT around computeFastSet().
  11323. * src/Util.cc:
  11324. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11325. Added ENABLE_BITTORRENT around computeFastSet().
  11326. * src/messageDigest.h:
  11327. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11328. * src/ShaVisitor.h:
  11329. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11330. * src/ShaVisitor.cc:
  11331. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11332. * src/main.cc:
  11333. Added ENABLE_BITTORRENT around includes and blocks related to
  11334. BitTorrent.
  11335. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11336. digest support is not available.
  11337. * src/AbstractDiskWriter.h:
  11338. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11339. * src/AbstractDiskWriter.cc:
  11340. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11341. * src/MetalinkEntry.cc
  11342. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11343. support is not available.
  11344. To add command-line options for Metalink:
  11345. * src/main.cc:
  11346. Added metalink-version, metalink-language, metalink-os,
  11347. follow-metalink.
  11348. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11349. * src/main.cc: Use these definition.
  11350. * Release 0.6.0
  11351. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. To add Metalink support(http/ftp only):
  11353. * src/AbstractCommand.h
  11354. (tryReserved): New function.
  11355. * src/AbstractCommand.cc
  11356. (execute): Call tryReserved().
  11357. (tryReserved): New function.
  11358. * src/Request.h
  11359. (Requests): New type definition.
  11360. * src/SegmentMan.h
  11361. (reserved): New variable.
  11362. * src/Util.h
  11363. (fileChecksum): New function.
  11364. (toUpper): New function.
  11365. (toLower): New function.
  11366. * src/Util.cc
  11367. (messageDigest.h): Included.
  11368. (trim): Trim \r\n\t.
  11369. (fileChecksum): New function.
  11370. (toUpper): New function.
  11371. (toLower): New function.
  11372. * src/main.cc
  11373. (normalDownload): New function.
  11374. (main): Added 2 command-line options: metalink-file,
  11375. metalink-connection. Their usage has not been written yet.
  11376. * src/MetalinkProcessor.h: New class.
  11377. * src/Xml2MetalinkProcessor.h: New class.
  11378. * src/Xml2MetalinkProcessor.cc: New class.
  11379. * src/MetalinkEntry.h: New class.
  11380. * src/MetalinkEntry.cc: New class.
  11381. * src/MetalinkResource.h: New class.
  11382. * src/MetalinkResource.cc: New class.
  11383. To add md5 message digest checking:
  11384. * src/messageDigest.h: Rewritten.
  11385. * src/MultiDiskWriter.cc: Updated according to the changes in
  11386. messageDigest.h.
  11387. * src/ShaVisitor.cc: Updated according to the changes in
  11388. messageDigest.h.
  11389. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11390. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11391. messageDigest.h.
  11392. To fix a bug that causes segfault when the payload length in peer
  11393. message is less than 0:
  11394. * src/PeerConnection.cc:
  11395. (receiveMessage): Fixed the bug.
  11396. * src/PeerMessageUtil.cc
  11397. (checkLength): Throw an exception if length is less than or equals to
  11398. 0.
  11399. To add new interfaces to Base64 encoding/decoding:
  11400. * src/Base64.h
  11401. (part_encode): Changed the method signature.
  11402. (encode): New function(overload).
  11403. (decode): New function(overload).
  11404. * src/Base64.cc
  11405. (part_encode): Rewritten.
  11406. (encode): Rewritten.
  11407. (encode): New function(overload).
  11408. To prevent a peer to download same piece if there is an error in
  11409. checksum:
  11410. * src/PieceMessage.cc
  11411. (receivedAction): Call peerInteraction->abortPiece().
  11412. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. To fix the bug that causes same have message is sent many times to
  11414. a single peer.
  11415. * src/Time.cc
  11416. (isNewer): Use Util::difftv().
  11417. * src/Util.cc
  11418. (difftv): Added a cast to (long long int).
  11419. * src/TorrentMan.cc
  11420. (advertisePiece): Use push_front.
  11421. (getAdvertisedPieceIndexes): A performance improvement was made.
  11422. To fix the bug that sends tracker requests without a sleep interval
  11423. when the number of connections is less than 15.
  11424. * src/TrackerWatcherCommand.cc
  11425. (execute): Now the number of connections is not a factor to decide
  11426. whether or not a tracker request should be sent or not.
  11427. * src/Time.h
  11428. (setTimeInSec): New function.
  11429. * src/Time.cc
  11430. (setTimeInSec): New function.
  11431. etc.
  11432. * src/ChokeMessage.cc
  11433. (receivedAction): Removed peer->snubbing = false
  11434. * src/PeerConnection.h
  11435. (receiveHandshake): Updated doc.
  11436. * src/TorrentMan.h
  11437. (getAdvertisedPieceIndexes): Updated the method signature.
  11438. * src/TorrentMan.cc
  11439. (getAdvertisedPieceIndexes): Updated the method signature.
  11440. * src/Time.h
  11441. (getTimeInMicros): Added a cast to (long long int).
  11442. (getTimeInMillis): Added a cast to (long long int).
  11443. * Release 0.5.2
  11444. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11445. To make a listening socket non-block:
  11446. * src/SocketCore.h
  11447. (setNonBlockingMode): New function.
  11448. * src/SocketCore.cc
  11449. (setNonBlockingMode): New function.
  11450. (beginListen): Added a call to setNonBlockingMode().
  11451. (acceptConnection): Call setNonBlockingMode().
  11452. (setBlockingMode): Updated.
  11453. To handle tracker's NAT-checking:
  11454. * src/PeerConnection.cc
  11455. (receiveHandshake): 'msg' param is filled with received data and
  11456. its length is assigned to 'length' param, even if all handshake
  11457. message is not yet received.
  11458. * src/PeerInteractionCommand.cc
  11459. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11460. a new peer connects to localhost.
  11461. A call to peerInteraction->sendHandshake() was removed because
  11462. it is called from peerInteraction->receiveHandshake(true).
  11463. * src/PeerInteraction.h
  11464. (quickReplied): New variable.
  11465. (receiveHandshake): Added an argument.
  11466. * src/PeerInteraction.cc
  11467. (PeerInteraction): Added the initialization of quickReplied.
  11468. (receiveHandshake): Send handshake message as soon as the info hash
  11469. in a handshake message from a peer is correct.
  11470. To change the random part of peer id and key parameter:
  11471. * src/TorrentMan.h
  11472. (key): New variable.
  11473. * src/TorrentMan.cc
  11474. (setupInternal1): Use Util::randomAlpha() to generate random part
  11475. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11476. key is also generated by Util::randomAlpha() and it is now 8 character
  11477. long.
  11478. * src/Util.h
  11479. (randomAlpha): New function.
  11480. * src/Util.cc
  11481. (randomAlpha): New function.
  11482. * src/TrackerWatcherCommand.cc
  11483. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11484. Added no_peer_id=1.
  11485. Set snubbing flag to false when a choke message is received from a
  11486. snubbed peer.
  11487. * src/ChokeMessage.cc
  11488. (receivedAction): Set snubbing flag to false.
  11489. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11491. * src/SimpleLogger.h (writeHeader): New function.
  11492. * src/SimpleLogger.cc (writeHeader): New function.
  11493. (writeLog): Fixed the bug that causes segfaults if exception message
  11494. contains an unescaped "%" character.
  11495. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11496. when a tracker request fails.
  11497. * src/Request.cc (parseUrl): Query string is now handled properly.
  11498. * Release 0.5.1
  11499. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11500. To add Time class which represents a specific instant in time and
  11501. its precision is microseconds. Time checking procedures were rewritten
  11502. using this object.
  11503. * src/Time.h: New class.
  11504. * src/Time.cc: New class.
  11505. * src/AbstractCommand.h
  11506. (updateCheckPoint): Removed.
  11507. (isTimeoutDetected): Removed.
  11508. (checkPoint): Changed the type to Time.
  11509. (timeout): New variable.
  11510. (setTimeout): New function.
  11511. * src/AbstractCommand.cc
  11512. (AbstractCommand): Removed the initialization of checkPoint.
  11513. Added the initialization of timeout.
  11514. (updateCheckPoint): Removed.
  11515. (isTimeoutDetected): Removed.
  11516. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11517. * src/PeerChokeCommand.h
  11518. (checkPoint): Changed the type to Time.
  11519. * src/PeerChokeCommand.cc
  11520. (PeerChokeCommand): Removed the initialization of checkPoint.
  11521. (execute): Rewritten using Time object.
  11522. * src/TrackerWatcherCommand.h
  11523. (checkPoint): Changed the type to Time.
  11524. * src/TrackerWatcherCommand.cc
  11525. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11526. (execute): Rewritten.
  11527. * src/ConsoleDownloadEngine.h
  11528. (cp): Changed the type to Time.
  11529. (startup): Changed the type to Time.
  11530. * src/ConsoleDownloadEngine.cc
  11531. (initStatistics): Use cp.reset(), startup.reset().
  11532. (calculateStatistics): Rewritten using Time object.
  11533. * src/PeerAbstractCommand.h
  11534. (updateCheckPoint): Removed.
  11535. (isTimeoutDetected): Removed.
  11536. (checkPoint): Changed the type to Time.
  11537. * src/PeerAbstractCommand.cc
  11538. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11539. (updateCheckPoint): Removed.
  11540. (isTimeoutDetected): Removed.
  11541. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11542. * src/PeerInteractionCommand.cc
  11543. (PeerInteractionCommand): Removed the initializations of struct
  11544. timeval variables.
  11545. * src/PeerInteractionCommand.h
  11546. (keepAliveCheckPoint): Changed the type to Time.
  11547. (chokeCheckPoint): Changed the type to Time.
  11548. (freqCheckPoint): Changed the type to Time.
  11549. (haveCheckTime): Changed the type to Time.
  11550. * src/PeerInteractionCommand.cc
  11551. (executeInternal): Rewritten using Time object.
  11552. (detectMessageFlooding): Rewritten using Time object.
  11553. (checkLongTimePeerChoking): Rewritten using Time object.
  11554. (sendKeepAlive): Rewritten using Time object.
  11555. (checkHave): Rewritten using Time object.
  11556. * src/SleepCommand.h
  11557. (checkPoint): Changed the type to Time.
  11558. * src/SleepCommand.cc
  11559. (SleepCommand): Removed the initialization of checkPoint.
  11560. (execute): Rewritten using Time object.
  11561. * src/TorrentAutoSaveCommand.h
  11562. (checkPoint): Changed the type to Time.
  11563. * src/TorrentAutoSaveCommand.cc
  11564. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11565. (execute): Rewritten.
  11566. * src/DownloadCommand.h
  11567. (sw): Changed the type to Time.
  11568. * src/DownloadCommand.cc
  11569. (DownloadCommand): Removed the initialization of sw.
  11570. (executeInternal): Rewritten.
  11571. * src/RequestSlot.h
  11572. (dispatchedTime): Changed the type to Time.
  11573. * src/RequestSlot.cc
  11574. (RequestSlot): Removed the call to setDispatchedTime().
  11575. (setDispatchedTime): Rewirtten.
  11576. (isTimeout): Rewritten.
  11577. (getLatencyInMillis): Rewritten.
  11578. * src/TorrentDownloadEngine.h
  11579. (cp): Changed the type to Time[2].
  11580. (startup): Changed the type to Time.
  11581. * src/TorrentDownloadEngine.cc
  11582. (initStatistics): Rewritten.
  11583. (calculateStatistics): Rewritten.
  11584. * src/DownloadEngine.cc
  11585. (run): Rewritten.
  11586. To detect all attempts to connect to the tracker are failed:
  11587. * src/AbstractCommand.cc
  11588. (execute): Increment e->segmentMan->errors if a command aborted.
  11589. * src/SegmentMan.h
  11590. (errors): New variable.
  11591. * src/SegmentMan.cc
  11592. (SegmentMan): Added the initialization of errors.
  11593. (init): Added the initialization of errors.
  11594. * src/TrackerWatcherCommand.cc
  11595. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11596. request was failed.
  11597. To handle snubbed peers:
  11598. * src/PeerChokeCommand.cc
  11599. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11600. (execute): Snubbed peers don't get unchoked.
  11601. * src/PeerInteraction.h
  11602. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11603. * src/PeerInteraction.cc
  11604. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11605. back the requested 16k block in 60 seconds.
  11606. * src/PieceMessage.cc
  11607. (receivedAction): A peer's snubbed state is cleard if it sends
  11608. the requested 16k block in 60 seconds.
  11609. * src/Peer.h
  11610. (snubbing): New variable.
  11611. * src/Peer.cc
  11612. (resetStatus): Added snubbed = false.
  11613. To fix the bug that causes have message is not sent:
  11614. * src/PeerInteractionCommand.cc
  11615. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11616. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11617. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11618. * src/TorrentMan.h
  11619. (HaveEntry): New class.
  11620. (advertisePiece): Rewritten.
  11621. (getAdvertisedPieceIndexes): Rewritten.
  11622. (Haves): Changed the type.
  11623. (getAdvertisedPieceIndexes): Added an argument.
  11624. Others:
  11625. * src/TorrentMan.h
  11626. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11627. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11628. * src/TorrentMan.cc
  11629. (getPeer): Don't check the number of connections here.
  11630. (setupInternal1): Changed peerId.
  11631. * src/PeerInteractionCommand.h
  11632. (KEEP_ALIVE_INTERVAL): New definition.
  11633. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11634. * src/main.cc
  11635. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11636. * src/DownloadEngine.h: Removed unnecessary header includes.
  11637. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11638. To fix the bug that causes segfaults if a tracker returns a zero-length
  11639. list as "peers":
  11640. * src/TrackerUpdateCommand.cc
  11641. (execute): Added a check to see wether the type of peers is Data*.
  11642. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. * Release 0.5.0
  11644. To fix compile issue with gcc3:
  11645. * src/CancelMessage.h
  11646. (ID): Renamed as ID_t
  11647. (ID_t): New enum.
  11648. * src/RejectMessage.h
  11649. (ID): Renamed as ID_t
  11650. (ID_t): New enum.
  11651. * src/SuggestPieceMessage.h
  11652. (ID): Renamed as ID_t
  11653. (ID_t): New enum.
  11654. * src/AllowedFastMessage.h
  11655. (ID): Renamed as ID_t
  11656. (ID_t): New enum.
  11657. * src/PortMessage.h
  11658. (ID): Renamed as ID_t
  11659. (ID_t): New enum.
  11660. * src/HaveNoneMessage.h
  11661. (ID): Renamed as ID_t
  11662. (ID_t): New enum.
  11663. * src/KeepAliveMessage.h
  11664. (ID): Renamed as ID_t
  11665. (ID_t): New enum.
  11666. * src/HaveAllMessage.h
  11667. (ID): Renamed as ID_t
  11668. (ID_t): New enum.
  11669. * src/UnchokeMessage.h
  11670. (ID): Renamed as ID_t
  11671. (ID_t): New enum.
  11672. * src/BitfieldMessage.h
  11673. (ID): Renamed as ID_t
  11674. (ID_t): New enum.
  11675. * src/PieceMessage.h
  11676. (ID): Renamed as ID_t
  11677. (ID_t): New enum.
  11678. * src/RequestMessage.h
  11679. (ID): Renamed as ID_t
  11680. (ID_t): New enum.
  11681. * src/NotInterestedMessage.h
  11682. (ID): Renamed as ID_t
  11683. (ID_t): New enum.
  11684. * src/ChokeMessage.h
  11685. (ID): Renamed as ID_t
  11686. (ID_t): New enum.
  11687. * src/InterestedMessage.h
  11688. (ID): Renamed as ID_t
  11689. (ID_t): New enum.
  11690. * src/HaveMessage.h
  11691. (ID): Renamed as ID_t
  11692. (ID_t): New enum.
  11693. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. * src/PeerAbstractCommand.h
  11695. (beforeSocketCheck): Removed.
  11696. * src/PeerAbstractCommand.cc
  11697. Modified in order to call executeInternal() even if socket check
  11698. and upload limit check fail.
  11699. * src/PeerInteractionCommand.h
  11700. (keepAlive): Removed.
  11701. (sendKeepAlive): New function.
  11702. (checkHave): New function.
  11703. (beforeSocketCheck): Removed.
  11704. * src/PeerInteractionCommand.cc
  11705. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11706. calls to checkHave() and sendKeepAlive().
  11707. (keepAlive): Renamed to sendKeepAlive().
  11708. (sendKeepAlive): New function.
  11709. (beforeSocketCheck): Removed.
  11710. (checkHave): New function.
  11711. * src/BitfieldMan.cc
  11712. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11713. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11714. 0.
  11715. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11716. * src/TorrentMan.h
  11717. (UsedPieces): Removed.
  11718. (Pieces): New type definition.
  11719. * src/Piece.h: Updated doc.
  11720. * src/Peer.h
  11721. (totalLength): Removed.
  11722. * src/Peer.cc
  11723. (updateLatency): Fixed the latency calculation.
  11724. * src/TorrentMan.cc
  11725. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11726. than or equal to MAX_PEER_LIST_SIZE.
  11727. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11728. then return false.
  11729. (deleteOldErrorPeers): Rewritten.
  11730. (deleteUsedPiece): Fixed the miss use of STL remove.
  11731. * src/PeerInteraction.h
  11732. (Pieces): Removed.
  11733. (deleteTimeoutRequestSlot): Removed.
  11734. (deleteCompletedRequestSlot): Removed.
  11735. (checkRequestSlot): New function.
  11736. * src/PeerInteraction.cc
  11737. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11738. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11739. (checkRequestSlot): New function.
  11740. * src/DownloadEngine.cc
  11741. (run): Clear activeSockets before calling waitData().
  11742. (waitData): Removed a call to activeSockets.clear().
  11743. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. To attempt to handle EINTR:
  11745. * src/SocketCore.cc
  11746. (isReadable): Added EINTR handling.
  11747. (isWritable): Added EINTR handling.
  11748. To improve the performance:
  11749. * src/AbstractCommand.cc
  11750. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11751. * src/PeerInteractionCommand.h
  11752. (receiveMessage): Renamed as receiveMessages().
  11753. (receiveMessages): New function.
  11754. * src/PeerInteractionCommand.cc
  11755. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11756. () function. detectMessageFlooding() is moved here.
  11757. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11758. (). The flooding detection for have message is comment out.
  11759. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11760. Util::difftv().
  11761. (receiveMessage): Renamed as receiveMessages().
  11762. (receiveMessages): New function.
  11763. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11764. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11765. * src/SleepCommand.cc
  11766. (execute): Use Util::difftvsec() instead of Util::difftv().
  11767. * src/BitfieldMan.h
  11768. (getNthBitIndex): New function.
  11769. (hasMissingPiece): New function.
  11770. (getAllMissingIndexes): New function.
  11771. * src/BitfieldMan.cc
  11772. (countSetBit): Rewritten.
  11773. (getNthBitIndex): New function.
  11774. (getMissingIndexRandomly): Rewritten.
  11775. (hasMissingPiece): New function.
  11776. (getAllMissingIndexes): New function.
  11777. * src/TorrentMan.cc
  11778. (hasMissingPiece): New function.
  11779. (deleteUsedPiece): Rewritten using STL.
  11780. * src/PeerInteraction.cc
  11781. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11782. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11783. (addRequests): Updated the number of pending requests.
  11784. * src/PeerAbstractCommand.cc
  11785. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11786. (execute): Returns true if TorrentMan::isHalt() is true.
  11787. Corrected the condition of upload limit checking.
  11788. * src/Util.h
  11789. (countBit): New function.
  11790. * src/Util.cc
  11791. (nbits): New variable.
  11792. (countBit): New function.
  11793. * src/DownloadEngine.h
  11794. (SockCmdMap): New type definition.
  11795. (waitData): Added an argument.
  11796. (addSocket): Added an argument.
  11797. (addSocketForReadCheck): Added an argument.
  11798. (addSocketForWriteCheck): Added an argument.
  11799. * src/DownloadEngine.cc
  11800. (run): Executes only commands whose sockets are ready to read or write.
  11801. All commands are executed in every 1 second.
  11802. (waitData): Calls select() again if it returned
  11803. EINTR.
  11804. (addSocket): Saves socket and command object pair to the map.
  11805. (deleteSocket): Deletes socket and command object pair from the map.
  11806. (addSocketForReadCheck): Added an argument.
  11807. (addSocketForWriteCheck): Added an argument.
  11808. * src/DownloadCommand.cc
  11809. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11810. To send "event=stopped" to the tracker when the application finishes:
  11811. * src/PeerChokeCommand.h
  11812. (checkPoint): New variable.
  11813. * src/PeerChokeCommand.cc
  11814. (PeerChokeCommand): Added the initialization of checkPoint.
  11815. (execute): The interval check is now done by checkPoint, not
  11816. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11817. * src/TorrentMan.h
  11818. (halt): New function.
  11819. (hasMissingPiece): New function.
  11820. (isHalt): New function.
  11821. (setHalt): New function.
  11822. * src/TorrentMan.cc
  11823. (TorrentMan): Added the initialization of halt.
  11824. * src/TorrentAutoSaveCommand.h
  11825. (checkPoint): New variable.
  11826. * src/PeerListenCommand.cc
  11827. (execute): Returns true if TorrentMan::isHalt() is true.
  11828. * src/main.cc
  11829. (setSignalHander): Added flags argument.
  11830. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11831. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11832. Removed printDownloadAbortMessage() after torrent downloading loop.
  11833. * src/TorrentAutoSaveCommand.cc
  11834. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11835. (execute): Returns true if TorrentMan::isHalt() is true.
  11836. The interval check is now done by checkPoint, not SleepCommand.
  11837. * src/TrackerWatcherCommand.cc
  11838. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11839. event=stopped.
  11840. * src/TrackerUpdateCommand.cc
  11841. (prepareForRetry): Do not use SleepCommand here.
  11842. (execute): Returns true if TorrentMan::isHalt() is true.
  11843. Others:
  11844. * src/TorrentMan.cc
  11845. (getMissingPieceIndex): Updated log message.
  11846. * src/PeerInteraction.cc
  11847. (createPeerMessag): Updated log message.
  11848. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. To add the ability to download several pieces in mix in a command and
  11850. increase the number of request slots according to request-cancel
  11851. latency:
  11852. * src/PeerInteractionCommand.cc
  11853. (executeInternal): The number of messages to be received at a time
  11854. is increased from 10 to 50.
  11855. * src/LogFactory
  11856. (getInstance): Added NullLogger.
  11857. * src/NullLogger.h: New class.
  11858. * src/BitfieldMan.h
  11859. (getMissingIndex): New function.
  11860. * src/BitfieldMan.cc
  11861. (getMissingIndex): New function.
  11862. * src/TorrentMan.h
  11863. (checkOutPiece): New function.
  11864. (getMissingPieceIndex): New function.
  11865. (getMissingFastPieceIndex): New function.
  11866. (getMissingFastPiece): New function.
  11867. * src/TorrentMan.cc
  11868. (updatePiece): Rewritten using STL.
  11869. (syncPiece): Rewritten using STL.
  11870. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11871. checkOutPiece().
  11872. (getMissingPieceIndex): New function.
  11873. (getMissingFastPieceIndex): New function.
  11874. (getMissingFastPiece): New function.
  11875. (checkOutPiece): New function.
  11876. * src/PeerInteraction.h
  11877. (Pieces): New type definition.
  11878. (piece): Removed.
  11879. (pieces): New variable.
  11880. (getNewPieceAndSendInterest): Added the "piece" argument.
  11881. (abortPiece): Added the "piece" argument.
  11882. (abortAllPieces): New function.
  11883. (isInRequestSlot): New function.
  11884. (hasDownloadPiece): Added the "index" argument.
  11885. (setDownloadPiece): Removed.
  11886. (getDownloadPiece): Added the "index" argument.
  11887. (updatePiece): New function.
  11888. (createRequestMessage): Added the "index" argument.
  11889. * src/PeerInteraction.cc
  11890. (onChoked): Rewritten.
  11891. (abortPiece): Rewirtten.
  11892. (abortAllPieces): New function.
  11893. (deleteTimeoutRequestSlot): Rewritten.
  11894. Clarified code a little bit.
  11895. (deleteCompletedRequestSlot): Rewritten.
  11896. (isInRequestSlot): New function.
  11897. (syncPiece): Rewritten.
  11898. (updatePiece): New function.
  11899. (getNewPieceAndSendInterest): Rewritten.
  11900. (addRequests): Rewritten.
  11901. (getDownloadPiece): Rewritten.
  11902. (hasDownloadPiece): Rewritten.
  11903. (createRequestMessage): Added the "index" argument.
  11904. * src/common.h
  11905. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11906. (DIV_FLOOR): New definition.
  11907. * src/PieceMessage.cc
  11908. (receivedAction): Update request-piece latency here.
  11909. * src/RequestSlot.h
  11910. (getLatencyInMillis): New function.
  11911. * src/RequestSlot.cc
  11912. (isTimeout): Rewritten using getLatencyInMillis.
  11913. (getLatencyInMillis): New function.
  11914. * src/Piece.h
  11915. (operator==): New function.
  11916. (getMissingBlockIndex): New function.
  11917. * src/Piece.cc
  11918. (operator==): New function.
  11919. (getMissingBlockIndex): New function.
  11920. * src/Peer.h
  11921. (DEFAULT_LATENCY): New definition.
  11922. (latency): New variable.
  11923. (updateLatency): New function.
  11924. (getLatency): New function.
  11925. * src/Peer.cc
  11926. (resetStatus): Reset latecy.
  11927. (updateLatency): New function.
  11928. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11929. * src/SocketCore.cc
  11930. (isReadable): Added secure to the condition.
  11931. * src/HttpConnection.cc
  11932. (receiveResponse): Fixed a bug that causes no response header
  11933. exception.
  11934. * src/Peer.h
  11935. (getFastSet): Fixed the return value type.
  11936. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. To remove a wait from download loop:
  11938. * src/DownloadEngine.cc
  11939. (run): Comment out shortSleep.
  11940. To rewrite the message handling:
  11941. * src/SimplePeerMessage.h: New class.
  11942. * src/SimplePeerMessage.cc: New class.
  11943. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11944. (msg): New variable.
  11945. (create): New function.
  11946. (send): Removed.
  11947. (getMessage): New function.
  11948. (getMessageLength): New function.
  11949. * src/CancelMessage.cc
  11950. (create): New function.
  11951. (receivedAction): Replaced deleteRequestMessageInQueue with
  11952. rejectPieceMessageInQueue.
  11953. (send): Removed.
  11954. (getMessage): New function.
  11955. (getMessageLength): New function.
  11956. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11957. (msg): New variable.
  11958. (msgLength): New variable.
  11959. (~BitfieldMessage): Deleted msg.
  11960. (send): Removed.
  11961. (getMessage): New function.
  11962. (getMessageLength): New function.
  11963. * src/BitfieldMessage.cc
  11964. (create): New function.
  11965. (send): Removed.
  11966. (getMessage): New function.
  11967. (getMessageLength): New function.
  11968. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11969. (msg): New variable.
  11970. (sendPredicate): New function.
  11971. (onSendComplete): New function.
  11972. (send): Removed.
  11973. (getMessage): New function.
  11974. (getMessageLength): New function.
  11975. (create): New function.
  11976. * src/ChokeMessage.cc
  11977. (create): New function.
  11978. (send): Removed.
  11979. (sendPredicate): New function.
  11980. (getMessage): New function.
  11981. (getMessageLength): New function.
  11982. (onSendComplete): New function.
  11983. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11984. (msg): New variable.
  11985. (send): Removed.
  11986. (getMessage): New function.
  11987. (getMessageLength): New function.
  11988. * src/KeepAliveMessage.cc
  11989. (send): Removed.
  11990. (getMessage): New function.
  11991. (getMessageLength): New function.
  11992. * src/PortMessage.h
  11993. (create): New function.
  11994. (receivedAction): Updated log message.
  11995. * src/PortMessage.cc: New file.
  11996. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11997. (msg): New variable.
  11998. (sendPredicate): New function.
  11999. (onSendComplete): New function.
  12000. (create): New function.
  12001. (send): Removed.
  12002. (getMessage): New function.
  12003. (getMessageLength): New function.
  12004. * src/UnchokeMessage.cc
  12005. (create): New function.
  12006. (send): Removed.
  12007. (sendPredicate): New function.
  12008. (getMessage): New function.
  12009. (getMessageLength): New function.
  12010. (onSendComplete): New function.
  12011. * src/PieceMessage.h
  12012. (leftPieceDataLength): Removed.
  12013. (leftDataLength): New variable.
  12014. (headerSend): New variable.
  12015. (pendingCount): New variable.
  12016. (msgHeader): New variable.
  12017. (sendPieceData): New function.
  12018. (incrementPendingCount): New function.
  12019. (isPendingCountMax): New function.
  12020. (create): New function.
  12021. (getMessageHeader): New function.
  12022. (getMessageHeaderLength): New function.
  12023. * src/PieceMessage.cc
  12024. (create): New function.
  12025. (getMessageHeader): New function.
  12026. (getMessageHeaderLength): New function.
  12027. (send): Rewritten.
  12028. (sendPieceData): New function.
  12029. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12030. (msg): New variable.
  12031. (create): New function.
  12032. (getMessage): New function.
  12033. (getMessageLength): New function.
  12034. * src/HaveMessage.cc
  12035. (create): New function.
  12036. (send): Removed.
  12037. (sendPieceData): New function.
  12038. (getMessage): New function.
  12039. (getMessageLength): New function.
  12040. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12041. (msg): New variable.
  12042. (create): New function.
  12043. (send): Removed.
  12044. (getMessage): New function.
  12045. (getMessageLength): New function.
  12046. * src/RequestMessage.cc
  12047. (create): New function.
  12048. (receivedAction): Added the handling of fast extension.
  12049. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12050. (send): Removed.
  12051. (getMessage): New function.
  12052. (getMessageLength): New function.
  12053. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12054. (msg): New variable.
  12055. (sendPredicate): New function.
  12056. (onSendComplete): New function.
  12057. (create): New function.
  12058. (getMessage): New function.
  12059. (getMessageLength): New function.
  12060. * src/InterestedMessage.cc
  12061. (create): New function.
  12062. (send): Removed.
  12063. (sendPieceData): New function.
  12064. (getMessage): New function.
  12065. (getMessageLength): New function.
  12066. (onSendComplete): New function.
  12067. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12068. (msg): New variable.
  12069. (sendPieceData): New function.
  12070. (onSendComplete): New function.
  12071. (create): New function.
  12072. (send): Removed.
  12073. (getMessage): New function.
  12074. (getMessageLength): New function.
  12075. * src/NotInterestedMessage.cc
  12076. (create): New function.
  12077. (send): Removed.
  12078. (sendPredicate): New function.
  12079. (getMessage): New function.
  12080. (getMessageLength): New function.
  12081. (onSendComplete): New function.
  12082. * src/AllowedFastMessage.h: New class.
  12083. * src/AllowedFastMessage.cc: New class.
  12084. * src/RejectMessage.h: New class.
  12085. * src/RejectMessage.cc: New class.
  12086. * src/SuggestPieceMessage.h: New class.
  12087. * src/SuggestPieceMessage.cc: New class.
  12088. * src/HaveAllMessage.h: New class.
  12089. * src/HaveAllMessage.cc: New class.
  12090. * src/HaveNoneMessage.h: New class.
  12091. * src/HaveNoneMessage.cc: New class.
  12092. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12093. (msg): New variable.
  12094. (reserved): New variable.
  12095. (create): New function.
  12096. (getId): New function.
  12097. (receivedAction): New function.
  12098. (getMessage): New function.
  12099. (getMessageLength): New function.
  12100. (isFastExtensionSupported): New function.
  12101. * src/HandshakeMessage.cc
  12102. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12103. (create): New function.
  12104. (getMessage): New function.
  12105. (getMessageLength): New function.
  12106. (toString): Added the output of reserved field.
  12107. (check): Added const qualifier.
  12108. (isFastExtensionSupported): New function.
  12109. * src/PeerMessageUtil.h
  12110. (createChokeMessage): Removed.
  12111. (createUnchokeMessage): Removed.
  12112. (createInterestedMessage): Removed.
  12113. (createNotInterestedMessage): Removed.
  12114. (createHaveMessage): Removed.
  12115. (createBitfieldMessage): Removed.
  12116. (createRequestMessage): Removed.
  12117. (createCancelMessage): Removed.
  12118. (createPieceMessage): Removed.
  12119. (createPortMessage): Removed.
  12120. (createChokeMessage): Removed.
  12121. (createUnchokeMessage): Removed.
  12122. (createInterestedMessage): Removed.
  12123. (createNotInterestedMessage): Removed.
  12124. (createHaveMessage): Removed.
  12125. (createBitfieldMessage): Removed.
  12126. (createRequestMessage): Removed.
  12127. (createCancelMessage): Removed.
  12128. (createPieceMessage): Removed.
  12129. (createKeepAliveMessage): Removed.
  12130. (createHandshakeMessage): Removed.
  12131. (setIntParam): New function.
  12132. (createPeerMessageString): New function.
  12133. * src/PeerMessageUtil.cc
  12134. (createChokeMessage): Removed.
  12135. (createUnchokeMessage): Removed.
  12136. (createInterestedMessage): Removed.
  12137. (createNotInterestedMessage): Removed.
  12138. (createHaveMessage): Removed.
  12139. (createBitfieldMessage): Removed.
  12140. (createRequestMessage): Removed.
  12141. (createCancelMessage): Removed.
  12142. (createPieceMessage): Removed.
  12143. (createPortMessage): Removed.
  12144. (createRequestMessage): Removed.
  12145. (createCancelMessage): Removed.
  12146. (createPieceMessage): Removed.
  12147. (createHaveMessage): Removed.
  12148. (createChokeMessage): Removed.
  12149. (createUnchokeMessage): Removed.
  12150. (createInterestedMessage): Removed.
  12151. (createNotInterestedMessage): Removed.
  12152. (createBitfieldMessage): Removed.
  12153. (createKeepAliveMessage): Removed.
  12154. (createHandshakeMessage): Removed.
  12155. (setIntParam): New function.
  12156. (createPeerMessageString): New function.
  12157. * src/PeerConnection.h
  12158. (peer): Removed.
  12159. (torrentMan): Removed.
  12160. (createNLengthMessage): Removed.
  12161. (setIntParam): Removed.
  12162. (writeOutgoingMessageLog): Removed all overloaded functions.
  12163. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12164. (sendMessage): New function.
  12165. (sendHandshake): Removed.
  12166. (sendKeepAlive): Removed.
  12167. (sendChoke): Removed.
  12168. (sendUnchoke): Removed.
  12169. (sendInterested): Removed.
  12170. (sendNotInterested): Removed.
  12171. (sendHave): Removed.
  12172. (sendBitfield): Removed.
  12173. (sendRequest): Removed.
  12174. (sendPiece): Removed.
  12175. (sendPieceHeader): Removed.
  12176. (sendPieceData): Removed.
  12177. (sendCancel): Removed.
  12178. (getPeer): Removed.
  12179. * src/PeerConnection.cc
  12180. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12181. (sendHandshake): Removed.
  12182. (sendKeepAlive): Removed.
  12183. (createNLengthMessage): Removed.
  12184. (setIntParam): Removed.
  12185. (writeOutgoingMessageLog): Removed all overloaded functions.
  12186. (sendChoke): Removed.
  12187. (sendUnchoke): Removed.
  12188. (sendInterested): Removed.
  12189. (sendNotInterested): Removed.
  12190. (sendHave): Removed.
  12191. (sendBitfield): Removed.
  12192. (sendRequest): Removed.
  12193. (sendPiece): Removed.
  12194. (sendPieceHeader): Removed.
  12195. (sendPieceData): Removed.
  12196. (sendMessage): New function.
  12197. (sendCancel): Removed.
  12198. * src/PeerInteractionCommand.cc
  12199. (PeerInteractionCommand): Call setUploadLimit.
  12200. (executeInternal): Call setUploadLimit.
  12201. Added the handling of "inProgress" state of handshake message.
  12202. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12203. sendNow().
  12204. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12205. sendNow().
  12206. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12207. * src/TorrentMan.h
  12208. (PEER_ID_LENGTH): New definition.
  12209. (hasAllPieces): New function.
  12210. * src/TorrentMan.cc
  12211. (getMissingPiece): Added the handling of fast extension.
  12212. (cancelPiece): Call updatePiece().
  12213. (hasAllPieces): New function.
  12214. * src/PeerInteraction.h
  12215. (fastSet): New variable.
  12216. (getNewPieceAndSendInterest): Changed the return type to void.
  12217. (send): Renamed as sendMessages.
  12218. (deleteAllRequestSlot): Removed.
  12219. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12220. (cancelAllRequest): Removed all overloaded functions.
  12221. (deleteAllRequestSlot): Removed.
  12222. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12223. (rejectPieceMessageInQueue): New function.
  12224. (rejectAllPieceMessageInQueue): New function.
  12225. (onChoked): New function.
  12226. (isSendingMessageInProgress): New function.
  12227. (getCorrespondingRequestSlot): Changed its arguments.
  12228. (isInFastSet): New function.
  12229. (addFastSetIndex): New function.
  12230. (addRequests): New function.
  12231. (sendNow): Removed.
  12232. (trySendNow): Removed.
  12233. (sendBitfield): New function.
  12234. (sendAllowdFast): New function.
  12235. (createHaveAllMessage): New function.
  12236. (createHaveNoneMessage): New function.
  12237. (createRejectMessage): New function.
  12238. (createAllowedFastMessage): New function.
  12239. * src/PeerInteraction.cc
  12240. (send): Renamed as sendMessages.
  12241. (sendMessages): New function.
  12242. (MsgPushBack): New class.
  12243. (isSendingMessageInProgress): New function.
  12244. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12245. (rejectAllPieceMessageInQueue): New function.
  12246. Added the handling of fast extension.
  12247. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12248. (rejectPieceMessageInQueue): New function.
  12249. Added the handling of fast extension.
  12250. (deleteRequestSlot): Replaced for loop with std::find.
  12251. (onChoked): New function.
  12252. (deleteAllRequestSlot): Removed.
  12253. (abortPiece): Rewirtten.
  12254. (deleteTimeoutRequestSlot): Updated log messages.
  12255. (getCorrespondingRequestSlot): Changed its arguments.
  12256. (cancelAllRequest): Removed all overloaded functions.
  12257. (receiveHandshake): Added the check to see whether an incoming peer
  12258. supports fast extension.
  12259. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12260. PeerMessageUtil.
  12261. (createPeerMessage): Use create() of each message class instead of
  12262. PeerMessageUtil.
  12263. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12264. AllowedFastMessage were added.
  12265. (getNewPieceAndSendInterest): Changed its return value type to void.
  12266. Added the handling of fast extension.
  12267. (addRequests): New function.
  12268. (sendNow): Removed.
  12269. (sendHandshake): Rewritten.
  12270. (trySendNow): Removed.
  12271. (sendBitfield): New function.
  12272. (sendAllowdFast): New function.
  12273. (isInFastSet): New function.
  12274. (addFastSetIndex): New function.
  12275. (createRequestMessage): Use RequestMessage::create instead of
  12276. PeerMessageUtil.
  12277. (createCancelMessage): Use CancelMessage::create instead of
  12278. PeerMessageUtil.
  12279. (createPieceMessage): Use PieceMessage::create instead of
  12280. PeerMessageUtil.
  12281. (createHaveMessage): Use HaveMessage::create instead of
  12282. PeerMessageUtil.
  12283. (createChokeMessage): Use ChokeMessage::create instead of
  12284. PeerMessageUtil.
  12285. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12286. PeerMessageUtil.
  12287. (createInterestedMessage): Use InterestedMessage::create instead of
  12288. PeerMessageUtil.
  12289. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12290. of PeerMessageUtil.
  12291. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12292. PeerMessageUtil.
  12293. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12294. PeerMessageUtil.
  12295. (createHaveAllMessage): New function.
  12296. (createHaveNoneMessage): New function.
  12297. (createRejectMessage): New function.
  12298. (createAllowedFastMessage: New function.
  12299. * src/Util.h
  12300. (sha1Sum): New function.
  12301. (computeFastSet): New function.
  12302. * src/Util.cc
  12303. (sha1Sum): New function.
  12304. (computeFastSet): New function.
  12305. * src/Peer.h
  12306. (fastExtensionEnabled): New variable.
  12307. (fastSet): New variable.
  12308. (setAllBitfield): New function.
  12309. (setFastExtensionEnabled): New function.
  12310. (isFastExtensionEnabled): New function.
  12311. (addFastSetIndex): New function.
  12312. (getFastSet): New function.
  12313. (isInFastSet): New function.
  12314. (countFastSet): New function.
  12315. * src/Peer.cc
  12316. (isInFastSet): New function.
  12317. (addFastSetIndex): New function.
  12318. (setAllBitfield): New function.
  12319. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12320. sockets.
  12321. * src/PeerAbstractCommand.cc
  12322. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12323. and uploadLimit.
  12324. (execute): Changed the procedure of checking sockets. The upload speed
  12325. checking were added.
  12326. (setUploadLimit): New function.
  12327. (setUploadLimitCheck): New function.
  12328. * src/PeerAbstractCommand.h
  12329. (setUploadLimit): New function.
  12330. (setUploadLimitCheck): New function.
  12331. (uploadLimit): New variable.
  12332. (uploadLimitCheck): New variable.
  12333. To contact a tracker regularly:
  12334. * src/TrackerWatcherCommand.h (interval): New variable.
  12335. (checkPoint): New variable.
  12336. (TrackerWatcherCommand): Added interval argument.
  12337. * src/TrackerWatcherCommand.cc
  12338. (TrackerWatcherCommand): Initialized checkPoint.
  12339. (execute): Now a tracker is contacted in every specified period.
  12340. If peer list is not needed, send request with numwant=0.
  12341. * src/TrackerUpdateCommand.cc
  12342. (execute): Updated log messages.
  12343. * src/DownloadEngine.cc
  12344. (~DownloadEngine): Removed two asserts.
  12345. (waitData): Uncommented wfds. May be a bug fix.
  12346. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12347. * src/PeerInteractionCommand.h
  12348. (checkInactiveConnection): Removed.
  12349. * src/PeerInteractionCommand.cc
  12350. (executeInternal): Removed following function calls:
  12351. detectMessageFlooding(), checkLongTimePeerChoking and
  12352. checkInactiveConnection().
  12353. (checkInactiveConnection): Removed.
  12354. (detectMessageFlooding): Removed function call to
  12355. checkInactiveConnection().
  12356. * src/PeerMessageUtil.h
  12357. (createChokeMessage): New function. Overload.
  12358. (createUnchokeMessage): New function. Overload.
  12359. (createInterestedMessage): New function. Overload.
  12360. (createNotInterestedMessage): New function. Overload.
  12361. (createHaveMessage): New function. Overload.
  12362. (createBitfieldMessage): New function. Overload.
  12363. (createRequestMessage): New function. Overload.
  12364. (createCancelMessage): New function. Overload.
  12365. (createPieceMessage): New function. Overload.
  12366. (createKeepAliveMessage): New function. Overload.
  12367. * src/PeerMessageUtil.cc
  12368. (createChokeMessage): New function. Overload.
  12369. (createUnchokeMessage): New function. Overload.
  12370. (createInterestedMessage): New function. Overload.
  12371. (createNotInterestedMessage): New function. Overload.
  12372. (createHaveMessage): New function. Overload.
  12373. (createBitfieldMessage): New function. Overload.
  12374. (createRequestMessage): New function. Overload.
  12375. (createCancelMessage): New function. Overload.
  12376. (createPieceMessage): New function. Overload.
  12377. (createKeepAliveMessage): New function. Overload.
  12378. * src/SendMessageQueue.cc
  12379. (createRequestMessage): Use PeerMessageUtil.
  12380. (createCancelMessage): Use PeerMessageUtil.
  12381. (createPieceMessage): Use PeerMessageUtil.
  12382. (createHaveMessage): Use PeerMessageUtil.
  12383. (createChokeMessage): Use PeerMessageUtil.
  12384. (createUnchokeMessage): Use PeerMessageUtil.
  12385. (createInterestedMessage): Use PeerMessageUtil.
  12386. (createNotInterestedMessage): Use PeerMessageUtil.
  12387. (createBitfieldMessage): Use PeerMessageUtil.
  12388. (createKeepAliveMessage): Use PeerMessageUtil.
  12389. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12390. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12391. * src/PeerInteraction.h: New class.
  12392. * src/PeerInteraction.cc: New class.
  12393. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12394. Each peer message has its own class.
  12395. * src/PendingMessages.h: Removed.
  12396. * src/PendingMessages.cc: Removed. The sending process was moved to
  12397. each message class.
  12398. * src/RequestSlotMan.h: Removed.
  12399. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12400. SendMessageQueue.
  12401. * src/RequestMessage.h: New class.
  12402. * src/RequestMessage.cc: New class.
  12403. * src/CancelMessage.h: New class.
  12404. * src/CancelMessage.cc: New class.
  12405. * src/BitfieldMessage.h: New class.
  12406. * src/BitfieldMessage.cc: New class.
  12407. * src/ChokeMessage.h: New class.
  12408. * src/ChokeMessage.cc: New class.
  12409. * src/KeepAliveMessage.h: New class.
  12410. * src/KeepAliveMessage.cc: New class.
  12411. * src/PortMessage.h: New class.
  12412. * src/UnchokeMessage.h: New class.
  12413. * src/UnchokeMessage.cc: New class.
  12414. * src/PieceMessage.h: New class.
  12415. * src/PieceMessage.cc: New class.
  12416. * src/HaveMessage.h: New class.
  12417. * src/HaveMessage.cc: New class.
  12418. * src/BitfieldMessage.h: New class.
  12419. * src/BitfieldMessage.cc: New class.
  12420. * src/NotInterestedMessage.h: New class.
  12421. * src/NotInterestedMessage.cc: New class.
  12422. * src/InterestedMessage.h: New class.
  12423. * src/InterestedMessage.cc: New class.
  12424. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12425. (getSendMessageQueue): New function.
  12426. (setSendMessageQueue): New function.
  12427. * src/HandshakeMessage.cc: New class.
  12428. * src/PeerConnection.h (receiveMessage): Changed return value and
  12429. arguments.
  12430. (receiveHandshake): Changed return value and arguments.
  12431. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12432. here.
  12433. (receiveHandshake): Do not create handshake class here.
  12434. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12435. (piece): Removed.
  12436. (syncPiece): Removed.
  12437. (sendInterest): Removed.
  12438. (sendMessages): Removed.
  12439. (createRequestPendingMessage): Removed.
  12440. (checkPieceHash): Removed.
  12441. (erasePieceOnDisk): Removed.
  12442. (getNewPieceAndSendInterest): Removed.
  12443. (onGotNewPice): Removed.
  12444. (onGotWrongPiece): Removed.
  12445. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12446. Removed peerConnection, piece.
  12447. (~PeerInteractionCommand): Removed peerConnection.
  12448. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12449. (syncPiece): Moved to SendMessageQueue.
  12450. (decideChoking): Removed PendingMessage.
  12451. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12452. The action after receiving peer message was moved to each message
  12453. class.
  12454. (onGotNewPice): Moved to SendMessageQueue.
  12455. (onGotWrongPiece): Moved to SendMessageQueue.
  12456. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12457. (sendInterest): Moved to SendMessageQueue.
  12458. (createRequestPendingMessage): Removed.
  12459. (sendMessages): Moved to SendMessageQueue.
  12460. (onAbort): Use SendMessageQueue::abortPiece()
  12461. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12462. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12463. (checkPieceHash): Moved to SendMessageQueue.
  12464. (erasePieceOnDisk): Moved to SendMessageQueue.
  12465. * src/PeerMessageUtil.h
  12466. (createBitfieldMessage): Removed.
  12467. (createHaveMessage): Changed return value and arguments.
  12468. (createBitfieldMessage): Changed return value and arguments.
  12469. (createRequestCancelMessage): Removed.
  12470. (createPieceMessage): Changed return value and arguments.
  12471. (getShortIntParam): New function.
  12472. (checkIndex): Changed arguments.
  12473. (checkBegin): Changed arguments.
  12474. (checkLength): Changed arguments.
  12475. (checkPieceOffset): Removed.
  12476. (checkRange): New function.
  12477. (checkBitfield): Changed arguments.
  12478. (createPeerMessage): Removed.
  12479. (checkIntegrity): Removed.
  12480. (createHandshakeMessage): Changed arguments.
  12481. (createChokeMessage): New function.
  12482. (createUnchokeMessage): New function.
  12483. (createInterestedMessage): New function.
  12484. (createNotInterestedMessage): New function.
  12485. (createRequestMessage): New function.
  12486. (createCancelMessage): New function.
  12487. (createPortMessage): New function.
  12488. * src/PeerMessageUtil.cc
  12489. (createBitfieldMessage): Removed.
  12490. (createHaveMessage): Changed return value and arguments.
  12491. (createBitfieldMessage): Changed return value and arguments.
  12492. (createRequestCancelMessage): Removed.
  12493. (createPieceMessage): Changed return value and arguments.
  12494. (getShortIntParam): New function.
  12495. (checkIndex): Changed arguments.
  12496. (checkBegin): Changed arguments.
  12497. (checkLength): Changed arguments.
  12498. (checkPieceOffset): Removed.
  12499. (checkRange): New function.
  12500. (checkBitfield): Changed arguments.
  12501. (createPeerMessage): Removed.
  12502. (checkIntegrity): Removed.
  12503. (createHandshakeMessage): Changed arguments.
  12504. (createChokeMessage): New function.
  12505. (createUnchokeMessage): New function.
  12506. (createInterestedMessage): New function.
  12507. (createNotInterestedMessage): New function.
  12508. (createRequestMessage): New function.
  12509. (createCancelMessage): New function.
  12510. (createPortMessage): New function.
  12511. * src/PeerMessage.h
  12512. (id): Removed.
  12513. (index): Removed.
  12514. (begin): Removed.
  12515. (length): Removed.
  12516. (bitfield): Removed.
  12517. (bitfieldLength): Removed.
  12518. (block): Removed.
  12519. (blockLength): Removed.
  12520. (inProgress): New variable.
  12521. (cuid): New variable.
  12522. (peer): New variable.
  12523. (sendMessageQueue): New variable.
  12524. (logger): New variable.
  12525. (setBitfield): Removed.
  12526. (getBitfield): Removed.
  12527. (setBlock): Removed.
  12528. (getBlock): Removed.
  12529. (getBitfieldLength): Removed.
  12530. (getBlockLength): Removed.
  12531. (isInProgress): New function.
  12532. (toString): Made pure virtual.
  12533. (check): New function.
  12534. (send): New function.
  12535. (receivedAction): New function.
  12536. (getId): Made pure virtual.
  12537. (setId): Removed.
  12538. (getIndex): Removed.
  12539. (setIndex): Removed.
  12540. (getBegin): Removed.
  12541. (setBegin): Removed.
  12542. (getLength): Removed.
  12543. (setLength): Removed.
  12544. (getCuid): New function.
  12545. (setCuid): New function.
  12546. (getPeer): New function.
  12547. (setPeer): New function.
  12548. (getSendMessageQueue): New function.
  12549. (setSendMessageQueue): New function.
  12550. (ID): Removed.
  12551. * src/PeerMessage.cc
  12552. (setBitfield): Removed.
  12553. (setBlock): Removed.
  12554. (toString): Removed.
  12555. * src/TorrentMan.h
  12556. (getPieceLength): New function.
  12557. (getPieceLength): New function.
  12558. * src/SendMessageQueue.h
  12559. (REQUEST_TIME_OUT): New definition.
  12560. (RequestSlots): New definition.
  12561. (MessageQueue): New definition.
  12562. (requestSlotMan): Removed.
  12563. (pendingMessages): Removed.
  12564. (requestSlots): New variable.
  12565. (messageQueue): New variable.
  12566. (torrentMan): New variable.
  12567. (peerConnection): New variable.
  12568. (peer): New variable.
  12569. (piece): New variable.
  12570. (getNewPieceAndSendInterest): New function.
  12571. (createPeerMessage): New function.
  12572. (createHandshakeMessage): New function.
  12573. (send): Made private.
  12574. (setPeerMessageCommonProperty): New function.
  12575. (deleteAllRequestSlot): New function.
  12576. (deleteRequestMessageInQueue): New function.
  12577. (cancelAllRequest): Made private.
  12578. (cancelAllRequest): Made private.
  12579. (countRequestSlot): Made private.
  12580. (addPendingMessage): Removed.
  12581. (deletePendingPieceMessage): Removed.
  12582. (deletePendingRequestMessage): Removed.
  12583. (addMessage): New function.
  12584. (deletePieceMessageInQueue): New function.
  12585. (deleteTimeoutRequestSlot): Changed argument.
  12586. (deleteCompletedRequestSlot): Changed argument.
  12587. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12588. (getCorrespondingRequestSlot): New function.
  12589. (countPendingMessage): Removed.
  12590. (countMessageInQueue): New function.
  12591. (getTorrentMan): New function.
  12592. (getPeerConnection): New function.
  12593. (hasDownloadPiece): New function.
  12594. (getDownloadPiece): New function.
  12595. (setDownloadPiece): New function.
  12596. (syncPiece): New function.
  12597. (sendMessages): New function.
  12598. (sendNow): New function.
  12599. (trySendNow): New function.
  12600. (abortPiece): New function.
  12601. (sendHandshake): New function.
  12602. (receiveMessage): New function.
  12603. (receiveHandshake): New function.
  12604. (createRequestMessage): New function.
  12605. (createCancelMessage): New function.
  12606. (createPieceMessage): New function.
  12607. (createHaveMessage): New function.
  12608. (createChokeMessage): New function.
  12609. (createUnchokeMessage): New function.
  12610. (createInterestedMessage): New function.
  12611. (createNotInterestedMessage): New function.
  12612. (createBitfieldMessage): New function.
  12613. (createKeepAliveMessage): New function.
  12614. * src/SendMessageQueue.cc
  12615. (SendMessageQueue): Removed requestSlotMan.
  12616. Instantiated peerConnection here.
  12617. (~SendMessageQueue): Removed requestSlotMan.
  12618. Added deletion of peerConnection and the contents of messageQueue.
  12619. (send): Updated according to the change of messageQueue.
  12620. (addPendingMessage): Renamed to addMessage.
  12621. (addMessage): New function.
  12622. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12623. (deletePieceMessageInQueue): New function.
  12624. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12625. (deleteRequestMessageInQueue): New function.
  12626. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12627. here.
  12628. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12629. (...) was moved here.
  12630. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12631. moved here.
  12632. (deleteCompletedRequestSlot):
  12633. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12634. (getCorrespondingRequestSlot):
  12635. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12636. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12637. (countPendingMessage): Renamed to countMessageInQueue.
  12638. (countMessageInQueue): New function.
  12639. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12640. (receiveHandshake): New function.
  12641. (createHandshakeMessage): New function.
  12642. (receiveMessage): New function.
  12643. (createPeerMessage): New function.
  12644. (syncPiece): New function.
  12645. (getNewPieceAndSendInterest): New function.
  12646. (sendMessages): New function.
  12647. (sendNow): New function.
  12648. (trySendNow): New function.
  12649. (sendHandshake): New function.
  12650. (abortPiece): New function.
  12651. (getDownloadPiece): New function.
  12652. (getPeerMessageCommonProperty): New function.
  12653. (createRequestMessage): New function.
  12654. (createCancelMessage): New function.
  12655. (createPieceMessage): New function.
  12656. (createHaveMessage): New function.
  12657. (createChokeMessage): New function.
  12658. (createUnchokeMessage): New function.
  12659. (createInterestedMessage): New function.
  12660. (createNotInterestedMessage): New function.
  12661. (createBitfieldMessage): New function.
  12662. (createKeepAliveMessage): New function.
  12663. To add simple Content-Disposition support:
  12664. * src/HttpResponseCommand.h (determinFilename): New function.
  12665. * src/HttpResponseCommand.cc (executeInternal):
  12666. Use determinFilename(headers) instead of req->getFile() when comparing
  12667. filename.
  12668. (determinFilename): New function.
  12669. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12670. req->getFile().
  12671. (handleOtherEncoding): Use determinFilename(headers) instead of
  12672. req->getFile().
  12673. * src/Util.h (getContentDispositionFilename): New function.
  12674. * src/Util.cc (getContentDispositionFilename): New function.
  12675. * src/LogFactory.h (release): New function.
  12676. * src/LogFactory.cc (release): New function.
  12677. To fix a bug that causes out-of-bound exception when HTTP status
  12678. line is wrong:
  12679. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12680. size.
  12681. * src/common.h (Deleter): New class.
  12682. * src/SegmentMan.cc
  12683. (~SegmentMan): Added deletion of splitter and diskWriter.
  12684. * src/DownloadEngine.h
  12685. (Commands): Use deque.
  12686. (clearQueue): New function.
  12687. * src/DownloadEngine.cc
  12688. (~DownloadEngine): Added deletion of segmentMan.
  12689. (cleanQueue): New function.
  12690. * src/TorrentDownloadEngine.h
  12691. (TorrentDownloadEngine): The implementation was moved to
  12692. TorrentDownloadEngine.cc.
  12693. (~TorrentDownloadEngine): The implementation was moved to
  12694. TorrentDownloadEngine.cc.
  12695. * src/TorrentDownloadEngine.cc
  12696. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12697. * src/main.cc
  12698. (clearRequest): Removed.
  12699. (handler): Added deletion of e.
  12700. (torrentHandler): Added deletion of te.
  12701. (main): Do not share splitter.
  12702. Use Deleter instead of clearRequest.
  12703. Deletion of classes were updated.
  12704. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. * src/main.cc (main): Fixed typo.
  12706. * src/message.h: Fixed typo.
  12707. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12708. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. To add --select-file command-line option:
  12710. * src/Util.cc
  12711. (unfoldRange): New function.
  12712. (getNum): New function.
  12713. (unfoldSubRange): New function
  12714. * src/main.cc
  12715. (showUsage): Added help message.
  12716. (main): Added --select-file command-line option. Updated the layout of
  12717. file listing.
  12718. * src/common.h
  12719. (Integers): New definition.
  12720. * src/SocketCore.cc
  12721. (writeData): Removed timeout argument.
  12722. (readData): Removed timeout argument.
  12723. (peekData): Removed timeout argument.
  12724. * src/Socket.cc
  12725. (writeData): Removed timeout argument.
  12726. (readData): Removed timeout argument.
  12727. (peekData): Removed timeout argument.
  12728. * Release 0.4.1
  12729. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12730. To deploy upload rate based choking algorithm:
  12731. * src/PeerInteractionCommand.cc
  12732. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12733. peer currently used.
  12734. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12735. download completes. Simplified.
  12736. (receiveMessage): Updated.
  12737. * src/TorrentMan.h
  12738. (activePeers): New variable.
  12739. (addActivePeer): New function.
  12740. (getActivePeers): New function.
  12741. (deleteActivePeer): New function.
  12742. * src/TorrentMan.cc
  12743. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12744. * src/PeerAbstractCommand.cc
  12745. (onAbort): Use peer->resetStatus().
  12746. * src/main.cc
  12747. (PeerChokeCommand.h): Included.
  12748. (main): Added the instance of ChokingCommand to the command queue.
  12749. * src/Peer.h
  12750. (amChoking): Renamed from amChocking
  12751. (chokingRequired): New variable.
  12752. (optUnchoking): New variable.
  12753. (deltaUpload): New variable.
  12754. (deltaDownload): New variable.
  12755. (addDeltaUpload): New function.
  12756. (resetDeltaUpload): New function.
  12757. (addDeltaDownload): New function.
  12758. (resetDeltaDownload): New function.
  12759. (addPeerUpload): Added a call to addDeltaUpload.
  12760. (addPeerDownload): Added a call to addDeltaDownload.
  12761. * src/Peer.cc
  12762. (shouldBeChoking): Renamed from shouldChoke.
  12763. (resetStatus): New function.
  12764. * src/PeerChokeCommand.h: New class.
  12765. * src/PeerChokeCommand.cc: New class.
  12766. To add lazy upload speed limiter:
  12767. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12768. statistics calculation to TorrentDownloadEngine.
  12769. * src/TorrentConsoleDownloadEngine.cc
  12770. (sendStatistics): Renamed from printStatistics.
  12771. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12772. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12773. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12774. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12775. calculation.
  12776. (sendStatistics): New function as pure virtual function.
  12777. (getUploadSpeed): New function.
  12778. * src/TorrentDownloadEngine.cc
  12779. (initStatistics): New function.
  12780. (calculateSpeed): New function.
  12781. (calculateStatistics): New function.
  12782. * src/SendMessageQueue.h
  12783. (uploadLength): New variable.
  12784. (send): Added an argument.
  12785. (setUploadLimit): New function.
  12786. (getUploadLimit): New function.
  12787. * src/SendMessageQueue.cc
  12788. (send): Added upload speed limiter.
  12789. * src/prefs.h
  12790. (PREF_UPLOAD_LIMIT): New definition.
  12791. * src/PeerInteractionCommand.cc
  12792. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12793. * src/main.cc
  12794. (main): Added --upload-limit option
  12795. For bug fixes:
  12796. * src/main.cc
  12797. (showUsage): Corrected --listen-port help
  12798. Other changes:
  12799. * src/TorrentMan.cc
  12800. (getPeer): Return nullPeer if connection is grather than
  12801. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12802. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12803. To add some useful information to the exception message:
  12804. * src/SocketCore.cc : Updated messages.
  12805. * src/SegmentMan.cc :
  12806. * src/TorrentMan.cc : Updated messages.
  12807. * src/MultiDiskWriter.cc : Updated messages.
  12808. * src/Util.cc : Updated messages.
  12809. * src/AbstractDiskWriter.cc : Updated messages.
  12810. * src/PreAllocationDiskWriter.cc : Updated messages.
  12811. * src/message.cc : Added new messages. Updated some messages.
  12812. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12813. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12814. Updated threshold from 30 to 15.
  12815. * src/AbstractDiskWriter.h (filename): New variable.
  12816. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12817. (createFile): Assigned filename.
  12818. * src/main.cc: Updated the help message for http-auth-scheme.
  12819. * Release 0.4.0
  12820. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12821. To add TrackerUpdateCommand with which replaces
  12822. CompactTrackerResponseProcessor:
  12823. * src/TrackerWatcherCommand.h (req): Removed.
  12824. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12825. if the number of peer connections are less than 30.
  12826. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12827. * src/SegmentMan.h (diskWriter): New function.
  12828. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12829. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12830. (main): Use TrackerUpdateCommand.
  12831. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12832. (req): New variable.
  12833. (setTrackerResponseProcessor): Removed.
  12834. (getTrackerResponseProcessor): Removed.
  12835. (processTrackerResponse): Removed.
  12836. * src/DownloadEngine.h (diskWriter): Removed.
  12837. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12838. to torrentMan->processTrackerResponse().
  12839. To add Util::expandBuffer:
  12840. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12841. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12842. * src/Util.h (expandBuffer): New function.
  12843. To fix the bug that causes segmentation fault when "-l ." is specified
  12844. in command-line option:
  12845. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12846. (openFile): New function.
  12847. (closeFile): New function.
  12848. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12849. (~SimpleLogger): Call closeFile();
  12850. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12851. * src/main.cc (main): Added a check to see logger is configured
  12852. properly.
  12853. To enable HTTP authentication without specifying "--http-auth-scheme"
  12854. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12855. * src/HttpConnection.cc (createRequest): Send Authorization header
  12856. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12857. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12858. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12859. * src/Peer.cc (shouldChoke): Updated algorithm.
  12860. * src/message.h (EX_AUTH_FAILED): New definition.
  12861. (EX_FILE_OPEN): New definition.
  12862. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12863. if status == 401.
  12864. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12865. if req->isTorrent == true.
  12866. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12867. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12868. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12869. (createFile): Updated message.
  12870. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12871. To add a readout of estimated remaining time to normal HTTP/FTP
  12872. downloads:
  12873. * src/ConsoleDownloadEngine.h (startup): New variable.
  12874. (startupLength): New variable.
  12875. (isStartupLengthSet): New variable.
  12876. (avgSpeed): New variable.
  12877. (eta): New variable.
  12878. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12879. estimated remaining time.
  12880. (initStatistics): Initialized newly added variables.
  12881. (calculateStatistics): Calculate average speed and estimated remaining
  12882. time.
  12883. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12884. * src/TrackerDownloadCommand.h: Removed.
  12885. * src/TrackerDownloadCommand.cc: Removed.
  12886. * src/TrackerInitCommand.h: Removed.
  12887. * src/TrackerInitCommand.cc: Removed.
  12888. * src/TrackerUpdateCommand.h: Removed.
  12889. * src/TrackerUpdateCommand.cc: Removed.
  12890. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12891. url written in TrackerInitCommand was moved here. Do not create
  12892. tracker request command if torrentMan->trackers != 0.
  12893. * src/CompactTrackerResponseProcessor.h: New class.
  12894. * src/CompactTrackerResponseProcessor.cc: New class.
  12895. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12896. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12897. Decoupled TorrentDownloadEngine from this.
  12898. * src/SegmentMan.h (init): New function.
  12899. * src/SegmentMan.cc (init): New function.
  12900. * src/TorrentMan.h (responseProcessor): New variable.
  12901. (trackers): New variable.
  12902. (setTrackerResponseProcessor): New function.
  12903. (getTrackerResponseProcessor): New function.
  12904. (processTrackerResponse): New function.
  12905. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12906. (processTrackerResponse): New function.
  12907. * src/main.cc (main): Use ByteArrayDiskWriter and
  12908. CompactTrackerResponseProcessor.
  12909. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12910. processTrackerResponse().
  12911. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12912. readout.
  12913. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12914. which indicates download has completed.
  12915. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12916. (closeFile): fd >= 0, not fd > 0
  12917. * src/main.cc (main): Added short cut for show-files.
  12918. Added short cut for torrent-file.
  12919. Added new command-line option listen-port.
  12920. Updated i18n messages.
  12921. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12922. To add LogFactory which creates singleton logger:
  12923. * src/LogFactory.h: New class.
  12924. * src/LogFactory.cc: New class.
  12925. * src/Command.h (logger): New variable.
  12926. (Constructor): Use LogFactory.
  12927. * src/AbstractCommand.cc: Use Command::logger
  12928. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12929. Use LogFactory.
  12930. * src/SegmentSplitter.h : Made logger protected.
  12931. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12932. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12933. * src/DownloadEngine.h : Made logger protected.
  12934. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12935. * src/PeerInteractionCommand.cc : Use Command::logger.
  12936. * src/HttpResponseCommand.cc : Use Command::logger.
  12937. * src/SegmentMan.h : Made logger private.
  12938. * src/TorrentMan.h : Made logger private.
  12939. * src/TorrentMan.cc : Use LogFactory.
  12940. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12941. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12942. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12943. Use LogFactory.
  12944. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12945. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12946. Use LogFactory.
  12947. * src/DownloadCommand.cc : Use Command::logger.
  12948. * src/PeerAbstractCommand.cc : Use Command::logger.
  12949. * src/PeerListenCommand.cc : Use Command::logger.
  12950. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12951. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12952. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12953. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12954. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12955. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12956. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12957. Use LogFactory.
  12958. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12959. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12960. Use LogFactory.
  12961. * src/main.cc (main): Use LogFactory.
  12962. * src/DiskAdaptor.h (logger): New variable.
  12963. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12964. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12965. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12966. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12967. parameter to a tracker request.
  12968. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12969. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12970. * src/main.cc (setSignalHander): New function.
  12971. (main): Added a handler for SIGTERM.
  12972. (handler): Updated message.
  12973. (torrentHandler): Updated message.
  12974. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12975. * src/TorrentConsoleDownloadEngine.cc
  12976. (onPartialDownloadingCompletes): Renamed as
  12977. onSelectiveDownloadingCompletes.
  12978. (onSelectiveDownloadingCompletes): Updated message.
  12979. To add DiskAdaptor which abstract DiskWriter family:
  12980. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12981. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12982. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12983. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12984. MultiDiskAdaptor.h.
  12985. (readFileEntry): Changed its arguments.
  12986. (setup): setupDiskWriter is merged into this function.
  12987. (setupDiskWriter): Removed.
  12988. (setFileFilter): New function.
  12989. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12990. made in readFileEntry.
  12991. (getFilePath): Removed.
  12992. (getTempFilePath): Removed.
  12993. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12994. (fixFilename): Removed.
  12995. (copySingleFile): Removed.
  12996. (splitMultiFile): Removed.
  12997. (deleteTempFile): Removed.
  12998. (setFileEntriesToDownload): Removed.
  12999. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13000. (isSelectiveDownloadingMode): New function.
  13001. (setAllMultiFileRequestedState): Removed.
  13002. (finishPartialDownloadingMode): Renamed as
  13003. finishSelectiveDownloadingMode.
  13004. (finishSelectiveDownloadingMode): New function.
  13005. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13006. (getSelectedTotalLength): New function.
  13007. (onDownloadComplete): Use diskAdaptor.
  13008. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13009. (Range): Removed.
  13010. (setMultiFileEntries): Renamed as setFileEntries.
  13011. (setFileEntries): New function.
  13012. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13013. (pieceLength): New variable.
  13014. * src/main.cc (printDownloadCompeleteMessage): New function.
  13015. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13016. (main): Renamed torrent-show-files to show-files.
  13017. Rewritten file contents listing.
  13018. * src/TorrentMan.h (FileEntry): Removed.
  13019. (multiFileTopDir): Removed.
  13020. (multiFileEntries): Removed.
  13021. (diskWriter): Removed.
  13022. (diskAdaptor): New variable.
  13023. * src/DefaultDiskWriter.h (totalLength): New variable.
  13024. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13025. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13026. diskWriter.
  13027. * src/TorrentConsoleDownloadEngine.h
  13028. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13029. (partialTotalLength): Renamed as selectedTotalLength.
  13030. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13031. openExistingFile, otherwise call initAndOpenFile.
  13032. (closeFile): fd > 0, not fd != 0.
  13033. * src/DirectDiskAdaptor.h: New class.
  13034. * src/DirectDiskAdaptor.cc: New class.
  13035. * src/MultiDiskAdaptor.h: New class.
  13036. * src/MultiDiskAdaptor.cc: New class.
  13037. * src/CopyDiskAdaptor.h: New class.
  13038. * src/CopyDiskAdaptor.cc: New class.
  13039. * src/DiskAdaptor.h: New class.
  13040. * src/DiskAdaptor.cc: New class.
  13041. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13042. (PREF_SHOW_FILES): New definition.
  13043. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13044. To add the ability to download multi torrent into respective files
  13045. directly:
  13046. * src/DiskWriter.h (openFile): New function.
  13047. (seek): Removed.
  13048. * src/MultiDiskWriter.h: New class.
  13049. * src/MultiDiskWriter.cc: New class.
  13050. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13051. protected.
  13052. (openFile): New function.
  13053. * src/AbstractDiskWriter.cc (openFile): New function.
  13054. * src/prefs.h (V_FALSE): New definition.
  13055. (PREF_DIRECT_FILE_MAPPING): New definition.
  13056. * src/TorrentMan.h (setupDiskWriter): New function.
  13057. (setAllMultiFileRequestedState): New function.
  13058. (onDownloadComplete): New function.
  13059. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13060. (setupDiskWriter): New function.
  13061. (getFilePath): Updated.
  13062. (getTempFilePath): Updated.
  13063. (getSegmentFilePath): Updated.
  13064. (fixFilename): Updated.
  13065. (deleteTempFile): Updated.
  13066. (setAllMultiFileRequestedState): New function.
  13067. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13068. (finishPartialDownloadingMode): Reset requested flags.
  13069. (onDownloadComplete): New function.
  13070. * src/main.cc: Added --direct-file-mapping option.
  13071. Use TorrentMan::setupDiskWriter().
  13072. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13073. onDownloadComplete().
  13074. To fix ETA bug:
  13075. * src/Util.h (difftvsec): New function.
  13076. * src/Util.cc (difftvsec): New function.
  13077. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13078. type of "elapsed" instead of long long int.
  13079. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13080. The updates of statistics takes place every 1 seconds.
  13081. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13082. (calculateSpeed): Changed its argument signature.
  13083. * src/PeerMessage.cc (toString): Fixed message.
  13084. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. To print ETA:
  13086. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13087. completion handling when dealing with
  13088. TorrentMan::isPartialDownloadingMode() == true.
  13089. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13090. New function.
  13091. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13092. (sessionDownloadLength): New variable.
  13093. (avgSpeed): New variable.
  13094. (eta): New variable.
  13095. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13096. new variables: eta, avgSpeed, startup.
  13097. (calculateSpeed): Calculate average speed and ETA.
  13098. (printStatistics): Added ETA.
  13099. * src/Util.h (secfmt): New function.
  13100. * src/Util.cc (secfmt): New function.
  13101. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13102. To detect "keep alive" flooding:
  13103. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13104. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13105. variable: keepAliveCount.
  13106. (detectMessageFlooding): Added "keep alive" flooding detection.
  13107. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13108. received.
  13109. To add the ability to download only specified files in multi-file
  13110. torrent:
  13111. * src/BitfieldMan.h (filterBitfield): New variable.
  13112. (filterEnabled): New variable.
  13113. (setFilterBit): New function.
  13114. (enableFilter): New function.
  13115. (disableFilter): New function.
  13116. (isFilterEnabled): New function.
  13117. (getFilteredTotalLength): New function.
  13118. (getCompletedLength): New function.
  13119. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13120. filterBitfield, filterEnabled.
  13121. (CopyConstructor): Added filterBitfield and filterEnabled.
  13122. (operator==): Added filterBitfield and filterEnabled.
  13123. (Destructor): Added filterBitfield.
  13124. (getMissingIndex): Use filterBitfield.
  13125. (getMissingUnusedIndex): Use filterBitfield.
  13126. (getFirstMissingUnusedIndex): Use filterBitfield.
  13127. (getFirstMissingUnusedIndex): Use filterBitfield.
  13128. (getAllMissingIndexes): Use filterBitfield.
  13129. (countMissingBlock): Use filterBitfield.
  13130. (countBlock): Use filterBitfield.
  13131. (setBitInternal): Added new argument on.
  13132. (setUseBit): Use setBitInternal.
  13133. (unsetUseBit): Use setBitInternal.
  13134. (setBit): Use setBitInternal.
  13135. (unsetBit): Use setBitInternal.
  13136. (isAllBitSet): Use filterBitfield.
  13137. (setFilterBit): New function.
  13138. (addFilter): New function.
  13139. (enableFilter): New function.
  13140. (disableFilter): New function.
  13141. (clearFilter): New function.
  13142. (isFilterEnabled): New function.
  13143. (getFilteredTotalLength): New function.
  13144. (getCompletedLength): New function.
  13145. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13146. Initalized newly added variables.
  13147. [FileEntry](offset): New variable.
  13148. [FileEntry](extracted): New variable.
  13149. [FileEntry](requested): New variable.
  13150. (readFileEntry): New function.
  13151. (option): New variable.
  13152. (splitMultiFile): Removed const qualifier.
  13153. (fixFilename): Removed const qualifier.
  13154. (readFileEntryFromMetaInfoFile): New function.
  13155. (finishPartialDownloadingMode): New function.
  13156. (isPartialDownloadingMode): New function.
  13157. (setFileEntriesToDownload): New function.
  13158. (getCompletedLength): New function.
  13159. (getPartialTotalLength): New function.
  13160. * src/TorrentMan.cc (readFileEntry): New function.
  13161. (setup): Use readFileEntry. If no-preallocation option is specified,
  13162. use DefaultDiskWriter.
  13163. (readFileEntryFromMetaInfoFile): New function.
  13164. (fixFilename): Removed const qualifier.
  13165. (splitMultiFile): Removed const qualifier.
  13166. (setFileEntriesToDownload): New function.
  13167. (isPartialDownloadingMode): New function.
  13168. (finishPartialDownloadingMode): New function.
  13169. (getCompletedLength): New function.
  13170. (getPartialTotalLength): New function.
  13171. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13172. New variable.
  13173. (partialTotalLength): New variable.
  13174. (downloadLength): New variable.
  13175. (totalLength): New variable.
  13176. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13177. Added log.
  13178. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13179. partialTotalLength, downloadLength, totalLength.
  13180. (calculate): Calculate downloadLength and totalLength.
  13181. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13182. * src/main.cc (addCommand): Changed argument signature.
  13183. (main): Added new variable: args. Added new option "torrent-show-files"
  13184. "no-preallocation". Usage is not updated yet.
  13185. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13187. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13188. Attempt to add the ability to listing file entries in a .torrent file.
  13189. This feature is not yet complete.
  13190. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13191. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13192. (getName): New function.
  13193. * src/TorrentMan.h (getMultiFileEntries): New function.
  13194. (getName): New function.
  13195. * src/main.cc (main): Use above 2 funtion.
  13196. * Release 0.3.2
  13197. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13198. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13199. (detectMessageFlooding): Updated threshold value.
  13200. (checkLongTimePeerChoking): Updated timeout value.
  13201. (getNewPieceAndSendInterest): Added debug log.
  13202. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13203. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13204. (getPeer): Updated.
  13205. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13206. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13207. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13208. is localhost.
  13209. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13210. * src/PendingMessage.cc (processMessage): Not to send piece message
  13211. if peer is not interested in the pieces localhost has.
  13212. * src/Peer.cc (shouldChoke): Updated.
  13213. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13214. * src/Util.cc (isPowerOf): New function.
  13215. * src/Util.h (isPowerOf): New function.
  13216. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13217. whether or not it is power of 2.
  13218. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13219. Added new class SendMessageQueue that includes PendingMessages and
  13220. RequestSlotMan.
  13221. * src/SendMessageQueue.h: New class.
  13222. * src/SendMessageQueue.cc: New class.
  13223. * src/PendingMessage.h: Added new member variable blockIndex and its
  13224. accessors.
  13225. (createRequestMessage): Updated.
  13226. * src/PendingMessage.cc (createRequestMessage): Updated.
  13227. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13228. SendMessageQueue.
  13229. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13230. (receiveMessage): Updated with SendMessageQueue.
  13231. (deletePendingPieceMessage): Removed.
  13232. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13233. (sendInterest): Updated with SendMessageQueue.
  13234. (createRequestPendingMessage): Updated with SendMessageQueue.
  13235. (sendMessages): Updated with SendMessageQueue.
  13236. (onAbort): Updated with SendMessageQueue.
  13237. (keepAlive): Updated with SendMessageQueue.
  13238. (beforeSocketCheck): Updated SendMessageQueue.
  13239. * src/PeerInteractionCommand (sendMessages): Shuffle
  13240. missingBLockIndexes before using it.
  13241. Added its own timeout for peer connection.
  13242. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13243. setter.
  13244. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13245. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13246. Added setTimeout() call.
  13247. (executeInternal): Added setTimeout() call.
  13248. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13249. Added timeout.
  13250. (isTimeoutDetected): Updated.
  13251. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13252. option.
  13253. Added *simple* message flooding checker.
  13254. * src/PeerInteractionCommand.cc (executeInternal):
  13255. Added detectMessageFlooding() call.
  13256. (detectMessageFlooding): New function.
  13257. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13258. (beforeSocketCheck): Added detectMessageFlooding() call.
  13259. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13260. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13261. Removed deletePendingPieceMessage(), getRequestSlot(),
  13262. deleteRequestSlot(), deleteAllRequestSlot().
  13263. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13264. Added checkLongTimePeerChoking() call.
  13265. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13266. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13267. if duplicate == false.
  13268. The parameter "uploaded" and "downloaded" in the tracker request are
  13269. the size since the client sent the "started" event to the tracker.
  13270. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13271. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13272. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13273. getSessionDownloadedSize(), getSessionUploadedSize().
  13274. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13275. getSessionUploadedSize() instead of getDownloadedSize(),
  13276. getUploadedSize().
  13277. * src/PendingMessage.cc (processMessage): Do not send request message
  13278. if the peer is choking the client.
  13279. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13280. less than interval.
  13281. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. * configure.in: Added gnutls support. Added several CPP macros.
  13283. * m4/openssl.m4: Added.
  13284. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13285. readData(), peekData(). Added gnutls support.
  13286. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13287. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13288. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13289. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13290. Instead, added a check for whether setup method has executed
  13291. successfully.
  13292. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13293. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13294. * src/Makefile.am: Updated.
  13295. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13296. using whether OpenSSL or gcrypt, depending on the result of configure
  13297. script.
  13298. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13299. messageDigest.h.
  13300. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13301. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13302. Fixed memory leak.
  13303. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13304. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13305. Removed instantiation of TrackerInitCommand. Instead,
  13306. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13307. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13308. ENABLE_SSL.
  13309. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13310. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13311. If a piece is already acquired by another command, delete the request
  13312. slots for the piece.
  13313. * src/TrackerUpdateCommand.cc (execute):
  13314. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13315. Added a check whether peer list is null.
  13316. Fixed the bug that causes sending completed event to the tracker
  13317. several times.
  13318. * src/TrackerInitCommand.cc (execute):
  13319. Fixed the bug that causes sending completed event to the tracker
  13320. several times.
  13321. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13322. by using messageDigest.h.
  13323. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13324. * PeerConnection.cc: Replaced log message "keep-alive" with
  13325. "keep alive".
  13326. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13327. localhost long time.
  13328. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13329. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13330. at most 100 failure entry from the list. If with duplicate = false,
  13331. MAX_PEER_LIST is not checked.
  13332. * PeerListenCommand.cc: Fixed the argument order of log message.
  13333. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13334. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13335. Added warn().
  13336. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13337. Implemented warn().
  13338. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13339. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13340. * Request.h: Added AFTER_COMPLETED event.
  13341. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13342. instead of downloaded size and progress(%) after download completes.
  13343. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13344. message to the peer if it is interested in what localhost has
  13345. downloaded.
  13346. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13347. destination instead of just renaming it.
  13348. * TorrentMan.cc: Added deleteTempFile().
  13349. * PeerAbstractCommand.cc: do not stop execution after download
  13350. completes. This makes localhost a seeder.
  13351. * Util.{h,cc}: Added fileCopy().
  13352. * PeerListenCommand.cc: do not stop execution after download completes.
  13353. This makes localhost a seeder.
  13354. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13355. Added TorrentMan::deleteTempFile() to torrentHandler.
  13356. Initialized the variable dir as ".".
  13357. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13358. Deleted renameSingleFile().
  13359. Added copySingleFile(), deleteTempFile().
  13360. * DownloadEngine.h: Added virtual function afterEachIteration().
  13361. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13362. in onEndOfRun() to afterEachIteration().
  13363. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13364. true.
  13365. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13366. In rangedFileCopy(), added try-catch block to properly close file
  13367. descriptors.
  13368. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13369. Added afterEachIteration(), isFilenameFixed().
  13370. * Peer.cc: Changed choking strategy.
  13371. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13372. * TrackerInitCommand.cc: Send completed event only once.
  13373. * DownloadEngine.cc: Added a call to afterEachIteration().
  13374. * TrackerUpdateCommand.cc: Do not stop execution after download
  13375. completes.
  13376. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13377. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13378. received from a tracker.
  13379. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13380. Decreased the number of failure peers to delete to 0(just comment out
  13381. the line).
  13382. * Release 0.3.1
  13383. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. * PeerInteractionCommand.cc: added a call to
  13385. TorrentMan::unadvertisePiece in Destructor.
  13386. * PeerInteractionCommand.cc: make have message sent immediately
  13387. if the size of pending message queue is zero.
  13388. * TorrentMan.cc: set the maximum size of peer list to 250.
  13389. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13390. to deque.
  13391. * Util.cc: fixed rangedFileCopy.
  13392. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13393. to Constructor. Also, moved digest cleanup to Destructor.
  13394. * MetaFileUtil.cc: fixed memory leak
  13395. * replaced std::vector with std::deque.
  13396. * AbstractCommand.cc: casted timeout value to long long int.
  13397. * ChunkedEncoding.cc: fixed memory leak.
  13398. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13399. * SleepCommand.cc: casted timeout value to long long int.
  13400. * Data.cc: fixed memory leak.
  13401. * Data.cc: fixed toLLInt().
  13402. * BitfieldMan.cc: fixed memory leak.
  13403. * TorrentMan.cc: initialized storeDir to ".".
  13404. * TorrentMan.cc: fixed memory leak.
  13405. * TorrentMan.cc: corrected file paths of splitted files.
  13406. * PeerAbstractCommand.cc: casted timeout to long long int.
  13407. * main.cc: added delete(req) and delete(te->diskWriter).
  13408. * RequestSlot.cc: casted timeout value to long long int.
  13409. * Request.cc: fixed memory leak.
  13410. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13411. have the piece.
  13412. * Peer.{h,cc}: added hasPiece(int index).
  13413. * main.cc: corrected addCommand.
  13414. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13415. * BitTorrent protocol support added.
  13416. * Release 0.3.0
  13417. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13418. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13419. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13421. decoding did not work properly.
  13422. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13423. * DownloadEngine.h: included sys/time.h
  13424. * DownloadEngine.cc: remove sys/time.h
  13425. * Makefile.am (SUBDIRS): Add intl.
  13426. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13427. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13428. * main.cc: correct help message for --http-auth-scheme.
  13429. * main.cc: changed e-mail address for bug reports.
  13430. * ja.po: added japanese translation.
  13431. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13432. * SimpleLogger.cc: flush log file instead of stdout.
  13433. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13434. * main.cc: Fixed command-line option: max-tries
  13435. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13436. does not equal to seg.sp.
  13437. * DownloadCommand.cc: If EOF is got from the server and the total size
  13438. of file is not zero, then throw DlRetryEx.
  13439. * main.cc: Set the minium value of min-segment-size to 1024.
  13440. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13441. fails because of a regression since 0.2.0 release.
  13442. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13443. * HttpConnection.cc:
  13444. * common.h: defined the user agent name as macro
  13445. * DownloadEngine.{h, cc}:
  13446. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13447. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13448. * main.cc: Download complete/abort message is now generated by main.
  13449. * Makefile.am (SUBDIRS): Add m4.
  13450. (ACLOCAL_AMFLAGS): New variable.
  13451. (EXTRA_DIST): New variable.
  13452. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13453. * gettext: added gettext functionality
  13454. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13455. * AbstractCommand.cc:
  13456. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13457. unregister its cuid from SegmentMan.
  13458. * DownloadEngine.cc: .aria2 file was written when a downloading
  13459. failed with errors.
  13460. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13461. Added "User-Agent" header to CONNECT proxy request.
  13462. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13463. properly.
  13464. * Logger.h:
  13465. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13466. * ChunkedEncoding.cc: Added #include directive for strings.h
  13467. * Release 0.2.1
  13468. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13469. * Util.{h,cc}: added startsWith().
  13470. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13471. Util::endsWith().
  13472. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13473. * common.h: added #include directive of limit.h.
  13474. * DownloadEngine.cc: added #include directive of sys/time.h and
  13475. algorithm.
  13476. * Exception.h: added #include directive of stdio.h.
  13477. * AbstractCommand.h: added #include directive of sys/time.h.
  13478. * DownloadCommand.h: added #include directive of sys/time.h.
  13479. * *.h: added #include directive of common.h to all base classes.
  13480. subclasses' one was removed.
  13481. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13482. does not define these macros.
  13483. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13484. * Release 0.2.0
  13485. * main.cc:
  13486. * HttpInitiateConnectionCommand.{h,cc}:
  13487. * prefs.h:
  13488. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13489. We can now use GET command in http proxy.
  13490. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13491. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13492. that splits slowest segment of SegmentMan::commands vector.
  13493. This is the default split algorithm of aria2.
  13494. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13495. that splits first segment of SegmentMan::commands vector.
  13496. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13497. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13498. * Segment.h:
  13499. * SegmentMan.cc: Added speed field to Segment.h
  13500. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13501. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13502. * message.h: Change file size related %d to %lld.
  13503. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13504. * FtpInitiateConnectionCommand.{h,cc}:
  13505. * FtpNegotiationCommand.{h,cc}:
  13506. * FtpDownloadCommand.{h,cc}:
  13507. * FtpConnection.{h,cc}: Added FTP support
  13508. * SimpleLogger.cc: Log message now includes time information.
  13509. * main.cc: The value of --http-auth-scheme option is chagned from
  13510. 'BASIC' to 'basic'
  13511. * main.cc: Added --timeout command-line option.
  13512. * main.cc: Added --min-segment-size command-line option.
  13513. * main.cc: Added --max-retries command-line option.
  13514. * prefs.h: option string constants are now defined in prefs.h
  13515. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13516. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13517. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13518. with version 0.1.0's one.
  13519. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13520. * configure.in: Added --enable-ssl option to configure script.
  13521. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13522. cannot permit absoluteURI as Request-URI.
  13523. * HttpConnection.cc: Added Referer support.
  13524. * main.cc: Added referer command-line option.
  13525. * main.cc: Added rety-wait command-line option.
  13526. * Exception.h: Fixed formating bug in Exception::setMsg()
  13527. * SocketCore.{h,cc}:
  13528. * Socket.{h, cc}:
  13529. * Request.cc:
  13530. * InitiateConnectionCommandFactory.cc:
  13531. * HttpRequestCommand.cc: Added HTTPS support.
  13532. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13533. for SocketCore.
  13534. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13535. size is wrong
  13536. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13537. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13538. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13539. * Release 0.1.0