ChangeLog 529 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726
  1. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated README
  3. * README
  4. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Updated Ukrainian translations. Thanks to Alexander10.
  6. * po/uk.po
  7. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Code cleanup
  9. * src/MetalinkParserStateMachine.cc
  10. * src/MetalinkParserStateMachine.h
  11. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  13. and expat simultaneously, MetalinkProcessor is now not base class
  14. and it is directly implemented in XML2SAXMetalinkProcessor and
  15. ExpatMetalinkProcessor.
  16. * src/ExpatMetalinkProcessor.cc
  17. * src/ExpatMetalinkProcessor.h
  18. * src/Makefile.am
  19. * src/MetalinkHelper.cc
  20. * src/MetalinkProcessor.h
  21. * src/MetalinkProcessorFactory.cc: Removed.
  22. * src/MetalinkProcessorFactory.h: Removed
  23. * src/XML2SAXMetalinkProcessor.cc
  24. * src/XML2SAXMetalinkProcessor.h
  25. * test/MetalinkProcessorTest.cc
  26. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Bump up version number to 1.3.2
  28. * configure.ac
  29. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Added missing file.
  31. * test/Makefile.am
  32. * test/url-list-singleFileEndsWithSlash.torrent
  33. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  35. request.
  36. * src/AnnounceList.cc
  37. * src/AnnounceList.h
  38. * src/BDE.cc: Added
  39. * src/BDE.h: Added
  40. * src/DHTAbstractMessage.cc
  41. * src/DHTAbstractMessage.h
  42. * src/DHTAnnouncePeerMessage.cc
  43. * src/DHTAnnouncePeerMessage.h
  44. * src/DHTAnnouncePeerReplyMessage.cc
  45. * src/DHTAnnouncePeerReplyMessage.h
  46. * src/DHTFindNodeMessage.cc
  47. * src/DHTFindNodeMessage.h
  48. * src/DHTFindNodeReplyMessage.cc
  49. * src/DHTFindNodeReplyMessage.h
  50. * src/DHTGetPeersMessage.cc
  51. * src/DHTGetPeersMessage.h
  52. * src/DHTGetPeersReplyMessage.cc
  53. * src/DHTGetPeersReplyMessage.h
  54. * src/DHTMessageFactory.h
  55. * src/DHTMessageFactoryImpl.cc
  56. * src/DHTMessageFactoryImpl.h
  57. * src/DHTMessageReceiver.cc
  58. * src/DHTMessageTracker.cc
  59. * src/DHTMessageTracker.h
  60. * src/DHTPingMessage.cc
  61. * src/DHTPingMessage.h
  62. * src/DHTPingReplyMessage.cc
  63. * src/DHTPingReplyMessage.h
  64. * src/DHTQueryMessage.cc
  65. * src/DHTQueryMessage.h
  66. * src/DHTResponseMessage.cc
  67. * src/DHTResponseMessage.h
  68. * src/DefaultBtAnnounce.cc
  69. * src/DefaultBtContext.cc
  70. * src/DefaultBtContext.h
  71. * src/HandshakeExtensionMessage.cc
  72. * src/Makefile.am
  73. * src/PeerListProcessor.h
  74. * src/UTPexExtensionMessage.cc
  75. * src/bencode.cc
  76. * src/bencode.h
  77. * test/AnnounceListTest.cc
  78. * test/BDETest.cc: Added
  79. * test/BencodeTest.cc
  80. * test/DHTAnnouncePeerMessageTest.cc
  81. * test/DHTAnnouncePeerReplyMessageTest.cc
  82. * test/DHTFindNodeMessageTest.cc
  83. * test/DHTFindNodeReplyMessageTest.cc
  84. * test/DHTGetPeersMessageTest.cc
  85. * test/DHTGetPeersReplyMessageTest.cc
  86. * test/DHTMessageFactoryImplTest.cc
  87. * test/DHTMessageTrackerTest.cc
  88. * test/DHTPingMessageTest.cc
  89. * test/DHTPingReplyMessageTest.cc
  90. * test/Makefile.am
  91. * test/MockDHTMessageFactory.h
  92. * test/PeerListProcessorTest.cc
  93. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Use url-list (web-seeding) only for single-file torrent. This is
  95. basically the same behavior with Metalink file with torrent and
  96. URIs.
  97. * src/RequestGroup.cc
  98. * src/DefaultBtContext.cc
  99. * test/DefaultBtContextTest.cc
  100. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Rewritten expr
  102. * src/array_fun.h
  103. * test/array_funTest.cc
  104. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  106. * src/DefaultBtMessageDispatcher.cc
  107. * src/a2algo.h
  108. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Removed ExtendedMessagingAware. Instead of using inheritance,
  110. added ExtensionMessageRegistry and it is passed to
  111. DefaultExtensionMessageFactory.
  112. * src/DefaultBtInteractive.cc
  113. * src/DefaultBtInteractive.h
  114. * src/DefaultExtensionMessageFactory.cc
  115. * src/DefaultExtensionMessageFactory.h
  116. * src/ExtendedMessagingAware.h: Removed.
  117. * src/ExtensionMessageFactory.h
  118. * src/ExtensionMessageRegistry.h: Added.
  119. * src/Makefile.am
  120. * src/PeerInteractionCommand.cc
  121. * test/DefaultExtensionMessageFactoryTest.cc
  122. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Fixed typo in log messages
  124. * src/MSEHandshake.cc
  125. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Fixed the bug that prevents torrent download from finishing. The
  127. bug doesn't reveal for all torrents. The torrents affected this
  128. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  129. of pieces.
  130. * src/bitfield.h
  131. * test/bitfieldTest.cc
  132. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Code cleanup
  134. * src/PeerListProcessor.h
  135. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Removed RequestGroupAware
  137. * src/AbstractCommand.cc
  138. * src/AbstractCommand.h
  139. * src/ActivePeerConnectionCommand.cc
  140. * src/ActivePeerConnectionCommand.h
  141. * src/DHTGetPeersCommand.cc
  142. * src/DHTGetPeersCommand.h
  143. * src/InitiatorMSEHandshakeCommand.cc
  144. * src/InitiatorMSEHandshakeCommand.h
  145. * src/Makefile.am
  146. * src/PeerInitiateConnectionCommand.cc
  147. * src/PeerInitiateConnectionCommand.h
  148. * src/PeerInteractionCommand.cc
  149. * src/PeerInteractionCommand.h
  150. * src/RealtimeCommand.cc
  151. * src/RealtimeCommand.h
  152. * src/RequestGroupAware.cc: Removed
  153. * src/RequestGroupAware.h: Removed
  154. * src/SeedCheckCommand.cc
  155. * src/SeedCheckCommand.h
  156. * src/SleepCommand.cc
  157. * src/TrackerWatcherCommand.cc
  158. * src/TrackerWatcherCommand.h
  159. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Rewritten PeerListProcessor
  161. * src/PeerListProcessor.h
  162. * src/CompactPeerListProcessor.h: Removed
  163. * src/CompactPeerListProcessor.cc: Removed
  164. * src/DelegatingPeerListProcessor.cc: Removed.
  165. * src/DefaultBtAnnounce.cc
  166. * src/Makefile.am
  167. * src/UTPexExtensionMessage.cc
  168. * src/DefaultPeerListProcessor.h: Removed.
  169. * src/DefaultPeerListProcessor.cc: Removed.
  170. * src/DelegatingPeerListProcessor.h: Removed.
  171. * test/Makefile.am
  172. * test/PeerListProcessorTest.cc
  173. * test/DefaultPeerListProcessorTest.cc: Removed.
  174. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Rewritten RequestGroupMan::calculateStat()
  176. * src/RequestGroupMan.cc
  177. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Removed unnecessary virtual destructor for Request class.
  179. * src/Request.cc
  180. * src/Request.h
  181. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Avoid dynamic_pointer_cast.
  183. * src/DHTGetPeersCommand.cc
  184. * src/DHTGetPeersCommand.h
  185. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  187. BtEvent.
  188. * src/AbstractBtEventListener.h: Removed.
  189. * src/AbstractBtMessage.cc
  190. * src/AbstractBtMessage.h
  191. * src/BtAbortOutstandingRequestEvent.h
  192. * src/BtCancelSendingPieceEvent.h
  193. * src/BtChokedEvent.h: Removed.
  194. * src/BtChokingEvent.h
  195. * src/BtEvent.h: Removed
  196. * src/BtEventListener.h: Removed.
  197. * src/BtMessage.h
  198. * src/BtPieceMessage.cc
  199. * src/BtPieceMessage.h
  200. * src/BtRequestMessage.cc
  201. * src/BtRequestMessage.h
  202. * src/DefaultBtMessageDispatcher.cc
  203. * src/Makefile.am
  204. * src/a2functional.h
  205. * test/BtPieceMessageTest.cc
  206. * test/BtRequestMessageTest.cc
  207. * test/DefaultBtMessageDispatcherTest.cc
  208. * test/MockBtMessage.h
  209. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Code cleanup
  211. * src/RequestGroupMan.cc
  212. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Code cleanup
  214. * src/DownloadCommand.cc
  215. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Fixed segmentation fault when GZipDecoder::decode() returns 0
  217. byte.
  218. * src/DownloadCommand.cc
  219. * src/bitfield.h
  220. * test/bitfieldTest.cc
  221. Fixed the bug that causes infinite loop if broken web server
  222. returns chunked response without last "0" chunk-size marker and
  223. closes connection.
  224. * src/DownloadCommand.cc
  225. Instantiate properly configured HttpDownloadCommand for
  226. non-resumable downlaods.
  227. * src/HttpResponseCommand.cc
  228. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Rewritten array operation functions.
  230. * src/BitfieldMan.cc
  231. * src/array_fun.h
  232. * test/array_funTest.cc
  233. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Removed unused variable 'query'
  235. * src/Request.cc
  236. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  238. accidentally set to false in r1162.
  239. * configure.ac
  240. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Code cleanup
  242. * src/BNode.cc
  243. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Increase prefixLength for the bucket which doesn't own local node
  245. ID when splitting bucket.
  246. * src/DHTBucket.cc
  247. * test/DHTBucketTest.cc
  248. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. * Release 1.3.1
  250. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Bump up version number to 1.3.1
  252. * configure.ac
  253. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Removed unused variable checkPoint. Also removed include directive
  255. for TimeA2.h.
  256. * src/SeedCheckCommand.h
  257. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Fixed the bug that upload limit exceeds the value specified in
  259. --seed-ratio option depending on the timing of the execution of
  260. SeedCheckCommand.
  261. * src/SeedCheckCommand.cc
  262. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Fixed the bug that removed peer's session upload/download length
  264. are counted twice in _cachedTransferStat before it is
  265. re-calculated. This affected the calculation of shara ratio,
  266. resulting aria2 wrongly determines that specified share ratio is
  267. reached. Also fixed the typo in calculateStatFor function name.
  268. * src/BtSetup.cc
  269. * src/DefaultPeerStorage.cc
  270. * src/ShareRatioSeedCriteria.h
  271. * test/ShareRatioSeedCriteriaTest.cc
  272. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. * Release 1.3.0
  274. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  276. Nynorsk translations. Thanks to all translators.
  277. * po/es.po
  278. * po/ja.po
  279. * po/nn.po
  280. * po/ru.po
  281. * po/uk.po
  282. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Rewritten isInRange()
  284. * src/DHTBucket.cc
  285. * test/DHTBucketTest.cc
  286. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Fixed typo
  288. * doc/aria2c.1.txt
  289. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  291. malloc/realloc is not used.
  292. * src/configure.ac
  293. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. BitfieldMan::getMissingIndexes family functions now takes unsigned
  295. char* bitfield instead of stl container for efficiency.
  296. PieceSelector::select now takes this
  297. bitfield. RarestPieceSelector::select now also performs
  298. efficiently for this change. bitfield namespace is introduced and
  299. it has several helper functions to handle basic bitfield
  300. operations such as test, count set bits, etc.
  301. * src/BitfieldMan.cc
  302. * src/BitfieldMan.h
  303. * src/DefaultBtRequestFactory.cc
  304. * src/DefaultPieceStorage.cc
  305. * src/DefaultPieceStorage.h
  306. * src/LongestSequencePieceSelector.cc
  307. * src/LongestSequencePieceSelector.h
  308. * src/Makefile.am
  309. * src/Piece.cc
  310. * src/Piece.h
  311. * src/PieceSelector.h
  312. * src/RarestPieceSelector.cc
  313. * src/RarestPieceSelector.h
  314. * src/Util.cc
  315. * src/Util.h
  316. * src/bitfield.h
  317. * test/BitfieldManTest.cc
  318. * test/LongestSequencePieceSelectorTest.cc
  319. * test/Makefile.am
  320. * test/RarestPieceSelectorTest.cc
  321. * test/UtilTest.cc
  322. * test/bitfieldTest.cc
  323. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Made accepted socket non-block.
  325. * src/FtpNegotiationCommand.cc
  326. * src/HttpListenCommand.cc
  327. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Guarded #ifdef HAVE_POSIX_FALLOCATE
  329. * src/AbstractSingleDiskAdaptor.cc
  330. * src/DefaultPieceStorage.cc
  331. * src/DiskAdaptor.h
  332. * src/DiskAdaptor.h
  333. * src/MultiFileAllocationIterator.cc
  334. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Run
  336. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  337. in every 1 sec. The timeout of RequestSlot is 60s by default and
  338. it doesn't need to be called every time when
  339. DefaultBtInteractive::doInteractionProcessing() is called.
  340. * src/DefaultBtInteractive.cc
  341. * src/DefaultBtInteractive.h
  342. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Documented 'falloc' in man page.
  344. * doc/aria2c.1.txt
  345. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Updated doc
  347. * src/usage_text.h
  348. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Added 'falloc' parameter for --file-allocation option. 'falloc'
  350. allocation mode uses posix_fallocate() system call to allocate
  351. file on disk. If you are using newer file systems such as ext4
  352. (with extents support), btrfs or xfs, 'falloc' is your best
  353. choice. It allocates large(few GiB) files almost instantly. Don't
  354. use 'falloc' with legacy file systems such as ext3 because it
  355. takes almost same time as 'prealloc' and it blocks aria2 entirely
  356. until allocation finishes. 'falloc' may not be available if your
  357. system doesn't have posix_fallocate() system call.
  358. * configure.ac
  359. * src/AbstractDiskWriter.cc
  360. * src/AbstractDiskWriter.h
  361. * src/AbstractSingleDiskAdaptor.cc
  362. * src/BinaryStream.h
  363. * src/BtCheckIntegrityEntry.cc
  364. * src/ByteArrayDiskWriter.h
  365. * src/CheckIntegrityEntry.cc
  366. * src/CheckIntegrityEntry.h
  367. * src/DefaultPieceStorage.cc
  368. * src/DiskAdaptor.cc
  369. * src/DiskAdaptor.h
  370. * src/DiskWriter.h
  371. * src/FallocFileAllocationIterator.cc
  372. * src/FallocFileAllocationIterator.h
  373. * src/FileAllocationEntry.cc
  374. * src/FileAllocationEntry.h
  375. * src/Makefile.am
  376. * src/MultiFileAllocationIterator.cc
  377. * src/MultiFileAllocationIterator.h
  378. * src/OptionHandlerFactory.cc
  379. * src/RequestGroup.cc
  380. * src/StreamCheckIntegrityEntry.cc
  381. * src/prefs.cc
  382. * src/prefs.h
  383. * src/usage_text.h
  384. * test/FallocFileAllocationIteratorTest.cc
  385. * test/Makefile.am
  386. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Removed duplicate enableDirectIO() call.
  388. * src/MultiFileAllocationIterator.cc
  389. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  391. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  392. cost of std::rotate().
  393. * src/RarestPieceSelector.cc
  394. * src/RarestPieceSelector.h
  395. * test/RarestPieceSelectorTest.cc
  396. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Updated usage doc for --bt-tracker-interval option.
  398. * src/usage_text.h
  399. * doc/aria2c.1.txt
  400. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Documented --bt-tracker-interval option in man page.
  402. * doc/aria2c.1.txt
  403. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Added an option to specify the interval between tracker requests.
  405. If non-zero value is specified, aria2 uses it and ignores the
  406. interval value in the response of tracker. If zero is specified,
  407. aria2 determines the inteval value based on the tarcker response
  408. and download progress.
  409. * src/DefaultBtAnnounce.cc
  410. * src/DefaultBtAnnounce.h
  411. * src/OptionHandlerFactory.cc
  412. * src/RequestGroup.cc
  413. * src/prefs.cc
  414. * src/prefs.h
  415. * src/usage_text.h
  416. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Added operator+=, operator-=, operator-
  418. * src/TransferStat.cc
  419. * src/TransferStat.h
  420. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Refactored RarestPieceSelector to reduce CPU load, especially for
  422. addPieceStats.
  423. * src/RarestPieceSelector.cc
  424. * src/RarestPieceSelector.h
  425. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  427. getAllMissingBlockIndexes to reduce a call to
  428. array_function_base::operator[].
  429. * src/BitfieldMan.cc
  430. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Cached TransferStat/download speed to avoid to sum them up in each
  432. call.
  433. * src/DefaultPeerStorage.cc
  434. * src/DefaultPeerStorage.h
  435. * src/SegmentMan.cc
  436. * src/SegmentMan.h
  437. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Typedefed cuid_t as int32_t in Command.h
  439. * src/CUIDCounter.h
  440. * src/Command.cc
  441. * src/Command.h
  442. * src/DownloadEngine.cc
  443. * src/DownloadEngine.h
  444. * src/PeerStat.h
  445. * src/SegmentMan.cc
  446. * src/SegmentMan.h
  447. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Reduced the number of calls to PeerStorage::calculateStat() and
  449. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  450. transfer rate.
  451. * src/DefaultBtInteractive.cc
  452. * src/DefaultBtMessageDispatcher.cc
  453. * src/DefaultPeerStorage.cc
  454. * src/DefaultPeerStorage.h
  455. * src/DownloadCommand.cc
  456. * src/DownloadEngine.cc
  457. * src/PeerStorage.h
  458. * src/SegmentMan.cc
  459. * src/SegmentMan.h
  460. * test/MockPeerStorage.h
  461. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Prepended _dir+"/" after joining path elements in torrent file.
  463. * src/DefaultBtContext.cc
  464. * test/DefaultBtContextTest.cc
  465. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Added missing IndexBtMessageValidator.h
  467. * src/Makefile.am
  468. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  470. Chinese translations. Thank you for contributing our project.
  471. * po/id.po
  472. * po/it.po
  473. * po/ru.po
  474. * po/uk.po
  475. * po/zh_CN.po
  476. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Updated README
  478. * README
  479. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Bump up version number to 1.3.0
  481. * configure.ac
  482. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Updated doc
  484. * src/DefaultBtContext.h
  485. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Slice/joinPath for name of single torrent.
  487. * src/DefaultBtContext.cc
  488. * test/DefaultBtContextTest.cc
  489. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Updated man page: Documented --dry-run and --index-out
  491. options. Changed the default value of --uri-selector and
  492. --http-auth-challenge options. Removed --direct-file-mapping
  493. option. Added example for --index-out
  494. * doc/aria2c.1.txt
  495. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Updated TEXT_DRY_RUN
  497. * src/usage_text.h
  498. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Changed the default value of --uri-selector option from 'inorder'
  500. to 'feedback'
  501. * src/OptionHandlerFactory.cc
  502. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Included current URI in exception message.
  504. * src/AbstractCommand.cc
  505. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Renamed ServerStatURISelector as FeedbackURISelector.
  507. * src/FeedbackURISelector.cc
  508. * src/FeedbackURISelector.h
  509. * src/Makefile.am
  510. * src/RequestGroupMan.cc
  511. * src/ServerStatURISelector.cc
  512. * src/ServerStatURISelector.h
  513. * test/FeedbackURISelectorTest.cc
  514. * test/Makefile.am
  515. * test/ServerStatURISelectorTest.cc
  516. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  518. all URIs are tested and their timeout is not reached.
  519. * src/AdaptiveURISelector.cc
  520. * src/AdaptiveURISelector.h
  521. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Changed the default value of --http-auth-challenge option to false.
  523. * src/OptionHandlerFactory.cc
  524. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Reuse URIs when all unused URIs run out.
  526. * src/OptionHandlerFactory.cc
  527. * src/RequestGroup.cc
  528. * src/prefs.cc
  529. * src/prefs.h
  530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  532. and BtRejectMessage are derived from RangeBtMessage class.
  533. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  534. derived from IndexBtMessage class. BtChokeMessage,
  535. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  536. BtNotInterestedMessage and BtUnchokeMessage are derived from
  537. ZeroBtMessage class.
  538. * src/AbstractBtMessage.cc
  539. * src/AbstractBtMessage.h
  540. * src/BtAllowedFastMessage.cc
  541. * src/BtAllowedFastMessage.h
  542. * src/BtAllowedFastMessageValidator.h: Removed
  543. * src/BtBitfieldMessage.cc
  544. * src/BtBitfieldMessage.h
  545. * src/BtCancelMessage.cc
  546. * src/BtCancelMessage.h
  547. * src/BtCancelMessageValidator.h: Removed
  548. * src/BtChokeMessage.cc
  549. * src/BtChokeMessage.h
  550. * src/BtExtendedMessage.cc
  551. * src/BtExtendedMessage.h
  552. * src/BtHandshakeMessage.cc
  553. * src/BtHandshakeMessage.h
  554. * src/BtHaveAllMessage.cc
  555. * src/BtHaveAllMessage.h
  556. * src/BtHaveMessage.cc
  557. * src/BtHaveMessage.h
  558. * src/BtHaveMessageValidator.h: Removed
  559. * src/BtHaveNoneMessage.cc
  560. * src/BtHaveNoneMessage.h
  561. * src/BtInterestedMessage.cc
  562. * src/BtInterestedMessage.h
  563. * src/BtKeepAliveMessage.cc
  564. * src/BtKeepAliveMessage.h
  565. * src/BtNotInterestedMessage.cc
  566. * src/BtNotInterestedMessage.h
  567. * src/BtPieceMessage.cc
  568. * src/BtPieceMessage.h
  569. * src/BtPortMessage.cc
  570. * src/BtPortMessage.h
  571. * src/BtRejectMessage.cc
  572. * src/BtRejectMessage.h
  573. * src/BtRejectMessageValidator.h: Removed
  574. * src/BtRequestMessage.cc
  575. * src/BtRequestMessage.h
  576. * src/BtRequestMessageValidator.h: Removed
  577. * src/BtSuggestPieceMessage.cc
  578. * src/BtSuggestPieceMessage.h
  579. * src/BtSuggestPieceMessageValidator.h: Removed
  580. * src/BtUnchokeMessage.cc
  581. * src/BtUnchokeMessage.h
  582. * src/DefaultBtMessageFactory.cc
  583. * src/IndexBtMessage.cc
  584. * src/IndexBtMessage.h
  585. * src/IndexBtMessageValidator.h
  586. * src/Makefile.am
  587. * src/PeerMessageUtil.cc
  588. * src/PeerMessageUtil.h
  589. * src/RangeBtMessage.cc
  590. * src/RangeBtMessage.h
  591. * src/RangeBtMessageValidator.h
  592. * src/SimpleBtMessage.cc
  593. * src/SimpleBtMessage.h
  594. * src/ZeroBtMessage.cc
  595. * src/ZeroBtMessage.h
  596. * test/BtRequestMessageTest.cc
  597. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Reverted usage_text.h to r1093 to avoid to lose translated
  599. messages.
  600. * src/usage_text.h
  601. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  603. declared as non-const previously is now const and defined in class
  604. definition.
  605. * src/AbstractBtMessage.cc
  606. * src/AbstractBtMessage.h
  607. * src/BtAllowedFastMessage.cc
  608. * src/BtAllowedFastMessage.h
  609. * src/BtBitfieldMessage.h
  610. * src/BtCancelMessage.cc
  611. * src/BtCancelMessage.h
  612. * src/BtChokeMessage.cc
  613. * src/BtChokeMessage.h
  614. * src/BtExtendedMessage.cc
  615. * src/BtExtendedMessage.h
  616. * src/BtHandshakeMessage.cc
  617. * src/BtHandshakeMessage.h
  618. * src/BtHaveAllMessage.cc
  619. * src/BtHaveAllMessage.h
  620. * src/BtHaveMessage.cc
  621. * src/BtHaveMessage.h
  622. * src/BtHaveNoneMessage.cc
  623. * src/BtHaveNoneMessage.h
  624. * src/BtInterestedMessage.cc
  625. * src/BtInterestedMessage.h
  626. * src/BtKeepAliveMessage.cc
  627. * src/BtKeepAliveMessage.h
  628. * src/BtMessage.h
  629. * src/BtNotInterestedMessage.cc
  630. * src/BtNotInterestedMessage.h
  631. * src/BtPieceMessage.h
  632. * src/BtPortMessage.cc
  633. * src/BtPortMessage.h
  634. * src/BtRejectMessage.cc
  635. * src/BtRejectMessage.h
  636. * src/BtRequestMessage.cc
  637. * src/BtRequestMessage.h
  638. * src/BtSuggestPieceMessage.cc
  639. * src/BtSuggestPieceMessage.h
  640. * src/BtUnchokeMessage.cc
  641. * src/BtUnchokeMessage.h
  642. * src/SimpleBtMessage.cc
  643. * src/SimpleBtMessage.h
  644. * test/MockBtMessage.h
  645. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Use FileEntry::exists()
  647. * src/MultiDiskAdaptor.cc
  648. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Added exists()
  650. * src/FileEntry.cc
  651. * src/FileEntry.h
  652. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Added missing prefix dir.
  654. * src/download_helper.cc
  655. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Removed --direct-file-mapping option and CopyDiskAdaptor.
  657. * src/CopyDiskAdaptor.cc: Removed
  658. * src/CopyDiskAdaptor.h: Removed
  659. * src/DefaultPieceStorage.cc
  660. * src/Makefile.am
  661. * src/OptionHandlerFactory.cc
  662. * src/prefs.cc
  663. * src/prefs.h
  664. * src/usage_text.h
  665. * test/CopyDiskAdaptorTest.cc: Removed
  666. * test/Makefile.am
  667. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Rewritten isSameFileBeingDownloaded()
  669. * src/RequestGroupMan.cc
  670. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Removed getName() from DownloadContext. getName() is declared in
  672. BtContext.
  673. * src/BtContext.h
  674. * src/DownloadContext.h
  675. * src/SingleFileDownloadContext.cc
  676. * src/SingleFileDownloadContext.h
  677. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  678. in AbstractSingleDiskAdaptor.
  679. * src/AbstractSingleDiskAdaptor.h
  680. * src/DiskAdaptor.h
  681. * src/MultiDiskAdaptor.h
  682. * src/RequestGroup.cc
  683. Removed setTopDir() and getTopDir() and getTopDirPath() from
  684. MultiDiskAdaptor.
  685. * src/DefaultPieceStorage.cc
  686. * src/MultiDiskAdaptor.cc
  687. * src/MultiDiskAdaptor.h
  688. * test/MultiDiskAdaptorTest.cc
  689. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. FileEntry::getPath() contains store(top level) directory to
  691. simplify path handling operation. In the previous implementation,
  692. store directory is concatenated to FileEntry::getPath() in
  693. DownloadContext.
  694. * src/BtDependency.cc
  695. * src/BtPostDownloadHandler.cc
  696. * src/CopyDiskAdaptor.cc
  697. * src/DefaultBtContext.cc
  698. * src/DirectDiskAdaptor.cc
  699. * src/FileEntry.cc
  700. * src/FileEntry.h
  701. * src/FtpNegotiationCommand.cc
  702. * src/HttpResponse.cc
  703. * src/HttpResponseCommand.cc
  704. * src/Metalink2RequestGroup.cc
  705. * src/MultiDiskAdaptor.cc
  706. * src/MultiDiskAdaptor.h
  707. * src/MultiFileAllocationIterator.cc
  708. * src/RequestGroup.cc
  709. * src/SingleFileDownloadContext.cc
  710. * src/SingleFileDownloadContext.h
  711. * src/download_helper.cc
  712. * test/BtDependencyTest.cc
  713. * test/CopyDiskAdaptorTest.cc
  714. * test/DefaultBtContextTest.cc
  715. * test/DefaultBtProgressInfoFileTest.cc
  716. * test/DirectDiskAdaptorTest.cc
  717. * test/DownloadHelperTest.cc
  718. * test/FileEntryTest.cc
  719. * test/MultiDiskAdaptorTest.cc
  720. * test/MultiFileAllocationIteratorTest.cc
  721. * test/RequestGroupTest.cc
  722. * test/SingleFileDownloadContextTest.cc
  723. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Fixed compiler warning
  725. * src/download_helper.cc
  726. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Throw exception if same infohash torrent is now downloading.
  728. * src/RequestGroup.cc
  729. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added --dry-run option. In this mode, aria2 just checks whether
  731. the remote file is available and doesn't download data. This
  732. option has effect on HTTP/FTP downloads and BitTorrent downloads
  733. are canceled in this mode.
  734. * src/FtpNegotiationCommand.cc
  735. * src/HttpResponseCommand.cc
  736. * src/HttpResponseCommand.h
  737. * src/OptionHandlerFactory.cc
  738. * src/RequestGroup.cc
  739. * src/RequestGroupMan.cc
  740. * src/prefs.cc
  741. * src/prefs.h
  742. * src/usage_text.h
  743. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Fixed compiler waring
  745. * test/UriListParserTest.cc
  746. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Parse options in -i list using OptionParser.
  748. * src/UriListParser.cc
  749. * src/UriListParser.h
  750. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Don't reset URI in retry to avoid additional round trips because
  752. of redirects.
  753. * src/AbstractCommand.cc
  754. * src/OptionHandlerFactory.cc
  755. * src/prefs.cc
  756. * src/prefs.h
  757. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Declared hide() in OptionHandler.
  759. * src/NameMatchOptionHandler.h
  760. * src/OptionHandler.h
  761. * src/OptionHandlerImpl.h
  762. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Updated doc
  764. * src/Peer.h
  765. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Added log message in setStatusInternal()
  767. * src/ServerStat.cc
  768. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Call ServerStat::setError() in AbstractCommand::onAbort() to
  770. effectively exclude failed server.
  771. * src/AbstractCommand.cc
  772. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Added --index-out option to specify each file path for torrent.
  774. Here index shown in --show-files option is used to specify which
  775. file path should be altered. For example, to change the file path
  776. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  777. option multiple times: --index-out=1=aria2.tar.bz2
  778. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  779. available. This option can be specified in -i list.
  780. * src/DefaultBtContext.cc
  781. * src/DefaultBtContext.h
  782. * src/MultiDiskAdaptor.cc
  783. * src/MultiDiskAdaptor.h
  784. * src/MultiFileAllocationIterator.cc
  785. * src/OptionHandlerFactory.cc
  786. * src/OptionHandlerImpl.h
  787. * src/Util.cc
  788. * src/Util.h
  789. * src/download_helper.cc
  790. * src/prefs.cc
  791. * src/prefs.h
  792. * src/usage_text.h
  793. * test/DefaultBtContextTest.cc
  794. * test/MultiDiskAdaptorTest.cc
  795. * test/MultiFileAllocationIteratorTest.cc
  796. * test/UtilTest.cc
  797. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Use Util::pathJoin()
  799. * src/MetalinkParserController.cc
  800. * test/test.xml
  801. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Use Util::pathJoin()
  803. * src/DefaultBtContext.cc
  804. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Added Util::pathJoin()
  806. * src/Util.h
  807. * test/UtilTest.cc
  808. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Applied basename function to remove directory element in
  810. content-disposition value.
  811. Return empty string if content-disposition value is ".." or ".".
  812. * src/Util.cc
  813. * test/UtilTest.cc
  814. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Added --max-overall-download-limit in man page.
  816. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  817. * doc/aria2c.1.txt
  818. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Added --max-overall-download-limit option. Now --max-upload-limit
  820. option is not ignored when --max-overall-upload-limit option has
  821. non-zero value. aria2 checks download(upload) speed in the order:
  822. first checks overall speed limit and if it is not exceeded, then
  823. checks speed limit per download. Thus you can specify both
  824. value. For example, set --max-overall-download-limit=1M and
  825. --max-download-limit=500K to prevent from one download from eating
  826. all overall speed limit.
  827. * src/DefaultBtInteractive.cc
  828. * src/DefaultBtInteractive.h
  829. * src/DefaultBtMessageDispatcher.cc
  830. * src/DefaultBtMessageDispatcher.h
  831. * src/DownloadCommand.cc
  832. * src/DownloadCommand.h
  833. * src/FtpNegotiationCommand.cc
  834. * src/HttpResponseCommand.cc
  835. * src/OptionHandlerFactory.cc
  836. * src/PeerInteractionCommand.cc
  837. * src/RequestGroup.cc
  838. * src/RequestGroup.h
  839. * src/RequestGroupMan.cc
  840. * src/RequestGroupMan.h
  841. * src/prefs.cc
  842. * src/prefs.h
  843. * src/usage_text.h
  844. * test/DefaultBtMessageDispatcherTest.cc
  845. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Documented select-file option in Input File section.
  847. Documented --http-auth-challenge option.
  848. * doc/aria2c.1.txt
  849. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Now select-file can be specified in the uri list(-i list).
  851. * src/BtContext.cc
  852. * src/BtContext.h
  853. * src/RequestGroup.cc
  854. * src/Sequence.h
  855. * src/download_helper.cc
  856. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Made the upper value of --max-concurrent-downloads options unlimited.
  858. * src/OptionHandlerFactory.cc
  859. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed the bug that disk writer is not created even if it shares
  861. same piece with the preceding file if the length of previous file
  862. is 0.
  863. * src/MultiDiskAdaptor.cc
  864. * test/MultiDiskAdaptorTest.cc
  865. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. In BitTorrent, Open files in read-only mode for hash check. After
  867. that, re-open file in read/write mode only when the download is
  868. not finished.
  869. * src/AbstractDiskWriter.cc
  870. * src/AbstractDiskWriter.h
  871. * src/AbstractSingleDiskAdaptor.cc
  872. * src/AbstractSingleDiskAdaptor.h
  873. * src/BtCheckIntegrityEntry.cc
  874. * src/DiskAdaptor.h
  875. * src/DiskWriter.h
  876. * src/MultiDiskAdaptor.cc
  877. * src/MultiDiskAdaptor.h
  878. * src/RequestGroup.cc
  879. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added --http-auth-challenge option. If it is set to true(by
  881. default), aria2 sends HTTP authorization header only when it is
  882. requested by the server. If false is set, then authorization
  883. header is always sent to the server. This is useful for servers
  884. that don't respond 401 code when authentication is required.
  885. There is an exception: if username and password are embedded in
  886. URI, authorization header is always sent to the server regardless
  887. of this option.
  888. * src/AuthConfigFactory.cc
  889. * src/HttpSkipResponseCommand.cc
  890. * src/OptionHandlerFactory.cc
  891. * src/prefs.cc
  892. * src/prefs.h
  893. * src/usage_text.h
  894. * test/AuthConfigFactoryTest.cc
  895. * test/HttpRequestTest.cc
  896. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. * Release 1.2.0
  898. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Updated Spanish, Ukrainian, Russian and Japanese translations.
  900. Thanks to all translators.
  901. * po/es.po
  902. * po/ja.po
  903. * po/ru.po
  904. * po/uk.po
  905. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Call deleteSocketForReadCheck() before socket is closed.
  907. * src/HttpListenCommand.cc
  908. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Defined virtual destructor for BObject.
  910. * src/bencode.h
  911. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Rewritten BDE to make it efficient.
  913. * src/bencode.cc
  914. * src/bencode.h
  915. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Removed function throw list.
  917. * src/bencode.cc
  918. * src/bencode.h
  919. * test/BencodeTest.cc
  920. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Enclosed all URLs in double quotes in command-line examples.
  922. * doc/aria2c.1.txt
  923. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Updated reference/see also section.
  925. * README
  926. * doc/aria2c.1.txt
  927. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Reorganized man page based on man man-pages.
  929. * doc/aria2c.1.txt
  930. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  932. because same documents are available in man page. Added
  933. References section.
  934. * README
  935. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  937. PERFORMANCE PROFILE section.
  938. * doc/aria2c.1.txt
  939. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Rewritten the section for configuration file.
  941. * README
  942. * doc/aria2c.1.txt
  943. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Fixed the segmentation fault during execution of choking algorithm
  945. in leecher state because of broken compare operator
  946. implementation.
  947. * src/BtLeecherStateChoke.cc
  948. * src/BtLeecherStateChoke.h
  949. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Open file in binary mode.
  951. * src/CookieStorage.cc
  952. * src/DHTSetup.cc
  953. * src/DHTUtil.cc
  954. * src/Netrc.cc
  955. * src/NsCookieParser.cc
  956. * src/ProtocolDetector.cc
  957. * src/RequestGroupMan.cc
  958. * src/Signature.cc
  959. * src/bencode.cc
  960. * src/download_helper.cc
  961. * src/option_processing.cc
  962. * test/CookieParserTest.cc
  963. * test/DefaultBtProgressInfoFileTest.cc
  964. * test/FileTest.cc
  965. * test/GZipDecoderTest.cc
  966. * test/RequestGroupManTest.cc
  967. * test/SignatureTest.cc
  968. * test/SingleFileAllocationIteratorTest.cc
  969. * test/UriListParserTest.cc
  970. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Removed operator[] because it is ambiguous with built-in []
  972. operator.
  973. * src/array_fun.h
  974. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Fixed compile error
  976. * src/OptionParser.cc
  977. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Added missing call to arrayWrapperConst
  979. * test/array_funTest.cc
  980. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Use array_wrapper instead of array_ptr.
  982. * src/DHTRoutingTableDeserializer.cc
  983. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  985. * src/array_fun.h
  986. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Added array_wrapper template.
  988. * src/array_fun.h
  989. * test/array_funTest.cc
  990. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Use operator T* of array_ptr.
  992. * src/OptionParser.cc
  993. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Use localhost instead of 127.0.0.1
  995. * test/FtpConnectionTest.cc
  996. * test/MSEHandshakeTest.cc
  997. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Added operator T*
  999. * src/array_fun.h
  1000. * test/array_funTest.cc
  1001. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Use dynamically allocated char array to detect memory access
  1003. violation.
  1004. * src/DHTRoutingTableDeserializer.cc
  1005. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1007. defined.
  1008. * src/PeerMessageUtil.cc
  1009. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1011. * configure.ac
  1012. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added a check to see struct sockaddr_in has sin_len member.
  1014. * configure.ac
  1015. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Fixed buffer overrun.
  1017. * src/DHTRoutingTableDeserializer.cc
  1018. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Added LL for long long int constant.
  1020. * test/FtpConnectionTest.cc
  1021. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Casted to unsigned int to suppress compiler warning on netbsd.
  1023. * src/BtRuntime.h
  1024. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1026. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1027. type time_t.
  1028. * src/SimpleLogger.cc
  1029. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Added test for FtpConnection::receiveSizeResponse().
  1031. * test/FtpConnectionTest.cc
  1032. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Fix epoll error on the old kernel 2.6.8 or ealier.
  1034. * src/EpollEventPoll.cc
  1035. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Use Util::parseLLInt instead of sscanf for portability. The
  1037. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1038. * src/FtpConnection.cc
  1039. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1041. block. It should not filter anything.
  1042. * src/BitfieldMan.cc
  1043. * src/ConsoleStatCalc.cc
  1044. * test/BitfieldManTest.cc
  1045. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Fixed the bug that the boolean options that don't take arguments
  1047. don't work.
  1048. * src/OptionHandlerImpl.h
  1049. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Fixed broken selected file BitTorrent download.
  1051. * src/MultiDiskAdaptor.cc
  1052. * test/MultiDiskAdaptorTest.cc
  1053. * test/MultiFileAllocationIteratorTest.cc
  1054. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Fixed #define guard for EpollEventPoll
  1056. * src/EpollEventPoll.h
  1057. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Wait 2 seconds. 1 second is sometimes not enough.
  1059. * test/TimeSeedCriteriaTest.cc
  1060. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Use localhost instead of 127.0.0.1.
  1062. * test/DHTConnectionImplTest.cc
  1063. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Suppressed compiler warning.
  1065. * src/AdaptiveURISelector.cc
  1066. * src/DefaultPieceStorage.cc
  1067. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Defined virtual destructor.
  1069. * src/MetalinkParserState.h
  1070. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Give NULL for second argument of getaddrinfo instead of "0".
  1072. * src/NameResolver.cc
  1073. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1075. included strptime doesn't parse data for this format.
  1076. * src/FtpConnection.cc
  1077. * test/FtpConnectionTest.cc
  1078. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Removed tests giving -1 for unsigned argument.
  1080. * test/SingleFileDownloadContextTest.cc
  1081. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Don't use sha256 in tests because it might not be supported by the
  1083. SSL library.
  1084. * test/MetalinkProcessorTest.cc
  1085. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Removed tests giving -1 for unsigned argument.
  1087. * test/AlphaNumberDecoratorTest
  1088. * test/BitfieldManTest.cc
  1089. * test/DefaultBtContextTest.cc
  1090. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Fixed compile error without libcares when epoll is available.
  1092. * src/EpollEventPoll.cc
  1093. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Included fstream instead of iostream.
  1095. * test/SignatureTest.cc
  1096. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Removed #include <algorithm>
  1098. * test/RequestGroupTest.cc
  1099. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1101. using RequestGroup::extractURIResult().
  1102. * src/AdaptiveURISelector.cc
  1103. * src/RequestGroup.cc
  1104. * src/RequestGroup.h
  1105. * test/RequestGroupTest.cc
  1106. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Added tests for array_ptr.
  1108. * test/array_funTest.cc
  1109. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Don't send ip parameter to a tracker if ip parameter is empty
  1111. string.
  1112. * src/DefaultBtAnnounce.cc
  1113. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Adjusted line feed.
  1115. * src/version_usage.cc
  1116. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Print tags, possible values when OptionHandlerException is caught.
  1118. * src/option_processing.cc
  1119. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Changed the message for FatalException.
  1121. * src/OptionParser.cc
  1122. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Documented --bt-external-ip option in man page. Updated man pages
  1124. for --proxy-method option.
  1125. * doc/aria2c.1.txt
  1126. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Use GET method for FTP via HTTP proxy.
  1128. * src/FtpInitiateConnectionCommand.cc
  1129. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Changed the default value of --proxy-method option from 'tunnel'
  1131. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1132. option.
  1133. * src/AbstractCommand.cc
  1134. * src/AbstractCommand.h
  1135. * src/FtpInitiateConnectionCommand.cc
  1136. * src/HttpDownloadCommand.cc
  1137. * src/HttpInitiateConnectionCommand.cc
  1138. * src/HttpInitiateConnectionCommand.h
  1139. * src/OptionHandlerFactory.cc
  1140. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Initialized _logger
  1142. * src/SelectEventPoll.cc
  1143. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Defined a copy constructor for the same type.
  1145. * src/SharedHandle.h
  1146. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Added OptionParser::parseArg() which internally uses getopt_long
  1148. to parse command-line options. All command-line options are now
  1149. configured by OptionHandler. No manual editing of struct option*
  1150. is required any more.
  1151. * src/NameMatchOptionHandler.h
  1152. * src/OptionHandler.h
  1153. * src/OptionHandlerFactory.cc
  1154. * src/OptionHandlerImpl.h
  1155. * src/OptionParser.cc
  1156. * src/OptionParser.h
  1157. * src/array_fun.h
  1158. * src/main.cc
  1159. * src/option_processing.cc
  1160. * test/OptionHandlerTest.cc
  1161. * test/OptionParserTest.cc
  1162. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Fixed configure error with --disable-epoll
  1164. * configure.ac
  1165. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Fixed compile error when HAVE_EPOLL is not defined.
  1167. Fixed linker error on bigendian systems.
  1168. * src/SocketCore.cc
  1169. * src/SocketCore.h
  1170. * test/DefaultBtProgressInfoFileTest.cc
  1171. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Added --bt-external-ip option. You can specify the external IP
  1173. address to report to a BitTorrent tracker. Although this function
  1174. is named 'external', it can accept any kind of IP addresses.
  1175. * src/DefaultBtAnnounce.cc
  1176. * src/OptionHandlerFactory.cc
  1177. * src/option_processing.cc
  1178. * src/prefs.cc
  1179. * src/prefs.h
  1180. * src/usage_text.h
  1181. * test/DefaultBtAnnounceTest.cc
  1182. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Extracted the algorithm to find the longest incremental sequence
  1184. as max_sequence template.
  1185. * src/LongestSequencePieceSelector.cc
  1186. * src/a2algo.h
  1187. * test/Makefile.am
  1188. * test/a2algoTest.cc
  1189. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1191. * src/usage_text.h
  1192. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Updated doc for --uri-selector, --http-server-listen-port and
  1194. --enable-http-server option. Documented --event-poll option.
  1195. * doc/aria2c.1.txt
  1196. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Updated doc for --enable-http-server.
  1198. * src/usage_text.h
  1199. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Documented --http-server-listen-port and --enable-http-server in
  1201. man page.
  1202. * doc/aria2c.1.txt
  1203. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1205. translations. Thanks to all translators.
  1206. * po/es.po
  1207. * po/id.po
  1208. * po/it.po
  1209. * po/ru.po
  1210. * po/uk.po
  1211. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Bump up version number to 1.2.0
  1213. * configure.ac
  1214. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. BtContext::getAnnounceTiers() now returns const reference.
  1216. * src/BtContext.h
  1217. * src/DefaultBtContext.cc
  1218. * src/DefaultBtContext.h
  1219. * test/MockBtContext.h
  1220. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Change the number of retries for tracker request based on the
  1222. number of available tracker in a torrent file.
  1223. * src/TrackerWatcherCommand.cc
  1224. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added _maxTries property to RequestGroup and assign the option
  1226. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1227. RequestGroup::getMaxTries() instead of
  1228. Option::getAsInt(PREF_MAX_TRIES).
  1229. * src/AbstractCommand.cc
  1230. * src/RequestGroup.cc
  1231. * src/RequestGroup.h
  1232. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1234. Mandriva. I modified the patch: make RequestGroup have the
  1235. timeout value and AdaptiveURISelector directly modifies that
  1236. value.
  1237. * src/AbstractCommand.cc
  1238. * src/AdaptiveURISelector.cc
  1239. * src/AdaptiveURISelector.h
  1240. * src/FtpNegotiationCommand.cc
  1241. * src/RequestGroup.cc
  1242. * src/RequestGroup.h
  1243. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Fixed compiler warning
  1245. * test/IteratableChecksumValidatorTest.cc
  1246. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1248. integrated downloads. This PieceSelector subclass finds the
  1249. longest continuous sequence in the available missing pieces and
  1250. selects the last index of such sequence. This makes HTTP/FTP
  1251. connections less interrupted by the pieces obtained by BitTorrent
  1252. peers.
  1253. * src/DefaultPieceStorage.cc
  1254. * src/DefaultPieceStorage.h
  1255. * src/LongestSequencePieceSelector.cc
  1256. * src/LongestSequencePieceSelector.h
  1257. * src/Makefile.am
  1258. * src/PieceSelector.h
  1259. * src/RarestPieceSelector.h
  1260. * src/RequestGroup.cc
  1261. * test/BtDependencyTest.cc
  1262. * test/DefaultPieceStorageTest.cc
  1263. * test/IteratableChecksumValidatorTest.cc
  1264. * test/LongestSequencePieceSelectorTest.cc
  1265. * test/Makefile.am
  1266. * test/SegmentManTest.cc
  1267. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Fixed the bug that the average speed is wrong in
  1269. http/ftp/BitTorrent integrated download. Only the download bytes
  1270. in BitTorrent were considered.
  1271. * src/RequestGroup.cc
  1272. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Choose port for BitTorrent/DHT randomly from the specified range.
  1274. * src/DHTConnectionImpl.cc
  1275. * src/PeerListenCommand.cc
  1276. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Send HTTP Authorization header only if it is requested by the
  1278. server(response 401). There are some exceptions. The authorization
  1279. header for proxy is always sent if it is available without request
  1280. by the server. If username/password is specified in the URI, it
  1281. is immediately sent to the server without request by the server.
  1282. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1283. SharedHandle<AuthConfig>().
  1284. NetrcAuthResolver::resolveAuthConfig() returns
  1285. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1286. * src/AbstractAuthResolver.cc
  1287. * src/AbstractProxyRequestCommand.cc
  1288. * src/AuthConfigFactory.cc
  1289. * src/AuthConfigFactory.h
  1290. * src/HttpConnection.cc
  1291. * src/HttpRequest.cc
  1292. * src/HttpRequest.h
  1293. * src/HttpResponse.cc
  1294. * src/HttpResponseCommand.cc
  1295. * src/HttpSkipResponseCommand.cc
  1296. * test/AuthConfigFactoryTest.cc
  1297. * test/HttpRequestTest.cc
  1298. * test/HttpResponseTest.cc
  1299. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Remove leading "--" from help keyword and a substring after "="
  1301. from help keyword, so that one can query options by '-h--max-' or
  1302. '-hmax-peers=10'.
  1303. * src/option_processing.cc
  1304. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Rewritten PStringVisitor and its implementation.
  1306. * src/PStringBuildVisitor.cc
  1307. * src/PStringBuildVisitor.h
  1308. * src/PStringDatum.h
  1309. * src/PStringNumLoop.h
  1310. * src/PStringSegment.cc
  1311. * src/PStringSegment.h
  1312. * src/PStringSelect.h
  1313. * src/PStringVisitor.h
  1314. * src/download_helper.cc
  1315. * test/PStringBuildVisitorTest.cc
  1316. * test/ParameterizedStringParserTest.cc
  1317. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Persist connection between the built-in HTTP server and a client
  1319. if a client supports keep-alive. Fixed the bug that aria2 exits
  1320. when the HTTP server receives EOF from a client.
  1321. * src/HttpServer.cc
  1322. * src/HttpServer.h
  1323. * src/HttpServerCommand.cc
  1324. * src/HttpServerCommand.h
  1325. * src/HttpServerResponseCommand.cc
  1326. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Added experimental built-in HTTP server. Currently, when a client
  1328. accesses to the server, it responds with the current download
  1329. progress. By default, it is disabled. To enable the server, give
  1330. --enable-http-server option. To change the default port number
  1331. for the server to listen to, use --http-server-listen-port option.
  1332. The response HTML is very simple and refreshes it self each 1
  1333. second. Because of this refresh, you see flicker in normal web
  1334. browser such as Firefox. I recommend to use console-based browser
  1335. such as elinks, w3m. To connect to the server, run 'elinks
  1336. http://localhost:6800/' while running aria2. Please replace port
  1337. number '6800'(which is default) with your preference.
  1338. * src/DownloadEngineFactory.cc
  1339. * src/HttpHeader.cc
  1340. * src/HttpHeader.h
  1341. * src/HttpHeaderProcessor.cc
  1342. * src/HttpHeaderProcessor.h
  1343. * src/HttpListenCommand.cc
  1344. * src/HttpListenCommand.h
  1345. * src/HttpServer.cc
  1346. * src/HttpServer.h
  1347. * src/HttpServerCommand.cc
  1348. * src/HttpServerCommand.h
  1349. * src/HttpServerResponseCommand.cc
  1350. * src/HttpServerResponseCommand.h
  1351. * src/Makefile.am
  1352. * src/OptionHandlerFactory.cc
  1353. * src/Util.cc
  1354. * src/Util.h
  1355. * src/help_tags.h
  1356. * src/option_processing.cc
  1357. * src/prefs.cc
  1358. * src/prefs.h
  1359. * src/usage_text.h
  1360. * test/HttpHeaderProcessorTest.cc
  1361. * test/UtilTest.cc
  1362. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Removed.
  1364. * src/CheckIntegrityMan.cc
  1365. * src/FileAllocationMan.cc
  1366. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Made (piece) hash check sequential for each RequestGroup because
  1368. simultaneous hash check is slower than sequential execution.
  1369. * src/CheckIntegrityCommand.cc
  1370. * src/CheckIntegrityDispatcherCommand.cc
  1371. * src/CheckIntegrityDispatcherCommand.h
  1372. * src/CheckIntegrityMan.h
  1373. * src/ConsoleStatCalc.cc
  1374. * src/DownloadCommand.cc
  1375. * src/DownloadEngine.cc
  1376. * src/DownloadEngine.h
  1377. * src/DownloadEngineFactory.cc
  1378. * src/Makefile.am
  1379. * src/Makefile.in
  1380. * src/RequestGroup.cc
  1381. * src/StatCalc.h
  1382. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1384. SequentialDispatcherCommand.
  1385. * src/FileAllocationDispatcherCommand.cc
  1386. * src/SequentialDispatcherCommand.h
  1387. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Rewritten FileAllocationDispatcherCommand using brand new
  1389. SequentialDispatcherCommand.
  1390. * src/DownloadEngineFactory.cc
  1391. * src/FileAllocationCommand.cc
  1392. * src/FileAllocationDispatcherCommand.cc
  1393. * src/FileAllocationDispatcherCommand.h
  1394. * src/Makefile.am
  1395. * src/SequentialDispatcherCommand.h
  1396. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Replaced FileAllocationMan with
  1398. SequentialPicker<FileAllocationEntry>.
  1399. * src/BtCheckIntegrityEntry.cc
  1400. * src/ConsoleStatCalc.cc
  1401. * src/DownloadEngine.cc
  1402. * src/DownloadEngine.h
  1403. * src/DownloadEngineFactory.cc
  1404. * src/FileAllocationCommand.cc
  1405. * src/FileAllocationDispatcherCommand.cc
  1406. * src/FileAllocationMan.h
  1407. * src/Makefile.am
  1408. * src/SequentialPicker.h
  1409. * src/StatCalc.h
  1410. * src/StreamCheckIntegrityEntry.cc
  1411. * test/Makefile.am
  1412. * test/SequentialPickerTest.cc
  1413. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Added doc for adaptive URI selector.
  1415. * doc/aria2c.1.txt
  1416. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Added doc for adaptive URI selector.
  1418. * src/usage_text.h
  1419. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Added doc for --bt-max-peers option.
  1421. * doc/aria2c.1.txt
  1422. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Added doc for --bt-hash-check-seed option.
  1424. * doc/aria2c.1.txt
  1425. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Documented exit codes.
  1427. * doc/aria2c.1.txt
  1428. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Added --bt-max-peers option to specify the maximum number of peers
  1430. per torrent. 0 means unlimited number of peers.
  1431. * src/ActivePeerConnectionCommand.cc
  1432. * src/BtRuntime.h
  1433. * src/DefaultPeerStorage.cc
  1434. * src/DefaultPeerStorage.h
  1435. * src/OptionHandlerFactory.cc
  1436. * src/RequestGroup.cc
  1437. * src/option_processing.cc
  1438. * src/prefs.cc
  1439. * src/prefs.h
  1440. * src/usage_text.h
  1441. * test/DefaultPeerStorageTest.cc
  1442. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Added --bt-hash-check-seed option. If true is given to this
  1444. option, after hash check using --check-integrity option and file
  1445. is complete, continue to seed file. If you want to check file and
  1446. download it only when it is damaged or incomplete, set this option
  1447. to false. This option has effect only on BitTorrent download.
  1448. The default value is true(This is the same behavior with the
  1449. previous release).
  1450. * src/BtCheckIntegrityEntry.cc
  1451. * src/OptionHandlerFactory.cc
  1452. * src/option_processing.cc
  1453. * src/prefs.cc
  1454. * src/prefs.h
  1455. * src/usage_text.h
  1456. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Updated copyright year.
  1458. * src/version_usage.cc
  1459. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1461. * doc/aria2c.1.txt
  1462. * src/usage_text.h
  1463. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Made the max value of split option unlimited.
  1465. * doc/aria2c.1.txt
  1466. * src/OptionHandlerFactory.cc
  1467. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Fixed compile warning/error.
  1469. * src/DownloadResult.h
  1470. * src/HttpDownloadCommand.cc
  1471. * src/ServerStat.cc
  1472. * test/RequestGroupTest.cc
  1473. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Added --event-poll option to select the method for polling events.
  1475. The available methods are "select" and "epoll". "epoll" is
  1476. available on Linux only. The earlier release has the compile
  1477. option to choose from these methods.
  1478. * configure.ac
  1479. * src/RequestGroupMan.cc
  1480. * src/OptionHandlerFactory.cc
  1481. * src/EpollEventPoll.h
  1482. * src/StreamFileAllocationEntry.cc
  1483. * src/a2io.h
  1484. * src/SelectEventPoll.h
  1485. * src/option_processing.cc
  1486. * src/prefs.h
  1487. * src/EpollEventPoll.cc
  1488. * src/EventPoll.h
  1489. * src/SocketCore.h
  1490. * src/Makefile.am
  1491. * src/main.cc
  1492. * src/DownloadEngine.h
  1493. * src/SelectEventPoll.cc
  1494. * src/DownloadEngine.cc
  1495. * src/SocketCore.cc
  1496. * src/DownloadEngineFactory.cc
  1497. * src/Makefile.in
  1498. * src/prefs.cc
  1499. * src/usage_text.h
  1500. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Included RecoverableException.h from main.cc
  1502. * src/main.cc
  1503. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1505. now returns last error encountered in the HTTP/FTP downloads as a
  1506. exit status value. If all downloads finished successfully, aria2
  1507. returns 0. The error code is defined in src/DownloadResult.h.
  1508. The error occurred in the download currently in progress is not
  1509. reported as a last error. If no error has encountered but there
  1510. are in progress or waiting downloads, aria2 returns 7.
  1511. * src/AbstractCommand.cc
  1512. * src/DlAbortEx.h
  1513. * src/DlRetryEx.h
  1514. * src/DownloadCommand.cc
  1515. * src/DownloadFailureException.h
  1516. * src/DownloadResult.h
  1517. * src/FtpNegotiationCommand.cc
  1518. * src/HttpSkipResponseCommand.cc
  1519. * src/Makefile.am
  1520. * src/MultiUrlRequestInfo.cc
  1521. * src/MultiUrlRequestInfo.h
  1522. * src/RecoverableException.h
  1523. * src/RequestGroup.cc
  1524. * src/RequestGroup.h
  1525. * src/RequestGroupMan.cc
  1526. * src/RequestGroupMan.h
  1527. * src/URIResult.cc
  1528. * src/URIResult.h
  1529. * src/main.cc
  1530. * src/option_processing.cc
  1531. * test/RequestGroupTest.cc
  1532. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1534. patch adds AdaptiveURISelector, which selects one of the bests
  1535. mirrors for first and reserved connections. For supplementary
  1536. ones, it returns mirrors which has not been tested yet, and if
  1537. each of them already tested, returns mirrors which has to be
  1538. tested again. Otherwise, it doesn't return anymore mirrors.
  1539. * src/AdaptiveURISelector.cc
  1540. * src/AdaptiveURISelector.h
  1541. * src/FtpNegotiationCommand.cc
  1542. * src/HttpResponseCommand.cc
  1543. * src/Makefile.am
  1544. * src/Makefile.in
  1545. * src/OptionHandlerFactory.cc
  1546. * src/RequestGroup.cc
  1547. * src/RequestGroup.h
  1548. * src/RequestGroupMan.cc
  1549. * src/ServerStat.cc
  1550. * src/ServerStat.h
  1551. * src/ServerStatMan.cc
  1552. * src/SpeedCalc.cc
  1553. * src/URISelector.h
  1554. * src/prefs.cc
  1555. * src/prefs.h
  1556. * test/RequestGroupManTest.cc
  1557. * test/ServerStatManTest.cc
  1558. * test/ServerStatTest.cc
  1559. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Fixed unit test error.
  1561. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1562. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. * Release 1.1.2
  1564. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Updated Russian translation. Thanks to the translators.
  1566. * po/ru.po
  1567. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Added the description of --use-head option to man page.
  1569. * doc/aria2c.1.txt
  1570. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Bump up version number to 1.1.2
  1572. * configure.ac
  1573. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Added --use-head option to toggle whether HEAD method should be
  1575. used in the first HTTP request. By default aria2 uses HEAD method
  1576. as the first request. When the server doesn't recognize HEAD, then
  1577. give aria2 --use-head=false to force aria2 to use GET method
  1578. instead.
  1579. * src/OptionHandlerFactory.cc
  1580. * src/RequestGroupMan.cc
  1581. * src/option_processing.cc
  1582. * src/prefs.cc
  1583. * src/prefs.h
  1584. * src/usage_text.h
  1585. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1587. message is received before CHOKE message. The old implementation
  1588. doen't clear the use-bit of the piece when recieved REJECT
  1589. message.
  1590. * src/DefaultBtMessageDispatcher.cc
  1591. * test/DefaultBtMessageDispatcherTest.cc
  1592. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. * Release 1.1.1
  1594. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Bump up version number to 1.1.1.
  1596. * configure.ac
  1597. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1599. is printed repeatedly.
  1600. * src/ConsoleStatCalc.cc
  1601. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. * Release 1.1.0
  1603. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Added ifdef clause for conditional compilation.
  1605. * src/main.cc
  1606. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1608. translations. Thanks to all translators.
  1609. * po/ja.po
  1610. * po/ru.po
  1611. * po/uk.po
  1612. * po/zh_CN.po
  1613. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Added the preceding ">>> " before the message "Printing the
  1615. contents of file..." to make the output more readable.
  1616. * src/main.cc
  1617. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Added try-catch block in the loop in showFiles() to continue the
  1619. operation even if the exception occurred in one file.
  1620. * src/main.cc (showFiles)
  1621. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Made messages in showFiles() translatable.
  1623. * po/aria2.pot
  1624. * src/main.cc
  1625. * src/message.h
  1626. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Print the contents of Torrent/Metalink files are printed without
  1628. -T/-M options.
  1629. * src/main.cc
  1630. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Escaped '--' with '\--'
  1632. * README
  1633. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Updated "How to build" section in README. Mentioned about
  1635. --with-ca-bundle compile option.
  1636. * README
  1637. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Bump up version number to 1.1.0.
  1639. * configure.ac
  1640. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Added a note for --dht-listen-port option.
  1642. * doc/aria2c.1.txt
  1643. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Update doc for --realtime-chunk-checksum option.
  1645. * doc/aria2c.1.txt
  1646. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Update doc for --realtime-chunk-checksum option.
  1648. * src/usage_text.h
  1649. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Updated French, Japanese, Russian and Ukrainian translations.
  1651. Thanks to all translators.
  1652. * po/fr.po
  1653. * po/ja.po
  1654. * po/ru.po
  1655. * po/uk.po
  1656. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Renamed aria2c.pot to aria2.pot
  1658. * po/aria2.pot
  1659. * po/aria2c.pot: Removed.
  1660. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Removed MetaEntry.h
  1662. * src/Makefile.am
  1663. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Rename file by appending digits if a local file exists and its
  1665. file size is larger than that of remote file with --continue
  1666. option. The old implementation just throws exception in such case.
  1667. * src/RequestGroup.cc
  1668. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Fixed the bug that download progress summary is not printed in the
  1670. interval specified by the option.
  1671. * src/ConsoleStatCalc.cc
  1672. * src/ConsoleStatCalc.h
  1673. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Fixed compiler warning
  1675. * src/Cookie.cc
  1676. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Fixed the cookie implementation based on RFC2965.
  1678. Now if a value in domain field is not started with dot, then
  1679. prepend dot. That means a cookie with domain=sf.net is sent to
  1680. wiki.sf.net.
  1681. * src/Cookie.cc
  1682. * test/CookieParserTest.cc
  1683. * test/CookieStorageTest.cc
  1684. * test/CookieTest.cc
  1685. * test/NsCookieParserTest.cc
  1686. * test/Sqlite3MozCookieParserTest.cc
  1687. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1689. is enabled and the server doesn't support keep-alive.
  1690. * src/AbstractCommand.cc
  1691. * src/DownloadCommand.cc
  1692. * src/HttpDownloadCommand.cc
  1693. * src/HttpDownloadCommand.h
  1694. * src/HttpResponseCommand.cc
  1695. * src/Request.cc
  1696. * src/Request.h
  1697. * test/RequestTest.cc
  1698. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Removed Dictionary/List/Data and its related classes.
  1700. * src/BencodeVisitor.cc: Removed.
  1701. * src/BencodeVisitor.h: Removed.
  1702. * src/Data.cc: Removed.
  1703. * src/Data.h: Removed.
  1704. * src/Dictionary.cc: Removed.
  1705. * src/Dictionary.h: Removed.
  1706. * src/List.cc: Removed.
  1707. * src/List.h: Removed.
  1708. * src/Makefile.am
  1709. * src/MetaEntry.h: Removed.
  1710. * src/MetaEntryVisitor.h: Removed.
  1711. * src/MetaFileUtil.cc: Removed.
  1712. * src/MetaFileUtil.h: Removed.
  1713. * test/BencodeVisitorTest.cc: Removed.
  1714. * test/DataTest.cc: Removed.
  1715. * test/DictionaryTest.cc: Removed.
  1716. * test/ListTest.cc: Removed.
  1717. * test/Makefile.am
  1718. * test/MetaFileUtilTest.cc: Removed.
  1719. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Removed include of MetaEntry.h
  1721. * test/DHTMessageTrackerEntryTest.cc
  1722. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Use BDE instead of Dictionary/List/Data.
  1724. * src/AnnounceList.cc
  1725. * src/AnnounceList.h
  1726. * test/AnnounceListTest.cc
  1727. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Use BDE instead of Dictionary/List/Data.
  1729. * src/DHTAbstractMessage.cc
  1730. * src/DHTAbstractMessage.h
  1731. * src/DHTAnnouncePeerMessage.cc
  1732. * src/DHTAnnouncePeerMessage.h
  1733. * src/DHTAnnouncePeerReplyMessage.cc
  1734. * src/DHTAnnouncePeerReplyMessage.h
  1735. * src/DHTFindNodeMessage.cc
  1736. * src/DHTFindNodeMessage.h
  1737. * src/DHTFindNodeReplyMessage.cc
  1738. * src/DHTFindNodeReplyMessage.h
  1739. * src/DHTGetPeersMessage.cc
  1740. * src/DHTGetPeersMessage.h
  1741. * src/DHTGetPeersReplyMessage.cc
  1742. * src/DHTGetPeersReplyMessage.h
  1743. * src/DHTMessageFactory.h
  1744. * src/DHTMessageFactoryImpl.cc
  1745. * src/DHTMessageFactoryImpl.h
  1746. * src/DHTMessageReceiver.cc
  1747. * src/DHTMessageTracker.cc
  1748. * src/DHTMessageTracker.h
  1749. * src/DHTPingMessage.cc
  1750. * src/DHTPingMessage.h
  1751. * src/DHTPingReplyMessage.cc
  1752. * src/DHTPingReplyMessage.h
  1753. * src/DHTQueryMessage.cc
  1754. * src/DHTQueryMessage.h
  1755. * src/DHTResponseMessage.cc
  1756. * src/DHTResponseMessage.h
  1757. * test/DHTAnnouncePeerMessageTest.cc
  1758. * test/DHTAnnouncePeerReplyMessageTest.cc
  1759. * test/DHTFindNodeMessageTest.cc
  1760. * test/DHTFindNodeReplyMessageTest.cc
  1761. * test/DHTGetPeersMessageTest.cc
  1762. * test/DHTGetPeersReplyMessageTest.cc
  1763. * test/DHTMessageFactoryImplTest.cc
  1764. * test/DHTMessageTrackerTest.cc
  1765. * test/DHTPingMessageTest.cc
  1766. * test/DHTPingReplyMessageTest.cc
  1767. * test/MockDHTMessageFactory.h
  1768. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added tests the case where length < 0 is specified.
  1770. * test/BencodeTest.cc
  1771. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Fixed memory leak in decoderawstring()
  1773. * src/bencode.cc
  1774. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Added missing #ifdef guard. Added uc() function for String and
  1776. removeKey() for Dict.
  1777. * src/bencode.cc
  1778. * src/bencode.h
  1779. * test/BencodeTest.cc
  1780. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Use BDE instead of Dictionary/List/Data.
  1782. * src/HandshakeExtensionMessage.cc
  1783. * src/HandshakeExtensionMessage.h
  1784. * test/HandshakeExtensionMessageTest.cc
  1785. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Added --max-overall-upload-limit option. This option limits the
  1787. overall upload speed. Stated in help message that the existing
  1788. --max-upload-limit option limits the upload speed per each
  1789. torrent. Man page is also updated.
  1790. * doc/aria2c.1.txt
  1791. * src/DefaultBtMessageDispatcher.cc
  1792. * src/DefaultBtMessageDispatcher.h
  1793. * src/OptionHandlerFactory.cc
  1794. * src/PeerInteractionCommand.cc
  1795. * src/option_processing.cc
  1796. * src/prefs.cc
  1797. * src/prefs.h
  1798. * src/usage_text.h
  1799. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Use BDE instead of Dictionary/List/Data classes.
  1801. * src/CompactPeerListProcessor.cc
  1802. * src/CompactPeerListProcessor.h
  1803. * src/DefaultBtAnnounce.cc
  1804. * src/DefaultBtContext.cc
  1805. * src/DefaultBtContext.h
  1806. * src/DefaultPeerListProcessor.cc
  1807. * src/DefaultPeerListProcessor.h
  1808. * src/DelegatingPeerListProcessor.cc
  1809. * src/DelegatingPeerListProcessor.h
  1810. * src/PeerListProcessor.h
  1811. * src/UTPexExtensionMessage.cc
  1812. * src/Util.h
  1813. * src/message.h
  1814. * test/DefaultBtContextTest.cc
  1815. * test/DefaultPeerListProcessorTest.cc
  1816. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Added bencode helper functions and BDE class.
  1818. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1819. * src/Makefile.am
  1820. * src/bencode.cc
  1821. * src/bencode.h
  1822. * test/BencodeTest.cc
  1823. * test/Makefile.am
  1824. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Fixed the bug that bad URI is sent to the tracker when the announe
  1826. URI in torrent file includes query.
  1827. * src/DefaultBtAnnounce.cc
  1828. * test/DefaultBtAnnounceTest.cc
  1829. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Added Option::blank().
  1831. Use !Option::blank(name) instead of Option::defined(name) for
  1832. the options that take filename.
  1833. * src/MultiUrlRequestInfo.cc
  1834. * src/Option.cc
  1835. * src/Option.h
  1836. * src/main.cc
  1837. * src/option_processing.cc
  1838. * test/OptionTest.cc
  1839. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Documented the default value of --check-certificate option in man
  1841. page.
  1842. * doc/aria2c.1.txt
  1843. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Enabled --check-certificate by default. Added compile
  1845. time(configure) option --with-ca-bundle to specify CA bundle.
  1846. Warn if --check-certificate=true and --ca-certificate is not
  1847. specified or loading CA certificate is failed.
  1848. * configure.ac
  1849. * src/MultiUrlRequestInfo.cc
  1850. * src/OptionHandlerFactory.cc
  1851. * src/message.h
  1852. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Mentioned https tag in help option.
  1854. * doc/aria2c.1.txt
  1855. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Added `https' tag to help option category. Added https tag to
  1857. --ca-certificate, --certificate, --check-certificate and
  1858. --private-key option.
  1859. * src/OptionHandlerFactory.cc
  1860. * src/help_tags.h
  1861. * src/option_processing.cc
  1862. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Changed the package name from `aria2c' to `aria2' in order to fix
  1864. the packaging issue in Debian and Fedora. The name of the
  1865. executable is not changed.
  1866. * configure.ac
  1867. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Fixed typos
  1869. * src/usage_text.h
  1870. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Fixed typos and updated doc.
  1872. * README
  1873. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Fixed typos
  1875. * doc/aria2c.1.txt
  1876. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Fixed typos
  1878. * src/usage_text.h
  1879. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Print a message when no files to download.
  1881. * src/download_helper.cc
  1882. * src/main.cc
  1883. * src/message.h
  1884. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. RFC3986 complied Percent-Encoding(urlencode).
  1886. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1887. ones.
  1888. * src/Request.cc
  1889. * src/Util.cc
  1890. * src/Util.h
  1891. * test/BtHandshakeMessageTest.cc
  1892. * test/DefaultBtAnnounceTest.cc
  1893. * test/DefaultBtContextTest.cc
  1894. * test/RequestTest.cc
  1895. * test/UtilTest.cc
  1896. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Fixed the bug that prevents aria2 from downloading 0-length files
  1898. via HTTP/FTP.
  1899. * src/DefaultBtContext.cc
  1900. * src/DefaultBtContext.h
  1901. * src/DownloadContext.h
  1902. * src/FtpNegotiationCommand.cc
  1903. * src/HttpResponseCommand.cc
  1904. * src/HttpResponseCommand.h
  1905. * src/RequestGroup.cc
  1906. * src/SingleFileDownloadContext.cc
  1907. * src/SingleFileDownloadContext.h
  1908. * test/BtPostDownloadHandlerTest.cc
  1909. * test/MetalinkPostDownloadHandlerTest.cc
  1910. * test/MockBtContext.h
  1911. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1913. * src/option_processing.cc
  1914. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Applied aria2-1.0.1-mingw.patch.
  1916. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1917. mingw.
  1918. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1919. * src/SocketCore.cc
  1920. * src/a2netcompat.h
  1921. * test/SocketCoreTest.cc
  1922. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. * Release 1.0.1
  1924. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Updated Ukrainian and Norwegian Nynorsk translations.
  1926. Thanks to all translators.
  1927. * po/nn.po
  1928. * po/uk.po
  1929. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Don't show download result when -S option is used.
  1931. * src/main.cc
  1932. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Bump up version number to 1.0.1
  1934. * configure.ac
  1935. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Closed files after the test cases in MultiDiskWriterTest::
  1937. testResetDiskWriterEntries(). This will fix the unit test error
  1938. in mingw32 build.
  1939. * test/MultiDiskWriterTest.cc
  1940. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Use HEAD method to get file size from HTTP server for segmented
  1942. downloading.
  1943. The request to the BitTorrent Tracker always uses GET method because
  1944. the response of the tracker is small and it doesn't need segmented
  1945. download.
  1946. * src/FtpNegotiationCommand.cc
  1947. * src/HttpRequest.cc
  1948. * src/HttpResponseCommand.cc
  1949. * src/HttpSkipResponseCommand.cc
  1950. * src/RequestGroup.cc
  1951. * src/RequestGroup.h
  1952. * src/TrackerWatcherCommand.cc
  1953. * test/HttpRequestTest.cc
  1954. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Fixed the bug that causes floating exception when -T option is used and
  1956. no URIs are given.
  1957. * src/download_helper.cc
  1958. * test/DownloadHelperTest.cc
  1959. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1960. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1961. errors in MinGW:
  1962. Closed file after saving server stats (RequestGroupMan.cc)
  1963. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1964. Ignored case & handled 2-digit years (strptime.c)
  1965. Added missing suseconds_t definition (a2time.h)
  1966. Fixed socket CLOSE() define (SocketCore.cc)
  1967. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1968. Changed utime() test values from x000 to x00000 as MinGW failed on
  1969. values less than timezone offset from Unix epoch
  1970. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1971. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1972. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1973. handle negative dates (CookieParserTest.cc)
  1974. * src/a2time.h
  1975. * src/FtpConnection.cc
  1976. * src/RequestGroupMan.cc
  1977. * src/SocketCore.cc
  1978. * src/strptime.c
  1979. * test/CookieParserTest.cc
  1980. * test/CopyDiskAdaptorTest.cc
  1981. * test/FileTest.cc
  1982. * test/FtpConnectionTest.cc
  1983. * test/MultiDiskAdaptorTest.cc
  1984. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1986. * doc/aria2c.1.txt
  1987. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. * Release 1.0.0
  1989. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Added '~' to reserved characters.
  1991. * src/Util.cc
  1992. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Do not urlencode Request::url in setUrl() because we want unmodified
  1994. URL using Request::getUrl()
  1995. * src/Request.cc
  1996. * src/Request.h
  1997. * test/RequestTest.cc
  1998. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2000. Thanks to all translators.
  2001. * po/bg.po
  2002. * po/fr.po
  2003. * po/ja.po
  2004. * po/ru.po
  2005. * po/uk.po
  2006. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Bump up version number to 1.0.0
  2008. * configure.ac
  2009. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Added nosqlite3 build to build_test.sh.
  2011. Renamed noxml as expat.
  2012. * build_test.sh
  2013. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Updated INPUT FILE section.
  2015. * doc/aria2c.1.txt
  2016. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2018. on big endian systems because test .aria2 files are made for little
  2019. endian systems.
  2020. * test/DefaultBtProgressInfoFileTest.cc
  2021. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Dropped ares support.
  2023. * README
  2024. * configure.ac
  2025. * m4/libares.m4: Removed.
  2026. * src/AsyncNameResolver.cc
  2027. * src/Makefile.am
  2028. * test/Makefile.am
  2029. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2031. Removed const qualifier from DiskWriter::size().
  2032. * src/AbstractDiskWriter.cc
  2033. * src/AbstractDiskWriter.h
  2034. * src/ByteArrayDiskWriter.cc
  2035. * src/ByteArrayDiskWriter.h
  2036. * src/DiskWriter.h
  2037. * test/ByteArrayDiskWriterTest.cc
  2038. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Fixed the bug that causes segmentation fault/bus error during executing
  2040. choking algorithm while seeding. This is caused by improper
  2041. implementation of compare function which returns inconsistent results
  2042. depending on the timing of last unchoke.
  2043. * src/BtSeederStateChoke.cc
  2044. * src/BtSeederStateChoke.h
  2045. * src/DefaultPeerStorage.cc
  2046. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Removed TODO
  2048. * TODO
  2049. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Added a section that explains how to pass argument to options that
  2051. takes optional arguments with its short form.
  2052. * doc/aria2c.1.txt
  2053. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Added -u for the short form of --max-upload-limit option.
  2055. * doc/aria2c.1.txt
  2056. * src/option_processing.cc
  2057. * src/usage_text.h
  2058. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Added -V for the short form of --check-integrity option.
  2060. Now the argument of --check-integrity option is optional:
  2061. if it is omitted, it is evaluated as true.
  2062. * doc/aria2c.1.txt
  2063. * src/option_processing.cc
  2064. * src/usage_text.h
  2065. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Made the default value of --ftp-pasv option set to true and it can take
  2067. true/false values.
  2068. * src/OptionHandlerFactory.cc
  2069. * src/option_processing.cc
  2070. * src/usage_text.h
  2071. * doc/aria2c.1.txt
  2072. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Given custom random number generator to std::random_shuffle.
  2074. * src/AnnounceList.cc
  2075. * src/BtLeecherStateChoke.cc
  2076. * src/BtSeederStateChoke.cc
  2077. * src/DefaultBtRequestFactory.cc
  2078. * src/MetalinkEntry.cc
  2079. * src/RarestPieceSelector.cc
  2080. * src/SimpleRandomizer.cc
  2081. * src/SimpleRandomizer.h
  2082. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Now the default value of --enable-direct-io is true.
  2084. * src/OptionHandlerFactory.cc
  2085. * doc/aria2c.1.txt
  2086. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Erase peer before executing onReturningPeer and onErasingPeer
  2088. because choking algorithm called from onReturningPeer doesn't
  2089. like erasing peer in the active peer list.
  2090. * src/DefaultPeerStorage.cc
  2091. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Instead of creating special filename in createDownloadResult() if
  2093. inMemoryDownload() is true, now it is done in getFilePath().
  2094. * src/RequestGroup.cc
  2095. * test/RequestGroupTest.cc
  2096. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2098. processed in memory. This is the fix for previous comment out.
  2099. * src/MemoryBufferPreDownloadHandler.cc
  2100. * src/RequestGroup.cc
  2101. * src/RequestGroup.h
  2102. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Commented out the code which sets virtual directory path "[MEMORY]"
  2104. propagate directory to store to following RequestGroup.
  2105. * src/MemoryBufferPreDownloadHandler.cc
  2106. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Bump up version number to 1.0.0b
  2108. * configure.ac
  2109. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Added input_uris.txt to EXTRA_DIST
  2111. * test/Makefile.am
  2112. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Removed PeerObject.h from Makefile.am
  2114. * src/Makefile.am
  2115. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Avoid slow seeding
  2117. * src/PeerInteractionCommand.cc
  2118. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Updated usage for -i option.
  2120. * src/usage_text.h (TEXT_INPUT_FILE)
  2121. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Added INPUT FILE section to man page.
  2123. Escaped fake URLs.
  2124. * doc/aria2c.1.txt
  2125. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Fixed wrong note position for -o option.
  2127. * doc/aria2c.1.txt
  2128. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Fixed compile error without SSL/XML library.
  2130. * src/DefaultBtProgressInfoFile.cc
  2131. * src/DefaultBtProgressInfoFile.h
  2132. * src/FileMetalinkParserState.cc
  2133. * src/RequestGroup.h
  2134. * src/SocketCore.cc
  2135. * src/SocketCore.h
  2136. * src/VerificationMetalinkParserState.cc
  2137. * src/download_helper.h
  2138. * src/main.cc
  2139. * test/DefaultBtProgressInfoFileTest.cc
  2140. * test/DownloadHelperTest.cc
  2141. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Rewritten URI handling functions. They are now provided as a testable
  2143. functions.
  2144. * src/Makefile.am
  2145. * src/RequestGroup.cc
  2146. * src/RequestGroup.h
  2147. * src/download_helper.cc
  2148. * src/download_helper.h
  2149. * src/main.cc
  2150. * test/DownloadHelperTest.cc
  2151. * test/Makefile.am
  2152. * test/input_uris.txt
  2153. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Quickly terminate commands when ctrl-c is pressed.
  2155. * src/DownloadEngine.cc
  2156. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Quickly terminate idle commands when download finished.
  2158. * src/AbstractCommand.cc
  2159. * src/DownloadCommand.cc
  2160. * src/DownloadEngine.cc
  2161. * src/DownloadEngine.h
  2162. * src/SleepCommand.cc
  2163. * src/SleepCommand.h
  2164. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Added the ability to specify output filename and directory in input
  2166. file.
  2167. Additional parameters are added in the following line of URIs
  2168. with proceeding white space(s), 1 parameter in 1 line.
  2169. The parameter names are the same with the command-line option name
  2170. without proceeding "--". Not all the options are available here:
  2171. at the moment, 'dir' and 'out' options are avialable.
  2172. Please note that out option has no effect against Metalink or BitTorrent
  2173. downloads.
  2174. Example input file:
  2175. http://host/foo-1.1.tar.bz2
  2176. out=foo.tar.bz2
  2177. dir=/tmp/downloads
  2178. http://host/thundermonkey-2.0.tar.bz2
  2179. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2180. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2181. thundermonkey-2.0.tar.bz2 is saved as
  2182. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2183. * src/BtPostDownloadHandler.cc
  2184. * src/Metalink2RequestGroup.cc
  2185. * src/Metalink2RequestGroup.h
  2186. * src/MetalinkPostDownloadHandler.cc
  2187. * src/UriListParser.cc
  2188. * src/UriListParser.h
  2189. * src/main.cc
  2190. * test/Metalink2RequestGroupTest.cc
  2191. * test/UriListParserTest.cc
  2192. * test/filelist1.txt
  2193. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Fixed error when SSL library is not found.
  2195. * configure.ac
  2196. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Cross referenced among -s, -C and -j options.
  2198. Updated usage of -C and -s options.
  2199. * src/usage_text.h
  2200. * doc/aria2c.1.txt
  2201. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Fixed bad cast in 32bit platforms.
  2203. * test/DefaultPieceStorageTest.cc
  2204. (DefaultPieceStorageTest::testGetCompletedLength)
  2205. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Fixed unit test fails on 32bit platforms.
  2207. * test/CookieParserTest.cc
  2208. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Show an average download speed in Download results.
  2210. * src/BtFileAllocationEntry.cc
  2211. * src/DefaultPieceStorage.cc
  2212. * src/DownloadContext.cc
  2213. * src/DownloadContext.h
  2214. * src/DownloadResult.h
  2215. * src/RequestGroup.cc
  2216. * src/RequestGroupMan.cc
  2217. * src/StreamFileAllocationEntry.cc
  2218. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Fixed the bug that metalink file is not processed if Content-Type
  2220. field has a paramter.
  2221. * src/HttpResponse.cc
  2222. * src/HttpResponse.h
  2223. * test/HttpResponseTest.cc
  2224. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Removed unused code.
  2226. * src/DefaultBtAnnounce.cc
  2227. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2229. the value larger than DefaultPieceStorage::getTotalLength() when
  2230. in flight pieces are involved.
  2231. * src/DefaultPieceStorage.cc
  2232. * test/DefaultPieceStorageTest.cc
  2233. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Bump up version number to 1.0.0a.
  2235. * configure.ac
  2236. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Updated configure.ac
  2238. * configure.ac
  2239. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added usege for proxy.
  2241. * doc/aria2c.1.txt
  2242. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Added usage for --ca-certificate, --certificate, --private-key and
  2244. --check-certificate options.
  2245. * doc/aria2c.1.txt
  2246. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Updated man page
  2248. * doc/aria2c.1.txt
  2249. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Added --no-proxy option. It receives comman separated hostname or
  2251. domains to which proxy should not be used.
  2252. aria2 honors the environment variable no_proxy to override no-proxy
  2253. value in configuration file. The user can override the environment
  2254. variable no_proxy with --no-proxy command-line option.
  2255. * src/AbstractCommand.cc
  2256. * src/OptionHandlerFactory.cc
  2257. * src/option_processing.cc
  2258. * src/prefs.cc
  2259. * src/prefs.h
  2260. * src/usage_text.h
  2261. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2263. The CA certificates are specified in --ca-certificate option.
  2264. By default, the verification is disabled. Use --check-certificate
  2265. option to enable it.
  2266. * src/HttpRequestCommand.cc
  2267. * src/LibgnutlsTLSContext.cc
  2268. * src/LibgnutlsTLSContext.h
  2269. * src/LibsslTLSContext.cc
  2270. * src/LibsslTLSContext.h
  2271. * src/MultiUrlRequestInfo.cc
  2272. * src/OptionHandlerFactory.cc
  2273. * src/SocketCore.cc
  2274. * src/SocketCore.h
  2275. * src/a2functional.h
  2276. * src/message.h
  2277. * src/option_processing.cc
  2278. * src/prefs.cc
  2279. * src/prefs.h
  2280. * src/usage_text.h
  2281. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Added client certificate authentication for SSL/TLS.
  2283. Currently a private key must be decrypted for use with aria2.
  2284. If a user accidentally gives encrypted file to aria2 then following
  2285. thing happens:
  2286. If encrypted private key is given to aria2, it behaves differently
  2287. depending on the ssl library it uses. If aria2 built with openssl then
  2288. openssl prompts the user for password. If aria2 build with gnutls then
  2289. aria2 exists with error at start up.
  2290. * src/DownloadEngineFactory.cc
  2291. * src/MultiUrlRequestInfo.cc
  2292. * src/OptionHandlerFactory.cc
  2293. * src/option_processing.cc
  2294. * src/prefs.cc
  2295. * src/prefs.h
  2296. * src/usage_text.h
  2297. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Introduced TLSContext that holds TLS related data that can be shared
  2299. with multiple SSL connections.
  2300. * src/DownloadEngineFactory.cc
  2301. * src/LibgnutlsTLSContext.cc
  2302. * src/LibgnutlsTLSContext.h
  2303. * src/LibsslTLSContext.cc
  2304. * src/LibsslTLSContext.h
  2305. * src/Makefile.am
  2306. * src/SocketCore.cc
  2307. * src/SocketCore.h
  2308. * src/TLSContext.h
  2309. * src/message.h
  2310. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Fixed the bug that the DiskWriter of the first FileEntry whose
  2312. `needsFileAllocation' property is false is not created
  2313. even if it shares a piece with next FileEntry which `requested' property
  2314. is true.
  2315. Fixed the bug that zero-length file is not created if pre file
  2316. allocation is not done.
  2317. * src/MultiDiskAdaptor.cc
  2318. * src/MultiDiskAdaptor.h
  2319. * test/MultiDiskAdaptorTest.cc
  2320. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2321. Added the ability to pool proxy connection.
  2322. The conneciton in FTP with proxy-method=GET is not pooled.
  2323. Proxy-Connection header will not be sent when sending CONNECT method.
  2324. * src/DownloadEngine.cc
  2325. * src/DownloadEngine.h
  2326. * src/FtpFinishDownloadCommand.cc
  2327. * src/FtpInitiateConnectionCommand.cc
  2328. * src/FtpNegotiationCommand.cc
  2329. * src/HttpDownloadCommand.cc
  2330. * src/HttpInitiateConnectionCommand.cc
  2331. * src/HttpRequest.cc
  2332. * src/HttpRequest.h
  2333. * src/HttpResponse.cc
  2334. * src/HttpSkipResponseCommand.cc
  2335. * test/HttpRequestTest.cc
  2336. * test/HttpResponseTest.cc
  2337. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Handle date before epoch.
  2339. To create *bad* Time object, call Time::null().
  2340. * src/CookieParser.cc
  2341. * src/FtpConnection.cc
  2342. * src/FtpConnection.h
  2343. * src/FtpNegotiationCommand.cc
  2344. * src/RequestGroup.cc
  2345. * src/TimeA2.cc
  2346. * src/TimeA2.h
  2347. * test/CookieParserTest.cc
  2348. * test/FtpConnectionTest.cc
  2349. * test/TimeTest.cc
  2350. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Added support for following envrionment variables: http_proxy,
  2352. https_proxy, ftp_proxy and all_proxy.
  2353. Each variable is equivalent to the aria2 option whose name is the
  2354. variable name with '_' replaced with '-'.
  2355. They overrides options specified in aria2.conf file.
  2356. The envrionment variables can be overrode using command-line option.
  2357. * src/option_processing.cc
  2358. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2359. Renamed --http-proxy-method as --proxy-method.
  2360. * src/AbstractCommand.cc
  2361. * src/FtpInitiateConnectionCommand.cc
  2362. * src/HttpInitiateConnectionCommand.cc
  2363. * src/OptionHandlerFactory.cc
  2364. * src/option_processing.cc
  2365. * src/prefs.cc
  2366. * src/prefs.h
  2367. * src/usage_text.h
  2368. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2369. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2370. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2371. Above 3 options and --http-proxy option can handle proxy in URL format
  2372. like: http://user:passwd@host:port.
  2373. If a proxy requires user/password, they must be specified in a URL.
  2374. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2375. instead.
  2376. * src/AbstractCommand.cc
  2377. * src/AbstractCommand.h
  2378. * src/AbstractProxyRequestCommand.cc
  2379. * src/AbstractProxyRequestCommand.h
  2380. * src/AuthConfigFactory.cc
  2381. * src/AuthConfigFactory.h
  2382. * src/FtpFinishDownloadCommand.cc
  2383. * src/FtpInitiateConnectionCommand.cc
  2384. * src/FtpInitiateConnectionCommand.h
  2385. * src/FtpNegotiationCommand.cc
  2386. * src/FtpTunnelRequestCommand.cc
  2387. * src/FtpTunnelRequestCommand.h
  2388. * src/HttpDownloadCommand.cc
  2389. * src/HttpInitiateConnectionCommand.cc
  2390. * src/HttpInitiateConnectionCommand.h
  2391. * src/HttpProxyRequestCommand.cc
  2392. * src/HttpProxyRequestCommand.h
  2393. * src/HttpRequest.cc
  2394. * src/HttpRequest.h
  2395. * src/HttpRequestCommand.cc
  2396. * src/HttpRequestCommand.h
  2397. * src/HttpSkipResponseCommand.cc
  2398. * src/InitiateConnectionCommand.cc
  2399. * src/InitiateConnectionCommand.h
  2400. * src/OptionHandlerFactory.cc
  2401. * src/OptionHandlerImpl.h
  2402. * src/Request.cc
  2403. * src/option_processing.cc
  2404. * src/prefs.cc
  2405. * src/prefs.h
  2406. * src/usage_text.h
  2407. * test/AuthConfigFactoryTest.cc
  2408. * test/HttpRequestTest.cc
  2409. * test/OptionHandlerTest.cc
  2410. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Execute choking algorithm when unchoked and interested peer is
  2412. disconected.
  2413. * src/DefaultPeerStorage.cc
  2414. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Added testcase for BtNotInterestedMessage from unchoked peer.
  2416. * test/BtNotInterestedMessageTest.cc
  2417. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. Execute choking algorithm when BtInterestedMessage arrives from
  2419. unchoked peer.
  2420. * src/BtInterestedMessage.cc
  2421. * src/BtInterestedMessage.h
  2422. * src/DefaultBtMessageFactory.cc
  2423. * test/BtInterestedMessageTest.cc
  2424. * test/MockPeerStorage.h
  2425. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2426. AuthConfigFactory is now part of DownloadEngine.
  2427. * src/AbstractProxyRequestCommand.cc
  2428. * src/AuthConfigFactory.h
  2429. * src/DownloadEngine.cc
  2430. * src/DownloadEngine.h
  2431. * src/FtpConnection.cc
  2432. * src/FtpConnection.h
  2433. * src/FtpNegotiationCommand.cc
  2434. * src/HttpConnection.cc
  2435. * src/HttpRequest.cc
  2436. * src/HttpRequest.h
  2437. * src/HttpRequestCommand.cc
  2438. * src/HttpResponse.cc
  2439. * src/HttpResponseCommand.cc
  2440. * src/HttpSkipResponseCommand.cc
  2441. * src/MultiUrlRequestInfo.cc
  2442. * src/main.cc
  2443. * test/FtpConnectionTest.cc
  2444. * test/HttpRequestTest.cc
  2445. * test/HttpResponseTest.cc
  2446. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2447. Corrected catched exception type.
  2448. * src/ServerStatMan.cc
  2449. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. DNSCache is now part of DownloadEngine.
  2451. * src/DNSCache.h
  2452. * src/DownloadEngine.cc
  2453. * src/DownloadEngine.h
  2454. * src/InitiateConnectionCommand.cc
  2455. * src/MultiUrlRequestInfo.cc
  2456. * test/Makefile.am
  2457. * test/Makefile.in
  2458. * test/SimpleDNSCacheTest.cc
  2459. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2460. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2461. DownloadEngine.
  2462. * src/ActivePeerConnectionCommand.cc
  2463. * src/BtSetup.cc
  2464. * src/CUIDCounter.h
  2465. * src/DHTSetup.cc
  2466. * src/DownloadCommand.cc
  2467. * src/DownloadEngine.cc
  2468. * src/DownloadEngine.h
  2469. * src/DownloadEngineFactory.cc
  2470. * src/FileAllocationDispatcherCommand.cc
  2471. * src/InitiatorMSEHandshakeCommand.cc
  2472. * src/PeerInitiateConnectionCommand.cc
  2473. * src/PeerInteractionCommand.cc
  2474. * src/PeerListenCommand.cc
  2475. * src/RequestGroup.cc
  2476. * src/StreamFileAllocationEntry.cc
  2477. * src/TrackerWatcherCommand.cc
  2478. * src/main.cc
  2479. * test/RequestGroupManTest.cc
  2480. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2481. Implemented commented code in BtSeederStateChoke
  2482. * src/BtSeederStateChoke.cc
  2483. * src/Peer.cc
  2484. * src/Peer.h
  2485. * src/PeerInteractionCommand.cc
  2486. * src/PeerSessionResource.cc
  2487. * src/PeerSessionResource.h
  2488. * test/MockBtMessageDispatcher.h
  2489. * test/PeerSessionResourceTest.cc
  2490. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2492. its object.
  2493. * src/AbstractBtMessage.cc
  2494. * src/ActivePeerConnectionCommand.cc
  2495. * src/ActivePeerConnectionCommand.h
  2496. * src/BtContextAwareCommand.cc
  2497. * src/BtContextAwareCommand.h
  2498. * src/BtExtendedMessage.cc
  2499. * src/BtExtendedMessage.h
  2500. * src/BtInterestedMessage.cc
  2501. * src/BtInterestedMessage.h
  2502. * src/BtNotInterestedMessage.cc
  2503. * src/BtNotInterestedMessage.h
  2504. * src/BtRegistry.cc
  2505. * src/BtRegistry.h
  2506. * src/BtSeederStateChoke.cc
  2507. * src/BtSetup.cc
  2508. * src/DHTGetPeersCommand.cc
  2509. * src/DHTGetPeersCommand.h
  2510. * src/DHTPeerAnnounceEntry.cc
  2511. * src/DHTPeerAnnounceEntry.h
  2512. * src/DHTPeerAnnounceStorage.cc
  2513. * src/DHTPeerAnnounceStorage.h
  2514. * src/DHTPeerLookupTask.cc
  2515. * src/DHTPeerLookupTask.h
  2516. * src/DHTSetup.cc
  2517. * src/DHTSetup.h
  2518. * src/DHTTaskFactory.h
  2519. * src/DHTTaskFactoryImpl.cc
  2520. * src/DHTTaskFactoryImpl.h
  2521. * src/DefaultBtAnnounce.cc
  2522. * src/DefaultBtInteractive.cc
  2523. * src/DefaultBtInteractive.h
  2524. * src/DefaultBtMessageDispatcher.cc
  2525. * src/DefaultBtMessageDispatcher.h
  2526. * src/DefaultBtMessageFactory.cc
  2527. * src/DefaultBtMessageFactory.h
  2528. * src/DefaultBtMessageReceiver.cc
  2529. * src/DefaultBtProgressInfoFile.cc
  2530. * src/DefaultBtProgressInfoFile.h
  2531. * src/DefaultBtRequestFactory.cc
  2532. * src/DefaultBtRequestFactory.h
  2533. * src/DefaultExtensionMessageFactory.cc
  2534. * src/DefaultExtensionMessageFactory.h
  2535. * src/DefaultPeerStorage.cc
  2536. * src/DefaultPeerStorage.h
  2537. * src/DownloadEngine.cc
  2538. * src/DownloadEngine.h
  2539. * src/InitiatorMSEHandshakeCommand.cc
  2540. * src/InitiatorMSEHandshakeCommand.h
  2541. * src/MSEHandshake.cc
  2542. * src/MSEHandshake.h
  2543. * src/Makefile.am
  2544. * src/Makefile.in
  2545. * src/PeerChokeCommand.cc
  2546. * src/PeerChokeCommand.h
  2547. * src/PeerInitiateConnectionCommand.cc
  2548. * src/PeerInitiateConnectionCommand.h
  2549. * src/PeerInteractionCommand.cc
  2550. * src/PeerInteractionCommand.h
  2551. * src/PeerObject.h
  2552. * src/PeerReceiveHandshakeCommand.cc
  2553. * src/PeerReceiveHandshakeCommand.h
  2554. * src/ReceiverMSEHandshakeCommand.cc
  2555. * src/RequestGroup.cc
  2556. * src/RequestGroup.h
  2557. * src/RequestGroupMan.cc
  2558. * src/RequestGroupMan.h
  2559. * src/SeedCheckCommand.cc
  2560. * src/SeedCheckCommand.h
  2561. * src/ShareRatioSeedCriteria.h
  2562. * src/SimpleBtMessage.cc
  2563. * src/TrackerWatcherCommand.cc
  2564. * src/TrackerWatcherCommand.h
  2565. * src/UTPexExtensionMessage.cc
  2566. * src/UTPexExtensionMessage.h
  2567. * test/BtCancelMessageTest.cc
  2568. * test/BtChokeMessageTest.cc
  2569. * test/BtExtendedMessageTest.cc
  2570. * test/BtInterestedMessageTest.cc
  2571. * test/BtNotInterestedMessageTest.cc
  2572. * test/BtPieceMessageTest.cc
  2573. * test/BtPortMessageTest.cc
  2574. * test/BtRegistryTest.cc
  2575. * test/BtRejectMessageTest.cc
  2576. * test/BtRequestMessageTest.cc
  2577. * test/DHTPeerAnnounceEntryTest.cc
  2578. * test/DHTPeerAnnounceStorageTest.cc
  2579. * test/DefaultBtMessageDispatcherTest.cc
  2580. * test/DefaultBtMessageFactoryTest.cc
  2581. * test/DefaultBtProgressInfoFileTest.cc
  2582. * test/DefaultBtRequestFactoryTest.cc
  2583. * test/DefaultExtensionMessageFactoryTest.cc
  2584. * test/MSEHandshakeTest.cc
  2585. * test/MockDHTTaskFactory.h
  2586. * test/ShareRatioSeedCriteriaTest.cc
  2587. * test/UTPexExtensionMessageTest.cc
  2588. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Fixed compiler warning.
  2590. * test/UtilTest.cc
  2591. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Treat Cookie object as session cookie if expiry = 0 is given.
  2593. With this change, you can specify session scoped cookies in an external
  2594. file setting expiry value to 0.
  2595. * src/Cookie.cc
  2596. * src/Cookie.h
  2597. * test/CookieParserTest.cc
  2598. * test/CookieStorageTest.cc
  2599. * test/CookieTest.cc
  2600. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. Changed signature of DHTMessageFactory::createResponseMessage().
  2602. Removed unused validateIDMatch.
  2603. * src/DHTMessageFactory.h
  2604. * src/DHTMessageFactoryImpl.cc
  2605. * src/DHTMessageFactoryImpl.h
  2606. * src/DHTMessageTracker.cc
  2607. * test/DHTMessageFactoryImplTest.cc
  2608. * test/MockDHTMessageFactory.h
  2609. Dropped DHT message coming from same ID of localhost.
  2610. * src/DHTMessageReceiver.cc
  2611. Rejected adding node whose ID is the same as localhost's.
  2612. * src/DHTRoutingTable.cc
  2613. * test/BtPortMessageTest.cc
  2614. * test/DHTRoutingTableTest.cc
  2615. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Pool connection when redirection occurs with Content-Length = 0.
  2617. * src/HttpSkipResponseCommand.cc
  2618. * src/HttpSkipResponseCommand.h
  2619. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Fixed the bug that causes time out when redirection occurs with
  2621. content-length 0.
  2622. * src/HttpResponseCommand.cc
  2623. * src/HttpSkipResponseCommand.cc
  2624. * src/HttpSkipResponseCommand.h
  2625. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Now each status legends is shown only when it appears in Download
  2627. Result. If Download Result has no item, then status legend will not
  2628. be printed.
  2629. * src/RequestGroupMan.cc
  2630. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Removed duplicate creation of OptionHandlers.
  2632. * src/option_processing.cc
  2633. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Fixed the bug that causes segmentation fault when accessing files which
  2635. don't exist or are not included in --select-file option while
  2636. validating chunk checksum.
  2637. * src/MultiDiskAdaptor.cc
  2638. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2639. Fixed compiler warning.
  2640. * test/UtilTest.cc
  2641. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2642. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2643. * src/IteratableChecksumValidator.cc
  2644. * src/IteratableChunkChecksumValidator.cc
  2645. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2646. * Release 0.16.2
  2647. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Added Serbian translation. Updated Ukrainian translation.
  2649. Thanks to all translators.
  2650. * po/sr.po
  2651. * po/uk.po
  2652. * po/LINGUAS
  2653. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2654. Bump up version number to 0.16.2
  2655. * configure.ac
  2656. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Added length equality test to operator== to drop a piece message
  2658. whose length does not match to the requested one.
  2659. * src/RequestSlot.cc
  2660. * test/DefaultBtMessageDispatcherTest.cc
  2661. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2662. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2663. recieved.
  2664. In this fix, if a request larger than 16KiB length is received, aria2
  2665. disconnects the peer.
  2666. * src/BtConstants.h
  2667. * src/PeerMessageUtil.cc
  2668. * src/PeerMessageUtil.h
  2669. * test/BtRequestMessageTest.cc
  2670. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2671. * Release 0.16.1
  2672. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2673. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2674. * doc/aria2c.1.txt
  2675. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2677. Updated French, Simplified Chinese and Japanese translations.
  2678. Thanks to all translators.
  2679. en@quot and en@boldquot are also added.
  2680. * po/LINGUAS
  2681. * po/fr.po
  2682. * po/ja.po
  2683. * po/uk.po
  2684. * po/vi.po
  2685. * po/zh_CN.po
  2686. * po/zh_TW.po
  2687. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Bump up version number to 0.16.1.
  2689. * configure.ac
  2690. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Updated README.
  2692. * README
  2693. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2695. not to replace '--' with em dash character.
  2696. * doc/aria2c.1.txt
  2697. * doc/makeman
  2698. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2700. every SEC seconds.
  2701. * src/DownloadEngineFactory.cc
  2702. * src/OptionHandlerFactory.cc
  2703. * src/option_processing.cc
  2704. * src/usage_text.h
  2705. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. Fixed compile warning on linux-amd64
  2707. * src/FtpConnection.cc
  2708. * src/IteratableChunkChecksumValidator.cc
  2709. * src/MultiDiskAdaptor.cc
  2710. Fixed the bug that unit test fails on linux-amd64
  2711. * test/UtilTest.cc
  2712. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Added --dht-file-path option to change the path to dht.dat, which is a
  2714. serialized DHT routing table.
  2715. * src/OptionHandlerFactory.cc
  2716. * src/option_processing.cc
  2717. * src/usage_text.h
  2718. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Fixed possible underflow.
  2720. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2721. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2722. Fixed the bug that last character in URI is not encoded.
  2723. * src/Request.cc
  2724. * test/RequestTest.cc
  2725. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Fixed the bug that referer header field contains fragment.
  2727. Now Request class removes fragment part of URI and encodes it
  2728. in Request::setUri() and setReferer().
  2729. * src/Request.h
  2730. * src/Request.cc
  2731. * test/RequestTest.cc
  2732. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Added missing m4 macros.
  2734. * m4/cppunit.m4
  2735. * m4/libgcrypt.m4
  2736. * m4/libgnutls-extra.m4
  2737. * m4/libgnutls.m4
  2738. * m4/libxml2.m4
  2739. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2740. Fixed compile error with gcc-4.4(snapshot)
  2741. * src/File.cc
  2742. * src/FtpConnection.cc
  2743. * src/OptionHandlerImpl.h
  2744. * src/Util.cc
  2745. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2746. Removed assert()
  2747. * src/SocketBuffer.cc (SocketBuffer::send)
  2748. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Changed the type of _numNewConnection to unsigned int.
  2750. * src/ActivePeerConnectionCommand.cc
  2751. * src/ActivePeerConnectionCommand.h
  2752. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2753. * Release 0.16.0
  2754. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2755. Updated doc
  2756. * README
  2757. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2759. translations. Thanks to all translators.
  2760. * po/bg.po
  2761. * po/de.po
  2762. * po/fr.po
  2763. * po/ja.po
  2764. * po/zh_CN.po
  2765. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Bump up version number to 0.16.0.
  2767. * configure.ac
  2768. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2770. int32_t.
  2771. Changed the type of count to int32_t.
  2772. * src/Metalink2RequestGroup.cc
  2773. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2774. Added test for Time::elapsed(time_t).
  2775. * test/TimeTest.cc
  2776. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2778. Util::difftv() should be used instead.
  2779. * src/TimeA2.cc
  2780. * src/TimeA2.h
  2781. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Made socket for dht connections non-blocking
  2783. * src/DHTAbstractMessage.cc
  2784. * src/DHTAbstractMessage.h
  2785. * src/DHTConnection.h
  2786. * src/DHTConnectionImpl.cc
  2787. * src/DHTConnectionImpl.h
  2788. * src/DHTMessage.h
  2789. * src/DHTMessageDispatcherImpl.cc
  2790. * src/DHTMessageDispatcherImpl.h
  2791. * src/DHTUnknownMessage.cc
  2792. * src/DHTUnknownMessage.h
  2793. * src/SocketCore.cc
  2794. * src/SocketCore.h
  2795. * test/MockDHTMessage.h
  2796. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2797. Changed the type of offset to int.
  2798. * src/ParameterizedStringParser.cc
  2799. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Made getAsInt() return int32_t
  2801. * src/Option.h
  2802. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2804. build.
  2805. * configure.ac
  2806. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Use sqlite3_open if sqlite3_open_v2 is not available.
  2808. * src/Sqlite3MozCookieParser.cc
  2809. * src/Sqlite3MozCookieParser.h
  2810. * m4/sqlite3.m4
  2811. * test/Sqlite3MozCookieParserTest.cc
  2812. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2814. * src/BtPieceMessage.cc
  2815. * src/DHTPeerAnnounceStorage.cc
  2816. * src/DefaultPieceStorage.cc
  2817. * src/DownloadCommand.cc
  2818. * src/DownloadEngine.cc
  2819. * src/FtpConnection.cc
  2820. * src/PeerConnection.cc
  2821. * src/PeerMessageUtil.cc
  2822. * src/RequestGroup.cc
  2823. * src/RequestGroupMan.cc
  2824. * src/SimpleBtMessage.cc
  2825. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2826. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2827. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2828. * src/AbstractDiskWriter.cc
  2829. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Don't set Request::supportsPersistentConnection() in HttpConnection
  2831. since this code is also used in AbstractProxyResponseCommand.
  2832. Moved those code to HttpResponse.
  2833. * src/HttpResponse.cc
  2834. * src/HttpResponse.h
  2835. * src/HttpConnection.cc
  2836. * src/HttpConnection.h
  2837. * src/HttpResponseCommand.cc
  2838. * test/HttpResponseTest.cc
  2839. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2841. The configuration is minimum: no torrent, no metalink, so there may be
  2842. other compile error on their code.
  2843. * src/a2netcompat.h
  2844. * src/File.cc
  2845. * src/File.h
  2846. * src/SocketCore.cc
  2847. * src/SocketCore.h
  2848. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Made a socket of incoming peer non-blocking.
  2850. * src/PeerListenCommand.cc
  2851. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2852. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2853. whole message data is not sent in one send() call.
  2854. * src/BtPieceMessage.cc
  2855. * src/BtPieceMessage.h
  2856. * src/PeerConnection.cc
  2857. * src/PeerConnection.h
  2858. * src/SimpleBtMessage.cc
  2859. * src/SimpleBtMessage.h
  2860. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Fixed the bug that aria2 downloads faster than max-download-limit when
  2862. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2863. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2864. , instead of sum of them.
  2865. * src/ActivePeerConnectionCommand.cc
  2866. * src/DefaultBtInteractive.cc
  2867. * src/DownloadCommand.cc
  2868. * src/PeerInteractionCommand.cc
  2869. * src/PeerReceiveHandshakeCommand.cc
  2870. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Fixed the bug that HTTPS download fails.
  2872. * src/AbstractCommand.cc
  2873. * src/AbstractCommand.h
  2874. * src/DownloadCommand.cc
  2875. * src/FtpConnection.cc
  2876. * src/HttpConnection.cc
  2877. * src/HttpRequestCommand.cc
  2878. * src/HttpResponseCommand.cc
  2879. * src/HttpSkipResponseCommand.cc
  2880. * src/MSEHandshake.cc
  2881. * src/PeerConnection.cc
  2882. * src/SocketCore.cc
  2883. * src/SocketCore.h
  2884. Fixed the bug that aria2 doesn't download whole content body and cannot
  2885. reuse connection if chunked transfer encoding and gzip content encoding
  2886. are set.
  2887. * src/DownloadCommand.cc
  2888. * src/HttpSkipResponseCommand.cc
  2889. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Updated man page.
  2891. * doc/aria2c.1.txt
  2892. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2893. When error occurred while aria2 was parsing an .aria2.conf file, print
  2894. the usage of the option that caused error.
  2895. * src/option_processing.cc
  2896. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Fixed compile error on OptionHandlerException
  2898. * src/Makefile.am
  2899. * src/OptionHandlerException.cc
  2900. * src/OptionHandlerException.h
  2901. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Moved message of the error to OptionHandlerException.h
  2903. * src/NameMatchOptionHandler.h
  2904. * src/OptionHandlerException.h
  2905. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2906. When error occurs while aria2 is parsing an command-line option, print
  2907. the usage of the option.
  2908. * src/Makefile.am
  2909. * src/NameMatchOptionHandler.h
  2910. * src/OptionHandlerException.h
  2911. * src/option_processing.cc
  2912. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2913. Reverted previous change.
  2914. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2915. username is not in URI.
  2916. * src/HttpRequest.cc
  2917. * src/Request.cc
  2918. * test/HttpRequestTest.cc
  2919. * test/RequestTest.cc
  2920. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2921. Now colon is required for username and password in FTP URL, like:
  2922. ftp://username:password@host.
  2923. If colon is not there, aria2 don't parse it as a username. For example,
  2924. aria2 don't retrieve username from ftp://username@host.
  2925. This fix was made in order to login FTP server via non-transparent ftp
  2926. proxy.
  2927. * src/Request.cc
  2928. * test/RequestTest.cc
  2929. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2930. Use netrc for HTTP.
  2931. Now FTP user/password is sent in Authorization header when
  2932. --ftp-via-http-proxy=get is given.
  2933. * src/AuthConfigFactory.cc
  2934. * src/HttpRequest.cc
  2935. * src/HttpRequest.h
  2936. * src/NetrcAuthResolver.cc
  2937. * src/NetrcAuthResolver.h
  2938. * src/OptionHandlerFactory.cc
  2939. * src/option_processing.cc
  2940. * src/prefs.cc
  2941. * src/prefs.h
  2942. * test/AuthConfigFactoryTest.cc
  2943. * test/HttpRequestTest.cc
  2944. * test/NetrcAuthResolverTest.cc
  2945. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Issue PWD command first and get working directory and use it as a prefix
  2947. for CWD command.
  2948. * src/DownloadEngine.cc
  2949. * src/DownloadEngine.h
  2950. * src/FtpConnection.cc
  2951. * src/FtpConnection.h
  2952. * src/FtpFinishDownloadCommand.cc
  2953. * src/FtpInitiateConnectionCommand.cc
  2954. * src/FtpNegotiationCommand.cc
  2955. * src/FtpNegotiationCommand.h
  2956. * test/FtpConnectionTest.cc
  2957. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Removed default user/pass for FTP user/pass, since it should not have
  2959. precedence over netrc configuration by default.
  2960. * src/OptionHandlerFactory.cc
  2961. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2962. Added debug log for socket event.
  2963. * src/AbstractCommand.cc
  2964. * src/PeerAbstractCommand.cc
  2965. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Log microseconds.
  2967. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2968. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Replaced HelpItem.cc with OptionHandler.cc.
  2970. * po/POTFILES.in
  2971. Updated po files with 'make update-po'
  2972. * po/aria2c.pot
  2973. * po/*.po
  2974. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Removed possible values from the text.
  2976. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2977. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2978. Removed unused preferences:
  2979. PREF_NO_PREALLOCATION
  2980. PREF_STDOUT_LOG
  2981. PREF_TRACKER_MAX_TRIES
  2982. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2983. PREF_MIN_SEGMENT_SIZE
  2984. * src/option_processing.cc
  2985. * src/prefs.cc
  2986. * src/prefs.h
  2987. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Integrated HelpItem into OptionParser to ease the workload for adding
  2989. new options. Removed default value from usage text.
  2990. * src/HelpItem.cc: Removed.
  2991. * src/HelpItem.h: Removed.
  2992. * src/HelpItemFactory.cc: Removed.
  2993. * src/HelpItemFactory.h: Removed.
  2994. * src/Makefile.am
  2995. * src/Makefile.in
  2996. * src/NameMatchOptionHandler.h
  2997. * src/OptionHandler.cc
  2998. * src/OptionHandler.h
  2999. * src/OptionHandlerFactory.cc
  3000. * src/OptionHandlerImpl.h
  3001. * src/OptionParser.cc
  3002. * src/OptionParser.h
  3003. * src/TagContainer.cc: Removed.
  3004. * src/TagContainer.h: Removed.
  3005. * src/TaggedItem.cc: Removed.
  3006. * src/TaggedItem.h: Removed.
  3007. * src/main.cc
  3008. * src/option_processing.cc
  3009. * src/usage_text.h
  3010. * src/version_usage.cc
  3011. * test/HelpItemTest.cc: Removed.
  3012. * test/Makefile.am
  3013. * test/Makefile.in
  3014. * test/OptionHandlerTest.cc
  3015. * test/OptionParserTest.cc
  3016. * test/TagContainerTest.cc: Removed.
  3017. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Moved `TransferStat stat = ...' to inside the `if' clause.
  3019. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3020. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Fixed the bug that a block in a piece is requested when same block is
  3022. already requested to the same peer in end game mode.
  3023. * src/BtRequestFactory.h
  3024. * src/DefaultBtInteractive.cc
  3025. * src/DefaultBtRequestFactory.cc
  3026. * src/DefaultBtRequestFactory.h
  3027. * src/DefaultPieceStorage.cc
  3028. * src/DefaultPieceStorage.h
  3029. * src/PieceStorage.h
  3030. * src/UnknownLengthPieceStorage.cc
  3031. * src/UnknownLengthPieceStorage.h
  3032. * test/DefaultBtRequestFactoryTest.cc
  3033. * test/DefaultPieceStorageTest.cc
  3034. * test/MockBtRequestFactory.h
  3035. * test/MockPieceStorage.h
  3036. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Removed _uploadLength and _downloadLength from PeerSessionResource
  3038. and use PeerStat::_sessionUploadLength and
  3039. PeerStat::_sessionDownloadLength.
  3040. * src/PeerSessionResource.cc
  3041. * src/PeerSessionResource.h
  3042. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Fixed the bug that prefixLength of split bucket which doesn't include
  3044. local node ID is incremented.
  3045. * src/DHTBucket.cc
  3046. * src/DHTBucket.h
  3047. * test/DHTBucketTest.cc
  3048. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Added cookies.sqlite to EXTRA_DIST
  3050. * test/Makefile.am
  3051. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Added Turkish translation. Updated French, German, Russian and
  3053. Simplified Chinese translations. Thanks to all translators.
  3054. * po/LINGUAS
  3055. * po/de.po
  3056. * po/fr.po
  3057. * po/ru.po
  3058. * po/tr.po
  3059. * po/zh_CN.po
  3060. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Added deliminating text to the beginning of the log so that one can find
  3062. where the log starts easily.
  3063. * src/main.cc
  3064. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3066. to fix compile error when async DNS is not enabled by configuration.
  3067. * src/AbstractCommand.cc
  3068. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. If establishing conneciton to a server is failed, then mark error on
  3070. its ServerStat.
  3071. Added the cause of error to log when error event occurred.
  3072. Moved message string to message.h for translation.
  3073. * src/AbstractCommand.cc
  3074. * src/AbstractCommand.h
  3075. * src/FtpNegotiationCommand.cc
  3076. * src/HttpRequestCommand.cc
  3077. * src/PeerAbstractCommand.cc
  3078. * src/message.h
  3079. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Added the function to get error message from socket.
  3081. * src/SocketCore.cc
  3082. * src/SocketCore.h
  3083. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3085. * src/RequestGroupMan.cc
  3086. * src/RequestGroupMan.h
  3087. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. If error event is received in epoll, then abort download immediately.
  3089. * src/AbstractCommand.cc
  3090. * src/Command.cc
  3091. * src/Command.h
  3092. * src/DownloadEngine.cc
  3093. * src/PeerAbstractCommand.cc
  3094. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Added usage message for --uri-selector, --server-stat-of,
  3096. --server-stat-in, --server-stat-timeout options.
  3097. * src/HelpItemFactory.cc
  3098. * src/usage_text.h
  3099. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Added upper limit of FTP response buffer. The current implementation
  3101. uses 4096bytes as a limit.
  3102. * src/FtpConnection.cc
  3103. * src/FtpConnection.h
  3104. * test/FtpConnectionTest.cc
  3105. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Use non-blocking socket for TCP communication to avoid possible
  3107. blocking due to buffer full.
  3108. * src/AbstractProxyRequestCommand.cc
  3109. * src/FtpConnection.cc
  3110. * src/FtpConnection.h
  3111. * src/FtpNegotiationCommand.cc
  3112. * src/FtpNegotiationCommand.h
  3113. * src/HttpConnection.cc
  3114. * src/HttpConnection.h
  3115. * src/HttpRequestCommand.cc
  3116. * src/InitiatorMSEHandshakeCommand.cc
  3117. * src/InitiatorMSEHandshakeCommand.h
  3118. * src/MSEHandshake.cc
  3119. * src/MSEHandshake.h
  3120. * src/Makefile.am
  3121. * src/PeerConnection.cc
  3122. * src/PeerConnection.h
  3123. * src/PeerInteractionCommand.cc
  3124. * src/PeerListenCommand.cc
  3125. * src/ReceiverMSEHandshakeCommand.cc
  3126. * src/ReceiverMSEHandshakeCommand.h
  3127. * src/SocketBuffer.cc
  3128. * src/SocketBuffer.h
  3129. * src/SocketCore.cc
  3130. * src/SocketCore.h
  3131. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Call setStatusRealtime() in constructor.
  3133. * src/RealtimeCommand.cc
  3134. * src/RealtimeCommand.h
  3135. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Call Download::setNoWait(true) to execute newly created command without
  3137. a pause.
  3138. * src/AbstractCommand.cc
  3139. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3140. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3141. found' error from HTTP/FTP server NUM times without getting single
  3142. bytes of data, then force the download to fail.
  3143. Basically aria2 tris all URIs available. So if long list of URIs are
  3144. specified in Metalink, then aria2 will take a long time to fail
  3145. eventually if all URIs are outdated. This option eases this situation
  3146. to limit the number of servers to try.
  3147. * src/FtpNegotiationCommand.cc
  3148. * src/HelpItemFactory.cc
  3149. * src/HttpResponseCommand.cc
  3150. * src/OptionHandlerFactory.cc
  3151. * src/PeerStat.h
  3152. * src/RequestGroup.cc
  3153. * src/RequestGroup.h
  3154. * src/SegmentMan.cc
  3155. * src/SegmentMan.h
  3156. * src/option_processing.cc
  3157. * src/prefs.cc
  3158. * src/prefs.h
  3159. * src/usage_text.h
  3160. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3162. response even if more than one response is in it.
  3163. * src/FtpConnection.cc
  3164. * src/FtpConnection.h
  3165. * test/FtpConnectionTest.cc
  3166. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Merged from stable-0.15
  3168. * m4/libcares.m4
  3169. Use pkg-config
  3170. * m4/sqlite3.m4
  3171. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Removed unnecessary if statement.
  3173. * src/DefaultPieceStorage.cc (initPieceStorage)
  3174. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Added --connect-timeout option to specify connect timeout in seconds.
  3176. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3177. connecting to BitTorrent peer is not controlled by this option.
  3178. * src/AbstractProxyRequestCommand.cc
  3179. * src/FtpNegotiationCommand.cc
  3180. * src/HelpItemFactory.cc
  3181. * src/HttpRequestCommand.cc
  3182. * src/OptionHandlerFactory.cc
  3183. * src/option_processing.cc
  3184. * src/prefs.cc
  3185. * src/prefs.h
  3186. * src/usage_text.h
  3187. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Added help message for -R option.
  3189. * src/HelpItemFactory.cc
  3190. * src/usage_text.h
  3191. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Added the message that the time is in local time zone.
  3193. * src/RequestGroup.cc
  3194. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Implemented the ability to get timestamp from remote FTP server using
  3196. MDTM command described in RFC3659.
  3197. * src/FtpConnection.cc
  3198. * src/FtpConnection.h
  3199. * src/FtpNegotiationCommand.cc
  3200. * src/FtpNegotiationCommand.h
  3201. * test/FtpConnectionTest.cc
  3202. * test/Makefile.am
  3203. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3204. Implemented the ability to get timestamp from remote HTTP server and
  3205. apply it to local file. To enable this feature, --remote-time option
  3206. is added. No usage text has been written yet.
  3207. If several servers returns difference timestamp, then aria2 uses latest
  3208. one.
  3209. * src/CopyDiskAdaptor.cc
  3210. * src/CopyDiskAdaptor.h
  3211. * src/DirectDiskAdaptor.cc
  3212. * src/DirectDiskAdaptor.h
  3213. * src/DiskAdaptor.h
  3214. * src/File.cc
  3215. * src/File.h
  3216. * src/HttpHeader.cc
  3217. * src/HttpHeader.h
  3218. * src/HttpResponse.cc
  3219. * src/HttpResponse.h
  3220. * src/HttpResponseCommand.cc
  3221. * src/HttpResponseCommand.h
  3222. * src/MultiDiskAdaptor.cc
  3223. * src/MultiDiskAdaptor.h
  3224. * src/OptionHandlerFactory.cc
  3225. * src/RequestGroup.cc
  3226. * src/RequestGroup.h
  3227. * src/RequestGroupMan.cc
  3228. * src/option_processing.cc
  3229. * src/prefs.cc
  3230. * src/prefs.h
  3231. * test/CopyDiskAdaptorTest.cc
  3232. * test/FileTest.cc
  3233. * test/Makefile.am
  3234. * test/Makefile.in
  3235. * test/MultiDiskAdaptorTest.cc
  3236. * test/TestUtil.cc
  3237. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Fixed the bug that DiskWriterEntry is not created when its
  3239. FileEntry.isRequested() is false and it doesn't share a piece with
  3240. other FileEntries that are requested. This bug causes segmentation fault
  3241. in the end.
  3242. * src/MultiDiskAdaptor.cc
  3243. * src/MultiDiskAdaptor.h
  3244. * src/MultiFileAllocationIterator.cc
  3245. * test/MultiDiskAdaptorTest.cc
  3246. * test/MultiFileAllocationIteratorTest.cc
  3247. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3249. called if the number of file entries are greater than max open files.
  3250. * src/AbstractSingleDiskAdaptor.cc
  3251. * src/AbstractSingleDiskAdaptor.h
  3252. * src/DiskAdaptor.h
  3253. * src/MultiDiskAdaptor.cc
  3254. * src/MultiDiskAdaptor.h
  3255. * test/MultiDiskAdaptorTest.cc
  3256. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3257. Added a constuctor that receives struct timeval.
  3258. Added operator<.
  3259. * src/TimeA2.cc
  3260. * src/TimeA2.h
  3261. * test/TimeTest.cc
  3262. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3264. * src/CookieParser.cc
  3265. * test/CookieParserTest.cc
  3266. * test/HttpResponseTest.cc
  3267. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Implmented the functions to parse date.
  3269. * src/TimeA2.cc
  3270. * src/TimeA2.h
  3271. * test/TimeTest.cc
  3272. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Added "Firefox3 Cookie" feature to FeatureConfig
  3274. * src/FeatureConfig.cc
  3275. * src/FeatureConfig.h
  3276. * test/FeatureConfigTest.cc
  3277. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3278. Bump up version number to 0.16.0b
  3279. * configure.ac
  3280. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Use pkg-config if is is available.
  3282. * m4/openssl.m4
  3283. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3285. * src/BtAnnounce.h
  3286. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. If an error occurred with a URI, remove identical URI from remaining
  3288. URI list because it is likely that same error occurred in the end and it
  3289. is waste of time.
  3290. * src/AbstractCommand.cc
  3291. * src/RequestGroup.cc
  3292. * src/RequestGroup.h
  3293. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Removed wrong comment.
  3295. * src/DefaultPeerStorage.cc
  3296. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3298. Added return value of getpid() to argument of srand() to achieve more
  3299. randomized value.
  3300. * src/SimpleRandomizer.cc
  3301. * src/SimpleRandomizer.h
  3302. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Contact tracker frequently when the number of connections are 0 and
  3304. download is not finished yet.
  3305. * src/ActivePeerConnectionCommand.cc
  3306. * src/BtAnnounce.h
  3307. * src/DefaultBtAnnounce.cc
  3308. * src/DefaultBtAnnounce.h
  3309. * test/MockBtAnnounce.h
  3310. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Moved threshold values to UTPexExtensionMessage.
  3312. * src/DefaultBtInteractive.cc
  3313. * src/Peer.cc
  3314. * src/Peer.h
  3315. * src/UTPexExtensionMessage.cc
  3316. * src/UTPexExtensionMessage.h
  3317. * test/UTPexExtensionMessageTest.cc
  3318. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Added _incoming member to Peer class and made it true if the peer
  3320. initiated connection. Don't add those peer to UTPex message.
  3321. If extended handshake is received, assign _incoming to false.
  3322. * src/DefaultBtInteractive.cc
  3323. * src/HandshakeExtensionMessage.cc
  3324. * src/Peer.cc
  3325. * src/Peer.h
  3326. * src/PeerListenCommand.cc
  3327. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3329. Encoding Decoder. Removed size threshold for turning off on the fly
  3330. inflation because resulting file may or may not be inflated depending
  3331. on the file size and I think it is not expected by users.
  3332. This change fixes segmentation fault when Metalink file contains gzipped
  3333. file and its filesize is provided.
  3334. * src/HttpResponseCommand.cc
  3335. * src/HttpResponseCommand.h
  3336. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Made Cookie immutable.
  3338. * src/Cookie.cc
  3339. * src/Cookie.h
  3340. * src/CookieParser.cc
  3341. * src/CookieParser.h
  3342. * src/CookieStorage.cc
  3343. * test/CookieParserTest.cc
  3344. * test/CookieStorageTest.cc
  3345. * test/NsCookieParserTest.cc
  3346. * test/Sqlite3MozCookieParserTest.cc
  3347. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3348. Removed CookieBox, CookieBoxFactory.
  3349. * src/CookieBox.cc
  3350. * src/CookieBox.h
  3351. * src/CookieBoxFactory.cc
  3352. * src/CookieBoxFactory.h
  3353. * src/Makefile.am
  3354. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Use CookieStorage class instead of CookieBox class.
  3356. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3357. * src/AbstractProxyRequestCommand.cc
  3358. * src/CookieStorage.cc
  3359. * src/DownloadEngine.cc
  3360. * src/DownloadEngine.h
  3361. * src/HttpConnection.cc
  3362. * src/HttpConnection.h
  3363. * src/HttpRequest.cc
  3364. * src/HttpRequest.h
  3365. * src/HttpRequestCommand.cc
  3366. * src/HttpResponse.cc
  3367. * src/HttpResponseCommand.cc
  3368. * src/HttpSkipResponseCommand.cc
  3369. * src/Makefile.am
  3370. * src/MultiUrlRequestInfo.cc
  3371. * src/Request.cc
  3372. * src/Request.h
  3373. * src/main.cc
  3374. * test/AllTest.cc
  3375. * test/CookieStorageTest.cc
  3376. * test/CookieTest.cc
  3377. * test/HttpRequestTest.cc
  3378. * test/HttpResponseTest.cc
  3379. * test/Makefile.am
  3380. * test/NsCookieParserTest.cc
  3381. * test/Sqlite3MozCookieParserTest.cc
  3382. * test/nscookietest.txt
  3383. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Updated
  3385. * test/Cookies.sqlite
  3386. * test/nscookietest.txt
  3387. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Added tests for CookieStorage::load()
  3389. * test/CookieStorageTest.cc
  3390. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Added CookieStorage class which is based on RFC2109 and manages cookies
  3392. more strictly than CookieBox and CookieBoxFactory class.
  3393. * src/CookieStorage.cc
  3394. * src/CookieStorage.h
  3395. * src/Cookie.cc
  3396. * src/Cookie.h
  3397. * test/CookieStorageTest.cc
  3398. * test/CookieTest.cc
  3399. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3400. Fixed the bug that commands are created more than the number of pieces.
  3401. * src/RequestGroup.cc
  3402. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Fixed infinite loop bug in FTP when SIZE command failed.
  3404. * src/FtpNegotiationCommand.cc
  3405. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Removed DirectDiskAdaptorTest.h
  3407. * test/Makefile.am
  3408. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Fixed chunk checksum validation cannot detect trailing garbage data.
  3410. BUG#2074141
  3411. * src/AbstractSingleDiskAdaptor.cc
  3412. * src/AbstractSingleDiskAdaptor.h
  3413. * src/CheckIntegrityEntry.cc
  3414. * src/CheckIntegrityEntry.h
  3415. * src/DiskAdaptor.h
  3416. * src/MultiDiskAdaptor.cc
  3417. * src/MultiDiskAdaptor.h
  3418. * src/RequestGroup.cc
  3419. * test/DirectDiskAdaptorTest.cc
  3420. * test/MultiDiskAdaptorTest.cc
  3421. * test/TestUtil.cc
  3422. * test/TestUtil.h
  3423. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Bump up version number of dht.dat file to 3. In version 3 format, time
  3425. is stored in 64bit, network byte order.
  3426. New build can load old format(version 2) but it saves the file in new
  3427. format. It means once you used new build, your dht.dat becomes
  3428. incompatible with older build.
  3429. * src/DHTRoutingTableDeserializer.cc
  3430. * src/DHTRoutingTableSerializer.cc
  3431. * test/DHTRoutingTableSerializerTest.cc
  3432. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3434. * test/Makefile.am
  3435. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Bump up version number of .aria2 control file to 0001.
  3437. New aria2 can still load version 0000 file but it saves the file in
  3438. version 0001 format. It means that new aria2 can resume download
  3439. started by old aria2 but the opposite is not true.
  3440. * src/DefaultBtProgressInfoFile.cc
  3441. * src/DefaultBtProgressInfoFile.h
  3442. * test/DefaultBtProgressInfoFileTest.cc
  3443. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Added ntoh64 and hton64 as inline functions.
  3445. * src/Util.cc
  3446. * test/UtilTest.cc
  3447. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Added sqlite3 depenency and Firefox3 cookie support.
  3449. * README
  3450. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. State that firefox3 cookie is supported explicitly in the usage.
  3452. * src/usage_text.h
  3453. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3454. Externalized message.
  3455. * src/RequestGroupMan.cc
  3456. * src/message.h
  3457. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Save temporary file first and rename to the destination on success.
  3459. Added test cases.
  3460. * src/RequestGroupMan.cc
  3461. * test/RequestGroupManTest.cc
  3462. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Fixed the bug that the number of connected peer is exceeding the limit
  3464. (55 by default) in seeding mode.
  3465. Multiplied 0.8 to _maxUploadSpeedLimit.
  3466. * src/ActivePeerConnectionCommand.cc
  3467. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Clear table item.
  3469. * src/Dictionary.cc
  3470. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Fixed error handling of lseek.
  3472. * src/AbstractDiskWriter.cc
  3473. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3475. style cookie file.
  3476. * src/usage_text.h
  3477. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3479. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3480. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3481. * src/Util.cc
  3482. * src/Util.h
  3483. * src/CookieParser.cc
  3484. * test/UtilTest.cc
  3485. * test/CookieParserTest.cc
  3486. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Separate the implementation to load old mozilla format of cookie to
  3488. NsCookieParser class.
  3489. * src/CookieBoxFactory.cc
  3490. * src/CookieBoxFactory.h
  3491. * src/NsCookieParser.cc
  3492. * src/NsCookieParser.h
  3493. * test/NsCookieParserTest.cc
  3494. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Made parse() const
  3496. * src/Sqlite3MozCookieParser.cc
  3497. * src/Sqlite3MozCookieParser.h
  3498. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Added firefox3 cookie support based on the patch submitted by
  3500. tizianomueller.
  3501. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3502. this functionality.
  3503. * configure.ac
  3504. * m4/sqlite3.m4
  3505. * src/CookieBoxFactory.cc
  3506. * src/CookieBoxFactory.h
  3507. * src/Makefile.am
  3508. * src/Makefile.in
  3509. * src/Sqlite3MozCookieParser.cc
  3510. * src/Sqlite3MozCookieParser.h
  3511. * src/main.cc
  3512. * test/CookieBoxFactoryTest.cc
  3513. * test/Makefile.am
  3514. * test/Makefile.in
  3515. * test/Sqlite3MozCookieParserTest.cc
  3516. * test/badcookies.sqlite
  3517. * test/cookies.sqlite
  3518. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Added Danish and Greek translations.
  3520. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3521. Great thanks to all translators.
  3522. * po/LINGUAS
  3523. * po/el.po
  3524. * po/da.po
  3525. * po/es.po
  3526. * po/ca.po
  3527. * po/nn.po
  3528. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. Fixed man page: --follow-bittorrent should be --follow-torrent
  3530. * doc/aria2c.1.txt
  3531. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Fixed: numCommand is less than the value specified in -C option.
  3533. * src/RequestGroup.cc
  3534. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Fixed occasional assertion failure in PieceSegment.
  3536. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3537. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3538. creation of duplicate segments and one of the segment was finished then
  3539. assertion failure was caused.
  3540. * src/SegmentMan.cc
  3541. * test/SegmentManTest.cc
  3542. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Added options to load/save the server's performance/status to a file
  3544. and the timeout to drop their data.
  3545. --server-stat-of=FILE specifies the file to which performance data
  3546. is saved.
  3547. --server-stat-if=FILE specifies the file to read previously saved
  3548. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3549. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3550. TIMEOUT is specified in seconds and the default value is 24hours.
  3551. * src/MultiUrlRequestInfo.cc
  3552. * src/OptionHandlerFactory.cc
  3553. * src/RequestGroupMan.cc
  3554. * src/RequestGroupMan.h
  3555. * src/ServerStatMan.cc
  3556. * src/ServerStatMan.h
  3557. * src/option_processing.cc
  3558. * src/prefs.cc
  3559. * src/prefs.h
  3560. * test/ServerStatManTest.cc
  3561. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3563. * src/ServerStatMan.cc
  3564. * src/ServerStatMan.h
  3565. * test/ServerStatManTest.cc
  3566. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Implemented ServerStatMan::load(...) function and its test case.
  3568. * src/ServerStat.cc
  3569. * src/ServerStat.h
  3570. * src/ServerStatMan.cc
  3571. * test/ServerStatManTest.cc
  3572. * test/ServerStatTest.cc
  3573. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3574. Use time_t instead of int32_t. Use int64_t where milli second is
  3575. expected.
  3576. * src/TimeA2.cc
  3577. * src/TimeA2.h
  3578. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Implemented ServerStatMan::save(...) function and its test case.
  3580. * src/ServerStat.cc
  3581. * src/ServerStat.h
  3582. * src/ServerStatMan.cc
  3583. * src/ServerStatMan.h
  3584. * test/ServerStatManTest.cc
  3585. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Now aria2 uses name attribute in Metalink as local filename in
  3587. BitTorrent downloads. BUG#2033999
  3588. * src/BtContext.h
  3589. * src/BtDependency.cc
  3590. * src/DefaultBtContext.cc
  3591. * src/DefaultBtContext.h
  3592. * src/SingleFileDownloadContext.cc
  3593. * src/SingleFileDownloadContext.h
  3594. * test/BtDependencyTest.cc
  3595. * test/DefaultBtContextTest.cc
  3596. * test/MockBtContext.h
  3597. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Added AC_C_BIGENDIAN
  3599. * src/configure.ac
  3600. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Limited numCommand less than or equal to the number of piece.
  3602. * src/RequestGroup.cc
  3603. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3605. directive.
  3606. * test/DefaultPieceStorageTest.cc
  3607. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Fixed memory leak in test code
  3609. * test/AnnounceListTest.cc
  3610. * test/DefaultPeerListProcessorTest.cc
  3611. * test/DefaultPeerStorageTest.cc
  3612. * test/MetaFileUtilTest.cc
  3613. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3615. * src/DefaultPieceStorage.cc
  3616. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Initialized _directIOAllowed
  3618. * src/MultiDiskAdaptor.cc
  3619. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3620. Fixed memory leak
  3621. * src/GZipDecoder.cc
  3622. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Fixed memory leak
  3624. * src/MetalinkParserStateMachine.cc
  3625. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3626. Fixed memory leak
  3627. * src/Dictionary.cc
  3628. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. Fixed memory leak
  3630. * src/IteratableChunkChecksumValidator.h
  3631. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Fixed unmatched malloc/free.
  3633. * src/IteratableChunkChecksumValidator.cc
  3634. * src/IteratableChecksumValidator.cc
  3635. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Removed max chunk size check. This change fixes BUG#2040169
  3637. * src/ChunkedDecoder.cc
  3638. * src/ChunkedDecoder.h
  3639. * test/ChunkedDecoderTest.cc
  3640. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Implemented download speed based URI selection algorithm.
  3642. Introduced new option --uri-selector.
  3643. If --uri-selector=feedback is given, aria2 uses download speed observed
  3644. in the previous downloads and chooses fastest server in the URI list.
  3645. Currently at most 10 URIs are considered to introduce randomeness for
  3646. finding better servers. The speed is average download speed in the
  3647. downloads.
  3648. On the other hand, if --uri-selector=inorder is given, which is default,
  3649. URI is tried in order in URI list.
  3650. The usage text for the new option has not been written yet.
  3651. * src/AbstractCommand.cc
  3652. * src/DownloadCommand.cc
  3653. * src/DownloadEngine.cc
  3654. * src/DownloadEngineFactory.cc
  3655. * src/InOrderURISelector.cc
  3656. * src/InOrderURISelector.h
  3657. * src/OptionHandlerFactory.cc
  3658. * src/PeerStat.h
  3659. * src/RequestGroup.cc
  3660. * src/RequestGroup.h
  3661. * src/RequestGroupMan.cc
  3662. * src/RequestGroupMan.h
  3663. * src/SegmentMan.cc
  3664. * src/SegmentMan.h
  3665. * src/ServerStat.cc
  3666. * src/ServerStat.h
  3667. * src/ServerStatMan.cc
  3668. * src/ServerStatMan.h
  3669. * src/ServerStatURISelector.cc
  3670. * src/ServerStatURISelector.h
  3671. * src/URISelector.h
  3672. * src/option_processing.cc
  3673. * src/prefs.cc
  3674. * src/prefs.h
  3675. * test/InOrderURISelectorTest.cc
  3676. * test/RequestGroupManTest.cc
  3677. * test/ServerStatManTest.cc
  3678. * test/ServerStatURISelectorTest.cc
  3679. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3680. * Release 0.15.1+2
  3681. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Bump up version number to 0.15.1+2
  3683. * configure.ac
  3684. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3686. * m4/aria2_arg.m4
  3687. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. * Release 0.15.1+1
  3689. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. Bump up version number to 0.15.1+1
  3691. * configure.ac
  3692. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Fixed the bug that causes segmentaion fault when resuming download
  3694. using metalink without size tag. Reproducible only using HTTP URI.
  3695. * src/HttpResponseCommand.cc
  3696. * src/FtpNegotiationCommand.cc
  3697. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. * Release 0.15.1
  3699. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Updated Bulgarian and French translations, thanks to all translators.
  3701. * po/bg.po
  3702. * po/fr.po
  3703. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Bump up version number to 0.15.1
  3705. * configure.ac
  3706. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Avoid repeated call of gettimeofday() when calculating speed.
  3708. * src/SpeedCalc.cc
  3709. * src/SpeedCalc.h
  3710. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. Removed writable check when socket's send buffer is full in BitTorrent
  3712. downloads to lower CPU usage.
  3713. * src/PeerInteractionCommand.cc
  3714. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Fixed broken gzip inflation.
  3716. Turn off segmented downloading if gzip content is smaller than or equal
  3717. to 1MiB and inflate the data on the fly, because HTTP response header
  3718. doesn't contain the length of inflated file we can't determin where
  3719. the chunk of data should be written.
  3720. On the other hand, if gzip content is larger than 1MB, then turn off
  3721. on the fly inflation, because some servers returns "content-type: gzip"
  3722. for *.tgz, *.gz files.
  3723. * src/DownloadCommand.cc
  3724. * src/HttpResponseCommand.cc
  3725. * src/HttpResponseCommand.h
  3726. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3727. Applied tizianomueller's patch to fix compile error.
  3728. * test/BitfieldManTest.cc
  3729. * test/BtRequestMessageTest.cc
  3730. * test/DefaultBtContextTest.cc
  3731. * test/DefaultDiskWriterTest.cc
  3732. * test/DefaultPieceStorageTest.cc
  3733. * test/HttpHeaderProcessorTest.cc
  3734. * test/HttpResponseTest.cc
  3735. * test/Metalink2RequestGroupTest.cc
  3736. * test/MetalinkParserControllerTest.cc
  3737. * test/MetalinkProcessorTest.cc
  3738. * test/PeerSessionResourceTest.cc
  3739. * test/UtilTest.cc
  3740. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. * Release 0.15.0
  3742. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Reordered src files in POTFILES.in so that usage text appears first.
  3744. * po/POTFILES.in
  3745. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Bump up version number to 0.15.0
  3747. * configure.ac
  3748. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Added Bulgarian translation.
  3750. Updated Catalan, Spanish, French and Japanese translations.
  3751. Thanks to all translators.
  3752. * po/LINGUAS
  3753. * po/bg.po
  3754. * po/ca.po
  3755. * po/es.po
  3756. * po/fr.po
  3757. * po/ja.po
  3758. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Updated feature list. Added libz for dependency section.
  3760. Added a description about unit testing using CppUnit.
  3761. * README
  3762. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Added a test for libz. Quoted where it is necessary.
  3764. * build_test.sh
  3765. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Added GZip to `Enabled Features' list.
  3767. * src/FeatureConfig.cc
  3768. * src/FeatureConfig.h
  3769. * test/FeatureConfigTest.cc
  3770. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3772. the transfer has not yet started.
  3773. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3774. * src/SegmentMan.cc
  3775. * src/SegmentMan.h
  3776. * test/SegmentManTest.cc
  3777. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Cache last calculated average download/upload speed.
  3779. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3780. cached value.
  3781. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3782. * src/PeerStat.h
  3783. * src/SpeedCalc.cc
  3784. * src/SpeedCalc.h
  3785. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Call parseUrl directly.
  3787. * src/Request.cc (resetUrl)
  3788. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Supported absolute/relative path in Location header field.
  3790. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3791. * src/HttpHeader.cc
  3792. * src/HttpHeader.h
  3793. * src/HttpResponse.cc
  3794. * src/HttpSkipResponseCommand.cc
  3795. * src/Request.cc
  3796. * test/HttpHeaderTest.cc
  3797. * test/HttpResponseTest.cc
  3798. * test/RequestTest.cc
  3799. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Changed help text for --load-cookie option.
  3801. * doc/aria2c.1.txt
  3802. * src/usage_text.h
  3803. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Regenerated test/Makefile.in to remove stale ChangeLog.
  3805. * test/Makefile.in
  3806. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. Updated po files.
  3808. * po/aria2c.pot
  3809. * po/*.po
  3810. * po/*.gmo
  3811. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Bump up version number to 0.15.0b
  3813. * configure.ac
  3814. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. Externalize messages.
  3816. * src/RequestGroupMan.cc
  3817. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3818. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Use File::exists() instead of File::isFile() to allow non-regular file
  3820. such as block special files.
  3821. * src/AbstractDiskWriter.cc
  3822. * src/MultiDiskWriter.cc
  3823. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3825. * src/gai_strerror.h
  3826. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Fixed compile error. Thanks gknauf for the patch.
  3828. * src/asctime_r.c
  3829. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Included asctime_r.h from a2time.h.
  3831. * src/a2time.h
  3832. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Added a message "aria2 doesn't verify signature" to log message when
  3834. signature file is saved.
  3835. * src/RequestGroupMan.cc
  3836. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Added the ability to save signature when download is completed if
  3838. signature is available. The filename of signature file is the path to
  3839. download file followed by ".sig". If it already exists, then signature
  3840. will not be saved.
  3841. * src/RequestGroupMan.cc
  3842. * src/Signature.cc
  3843. * test/SignatureTest.cc
  3844. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Updated the descriptions for --bt-seed-unverified.
  3846. * doc/aria2c.1
  3847. * doc/aria2c.1.html
  3848. * doc/aria2c.1.txt
  3849. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3851. that this is not going to verify files using piece hashes.
  3852. * src/HelpItemFactory.cc
  3853. * src/OptionHandlerFactory.cc
  3854. * src/RequestGroup.cc
  3855. * src/option_processing.cc
  3856. * src/prefs.cc
  3857. * src/prefs.h
  3858. * src/usage_text.h
  3859. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3860. Added the ability to retrieve signature from Metalink file.
  3861. A retrieved signature is stored in Signature class and it is held by
  3862. DownloadContext class. Note that aria2 doesn't verify signature.
  3863. * src/DownloadContext.cc
  3864. * src/DownloadContext.h
  3865. * src/Makefile.am
  3866. * src/Makefile.in
  3867. * src/Metalink2RequestGroup.cc
  3868. * src/MetalinkEntry.cc
  3869. * src/MetalinkEntry.h
  3870. * src/MetalinkParserController.cc
  3871. * src/MetalinkParserController.h
  3872. * src/MetalinkParserStateMachine.cc
  3873. * src/MetalinkParserStateMachine.h
  3874. * src/Signature.cc
  3875. * src/Signature.h
  3876. * src/SignatureMetalinkParserState.cc
  3877. * src/SignatureMetalinkParserState.h
  3878. * src/VerificationMetalinkParserState.cc
  3879. * src/VerificationMetalinkParserState.h
  3880. * test/Metalink2RequestGroupTest.cc
  3881. * test/MetalinkParserControllerTest.cc
  3882. * test/MetalinkProcessorTest.cc
  3883. * test/test.xml
  3884. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Close DiskAdaptor after renaming file.
  3886. * src/RequestGroup.cc
  3887. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3888. Corrected indentation
  3889. * src/DefaultBtProgressInfoFile.cc
  3890. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Moved the calls of std::ios::exceptions() inside of try-catch block
  3892. because if an error occurred in constructor of std::fstream, then
  3893. exception is thrown immediately when std::ios::exceptions() is called
  3894. which results unhandled exception and aria2c aborts.
  3895. * src/DefaultBtProgressInfoFile.cc
  3896. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Added the test for the previous change in DefaultBtContext.cc
  3898. * test/DefaultBtContextTest.cc
  3899. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Fixed the bug that causes infinite loop when the number of pieces are
  3901. fewer than allowed fast set size which is 10 by default.
  3902. * src/DefaultBtContext.cc
  3903. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3904. Updated the descriptions for -j, -s. Added --bt-seed.
  3905. * doc/aria2c.1
  3906. * doc/aria2c.1.html
  3907. * doc/aria2c.1.txt
  3908. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3909. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3910. aria2 seeds previously downloaded files without validating piece hashs.
  3911. * src/HelpItemFactory.cc
  3912. * src/OptionHandlerFactory.cc
  3913. * src/RequestGroup.cc
  3914. * src/option_processing.cc
  3915. * src/prefs.cc
  3916. * src/prefs.h
  3917. * src/usage_text.h
  3918. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3919. Updated DESCRIPTION of man page.
  3920. * doc/aria2c.1
  3921. * doc/aria2c.1.html
  3922. * doc/aria2c.1.txt
  3923. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3925. Don't define `struct addrinfo' when __sun is defined.
  3926. * src/getaddrinfo.h
  3927. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3929. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3930. second argument is of type `struct _stati64'. Otherwise it is defined as
  3931. `struct stat'.
  3932. * src/AbstractDiskWriter.cc
  3933. * src/File.cc
  3934. * src/File.h
  3935. * src/a2io.h
  3936. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Fixed the compile error in hurd-i386
  3938. See the original bug report:
  3939. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3940. * src/a2io.h
  3941. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3942. Code cleanup.
  3943. * src/PeerAbstractCommand.cc
  3944. * src/PeerAbstractCommand.h
  3945. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Removed TransferEncoding.
  3947. * src/DownloadCommand.cc
  3948. * src/DownloadCommand.h
  3949. * src/HttpResponseCommand.cc
  3950. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Updated po files.
  3952. * po/aria2c.pot
  3953. * po/*.po
  3954. * po/*.gmo
  3955. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3957. * src/A2STR.cc
  3958. * src/A2STR.h
  3959. * src/ChunkedDecoder.cc
  3960. * src/ChunkedDecoder.h
  3961. * src/ChunkedEncoding.cc: Removed
  3962. * src/ChunkedEncoding.h: Removed
  3963. * src/DownloadCommand.cc
  3964. * src/DownloadCommand.h
  3965. * src/HttpDownloadCommand.cc
  3966. * src/HttpResponse.cc
  3967. * src/HttpResponse.h
  3968. * src/HttpResponseCommand.cc
  3969. * src/HttpSkipResponseCommand.cc
  3970. * src/HttpSkipResponseCommand.h
  3971. * src/Makefile.am
  3972. * src/TransferEncoding.h: Removed
  3973. * test/ChunkedDecoderTest.cc
  3974. * test/ChunkedEncodingTest.cc: Removed
  3975. * test/HttpResponseTest.cc
  3976. * test/Makefile.am
  3977. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Use append instead of insert.
  3979. * src/GZipDecoder.cc
  3980. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Updated doc
  3982. * src/Decoder.h
  3983. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Updated usage text for -s option.
  3985. * src/usage_text.h
  3986. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3987. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3988. * src/Request.cc
  3989. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3990. Cleaned up configure.ac.
  3991. * configure.ac
  3992. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3994. AC_ARG_ENABLE.
  3995. * configure.ac
  3996. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3998. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3999. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4000. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4001. fly and writes decoded data to a local disk.
  4002. * README
  4003. * README.html
  4004. * configure.ac
  4005. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4006. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4007. * m4/libz.m4
  4008. * src/Decoder.h
  4009. * src/DownloadCommand.cc
  4010. * src/DownloadCommand.h
  4011. * src/Exception.h
  4012. * src/GZipDecoder.cc
  4013. * src/GZipDecoder.h
  4014. * src/HttpHeader.cc
  4015. * src/HttpHeader.h
  4016. * src/HttpRequest.cc
  4017. * src/HttpRequest.h
  4018. * src/HttpResponse.cc
  4019. * src/HttpResponse.h
  4020. * src/HttpResponseCommand.cc
  4021. * src/Makefile.am
  4022. * test/GZipDecoderTest.cc
  4023. * test/HttpRequestTest.cc
  4024. * test/HttpResponseTest.cc
  4025. * test/Makefile.am
  4026. * test/Makefile.in
  4027. * test/gzip_decode_test.gz
  4028. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Clarified usage of -j option.
  4030. * src/usage_text.h
  4031. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Disabled getting size from the response of RETR.
  4033. If SIZE command failed, then disable resuming and segmented downloading.
  4034. * src/FtpConnection.cc
  4035. * src/FtpConnection.h
  4036. * src/FtpNegotiationCommand.cc
  4037. * src/FtpNegotiationCommand.h
  4038. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Use digits to find first byte of file size, which makes the intention
  4040. of the code clearer.
  4041. * src/FtpConnection.cc
  4042. Don't call validateTotalLength() when size is 0.
  4043. * src/FtpNegotiationCommand.cc
  4044. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Updated po files.
  4046. * po/aria2c.pot
  4047. * po/*.gmo
  4048. * po/*.po
  4049. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Clarified usage text for --split option.
  4051. * src/usage_text.h
  4052. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Bump up version number to 0.15.0dev. "dev" means "development"
  4054. version, which means I started the development of the next release!
  4055. * src/configure.ac
  4056. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. If FTP server returns negative response with REST raw command and
  4058. requested range is not 0, throw exception. If requested range is 0,
  4059. continue download a file from 0 byte.
  4060. * src/FtpNegotiationCommand.cc
  4061. * src/FtpNegotiationCommand.h
  4062. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Supported FTP server which don't recognize SIZE raw command.
  4064. If SIZE raw command is failed, aria2 will try to get file size
  4065. from the response of RETR raw command. If both attempts are failed,
  4066. then resuming and segmented downloading are disabled.
  4067. * src/FtpConnection.cc
  4068. * src/FtpConnection.h
  4069. * src/FtpNegotiationCommand.cc
  4070. * src/FtpNegotiationCommand.h
  4071. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. * Release 0.14.0+1
  4073. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Bump up version number to 0.14.0+1
  4075. * src/configure.ac
  4076. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Fixed the code that refers static member variable from non-static
  4078. context.
  4079. * src/DefaultPeerStorage.cc
  4080. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. * Release 0.14.0
  4082. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Added build test script
  4084. * build_test.sh
  4085. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4086. Updated ja.po
  4087. * src/ja.po
  4088. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Bump up version number to 0.14.0
  4090. * src/configure.ac
  4091. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Updated ja.po and fr.po. Great thanks for french translators and
  4093. Sebastien WILLEMIJNS.
  4094. * po/fr.po
  4095. * po/ja.po
  4096. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Added configure option to enable/disable epoll support.
  4098. * configure.ac
  4099. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. Updated man page.
  4101. * doc/aria2c.1.txt
  4102. * doc/aria2c.1
  4103. * doc/aria2c.1.html
  4104. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Added missing default value '5' to the usage of --split option.
  4106. * src/HelpItemFactory.cc
  4107. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Filled up pieces based on the number of missing blocks, rather than
  4109. simplay the number of piece * block length.
  4110. * src/BtRequestFactory.h
  4111. * src/DefaultBtInteractive.cc
  4112. * src/DefaultBtInteractive.h
  4113. * src/DefaultBtRequestFactory.cc
  4114. * src/DefaultBtRequestFactory.h
  4115. * src/Piece.cc
  4116. * src/Piece.h
  4117. * test/BitfieldManTest.cc
  4118. * test/DefaultBtRequestFactoryTest.cc
  4119. * test/MockBtRequestFactory.h
  4120. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Made _epEvents a member variable.
  4122. * src/DownloadEngine.cc
  4123. * src/DownloadEngine.h
  4124. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Cancel download if http redirect is bounded more than 20 times.
  4126. * src/AbstractCommand.cc
  4127. * src/HttpSkipResponseCommand.cc
  4128. * src/Request.cc
  4129. * src/Request.h
  4130. * test/RequestTest.cc
  4131. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Fixed unhandled exception(removed keyword `new').
  4133. * src/SocketCore.cc (initEPOLL)
  4134. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Removed visit(const MetaEntry*)
  4136. * src/MetaEntryVisitor.h:
  4137. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4138. and made them virtual.
  4139. * src/BencodeVisitor.h
  4140. * src/BencodeVisitor.cc
  4141. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Updated po files.
  4143. * po/aria2c.pot
  4144. * po/*.po
  4145. * po/*.gmo
  4146. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4148. the number of socket to watch out.
  4149. * src/PeerInteractionCommand.cc
  4150. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4151. When there is not enough space in disk when writing a chunk of data,
  4152. aria2 now prints the message to the console to warn user and aborts
  4153. its download. Not all downloads are canceled because some downloads
  4154. may use another disk or partition. BUG#1640332
  4155. * src/AbstractDiskWriter.cc
  4156. * src/PeerAbstractCommand.cc
  4157. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4158. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4159. setHaltRequested(true) to cancel download.
  4160. * src/PeerInteractionCommand.h
  4161. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4163. socket from int to sock_t as sockets are unsigned in Windows.
  4164. For AsyncNameResolver, DownloadEngine, I did additional modification
  4165. for the portion of the code changed according to epoll support.
  4166. I defined sock_t in a2netcompat.h to use sock_t without including
  4167. SocketCore.h.
  4168. * src/AsyncNameResolver.cc
  4169. * src/AsyncNameResolver.h
  4170. * src/DownloadEngine.cc
  4171. * src/DownloadEngine.h
  4172. * src/SocketCore.cc
  4173. * src/SocketCore.h
  4174. * src/a2netcompat.h
  4175. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4177. changes in the patch were applied.
  4178. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4179. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4180. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4181. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4183. a2io.h and common.h were modified.
  4184. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4185. MinGW.
  4186. * src/common.h: Changed off_t to 64 bit in MinGW.
  4187. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4188. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4189. only a2netcompat.h is modified.
  4190. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4191. directives.
  4192. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4194. only gai_strerror.h is modified.
  4195. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4196. winsock errors in MinGW.
  4197. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4199. follow sources are applied.
  4200. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4201. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4202. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4203. I included locale.h from Platform.cc.
  4204. * src/main.cc: Moved common setup/teardown code to Platform class.
  4205. * test/AllTest.cc: Use Platform class.
  4206. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4207. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4209. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4210. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4211. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4213. aria2-0.13.2+1-mingw-2.patch.
  4214. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4215. systems which don't have termious.h. I moved the directive inside of
  4216. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4217. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4218. anyway.
  4219. * src/asctime_r.h
  4220. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4221. I added 2nd argument to the prototype declaration.
  4222. * src/StringFormat.cc: Get rid of vasprintf.
  4223. * src/getaddrinfo.h: Fixed constants.
  4224. * configure.ac: Added the check for asctime_r function.
  4225. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4226. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Added writable test for Socket when the sending message is in progress.
  4228. Usually the sending message is piece message. Without wriable check,
  4229. upload latency is dropped to more than 1sec.
  4230. * src/PeerInteractionCommand.cc
  4231. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Create only requested files and files which shares a piece with
  4233. requested file in multi-torrent downloads. Directory structures are
  4234. also created in the same rule.
  4235. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4236. DiskWriterEntry as in the previous implementation.
  4237. * src/MultiDiskWriter.cc
  4238. * src/MultiFileAllocationIterator.cc
  4239. * src/MultiFileAllocationIterator.h
  4240. * test/MultiFileAllocationIteratorTest.cc
  4241. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Commented out -lprofiler
  4243. * src/Makefile.am
  4244. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Bump up version number to 0.14.0b.
  4246. * src/configure.ac
  4247. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Actively establish connection to peers in seeding, when peer cache
  4249. is not full and max upload speed limit is not reached.
  4250. * src/ActivePeerConnectionCommand.cc
  4251. * src/ActivePeerConnectionCommand.h
  4252. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4254. to make room more fleshy, recently found peers.
  4255. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4256. it.
  4257. * src/DefaultPeerStorage.cc
  4258. * test/DefaultPeerStorageTest.cc
  4259. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Returns cached data only when the previous receiveHandshake() is called
  4261. with peek = true.
  4262. * src/PeerConnection.cc (receiveHandshake)
  4263. * src/PeerConnection.h (receiveHandshake)
  4264. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Changed default value of -s option from 1 to 5.
  4266. Also max value of -s option is changed from 5 to 16.
  4267. * src/HelpItemFactory.cc
  4268. * src/OptionHandlerFactory.cc
  4269. * src/option_processing.cc
  4270. * src/usage_text.h
  4271. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Changed -s options behavior. Now it means the number of connections
  4273. made simultaneously in each http/ftp download.
  4274. If 1 URL is specified, the behavior is the same with old implementation.
  4275. If -s N is given and more than N URLs are specified, first N URLs are
  4276. used and remaining URLs are used for backup. If less than N URLs are
  4277. specified, some of URLs are used more than once so that totally N
  4278. connections are made simultaneously.
  4279. * src/main.cc
  4280. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Included missing iosfwd or ostream header.
  4282. * src/RequestGroupMan.cc
  4283. * src/TaggedItem.cc
  4284. * src/TaggedItem.h
  4285. * src/Util.cc
  4286. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4288. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4289. * src/HttpConnection.cc: Included missing sstream.
  4290. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Added --bt-max-open-files option.
  4292. * src/DefaultPieceStorage.cc
  4293. * src/HelpItemFactory.cc
  4294. * src/MultiDiskAdaptor.cc
  4295. * src/MultiDiskAdaptor.h
  4296. * src/OptionHandlerFactory.cc
  4297. * src/option_processing.cc
  4298. * src/prefs.cc
  4299. * src/prefs.h
  4300. * src/usage_text.h
  4301. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Fixed the bug that aria2 aborts when a path to a directory is given
  4303. in command-line.
  4304. * src/ProtocolDetector.cc
  4305. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Limited the number files opened in each BitTorrent download. The default
  4307. value is 100. The option to change this value will be added.
  4308. * src/MultiDiskAdaptor.cc
  4309. * src/MultiDiskAdaptor.h
  4310. * src/MultiFileAllocationIterator.cc
  4311. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Fixed the bug that HTTP downloads don't start with old libraries.
  4313. * src/HttpHeaderProcessor.cc
  4314. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. Use empty() instead of size() > 0.
  4316. * src/HttpConnection.cc
  4317. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Drop connection if the incoming peer ID is the same with localhost's
  4319. one. The previous implementation drops connection when incoming peer's
  4320. IP address is the same with localhost's one.
  4321. * src/PeerListenCommand.cc
  4322. * src/DefaultBtInteractive.cc
  4323. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Returns cached data without checking whether socket is readable
  4325. if the cache is available.
  4326. * src/PeerConnection.cc (receiveHandshake)
  4327. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Included stdint.h
  4329. * src/common.h
  4330. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Removed duplicate HAVE_GETTIMEOFDAY
  4332. * src/Makefile.am
  4333. * src/Makefile.in
  4334. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Use interval as a minInterval when minInterval is not supplied.
  4336. * src/DefaultBtAnnounce.cc
  4337. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4339. attempt is failed, then 2nd attempt get kicked out more quickly.
  4340. And it is now static const member of DefaultBtAnnounce.
  4341. * src/DefaultBtAnnounce.h
  4342. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4344. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4345. * src/ActivePeerConnectionCommand.cc
  4346. * src/BtConstants.h
  4347. * src/BtRuntime.h
  4348. * src/DHTGetPeersCommand.cc
  4349. * src/DefaultBtAnnounce.cc
  4350. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4351. BtRuntime::MAX_PEERS.
  4352. * src/DefaultPeerStorage.h
  4353. * src/InitiatorMSEHandshakeCommand.cc
  4354. * src/PeerInitiateConnectionCommand.cc
  4355. * src/PeerInteractionCommand.cc
  4356. * src/PeerReceiveHandshakeCommand.cc
  4357. * src/TrackerWatcherCommand.cc
  4358. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Always Connect to _numNewConnection
  4360. * src/ActivePeerConnectionCommand.cc
  4361. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Made `begin' unsigned int.
  4363. * src/GrowSegment.h
  4364. * src/Piece.cc
  4365. * src/Piece.h
  4366. * src/PiecedSegment.cc
  4367. * src/PiecedSegment.h
  4368. * src/Segment.h
  4369. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4370. Calculate piece hash when data is arrived if the data is arrived in
  4371. order. This removes additional read operation for hash calculation.
  4372. If the data is arrived in out of order, the hash is calucated when the
  4373. piece is completed. This is the same behavior as the old implementation.
  4374. * src/BtPieceMessage.cc
  4375. * src/DefaultBtProgressInfoFile.cc
  4376. * src/DefaultPieceStorage.cc
  4377. * src/DownloadCommand.cc
  4378. * src/DownloadCommand.h
  4379. * src/DownloadEngine.cc
  4380. * src/GrowSegment.cc
  4381. * src/GrowSegment.h
  4382. * src/Piece.cc
  4383. * src/Piece.h
  4384. * src/PiecedSegment.cc
  4385. * src/PiecedSegment.h
  4386. * src/Segment.h
  4387. * test/PieceTest.cc
  4388. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. Try to keep the ordering of outgoing piece message.
  4390. * src/DefaultBtMessageDispatcher.cc
  4391. (DefaultBtMessageDispatcher::sendMessages)
  4392. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Fixed busy loop when error/hup epoll events occur.
  4394. * src/AbstractCommand.cc
  4395. * src/PeerAbstractCommand.cc
  4396. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Added --bt-request-peer-speed-limit option, which was a constant
  4398. SLOW_SPEED_THRESHOLD.
  4399. * src/ActivePeerConnectionCommand.cc
  4400. * src/ActivePeerConnectionCommand.h
  4401. * src/BtConstants.h
  4402. * src/HelpItemFactory.cc
  4403. * src/OptionHandlerFactory.cc
  4404. * src/PeerReceiveHandshakeCommand.cc
  4405. * src/option_processing.cc
  4406. * src/prefs.cc
  4407. * src/prefs.h
  4408. * src/usage_text.h
  4409. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Removed repeated call of getTopDirPath(). Instead, call it once and
  4411. cache the result.
  4412. * src/MultiDiskAdaptor.cc
  4413. * src/MultiDiskAdaptor.h
  4414. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4415. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Fixed compile error on debian etch.
  4417. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4418. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4419. it is undefined.
  4420. * src/Util.cc (ULLONG_MAX)
  4421. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Added epoll support. Use epoll if it is available. If not, use select.
  4423. When async dns is enabled in compile time, epoll support is enabled
  4424. only when aria2 is built with c-ares. This condition statement is
  4425. defined in a2io.h.
  4426. Currently aria2 supports both c-ares and ares, but ares is maintained
  4427. for quite a while and debian already has c-ares package, ares support
  4428. will be dropped in the future version.
  4429. * configure.ac
  4430. * src/AbstractCommand.cc
  4431. * src/AsyncNameResolver.cc
  4432. * src/AsyncNameResolver.h
  4433. * src/Command.cc
  4434. * src/Command.h
  4435. * src/DownloadEngine.cc
  4436. * src/DownloadEngine.h
  4437. * src/PeerAbstractCommand.cc
  4438. * src/SocketCore.cc
  4439. * src/SocketCore.h
  4440. * src/a2io.h
  4441. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4443. directive.
  4444. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Do not do write operation to /dev/null file.
  4446. * src/LogFactory.cc
  4447. * src/SimpleLogger.cc
  4448. Replaced vasprintf with vsnprintf
  4449. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4450. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. * src/BtRequestMessage.cc
  4452. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4453. for segmentation fault caused by previous commit.
  4454. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Reduced the usage of gettimeofday().
  4456. * src/DefaultBtMessageDispatcher.cc
  4457. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4458. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4459. * src/RequestSlot.cc
  4460. * src/RequestSlot.h
  4461. (RequestSlot::isTimeout)
  4462. Made RequestSlot have a reference to Piece object to avoid find
  4463. Piece repeatedly.
  4464. * src/DefaultBtMessageDispatcher.cc
  4465. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4466. * src/RequestSlot.cc
  4467. * src/RequestSlot.h
  4468. (RequestSlot::getPiece)
  4469. * test/DefaultBtMessageDispatcherTest.cc
  4470. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. * src/TimeA2.cc
  4472. * src/TimeA2.h
  4473. (Time::difference): New function.
  4474. (Time::elapsed): Done optimization.
  4475. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4477. directive.
  4478. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. * src/option_processing.cc: Added missing `defined' keyword to #if
  4480. directive.
  4481. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. Bump up version number to 0.13.2+1
  4483. * src/configure.ac
  4484. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Refactored broken outstanding piece handling.
  4486. * src/DefaultPieceStorage.cc
  4487. * src/DefaultPieceStorage.h
  4488. * src/Piece.cc
  4489. * src/Piece.h
  4490. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4492. name collision of static variable and predefined macro.
  4493. * src/BtContext.cc
  4494. * src/BtContext.h
  4495. * src/CookieBoxFactory.cc
  4496. * src/CookieBoxFactory.h
  4497. * src/CookieParser.cc
  4498. * src/CookieParser.h
  4499. * src/DefaultBtContext.cc
  4500. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. * src/RequestGroup.cc
  4502. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4503. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. * Release 0.13.2
  4505. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4507. * po/fr.po
  4508. * po/ja.po
  4509. * po/aria2c.pot
  4510. * po/*.po
  4511. * po/*.gmo
  4512. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4513. Bump up version number to 0.13.2
  4514. * src/configure.ac
  4515. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Refactord.
  4517. * src/RequestGroupMan.cc
  4518. (removeStoppedGroup)
  4519. (fillRequestGroupFromReserver)
  4520. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Fixed compile error on Ubuntu.
  4522. * src/BtPieceMessage.cc
  4523. * src/MessageDigestHelper.cc
  4524. * src/Util.cc
  4525. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Fixed compile error when configured with --disable-bittorrent
  4527. * test/DownloadHandlerFactoryTest.cc
  4528. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Done make update-po
  4530. * po/aria2c.pot
  4531. * po/*.po
  4532. * po/*.gmo
  4533. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Bump up version number to 0.13.2rc.
  4535. * src/configure.ac
  4536. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Made option name bold. Updated SYNOPSIS to make it more readable.
  4538. * doc/aria2c.1.txt
  4539. * doc/aria2c.1
  4540. * doc/aria2c.1.html
  4541. * src/version_usage.cc
  4542. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Refactored. Use std::string instead of size and char*.
  4544. * Data.cc
  4545. * Data.h
  4546. * test/Data.cc
  4547. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Added trimSelf(). Rewritten trim() to use trimSelf().
  4549. * Util.cc
  4550. * Util.h
  4551. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4553. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Fixed compile error when configured with --disable-metalink.
  4555. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4556. * test/FeatureConfigTest.cc
  4557. * test/DownloadHandlerFactoryTest.cc
  4558. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Fixed compile error when configured with --without-gnutls
  4560. --without-openssl
  4561. * src/main.cc
  4562. * test/DefaultBtProgressInfoFileTest.cc
  4563. * test/SegmentManTest.cc
  4564. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Fixed compile error with OpenSSL.
  4566. * src/IteratableChunkChecksumValidator.cc
  4567. * src/LibsslDHKeyExchange.h
  4568. * src/MessageDigestHelper.cc
  4569. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Revert the default value of --max-concurrent-downloads to 5.
  4571. Revert the default value of --metalink-servers to 5.
  4572. Man pages was also updated.
  4573. * src/option_processing.cc
  4574. * doc/aria2c.1.txt
  4575. * doc/aria2c.1.html
  4576. * doc/aria2c.1
  4577. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Returns const reference:
  4579. DownloadContext::getPieceHash, DownloadContext::getName,
  4580. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4581. BtContext::getInfoHashAsString,
  4582. * src/BtContext.h
  4583. * src/DefaultBtContext.cc
  4584. * src/DefaultBtContext.h
  4585. * src/DownloadContext.h
  4586. * src/SingleFileDownloadContext.h
  4587. * test/MockBtContext.h
  4588. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. * src/RequestGroup.h (getDir): Removed.
  4590. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Returns const reference. The internal urlencode function was optimized
  4592. a little bit.
  4593. * src/Request.cc
  4594. * src/Request.h
  4595. * src/HttpRequest.cc
  4596. * src/HttpRequest.h
  4597. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Defined option name and possible values as std::string to reduce
  4599. temporary string object creation in runtime.
  4600. * src/HelpItemFactory.cc
  4601. * src/LogFactory.cc
  4602. * src/Option.cc
  4603. * src/OptionHandlerFactory.cc
  4604. * src/option_processing.cc
  4605. * src/prefs.cc
  4606. * src/prefs.h
  4607. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Return const reference.
  4609. * src/DownloadHandlerConstants.cc
  4610. * src/DownloadHandlerConstants.h
  4611. (getMetalinkExtensions)
  4612. (getMetalinkContentTypes)
  4613. (getBtExtensions)
  4614. (getBtContentTypes)
  4615. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. * src/HttpHeader.cc (get): Rewritten.
  4617. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. Make HttpHeader::getFirst(...) return const reference.
  4619. * src/HttpHeader.cc
  4620. * src/HttpHeader.h
  4621. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4623. it with V_TRUE.
  4624. * src/DefaultPieceStorage.cc
  4625. * src/DownloadCommand.cc
  4626. * src/FtpNegotiationCommand.cc
  4627. * src/HttpRequest.cc
  4628. * src/InitiateConnectionCommand.cc
  4629. * src/RequestGroup.cc
  4630. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Made Option::get(...) return const reference of std::string.
  4632. * src/Option.cc
  4633. * src/Option.h
  4634. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Replaced std:copy with insert.
  4636. * src/DefaultBtMessageDispatcher.cc
  4637. * src/DefaultPieceStorage.cc
  4638. * src/DownloadEngineFactory.cc
  4639. * src/RequestGroup.cc
  4640. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Included SocketCore.h to fix compiler warning.
  4642. * src/InitiateConnectionCommand.cc
  4643. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Put piece selection strategy algorithm to RarestPieceSelector class,
  4645. Added a switch to choose whether randomized selection so that unit
  4646. tests emit same results in, possibly, win32.
  4647. * src/DefaultPieceStorage.cc
  4648. * src/DefaultPieceStorage.h
  4649. * src/RarestPieceSelector.cc
  4650. * src/RarestPieceSelector.h
  4651. * test/DefaultPieceStorageTest.cc
  4652. * test/RarestPieceSelectorTest.cc
  4653. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Don't pool connection if HTTP proxy is enabled.
  4655. * src/FtpFinishDownloadCommand.cc
  4656. * src/FtpNegotiationCommand.cc
  4657. * src/HttpSkipResponseCommand.cc
  4658. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4660. * src/AbstractCommand.cc
  4661. * src/AbstractCommand.h
  4662. * src/ActivePeerConnectionCommand.cc
  4663. * src/FtpInitiateConnectionCommand.cc
  4664. * src/HttpInitiateConnectionCommand.cc
  4665. * src/InitiateConnectionCommandFactory.cc
  4666. * src/PeerAbstractCommand.cc
  4667. * src/PeerAbstractCommand.h
  4668. * src/PeerInitiateConnectionCommand.cc
  4669. * src/TrackerWatcherCommand.cc
  4670. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Sort RequestSlot in ascending order and manipulate them using
  4672. lower_bound.
  4673. * src/DefaultBtMessageDispatcher.cc
  4674. * src/DefaultBtMessageDispatcher.h
  4675. (getMessageQueue): Added const qualifier.
  4676. (getRequestSlots): Added const qualifier.
  4677. (sendMessages): Use empty() instead of size().
  4678. (doCancelSendingPieceAction): Use HandleEvent object.
  4679. (doAbortOutstandingRequestAction): Rewritten.
  4680. (doChokedAction): Rewritten.
  4681. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4682. (isOutstandingRequest): Rewritten.
  4683. (getOutstandingRequest): Rewritten.
  4684. (removeOutstandingRequest): Rewritten.
  4685. (addOutstandingRequest): Rewritten.
  4686. * src/RequestSlot.cc
  4687. * src/RequestSlot.h
  4688. (operator=): Rewritten.
  4689. (operator!=): New function.
  4690. (operator<): New function.
  4691. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. * src/DefaultBtRequestFactory.cc
  4693. (doChokedAction): Rewritten.
  4694. (removeCompletedPiece): Rewritten.
  4695. (removeTargetPiece): Rewritten.
  4696. (createRequestMessages): Added the debug log.
  4697. (createRequestMessagesOnEndGame: Added the debug log.
  4698. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. Added the debug log message.
  4700. * src/BtPieceMessage.cc (doReceivedAction)
  4701. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4703. used lower_bound to process them rather than linear search.
  4704. * src/DHTPeerAnnounceStorage.cc
  4705. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4707. peer has at least one completed piece.
  4708. * src/Peer.cc
  4709. * src/Peer.h
  4710. * src/PeerInteractionCommand.cc
  4711. * src/PeerSessionResource.cc
  4712. * src/PeerSessionResource.h
  4713. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Removed unnecessary sorting
  4715. * src/DefaultPieceStorage (DefaultPieceStorage)
  4716. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Rewritten the portion of the code that mangaes allowed fast indexes.
  4718. * src/PeerSessionResource.cc
  4719. * src/PeerSessionResource.h
  4720. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Removed the invalid string including '\r' from ru.po and
  4722. did make update-po.
  4723. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Added --log-level and --summary-interval to man page.
  4725. * doc/aria2c.1.txt
  4726. * doc/aria2c.1.html
  4727. * doc/aria2c.1
  4728. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Added --log-level option to specify log level. Log messages under
  4730. the specified level are not output. Default value is `debug'.
  4731. * src/HelpItemFactory.cc
  4732. * src/LogFactory.cc
  4733. * src/LogFactory.h
  4734. * src/Logger.h
  4735. * src/OptionHandlerFactory.cc
  4736. * src/SimpleLogger.cc
  4737. * src/SimpleLogger.h
  4738. * src/main.cc
  4739. * src/option_processing.cc
  4740. * src/prefs.h
  4741. * src/usage_text.h
  4742. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Print download progress summary of all parallel downloads in specified
  4744. interval, default 60 secs. While aria2 could download several files
  4745. in parallel (see -j option), it displayed just first download progress,
  4746. and the other downloads are hidden from the users. This new feature
  4747. prints all downloads currently in-progress to the console so that you
  4748. can check the status of all downloads. The interval can be adjusted
  4749. by --summary-interval option.
  4750. The progress readout is now cut so that all fits in the one line of
  4751. console.
  4752. * src/ConsoleStatCalc.cc
  4753. * src/ConsoleStatCalc.h
  4754. * src/HelpItemFactory.cc
  4755. * src/OptionHandlerFactory.cc
  4756. * src/RequestGroupMan.cc
  4757. * src/RequestGroupMan.h
  4758. * src/main.cc
  4759. * src/option_processing.cc
  4760. * src/prefs.h
  4761. * src/usage_text.h
  4762. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4763. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4764. * src/DownloadEngine.cc (DownloadEngine)
  4765. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4767. defined.
  4768. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4769. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Use erase+lower_bound+insert instead of sort.
  4771. * src/DefaultPieceStorage.cc (addPieceStats)
  4772. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4774. * src/A2STR.cc
  4775. * src/A2STR.h
  4776. * src/OptionParser.cc (parse)
  4777. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Defined fake filename `[tracker.announce]' as static const std::string.
  4779. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4780. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Defined default filename `index.html' as static const std::string
  4782. * src/SingleFileDownloadContext.cc
  4783. * src/SingleFileDownloadContext.h
  4784. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Defined "[MEMORY]" as static const std::string.
  4786. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4787. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Defined control file's version number as static const std::string.
  4789. * src/DefaultBtProgressInfoFile.cc
  4790. * src/DefaultBtProgressInfoFile.h
  4791. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Use Request::METHOD_GET
  4793. * src/RequestGroup.cc (createNextCommandWithAdj)
  4794. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Defined "OK", "ERR", "INPR" as static const std::string
  4796. * src/RequestGroupMan.cc (showDownloadResults)
  4797. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Defined default client used in extended handshake as static const
  4799. std::string
  4800. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4803. * src/HttpConnection.cc (eraseConfidentialInfo)
  4804. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Defined default ftp user and password as static const std::string
  4806. * src/AuthConfigFactory.cc
  4807. * src/AuthConfigFactory.h
  4808. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Defined strings used in netrc as static const std::string
  4810. * src/Netrc.cc
  4811. * src/Netrc.h
  4812. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Defined HTTP status as static const std::string
  4814. * src/AbstractProxyResponseCommand.cc
  4815. * src/HttpHeader.cc
  4816. * src/HttpHeader.h
  4817. * src/HttpResponse.cc
  4818. * src/HttpResponseCommand.cc
  4819. * src/HttpSkipResponseCommand.cc
  4820. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Defined "\r\n", "A", "I" as static const std::string
  4822. * src/A2STR.cc
  4823. * src/A2STR.h
  4824. * src/FtpConnection.cc
  4825. * src/FtpConnection.h
  4826. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4827. Added COLON_C(".") and used it in Request::parseUrl()
  4828. * src/A2STR.cc
  4829. * src/A2STR.h
  4830. * src/Request.cc (parseUrl)
  4831. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Changed the type of padName from `const std::string&' to `const char*'.
  4833. * src/MSEHandshake.cc (verifyPadLength)
  4834. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Defined "sha1" as static const std::string.
  4836. * src/MetalinkParserController.cc
  4837. * src/MetalinkParserController.h
  4838. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Defined message digest algorithm name as static const std::string
  4840. * src/DHTTokenTracker.cc
  4841. * src/DHTUtil.cc
  4842. * src/DefaultBtContext.cc
  4843. * src/MSEHandshake.cc
  4844. * src/MessageDigestHelper.cc
  4845. * src/Peer.cc
  4846. * src/messageDigest.cc
  4847. * src/messageDigest.h
  4848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Made string literals used in SAX parser static const std::string.
  4850. * src/FileMetalinkParserState.cc
  4851. * src/FileMetalinkParserState.h
  4852. * src/FilesMetalinkParserState.cc
  4853. * src/FilesMetalinkParserState.h
  4854. * src/InitialMetalinkParserState.cc
  4855. * src/InitialMetalinkParserState.h
  4856. * src/MetalinkMetalinkParserState.cc
  4857. * src/MetalinkMetalinkParserState.h
  4858. * src/PiecesMetalinkParserState.cc
  4859. * src/PiecesMetalinkParserState.h
  4860. * src/ResourcesMetalinkParserState.cc
  4861. * src/ResourcesMetalinkParserState.h
  4862. * src/VerificationMetalinkParserState.cc
  4863. * src/VerificationMetalinkParserState.h
  4864. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4866. * src/A2STR.cc
  4867. * src/A2STR.h
  4868. * src/File.cc
  4869. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Defined static const std::string IP("ip"), PORT("port") and use them
  4871. instead of string literals.
  4872. * src/DefaultPeerListProcessor.cc
  4873. * src/DefaultPeerListProcessor.h
  4874. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Made string literals for torrent file processing static const
  4876. std::string.
  4877. * src/BtContext.cc
  4878. * src/BtContext.h
  4879. * src/DefaultBtContext.cc
  4880. * src/DefaultBtContext.h
  4881. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Made string literal for tracker response static const std::string
  4883. * src/BtAnnounce.cc
  4884. * src/BtAnnounce.h
  4885. * src/DefaultBtAnnounce.cc
  4886. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Use DHTMessage::T instead of "t".
  4888. * src/DHTMessageTracker.cc (messageArrived)
  4889. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. Made keyName static const. Made trimmed charset static const
  4891. std::string.
  4892. * src/Util.cc (getContentDispositionFilename)
  4893. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Made USER_AGENT const. Made "/" static const std::string.
  4895. * src/A2STR.cc
  4896. * src/A2STR.h
  4897. * src/HttpRequest.cc
  4898. * src/HttpRequest.h
  4899. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Made string listeral to static const std::string:
  4901. "Content-Range", "Content-Length"
  4902. * src/HttpHeader.cc
  4903. * src/HttpHeader.h
  4904. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Made string listeral to static const std::string.
  4906. * src/HttpConnection.cc
  4907. * src/HttpHeader.cc
  4908. * src/HttpHeader.h
  4909. * src/HttpResponse.cc
  4910. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Made string listeral to static const std::string.
  4912. * src/A2STR.cc
  4913. * src/A2STR.h
  4914. * src/SimpleLogger.cc
  4915. * src/SimpleLogger.h
  4916. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Made string literal to static const std::string.
  4918. Rewritten CookieParser::setField.
  4919. * src/A2STR.cc
  4920. * src/A2STR.h
  4921. * src/CookieBoxFactory.cc
  4922. * src/CookieBoxFactory.h
  4923. * src/CookieParser.cc
  4924. * src/CookieParser.h
  4925. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Made string literal to static const std::string
  4927. * src/DHTAbstractMessage.cc
  4928. * src/DHTAnnouncePeerMessage.cc
  4929. * src/DHTAnnouncePeerMessage.h
  4930. * src/DHTAnnouncePeerReplyMessage.cc
  4931. * src/DHTAnnouncePeerReplyMessage.h
  4932. * src/DHTFindNodeMessage.cc
  4933. * src/DHTFindNodeMessage.h
  4934. * src/DHTFindNodeReplyMessage.cc
  4935. * src/DHTFindNodeReplyMessage.h
  4936. * src/DHTGetPeersMessage.cc
  4937. * src/DHTGetPeersMessage.h
  4938. * src/DHTGetPeersReplyMessage.cc
  4939. * src/DHTGetPeersReplyMessage.h
  4940. * src/DHTMessage.cc
  4941. * src/DHTMessage.h
  4942. * src/DHTMessageFactoryImpl.cc
  4943. * src/DHTMessageReceiver.cc
  4944. * src/DHTPingMessage.cc
  4945. * src/DHTPingMessage.h
  4946. * src/DHTPingReplyMessage.cc
  4947. * src/DHTPingReplyMessage.h
  4948. * src/DHTQueryMessage.cc
  4949. * src/DHTQueryMessage.h
  4950. * src/DHTResponseMessage.cc
  4951. * src/DHTResponseMessage.h
  4952. * src/DHTUnknownMessage.cc
  4953. * src/DHTUnknownMessage.h
  4954. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. Made string literal to static const std::string
  4956. * src/BtChokeMessage.cc (toString)
  4957. * src/BtHaveAllMessage.cc (toString)
  4958. * src/BtHaveNoneMessage.cc (toString)
  4959. * src/BtInterestedMessage.cc (toString)
  4960. * src/BtNotInterestedMessage.cc (toString)
  4961. * src/BtUnchokeMessage.cc (toString)
  4962. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Replaced "" with static const variable A2STR::NIL.
  4964. Replaced string comparison against "" with std::string::empty().
  4965. Added PROTO_* to Request class and use them as a protocol string
  4966. constant.
  4967. Made "started", "stopped", "completed" static const variable in
  4968. AnnounceList class.
  4969. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Updated translations. Great thanks to translators.
  4971. * po/ca.po
  4972. * po/de.po
  4973. * po/fr.po
  4974. * po/it.po
  4975. * po/ja.po
  4976. * po/ru.po
  4977. * po/zh_CN.po
  4978. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Updated man page; categorized options and fixed typo.
  4980. * doc/aria2c.1.txt
  4981. * doc/aria2c.1.html
  4982. * doc/aria2c.1
  4983. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Removed const ref
  4985. * src/MetalinkEntry.cc (AddProtocolPreference)
  4986. * src/RequestGroup.cc (FindServerHostByHostname)
  4987. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Rewritten Accept-Features handling.
  4989. * src/HttpRequestCommand.cc (createHttpRequest)
  4990. * src/a2functional.h
  4991. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Changed method signature:
  4993. DHTAbstractNodeLookupTask::toEntries
  4994. * src/DHTAbstractNodeLookupTask.cc
  4995. * src/DHTAbstractNodeLookupTask.h
  4996. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Changed method signature:
  4998. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4999. * src/BtContext.h
  5000. * src/DefaultBtContext.cc
  5001. * src/DefaultBtContext.h
  5002. * src/DefaultBtInteractive.cc
  5003. * test/DefaultBtContextTest.cc
  5004. * test/MockBtContext.h
  5005. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Changed method signature:
  5007. MultiFileAllocationIterator::makeDiskWriterEntries
  5008. * src/MultiFileAllocationIterator.cc
  5009. * src/MultiFileAllocationIterator.h
  5010. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Changed method sinature:
  5012. MetalinkEntry::toFileEntry,
  5013. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5014. Metalinker::queryEntry
  5015. * src/Metalink2RequestGroup.cc
  5016. * src/MetalinkEntry.cc
  5017. * src/MetalinkEntry.h
  5018. * src/MetalinkHelper.cc
  5019. * src/MetalinkHelper.h
  5020. * src/Metalinker.cc
  5021. * src/Metalinker.h
  5022. * src/main.cc
  5023. * test/MetalinkHelperTest.cc
  5024. * test/MetalinkerTest.cc
  5025. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Changed method sinature:
  5027. RequestGroup::getURIs
  5028. * src/RequestGroup.cc
  5029. * src/RequestGroup.h
  5030. * test/Metalink2RequestGroupTest.cc
  5031. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Changed method signature:
  5033. PeerListProcessor::extractPeer
  5034. * src/CompactPeerListProcessor.cc
  5035. * src/CompactPeerListProcessor.h
  5036. * src/DefaultBtAnnounce.cc
  5037. * src/DefaultPeerListProcessor.cc
  5038. * src/DefaultPeerListProcessor.h
  5039. * src/DelegatingPeerListProcessor.cc
  5040. * src/DelegatingPeerListProcessor.h
  5041. * src/PeerListProcessor.h
  5042. * src/UTPexExtensionMessage.cc
  5043. * test/DefaultPeerListProcessorTest.cc
  5044. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Changed method signature:
  5046. BtRequestFactory::createRequestMessages,
  5047. BtRequestFactory::createRequestMessagesOnEndGame
  5048. * src/BtRequestFactory.h
  5049. * src/DefaultBtInteractive.cc
  5050. * src/DefaultBtRequestFactory.cc
  5051. * src/DefaultBtRequestFactory.h
  5052. * test/DefaultBtRequestFactoryTest.cc
  5053. * test/MockBtRequestFactory.h
  5054. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Changed method signature:
  5056. PieceStorage::getInFlightPieces
  5057. * src/DefaultBtProgressInfoFile.cc
  5058. * src/DefaultPieceStorage.cc
  5059. * src/DefaultPieceStorage.h
  5060. * src/PieceStorage.h
  5061. * src/UnknownLengthPieceStorage.cc
  5062. * src/UnknownLengthPieceStorage.h
  5063. * test/DefaultBtProgressInfoFileTest.cc
  5064. * test/MockPieceStorage.h
  5065. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Changed method signature:
  5067. PostDownloadHandler::getNextRequestGroups
  5068. Metalink2RequestGroup::generate
  5069. RequestGroup::postDownloadProcessing
  5070. * src/BtPostDownloadHandler.cc
  5071. * src/BtPostDownloadHandler.h
  5072. * src/Metalink2RequestGroup.cc
  5073. * src/Metalink2RequestGroup.h
  5074. * src/MetalinkPostDownloadHandler.cc
  5075. * src/MetalinkPostDownloadHandler.h
  5076. * src/PostDownloadHandler.h
  5077. * src/RequestGroup.cc
  5078. * src/RequestGroup.h
  5079. * src/RequestGroupMan.cc
  5080. * src/main.cc
  5081. * test/BtPostDownloadHandlerTest.cc
  5082. * test/Metalink2RequestGroupTest.cc
  5083. * test/MetalinkPostDownloadHandlerTest.cc
  5084. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Rewritten AccRequestGroup
  5086. * src/main.cc
  5087. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Rewritten.
  5089. * src/TaggedItem.cc (toTagString)
  5090. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Rewritten Accept-Features handling.
  5092. * src/HttpRequestCommand.cc (createHttpRequest)
  5093. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Rewritten accept types handling.
  5095. * HttpRequest.cc (createRequest)
  5096. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Rewritten
  5098. * src/FeatureConfig.cc (featureSummary)
  5099. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Changed method signature:
  5101. PeerStorage::getActivePeers
  5102. * src/DHTPeerAnnounceEntry.cc
  5103. * src/DefaultPeerStorage.cc
  5104. * src/DefaultPeerStorage.h
  5105. * src/PeerStorage.h
  5106. * test/DefaultPeerStorageTest.cc
  5107. * test/MockPeerStorage.h
  5108. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Changed method signature:
  5110. DHTPeerAnnounceStorage::getPeers,
  5111. DHTPeerAnnounceEntry::getPeers
  5112. * src/DHTGetPeersMessage.cc
  5113. * src/DHTPeerAnnounceEntry.cc
  5114. * src/DHTPeerAnnounceEntry.h
  5115. * src/DHTPeerAnnounceStorage.cc
  5116. * src/DHTPeerAnnounceStorage.h
  5117. * test/DHTAnnouncePeerMessageTest.cc
  5118. * test/DHTPeerAnnounceEntryTest.cc
  5119. * test/DHTPeerAnnounceStorageTest.cc
  5120. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Changed method signature:
  5122. NameResolver::resolve
  5123. * src/DHTEntryPointNameResolveCommand.cc
  5124. * src/InitiateConnectionCommand.cc
  5125. * src/NameResolver.cc
  5126. * src/NameResolver.h
  5127. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Changed method signature:
  5129. PieceStorage::getAdvertisedPieceIndexes
  5130. * src/DefaultBtInteractive.cc
  5131. * src/DefaultPieceStorage.cc
  5132. * src/DefaultPieceStorage.h
  5133. * src/PieceStorage.h
  5134. * src/UnknownLengthPieceStorage.h
  5135. * test/MockPieceStorage.h
  5136. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5137. Changed method signature:
  5138. SegmentMan::getInFlightSegment
  5139. * src/AbstractCommand.cc
  5140. * src/SegmentMan.cc
  5141. * src/SegmentMan.h
  5142. * test/SegmentManTest.cc
  5143. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Changed method signature:
  5145. DHTAbstractNodeLookupTask::getNodesFromMessage
  5146. * src/DHTAbstractNodeLookupTask.cc
  5147. * src/DHTAbstractNodeLookupTask.h
  5148. * src/DHTNodeLookupTask.cc
  5149. * src/DHTNodeLookupTask.h
  5150. * src/DHTPeerLookupTask.cc
  5151. * src/DHTPeerLookupTask.h
  5152. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5154. * src/AbstractCommand.cc
  5155. * src/BtCheckIntegrityEntry.cc
  5156. * src/BtCheckIntegrityEntry.h
  5157. * src/BtFileAllocationEntry.cc
  5158. * src/BtFileAllocationEntry.h
  5159. * src/BtSetup.cc
  5160. * src/BtSetup.h
  5161. * src/CheckIntegrityCommand.cc
  5162. * src/CheckIntegrityEntry.h
  5163. * src/ChecksumCheckIntegrityEntry.cc
  5164. * src/ChecksumCheckIntegrityEntry.h
  5165. * src/DHTSetup.cc
  5166. * src/DHTSetup.h
  5167. * src/DownloadEngine.cc
  5168. * src/FileAllocationCommand.cc
  5169. * src/FileAllocationEntry.h
  5170. * src/RequestGroup.cc
  5171. * src/RequestGroup.h
  5172. * src/RequestGroupMan.cc
  5173. * src/RequestGroupMan.h
  5174. * src/StreamCheckIntegrityEntry.cc
  5175. * src/StreamCheckIntegrityEntry.h
  5176. * src/StreamFileAllocationEntry.cc
  5177. * src/StreamFileAllocationEntry.h
  5178. * src/TrackerWatcherCommand.cc
  5179. * src/a2functional.h
  5180. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Changed method signature:
  5182. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5183. DHTBucket::getGoodNodes,
  5184. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5185. * src/BNode.cc
  5186. * src/BNode.h
  5187. * src/DHTAbstractNodeLookupTask.cc
  5188. * src/DHTAutoSaveCommand.cc
  5189. * src/DHTBucket.cc
  5190. * src/DHTBucket.h
  5191. * src/DHTBucketRefreshTask.cc
  5192. * src/DHTFindNodeMessage.cc
  5193. * src/DHTGetPeersMessage.cc
  5194. * src/DHTRoutingTable.cc
  5195. * src/DHTRoutingTable.h
  5196. * test/BNodeTest.cc
  5197. * test/DHTBucketTest.cc
  5198. * test/DHTRoutingTableTest.cc
  5199. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. In piece selection functions, Pass std::deque<...> by reference rather
  5201. than returning it.
  5202. * src/BitfieldMan.cc
  5203. * src/BitfieldMan.h
  5204. * src/DefaultBtRequestFactory.cc
  5205. * src/DefaultPieceStorage.cc
  5206. * src/Piece.cc
  5207. * src/Piece.h
  5208. * test/BitfieldManTest.cc
  5209. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Implemented rarest piece first piece selection strategy.
  5211. * src/AbstractBtMessage.cc
  5212. * src/AbstractBtMessage.h
  5213. * src/BitfieldMan.cc
  5214. * src/BitfieldMan.h
  5215. * src/BtBitfieldMessage.cc
  5216. * src/BtHaveAllMessage.cc
  5217. * src/BtHaveMessage.cc
  5218. * src/DefaultPieceStorage.cc
  5219. * src/DefaultPieceStorage.h
  5220. * src/PeerInteractionCommand.cc
  5221. * src/PieceStorage.h
  5222. * src/UnknownLengthPieceStorage.h
  5223. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Rewritten readData and writeData.
  5225. * src/MultiDiskAdaptor.cc
  5226. * src/MultiDiskAdaptor.h
  5227. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Move \n out of the message "Usage: ...".
  5229. * src/version_usage.cc
  5230. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Bump up version number to 0.13.2b.
  5232. * configure.ac
  5233. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Added const qualifier to argument Exception& e.
  5235. * src/Logger.h
  5236. * src/SimpleLogger.cc
  5237. * src/SimpleLogger.h
  5238. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Pool connection when CWD, SIZE command fails.
  5240. * src/FtpNegotiationCommand.cc
  5241. * src/FtpNegotiationCommand.h
  5242. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5244. * src/HttpResponseCommand.cc
  5245. * src/HttpSkipResponseCommand.cc
  5246. * src/HttpSkipResponseCommand.h
  5247. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Pool connection when a server returns 4xx, 5xx responses.
  5249. * src/HttpNullDownloadCommand.cc
  5250. * src/HttpNullDownloadCommand.h
  5251. * src/HttpResponse.cc
  5252. * src/HttpResponse.h
  5253. * src/HttpResponseCommand.cc
  5254. * src/HttpResponseCommand.h
  5255. * test/HttpResponseTest.cc
  5256. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Print usage when no URL is specifed or bad command-line option is
  5258. specified.
  5259. * src/HelpItemFactory.cc
  5260. * src/help_tags.h
  5261. * src/option_processing.cc
  5262. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Removed duplicate log message.
  5264. * src/AbstractCommand.cc (asyncResolveHostname)
  5265. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5267. Changed -j option's default value from 5 to 1.
  5268. Added new examples using protocol auto detection feature.
  5269. Removed -T, -M usage where it can be omitted.
  5270. * doc/aria2c.1.txt
  5271. * doc/aria2c.1.html
  5272. * doc/aria2c.1.txt
  5273. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. Updated command-line usage text, so that it tells users that they
  5275. can specify any number of torrent files and metalink files in
  5276. command-line.
  5277. * src/version_usage.cc
  5278. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Changed the default value of -j option to 1.
  5280. * src/HelpItemFactory.cc
  5281. * src/option_processing.cc
  5282. * src/usage_text.h
  5283. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Added the ability to reuse connection in FTP and it is enabled by
  5285. default. It can be disabled by --ftp-reuse-connection=false option.
  5286. * src/Command.cc
  5287. * src/DownloadCommand.cc
  5288. * src/FtpDownloadCommand.cc
  5289. * src/FtpDownloadCommand.h
  5290. * src/FtpFinishDownloadCommand.cc
  5291. * src/FtpFinishDownloadCommand.h
  5292. * src/FtpInitiateConnectionCommand.cc
  5293. * src/FtpNegotiationCommand.cc
  5294. * src/FtpNegotiationCommand.h
  5295. * src/HelpItemFactory.cc
  5296. * src/Makefile.am
  5297. * src/Makefile.in
  5298. * src/OptionHandlerFactory.cc
  5299. * src/option_processing.cc
  5300. * src/prefs.h
  5301. * src/usage_text.h
  5302. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Call Command::transitStatus() before calling Command::execute(),
  5304. so that the status change made in execute() is not cleared.
  5305. * src/DownloadEngine.cc
  5306. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Removed forward declaration of SocketCore class.
  5308. * src/HttpDownloadCommand.h
  5309. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5311. in InitiateConnectionCommandFactory. They should be set only when
  5312. the protocol is HTTP or HTTPS.
  5313. * src/InitiateConnectionCommandFactory.cc
  5314. * src/RequestGroup.cc
  5315. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Fixed infinite loop in checksum checking.
  5317. * src/IteratableChecksumValidator.cc
  5318. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Set _supportsPersistentConnection to true by default.
  5320. * src/Request.cc
  5321. * src/RequestGroup.cc
  5322. * test/HttpRequestTest.cc
  5323. * test/RequestTest.cc
  5324. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Added timeout to socket pool. The default timeout is 15 seconds,
  5326. which is the same value Apache uses.
  5327. * src/DownloadEngine.cc
  5328. * src/DownloadEngine.h
  5329. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Fixed misuse of multimap::find()
  5331. * src/HttpHeader.cc
  5332. * test/HttpHeaderTest.cc
  5333. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5335. option.
  5336. The asynchronous DNS is not capable of IPv6 yet.
  5337. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5338. least for HTTP download.
  5339. * src/AbstractCommand.cc
  5340. * src/AbstractCommand.h
  5341. * src/AsyncNameResolver.cc
  5342. * src/AsyncNameResolver.h
  5343. * src/DHTEntryPointNameResolveCommand.cc
  5344. * src/DHTEntryPointNameResolveCommand.h
  5345. * src/DownloadEngine.cc
  5346. * src/DownloadEngine.h
  5347. * src/FtpInitiateConnectionCommand.cc
  5348. * src/FtpInitiateConnectionCommand.h
  5349. * src/HelpItemFactory.cc
  5350. * src/HttpInitiateConnectionCommand.cc
  5351. * src/HttpInitiateConnectionCommand.h
  5352. * src/InitiateConnectionCommand.cc
  5353. * src/InitiateConnectionCommand.h
  5354. * src/Makefile.am
  5355. * src/Makefile.in
  5356. * src/NameResolver.cc
  5357. * src/NameResolver.h
  5358. * src/OptionHandlerFactory.cc
  5359. * src/SocketCore.cc
  5360. * src/SocketCore.h
  5361. * src/Util.cc
  5362. * src/Util.h
  5363. * src/option_processing.cc
  5364. * src/prefs.h
  5365. * src/usage_text.h
  5366. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Updated man page: --quiet, --header were added.
  5368. --metalink-servers and --enable-http-keep-alive option were updated.
  5369. * doc/aria2c.1
  5370. * doc/aria2c.1.html
  5371. * doc/aria2c.1.txt
  5372. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Enable HTTP keep-alive by default.
  5374. * src/HelpItemFactory.cc
  5375. * src/option_processing.cc
  5376. * src/usage_text.h
  5377. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Disable http keep-alive if the remote server is not HTTP/1.1.
  5379. * src/HttpConnection.cc
  5380. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. Receive content body of 302 response so that the connection can be
  5382. reused later when http keep-alive is enabled.
  5383. * src/HttpNullDownloadCommand.cc
  5384. * src/HttpNullDownloadCommand.h
  5385. * src/HttpResponseCommand.cc
  5386. * src/HttpResponseCommand.h
  5387. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. const SharedHandle<Request> -> const SharedHandle<Request>&
  5389. * src/FtpDowndloadCommand.cc
  5390. * src/FtpDowndloadCommand.h
  5391. * src/HttpDownloadCommand.cc
  5392. * src/HttpDownloadCommand.h
  5393. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Fixed the bug that the control file(.aria2 file) is not renamed
  5395. according to tryAutoFileRenaming().
  5396. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5397. its control file exist, use them and continue download.
  5398. The old implementation didn't take into account of control file's
  5399. existence, so basically you couldn't continue download of renamed file.
  5400. * src/BtProgressInfoFile.h
  5401. * src/DefaultBtProgressInfoFile.cc
  5402. * src/DefaultBtProgressInfoFile.h
  5403. * src/NullProgressInfoFile.h
  5404. * src/RequestGroup.cc
  5405. * test/DefaultBtProgressInfoFileTest.cc
  5406. * test/MockBtProgressInfoFile.h
  5407. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Change the default value of --metalink-servers option from `5' to `1'.
  5409. * src/HelpItemFactory.cc
  5410. * src/option_processing.cc
  5411. * src/usage_text.h
  5412. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Reimplemented transparent metalink using Accept request header.
  5414. * src/HttpRequest.cc
  5415. * src/HttpRequest.h
  5416. * src/HttpRequestCommand.cc
  5417. * src/Metalink2RequestGroup.cc
  5418. * src/RequestGroup.cc
  5419. * src/RequestGroup.h
  5420. * test/HttpRequestTest.cc
  5421. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Bump up version number to 0.13.2a
  5423. * configure.ac
  5424. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Updated configure.ac using the result of autoscan.
  5426. * configure.ac
  5427. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Fixed compilation error without gcrypt/openssl.
  5429. * src/DownloadCommand.cc
  5430. * src/DownloadCommand.h
  5431. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Reorganized version information so that it can be displayed in a
  5433. standard terminal screen without scrolling.
  5434. Removed http, ftp from Configuration section, because they are always
  5435. enabled.
  5436. * src/FeatureConfig.cc
  5437. * src/FeatureConfig.h
  5438. * src/main.cc
  5439. * src/messageDigest.cc
  5440. * src/messageDigest.h
  5441. * src/version_usage.cc
  5442. * test/FeatureConfigTest.cc
  5443. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Masked user ID in log.
  5445. * src/FtpConnection.cc (sendUser)
  5446. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Removed query part from filename in HTTP download. The query part means
  5448. the substring after "?" in URL. Firefox seems do the same thing.
  5449. A query part is sometimes very long and not suitable to filename,
  5450. so I think it is better to remove it from filename.
  5451. * src/HttpRequest.cc
  5452. * src/HttpRequest.h
  5453. * src/Request.cc
  5454. * src/Request.h
  5455. * test/HttpRequestTest.cc
  5456. * test/RequestTest.cc
  5457. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Rewritten Exception class. Throw exception object, not its pointer and
  5459. catch by reference, so that remove problematic delete operator for
  5460. catched exception.
  5461. * src/Exception.cc
  5462. * src/Exception.h
  5463. * test/ExceptionTest.cc
  5464. * src/*: All files throwing/catching exception.
  5465. * test/*: All files throwing/catching exception.
  5466. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Now auto protocol detection is enabled without -Z option.
  5468. But there is a important difference between with/without -Z optoin.
  5469. For example, if you type:
  5470. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5471. then, aria2 interprets there are 3 request groups:
  5472. (1) http://host/file, http://mirror/file <-- multi-source download
  5473. (2) file1.torrent
  5474. (3) file2.metalink
  5475. On the other hand, if you invoke above command with -Z option, it is
  5476. interpreted as 4 request groups:
  5477. (1) http://host/file
  5478. (2) file1.torrent
  5479. (3) file2.metalink
  5480. (4) http://mirror/file
  5481. I think usually user don't mix multi-source URLs and torrent files, so
  5482. there is no big problem here.
  5483. * src/main.cc
  5484. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Fixed the bug that causes segmentaion fault when reading XML containing
  5486. unescapsed character like '&'.
  5487. Also a modification was made which avoids adding unnecessary
  5488. characters stack and appending unused string.
  5489. * src/ExpatMetalinkProcessor.cc
  5490. * src/FileMetalinkParserState.h
  5491. * src/FilesMetalinkParserState.h
  5492. * src/FinMetalinkParserState.h
  5493. * src/HashMetalinkParserState.h
  5494. * src/InitialMetalinkParserState.h
  5495. * src/LanguageMetalinkParserState.h
  5496. * src/MetalinkMetalinkParserState.h
  5497. * src/MetalinkParserState.h
  5498. * src/MetalinkParserStateMachine.cc
  5499. * src/MetalinkParserStateMachine.h
  5500. * src/OSMetalinkParserState.h
  5501. * src/PieceHashMetalinkParserState.h
  5502. * src/PiecesMetalinkParserState.h
  5503. * src/ResourcesMetalinkParserState.h
  5504. * src/SizeMetalinkParserState.h
  5505. * src/SkipTagMetalinkParserState.h
  5506. * src/URLMetalinkParserState.h
  5507. * src/VerificationMetalinkParserState.h
  5508. * src/VersionMetalinkParserState.h
  5509. * src/XML2SAXMetalinkProcessor.cc
  5510. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Added StringFormat class, which internally calls vasprintf.
  5512. operator<< is defined for this class, so it can be used with iostream
  5513. classes nicely. SimpleLogger and following functions are rewritten
  5514. using StringFormat class.
  5515. Besides, now Logger class's methods are non-const, many classes
  5516. that has a const Logger* as a member variable are modified to remove
  5517. const qualifier from the variable declaration.
  5518. * src/HelpItemFactory.cc
  5519. * src/Request.cc
  5520. * src/SimpleLogger.cc
  5521. * src/StringFormat.cc
  5522. * src/StringFormat.h
  5523. * src/Util.cc
  5524. * src/option_processing.cc
  5525. * src/version_usage.cc
  5526. * test/StringFormatTest.cc
  5527. * src/*.h: The classes that has const Logger* as a member variable.
  5528. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5530. failed. Also fixed memory link when exception is thrown there.
  5531. * src/main.cc (AccRequestGroup)
  5532. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Added build-in "Accept-Features" support. For now only "metalink" is
  5534. used in this header field.
  5535. This "metalink" value is removed from the list when connecting URLs
  5536. fed by metalink file to avoid loop in "transparent" metlaink.
  5537. * src/HttpRequest.cc
  5538. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5539. header is also held in this variable. Also renamed setUserHeaders as
  5540. addHeader and it was rewritten to add header not just to clear the old
  5541. value.
  5542. * src/HttpRequestCommand.cc
  5543. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5544. from "Accept-Features" list.
  5545. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5546. default.
  5547. * src/RequestGroup.h
  5548. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5549. * src/a2functional.h: Included <string> because Concat class depends on
  5550. it.
  5551. * test/HttpRequestTest.cc
  5552. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Added comment
  5554. * src/RequestGroup.cc (createNextCommand)
  5555. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Capitalized METHOD_GET and METHOD_HEAD
  5557. * src/Request.cc
  5558. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Added getDownloadResults() method
  5560. * src/RequestGroupMan.cc
  5561. * src/RequestGroupMan.h
  5562. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Fixed the bug that aria2 exits when commands is empty() but
  5564. _routineCommands are not.
  5565. * src/DownloadEngine.cc
  5566. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. Use the default value pulled from Option object in HelpItemFactory.
  5568. except options whose defualt value is embedded in a usage text.
  5569. * src/HelpItemFactory.cc
  5570. * src/HelpItemFactory.h
  5571. * src/option_processing.cc
  5572. * src/version_usage.cc
  5573. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Added --quiet option to make aria2 quiet (no console output).
  5575. --quiet option is tagged with ADVANCED.
  5576. * src/HelpItemFactory.cc
  5577. * src/LogFactory.cc
  5578. * src/LogFactory.h
  5579. * src/MultiUrlRequestInfo.cc
  5580. * src/MultiUrlRequestInfo.h
  5581. * src/NullStatCalc.h: New class. This class prints nothing.
  5582. * src/OptionHandlerFactory.cc
  5583. * src/main.cc
  5584. * src/option_processing.cc
  5585. * src/prefs.h
  5586. * src/usage_text.h
  5587. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5589. * src/HelpItemFactory.cc (createHelpItems):
  5590. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Fixed compilation error in ExpatMetalinkProcessor.cc
  5592. * src/ExpatMetalinkProcessor.cc
  5593. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Reuse socket if the origin server supports HTTP keep-alive and
  5595. --enable-http-keep-alive or --enable-http-pipelining is given.
  5596. The current implementation doesn't reuse the connections established
  5597. against proxy server.
  5598. * src/AbstractCommand.cc
  5599. * src/DownloadEngine.cc
  5600. * src/DownloadEngine.h
  5601. * src/HttpDownloadCommand.cc
  5602. * src/HttpInitiateConnectionCommand.cc
  5603. * src/HttpResponseCommand.cc
  5604. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5605. Rewritten HTTP keep-alive and pipelining routine.
  5606. * src/AbstractCommand.cc
  5607. * src/HttpConnection.cc
  5608. * src/HttpDownloadCommand.cc
  5609. * src/HttpRequest.cc
  5610. * src/HttpRequestCommand.cc
  5611. * src/HttpResponseCommand.cc
  5612. * src/Request.cc
  5613. * src/Request.h
  5614. * src/RequestGroup.cc
  5615. * test/HttpRequestTest.cc
  5616. * test/HttpResponseTest.cc
  5617. * test/RequestTest.cc
  5618. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5619. Added missing setUserHeaders call
  5620. * src/HttpRequestCommand.cc
  5621. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5623. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5624. waste of time because it is more likey false.
  5625. * src/FileAllocationDispatcherCommand.cc (execute)
  5626. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Now HTTP status and version are a member variable of HttpHeader.
  5628. HTTP status is processed as a string, not integer.
  5629. * src/AbstractProxyResponseCommand.cc
  5630. * src/HttpConnection.cc
  5631. * src/HttpHeader.cc
  5632. * src/HttpHeader.h
  5633. * src/HttpHeaderProcessor.cc
  5634. * src/HttpHeaderProcessor.h
  5635. * src/HttpResponse.cc
  5636. * src/HttpResponse.h
  5637. * test/HttpHeaderProcessorTest.cc
  5638. * test/HttpResponseTest.cc
  5639. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Added --header option. You can specify any number of additional HTTP headers
  5641. like:
  5642. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5643. Unlike other commad-line option, you can use --header option multiple times.
  5644. * src/HelpItemFactory.cc
  5645. * src/HttpRequest.{cc, h}
  5646. * src/HttpRequestCommand.cc
  5647. * src/OptionHandlerFactory.cc
  5648. * src/OptionHandlerImpl.h
  5649. * src/option_processing.cc
  5650. * src/prefs.h
  5651. * src/usage_text.h
  5652. * test/HttpRequestTest.cc (testUserHeaders)
  5653. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Eliminates the time lag between sequential downloads and commands in
  5655. the same RequestGroup.
  5656. In old implementation, aria2 occasionally waits 1 seconds before
  5657. executing next command or RequestGroup.
  5658. This is really a waste of time, and new implementation eliminates
  5659. this unnecessary time lag.
  5660. * src/AbstractCommand.cc
  5661. * src/AutoSaveCommand.cc
  5662. * src/CheckIntegrityCommand.cc
  5663. * src/Command.{cc, h}
  5664. * src/DownloadEngine.{cc, h}
  5665. * src/DownloadEngineFactory.cc
  5666. * src/FileAllocationCommand.cc
  5667. * src/FileAllocationDispatcherCommand.cc
  5668. * src/FillRequestGroupCommand.cc
  5669. * src/FtpInitiateConnectionCommand.cc
  5670. * src/HaveEraseCommand.cc
  5671. * src/HttpInitiateConnectionCommand.cc
  5672. * src/HttpResponseCommand.cc
  5673. * src/RealtimeCommand.cc
  5674. * src/RequestGroup.cc
  5675. * src/RequestGroupMan.cc
  5676. * src/StreamFileAllocationEntry.cc
  5677. * src/TimeBasedCommand.{cc, h}
  5678. * src/TimedHaltCommand.cc
  5679. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5681. keyword explicit and SharedHandle's default constructor initializes
  5682. its internal obj to null, old implementation initializes it using
  5683. obj's default constructor.
  5684. To assign null, write SharedHandle<T> x(...); x.reset();
  5685. TODO: test/SharedHandleTest.cc needs more tests.
  5686. * src/SharedHandle.h
  5687. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Fixed type in man page.
  5689. * doc/aria2c.1.txt
  5690. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5692. * src/SimpleLogger.{cc, h}
  5693. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Implemented auto protocol detection.
  5695. Now you can do:
  5696. aria2c -Z http://host/file file1.torrent file2.metalink
  5697. (Note: -Z option is required for auto protcol detection.)
  5698. Then aria2c downloads 3 files simultaneously:
  5699. 1. http://host/file
  5700. 2. file1.torrent <-- read local torrent file
  5701. 3. file2.metalink <-- read local Metalink file.
  5702. Same thing goes with -i option. Assume your uris.txt contans:
  5703. http://host/file
  5704. file1.torrent
  5705. file2.metalink
  5706. Then you can do: aria2c -i uris.txt
  5707. (Note: -Z option is not needed if -i option is given.)
  5708. * src/main.cc
  5709. * src/ProtocolDetector.{cc, h}
  5710. * test/ProtocolDetectorTest.cc
  5711. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5713. installed
  5714. * src/ARC4Encryptor.h
  5715. * src/ARC4Decryptor.h
  5716. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5717. Renamed argument from 'errno' to 'err', since errno is confused with
  5718. errno defined in errno.h.
  5719. * src/LibgcryptARC4Decryptor.h
  5720. * src/LibgcryptARC4Context.h
  5721. * src/LibgcryptDHKeyExchange.h
  5722. * src/LibgcryptARC4Encryptor.h
  5723. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Rewritten choking algorithm.
  5725. * src/PeerChokeCommand.{cc, h}
  5726. * src/BtInterestedMessage.cc
  5727. * src/PeerSessionResource.{cc, h}
  5728. * src/DefaultPeerStorage.{cc, h}
  5729. * src/BtNotInterestedMessage.cc
  5730. * src/DefaultBtMessageDispatcher.{cc, h}
  5731. * src/BtMessageDispatcher.h
  5732. * src/Peer.{cc, h}
  5733. * src/BtLeecherStateChoke.{cc, h}
  5734. * src/BtSetup.cc
  5735. * src/BtSeederStateChoke.{cc, h}
  5736. * src/PeerStorage.h
  5737. * test/MockPeerStorage.h
  5738. * test/MockBtMessageDispatcher.h
  5739. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Fixed compilation error on x84-64 platform.
  5741. * src/AuthConfig.cc: Included ostream.
  5742. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Rewritten getBasename() and getDirname(), without standard library
  5744. basename(), dirname().
  5745. * src/File.cc
  5746. * test/FileTest.cc
  5747. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Added Simplified Chinese translation. Also updated the following
  5749. translations: Polish, Dutch, German. Great thanks to all translators.
  5750. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Suppress content-range error when 'Content-Range' response header
  5752. doesn't contains bytes-unit specifier 'bytes'
  5753. * src/HttpHeader.cc (getRange)
  5754. * test/HttpHeaderTest.cc
  5755. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. Fixed compilation error with g++-4.3
  5757. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Added missing include files for MinGW
  5759. * test/HttpHeaderProcessorTest.cc
  5760. * test/DHTRoutingTableSerializerTest.cc
  5761. * test/DHTRoutingTableDeserializerTest.cc
  5762. * test/UriListParserTest.cc
  5763. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. Now download line is printed nicely with no garbage at the end of
  5765. line. I use ioctl to get the columns of terminal.
  5766. If stdout is redirected to another device, instead of carriage return,
  5767. end of line '\n' character is used. This is feature request#1909659
  5768. * src/ConsoleStatCalc.cc (calculateStat)
  5769. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Included a2time.h
  5771. * src/DHTMessageDispatcher.h
  5772. * src/DHTMessageEntry.h
  5773. * src/DHTReplaceNodeTask.h
  5774. * src/DHTMessageTracker.h
  5775. * src/Util.h
  5776. * src/CookieBox.h
  5777. * src/SocketCore.h
  5778. * src/DefaultBtMessageDispatcher.h
  5779. * src/SocketCore.cc
  5780. * src/Util.cc
  5781. * src/DHTPingTask.h
  5782. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Fixed high memory footprint when DHT is enabled.
  5784. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5785. queued than it is processed and the queue is getting longer. As a
  5786. consequence, momory usage is increased.
  5787. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5788. replacement cache in DHTBucket which is described in Kademlia paper.
  5789. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5790. DHTReplaceNodeTask.
  5791. * src/DHTBucket.{h, cc}
  5792. (cacheNode): New function.
  5793. (getCachedNodes): New function.
  5794. (dropNode): Push back cached node to _nodes.
  5795. * test/DHTBucketTest.cc
  5796. (testCacheNode): New test
  5797. (testDropNode): New test
  5798. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5800. the unused 4KB memory when ssl is not used.
  5801. * src/SocketCore.cc
  5802. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Added summary log for peer announce storage.
  5804. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5805. Removed cast
  5806. * src/DefaultPeerStorage.cc (addPeer)
  5807. Log exception message
  5808. * src/DHTMessageTracker.cc (handleTimeout)
  5809. Fixed casting
  5810. * test/HttpRequestTest.cc
  5811. * test/MetalinkProcessorTest.cc
  5812. * test/PieceTest.cc
  5813. * test/MetalinkEntryTest.cc
  5814. * test/SequenceTest.cc
  5815. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. * src/ParameterizedStringParser.cc (createLoop):
  5817. Removed unused variable sstep.
  5818. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5819. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. * src/Util.{h, cc}
  5821. (parseUInt): New function.
  5822. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5823. The actual range is uint32_t.
  5824. * test/UtilTest.cc
  5825. * src/ParameterizedStringParser.cc:
  5826. Use Util::parseUInt() for loop variables.
  5827. * test/ParameterizedStringParserTest.cc
  5828. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5829. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Rewritten the functions for binding port.
  5831. * src/DHTConnectionImpl.{h, cc}
  5832. * src/PeerListenCommand.{h, cc}
  5833. * src/DHTSetup.cc
  5834. * src/BtSetup.cc
  5835. * test/DHTConnectionImplTest.cc
  5836. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. type cleanup for allmost all remaining files.
  5838. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Type clarification
  5840. * src/PeerSessionResource.{h, cc}
  5841. * src/DefaultPieceStorage.{h, cc}
  5842. * src/Peer.{h, cc}
  5843. * test/PeerSessionResourceTest.cc
  5844. Use div function
  5845. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5846. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Type clarification
  5848. * src/DefaultPeerStorage.{h, cc}
  5849. * test/DefaultPeerStorageTest.cc
  5850. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Type clarification: size_t for length or size, uint64_t for file
  5852. length, off_t for file offset.
  5853. * src/DefaultBtProgressInfoFile.cc
  5854. * src/DefaultBtContext.{h, cc}
  5855. * src/DefaultBtInteractive.cc
  5856. * src/DownloadCommand.{h, cc}
  5857. * src/IteratableChunkChecksumValidator.{h, cc}
  5858. * src/SegmentMan.{h, cc}
  5859. * src/SingleFileDownloadContext.{h, cc}
  5860. * src/IteratableChecksumValidator.{h, cc}
  5861. * src/BtContext.h
  5862. * src/IteratableValidator.h
  5863. * src/DownloadContext.h
  5864. * test/SingleFileDownloadContextTest.cc
  5865. * test/DefaultBtContextTest.cc
  5866. * test/MockBtContext.h
  5867. * test/Metalink2RequestGroupTest.cc
  5868. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Type clarification: size_t for length or size, uint64_t for file
  5870. length, off_t for file offset.
  5871. * src/PiecedSegment.cc
  5872. * src/GrowSegment.h
  5873. * src/DefaultBtRequestFactory.h
  5874. * src/DefaultBtProgressInfoFile.cc
  5875. * src/UnknownLengthPieceStorage.h
  5876. * src/DefaultPieceStorage.cc
  5877. * src/UnknownLengthPieceStorage.cc
  5878. * src/DefaultBtInteractive.cc
  5879. * src/GrowSegment.cc
  5880. * src/BitfieldMan.h
  5881. * src/DownloadCommand.cc
  5882. * src/BtRequestFactory.h
  5883. * src/PiecedSegment.h
  5884. * src/DefaultPieceStorage.h
  5885. * src/Piece.cc
  5886. * src/DefaultBtRequestFactory.cc
  5887. * src/PieceStorage.h
  5888. * src/Segment.h
  5889. * src/Piece.h
  5890. * src/BitfieldMan.cc
  5891. * src/Util.cc
  5892. * test/DefaultBtProgressInfoFileTest.cc
  5893. * test/DefaultPieceStorageTest.cc
  5894. * test/MockPieceStorage.h
  5895. * test/BtRequestMessageTest.cc
  5896. * test/DefaultBtMessageDispatcherTest.cc
  5897. * test/BitfieldManTest.cc
  5898. * test/GrowSegmentTest.cc
  5899. * test/PieceTest.cc
  5900. * test/SegmentTest.cc
  5901. * test/SegmentManTest.cc
  5902. * test/DefaultBtRequestFactoryTest.cc
  5903. * test/MockBtRequestFactory.h
  5904. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Fixed compilation error with --disable-nls
  5906. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5907. in gettext.h causes the problem.
  5908. * src/common.h
  5909. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Removed subPiece related functions.
  5911. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5912. * src/DefaultPieceStorage.{h, cc}
  5913. * test/PieceTest.cc
  5914. * test/DefaultPieceStorageTest.cc
  5915. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Use unsigned char for data store.
  5917. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Bump up version number to 0.13.0+1
  5919. * configure.ac
  5920. * Release 0.13.0+1
  5921. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5922. Changed inactive connection timeout to 120.
  5923. To accept more mulually interested peers, disconnect peer when there
  5924. is no interest between us after certain time passed.
  5925. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5926. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5928. when compiled with async DNS support.
  5929. * src/DownloadEngine.cc
  5930. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5931. value '10' will be a little bit short when some DNS servers are
  5932. offline and several DNS servers are tried. It should be configured
  5933. by command-line option.
  5934. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Merged Ross's mingw patch.
  5936. * src/DHTRoutingTableDeserializer.cc
  5937. * src/DHTRoutingTableSerializer.cc
  5938. * src/Platform.{h, cc}
  5939. * src/timegm.h
  5940. * src/gettimeofday.h
  5941. * src/getaddrinfo.h
  5942. * src/SocketCore.h
  5943. * src/common.h
  5944. * src/inet_aton.h
  5945. * src/DownloadEngine.h
  5946. * src/gai_strerror.h
  5947. * src/a2netcompat.h
  5948. * configure.ac
  5949. * configure
  5950. * aclocal.m4
  5951. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Included missing iostream.
  5953. * test/AllTest.cc
  5954. * test/BtDependencyTest.cc
  5955. * test/BtExtendedMessageTest.cc
  5956. * test/DHTConnectionImplTest.cc
  5957. * test/DHTMessageFactoryImplTest.cc
  5958. * test/DHTMessageTrackerEntryTest.cc
  5959. * test/DHTNodeTest.cc
  5960. * test/DHTRoutingTableSerializerTest.cc
  5961. * test/DefaultBtAnnounceTest.cc
  5962. * test/DefaultBtContextTest.cc
  5963. * test/DefaultBtMessageFactoryTest.cc
  5964. * test/DefaultExtensionMessageFactoryTest.cc
  5965. * test/HandshakeExtensionMessageTest.cc
  5966. * test/HttpResponseTest.cc
  5967. * test/MetalinkProcessorTest.cc
  5968. * test/MultiFileAllocationIteratorTest.cc
  5969. * test/SocketCoreTest.cc
  5970. * test/UTPexExtensionMessageTest.cc
  5971. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Reorganized includes.
  5973. * src/NameResolver.cc
  5974. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Fixed compilation error without ares/c-ares
  5976. * src/NameResolver.h:
  5977. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Added a test for large file.
  5979. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5980. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Fixed the bug that file size is ignored if size > INT32_MAX
  5982. * src/SizeMetalinkParserState.cc (endElement):
  5983. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Bump up version number to 0.13.0
  5985. * configure.ac
  5986. * Release 0.13.0
  5987. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Updated Makfefile.am to make 'make dist' work.
  5989. Now packaged filename is aria2c-VERSION.tar.bz2.
  5990. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5991. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5992. Large file support is now configured by configure script.
  5993. * configure.ac
  5994. Removed unsused source files
  5995. * src/
  5996. * test/
  5997. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5998. Peer.h and BtContext.h respectively.
  5999. * src/Peer.h
  6000. * src/BtContext.h
  6001. Updated translations.
  6002. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6003. translations. Great thanks to all translators!;)
  6004. * po/*.{po, gmo}
  6005. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6007. statically declared sha1 MessageDigestContext.
  6008. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6009. initialization of short-lived MessageDigestContext.
  6010. * src/MessageDigestHelper.{h, cc}
  6011. * src/main.cc
  6012. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6013. the initialization of MessageDigestContext every time in validating
  6014. chunk checksum.
  6015. * src/DownloadCommand.{h, cc}
  6016. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Add a file descriptor which connected to fast peer(latency<1500) to
  6018. select(). This change reduced CPU load.
  6019. * src/PeerInteractionCommand.cc
  6020. * src/DefaultBtInteractive.{h, cc}
  6021. * src/BtInteractive.h
  6022. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Fixed the previous insufficient fix for possible busy loop.
  6024. * src/MSEHandshake.cc (identifyHandshakeType)
  6025. Removed unused functions.
  6026. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6027. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Fixed possible busy loop if first 20 bytes are not received for a few
  6029. minutes.
  6030. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6031. * src/ReceiverMSEHandshakeCommand.cc
  6032. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Fixed compilation error
  6034. * src/ExpatMetalinkProcessor.cc
  6035. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6037. * src/DHTBucket.cc
  6038. Removed unnecessary cast.
  6039. * src/HandshakeExtensionMessage.cc
  6040. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6041. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6042. is missing.
  6043. * src/OptionHandlerFactory.cc
  6044. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6045. Fixed the bug that HAVE message is not sent for a piece they are
  6046. downloaded fom http/ftp server before any BitTorrent handshake is done
  6047. with peers.
  6048. * src/DefaultBtInteractive.cc
  6049. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6051. * src/Makefile.am
  6052. * src/Makefile.in
  6053. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Updated README. Added html version of README and man page.
  6055. * README
  6056. * README.html
  6057. * readme2html: Shell script to generate README.html from README using
  6058. asciidoc.
  6059. * doc/aria2c.1.html
  6060. * doc/makeman: Added the line to generate aria2c.1.html
  6061. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Fixed offset calculation.
  6063. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6064. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Rewritten itos and uitos using template. llitos and ullitos are
  6066. replaced with itos and uitos respectively.
  6067. * src/Util.{h, cc}
  6068. * test/UtilTest.cc
  6069. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6071. of the number of bytes required for storing public key and shared
  6072. secret.
  6073. * src/LibgcryptDHKeyExchange.h
  6074. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6075. * src/MSEHandshake.cc
  6076. * test/DHKeyExchangeTest.cc
  6077. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Removed since they are not used.
  6079. * src/Xml2MetalinkProcessor.{h, cc}
  6080. * src/Socket.cc
  6081. * src/SegmentSplitter.{h, cc}
  6082. * test/Xml2MetalinkProcessorTest.cc
  6083. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Fixed the bug that prevents aria2 from stopping other than by pressing
  6085. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6086. option. aria2 doesn't stop even after --seed-time is satisfied and
  6087. continues to output blank lines in the console.
  6088. * src/ReceiverMSEHandshakeCommand.cc
  6089. * src/PeerReceiveHandshakeCommand.cc
  6090. * src/PeerListenCommand.cc
  6091. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Bump up version number to 0.13.0rc
  6093. * configure.ac
  6094. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Updated man page and some usage text.
  6096. * doc/aria2c.1.txt
  6097. * src/usage_text.h
  6098. * po/*.{po, gmo}
  6099. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Updated translations. Added Finnish and Hebrew translations.
  6101. Great thanks to all translators!
  6102. * po/*.{po, gmo}
  6103. * po/LINGUAS
  6104. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Log more detailed information about each message.
  6106. * src/DHTQueryMessage.{h, cc}
  6107. * src/DHTGetPeersMessage.{h, cc}
  6108. * src/DHTFindNodeReplyMessage.{h, cc}
  6109. * src/DHTGetPeersReplyMessage.{h, cc}
  6110. * src/DHTAnnouncePeerMessage.{h, cc}
  6111. * src/DHTResponseMessage.{h, cc}
  6112. * src/DHTFindNodeMessage.{h, cc}
  6113. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Use constants defined in prefs.h
  6115. * src/option_processing.cc
  6116. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6118. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Make room for future enchancements for IPv6 addresses.
  6120. Bump up version number of dht.dat file format to 2.
  6121. Not compatible with previous version.
  6122. * src/DHTRoutingTableSerializer.cc
  6123. * src/DHTRoutingTableDeserializer.cc
  6124. * test/DHTRoutingTableSerializerTest.cc
  6125. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Added handling for the return values from
  6127. PeerMessageUtil::createcompact().
  6128. * src/DefaultBtContext.cc (computeFastSet):
  6129. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Fixed abort when peer's ip address is IPv4-mapped address.
  6131. * src/DefaultBtContext.cc (computeFastSet)
  6132. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6133. cannot handle IPv4-mapped addresses.
  6134. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6135. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Proper return value handling for OpenSSL functions.
  6137. * src/LibsslDHKeyExchange.h
  6138. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Random bytes generation using libgcrypt and OpenSSL.
  6140. * src/DHTUtil.{h, cc}
  6141. * test/DHTUtilTest.cc
  6142. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6144. received.
  6145. * src/DHTMessageReceiver.cc (receiveMessage)
  6146. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Fixed the bug that a return code is always 0. BUG#1897704
  6148. If error occurred during the download or there exist unfinished
  6149. downloads, aria2 returns with code 1.
  6150. * src/RequestGroupMan.{h, cc}
  6151. * src/MultiUrlRequestInfo.{h, cc}
  6152. * src/main.cc
  6153. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. IPv6 support for SocketCore class.
  6155. TODO: In SocketCore::establishConnection(), this is insufficient to
  6156. determin the failure of connect() here because the socket is
  6157. non-blocking state. The next addresses should be tried after select().
  6158. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6159. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6160. instead which address family independent.
  6161. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6162. information in a compact peer format which is for IPv4 only.
  6163. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6164. this is a spec of BitTorrent protocol.
  6165. * src/SocketCore.{h, cc}
  6166. * src/PeerMessageUtil.cc
  6167. * test/SocketCoreTest.cc
  6168. * test/PeerMessageUtilTest.cc
  6169. * test/DHTConnectionImplTest.cc
  6170. Handle IPv4-mapped addresses.
  6171. * src/DHTNode.cc: Now identity is determined by node id.
  6172. * src/DHTMessageTrackerEntry.cc
  6173. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6174. should handle it.
  6175. * src/DHTRoutingTableDeserializer.cc
  6176. * src/DHTMessageFactoryImpl.cc
  6177. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Change the unit of --stop option from a minute to a second.
  6179. * src/usage_text.h
  6180. * src/DownloadEngineFactory.cc
  6181. * src/OptionHandlerFactory.cc
  6182. * src/message.h
  6183. * src/TimedHaltCommand.cc
  6184. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Make listening socket non-block mode.
  6186. * src/FtpConnection.cc
  6187. * src/FtpNegotiationCommand.{h, cc}
  6188. * src/PeerListenCommand.cc
  6189. Fixed the bug that cause slow ftp negotiation.
  6190. * src/FtpNegotiationCommand.{h, cc}
  6191. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Added basic tag to --enable-dht, --dht-listen-port option.
  6193. * src/HelpItemFactory.cc (createHelpItems)
  6194. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Updated text.
  6196. * src/usage_text.h
  6197. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6199. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Determin _threadtholdSpeed in each constructor for
  6201. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6202. * src/ActivePeerConnectionCommand.{h, cc}
  6203. * src/PeerReceiveHandshakeCommand.{h, cc}
  6204. * src/BtSetup.cc
  6205. * src/BtConstants.h
  6206. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Added --bt-min-crypto-level and --bt-require-crypto options.
  6208. * src/OptionHandlerFactory.cc
  6209. * src/MSEHandshake.cc
  6210. * src/HelpItemFactory.cc
  6211. * src/option_processing.cc
  6212. * src/ReceiverMSEHandshakeCommand.cc
  6213. * src/prefs.h
  6214. * src/DefaultBtAnnounce.cc
  6215. * src/InitiatorMSEHandshakeCommand.cc
  6216. * src/usage_text.h
  6217. * test/MSEHandshakeTest.cc
  6218. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Bump version number to 0.13.0b
  6220. * configure.ac
  6221. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Updated doc.
  6223. * src/MessageDigestHelper.h:
  6224. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Use raw message digest as a token instead of its hexadecimal
  6226. representation.
  6227. * src/DHTTokenTracker.cc (generateToken)
  6228. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Added Message Stream Encryption(MSE) support.
  6230. Currently, aria2 accepts incoming connections with Obfuscation Header
  6231. and legacy BitTorrent Header and establishes connections with
  6232. Obfuscation Header first and if failed then retry with legacy
  6233. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6234. choose ARC4. The new option to change the default behavior is planned.
  6235. For tracker extension, "supportcrypto=1" is added statically.
  6236. * src/PeerInitiateConnectionCommand.{h, cc}
  6237. * src/PeerConnection.{h, cc}
  6238. * src/HandleRegistry.h
  6239. * src/SocketCore.h
  6240. * src/PeerReceiveHandshakeCommand.{h, cc}
  6241. * src/BtRegistry.{h, cc}
  6242. * src/PeerListenCommand.cc
  6243. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6244. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6245. * src/MSEHandshake.{h, cc}
  6246. * src/ARC4Encryptor.h
  6247. * src/ARC4Decryptor.h
  6248. * src/LibgcryptARC4Encryptor.h
  6249. * src/LibgcryptARC4Decryptor.h
  6250. * src/LibgcryptARC4Context.h
  6251. * src/LibsslARC4Encryptor.h
  6252. * src/LibsslARC4Decryptor.h
  6253. * src/LibsslARC4Context.h
  6254. * src/DHKeyExchange.h
  6255. * src/LibgcryptDHKeyExchange.h
  6256. * src/LibsslDHKeyExchange.h
  6257. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6258. * test/DefaultBtAnnounceTest.cc
  6259. * test/ARC4Test.cc
  6260. * test/DHKeyExchangeTest.cc
  6261. Removed prepareForRetry() because it is not used.
  6262. * src/PeerAbstractCommand.{h, cc}
  6263. * src/PeerInteractionCommand.{h, cc}
  6264. * src/PeerInitiateConnectionCommand.{h, cc}
  6265. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Added the ability to load nodes from torrent file. These nodes are
  6267. added to the routing table when downloading that torrent.
  6268. * src/BtContext.h
  6269. * src/DefaultBtContext.{h, cc}
  6270. * src/DHTSetup.cc
  6271. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6272. hostname and port pair, and resolves all of them.
  6273. * src/NameResolver.{h, cc}: Added reset().
  6274. * src/RequestGroup.cc
  6275. * test/DefaultBtContextTest.cc
  6276. * test/MockBtContext.h
  6277. Removed assert() from DefaultBtContext and throw exception instead.
  6278. * src/DefaultBtContext.cc
  6279. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Fixed segmentation fault bug when exiting if dht is disabled.
  6281. * src/RequestGroup.cc
  6282. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Fixed typo in log message and define the message in message.h
  6284. * src/TimedHaltCommand.cc
  6285. * src/message.h
  6286. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Included RecoverableException.h to fix compilation error.
  6288. * test/DHTMessageFactoryImplTest.cc
  6289. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6291. * test/DHTPingMessageTest.cc
  6292. * test/DHTGetPeersMessageTest.cc
  6293. * test/DHTFindNodeMessageTest.cc
  6294. * test/DHTAnnouncePeerMessageTest.cc
  6295. * test/MockDHTMessage.h
  6296. * test/MockDHTMessageFactory.h
  6297. * test/MockDHTMessageDispatcher.h: New class.
  6298. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6300. virtual.
  6301. * src/DHTMessageDispatcher.h
  6302. * src/DHTMessageDispatcherImpl.{h, cc}
  6303. * src/DHTSetup.cc
  6304. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Adding handling of DHT error message. Just log error message and
  6306. throw exception.
  6307. * src/DHTMessageFactoryImpl.cc
  6308. * test/DHTMessageFactoryImplTest.cc
  6309. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Added handling of dynamic cast failure.
  6311. * src/DHTNodeLookupTask.cc
  6312. * src/DHTPeerLookupTask.cc
  6313. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Added the ability to stop aria2 itself when given time has passed
  6315. from start. Use --stop option to specify time in minutes.
  6316. When 0 is given, this feature is disabled.
  6317. * src/OptionHandlerFactory.cc
  6318. * src/TimeBasedCommand.h: Make _interval protected scope.
  6319. * src/HelpItemFactory.cc
  6320. * src/option_processing.cc
  6321. * src/prefs.h
  6322. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6323. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6324. Without this modification, the result list shows "ERR" when aria2 is
  6325. stopped by --stop option. It should be "INPR".
  6326. * src/DownloadEngine.{h, cc}
  6327. * src/DownloadEngineFactory.cc
  6328. * src/usage_text.h
  6329. * src/TimedHaltCommand.{h, cc}: New class.
  6330. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Bootstrap through node added by port message.
  6332. Currently bootstrap is executed if the number of buckets in routing
  6333. table is 1.
  6334. * src/BtPortMessage.{h, cc}
  6335. * src/DefaultBtMessageFactory.{h, cc}
  6336. * src/PeerInteractionCommand.cc
  6337. * test/BtPortMessageTest.cc
  6338. * test/MockDHTTask.h
  6339. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Extract the Peer class's member variables, which are only needed after
  6341. PeerInteractionCommand, into PeerSessionResource class.
  6342. This class is instantiated in PeerInteractionCommand class's ctor and
  6343. released in its dtor.
  6344. This will make Peer class lightweight and uses less memory for peers
  6345. which are not connected and wait in the queue.
  6346. * src/PeerChokeCommand.cc
  6347. * src/PeerSessionResource.{h, cc}
  6348. * src/PeerInteractionCommand.cc
  6349. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6350. * src/DefaultBtInteractive.cc
  6351. * src/BtPieceMessage.cc
  6352. * src/BtInterestedMessage.cc
  6353. * src/BtUnchokeMessage.cc
  6354. * src/DefaultPeerStorage.{h, cc}
  6355. * src/PeerInitiateConnectionCommand.cc
  6356. * src/ActivePeerConnectionCommand.cc
  6357. * src/BtNotInterestedMessage.cc
  6358. * src/DefaultBtMessageDispatcher.cc
  6359. * src/BtChokeMessage.cc
  6360. * src/BtRequestMessage.cc
  6361. * src/Peer.{h, cc}
  6362. * src/BtRegistry.h
  6363. * src/TrackerWatcherCommand.cc
  6364. * src/PeerReceiveHandshakeCommand.cc
  6365. * test/BtExtendedMessageTest.cc
  6366. * test/BtAllowedFastMessageTest.cc
  6367. * test/BtCancelMessageTest.cc
  6368. * test/DefaultPieceStorageTest.cc
  6369. * test/BtBitfieldMessageTest.cc
  6370. * test/BtHaveMessageTest.cc
  6371. * test/BtNotInterestedMessageTest.cc
  6372. * test/BtRequestMessageTest.cc
  6373. * test/PeerSessionResourceTest.cc
  6374. * test/DefaultBtMessageDispatcherTest.cc
  6375. * test/PeerTest.cc
  6376. * test/BtInterestedMessageTest.cc
  6377. * test/BtRejectMessageTest.cc
  6378. * test/BtChokeMessageTest.cc
  6379. * test/DefaultPeerStorageTest.cc
  6380. * test/BtHaveNoneMessageTest.cc
  6381. * test/BtHaveAllMessageTest.cc
  6382. * test/DefaultExtensionMessageFactoryTest.cc
  6383. * test/BtUnchokeMessageTest.cc
  6384. * test/DefaultBtMessageFactoryTest.cc
  6385. * test/HandshakeExtensionMessageTest.cc
  6386. * test/UTPexExtensionMessageTest.cc
  6387. * test/DefaultBtRequestFactoryTest.cc
  6388. * test/BtPieceMessageTest.cc
  6389. Removed typedef PeerStats.
  6390. * src/PeerStat.h
  6391. * src/SegmentMan.cc
  6392. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Added std namespace to copy, remove_copy, back_inserter,
  6394. front_inserter.
  6395. * src/RequestGroupMan.cc
  6396. * src/DefaultPieceStorage.cc
  6397. * src/StreamFileAllocationEntry.cc
  6398. * src/BtFileAllocationEntry.cc
  6399. * src/RequestGroup.cc
  6400. * src/MetalinkEntry.cc
  6401. * src/DelegatingPeerListProcessor.cc
  6402. * src/DefaultBtRequestFactory.cc
  6403. * src/DefaultBtMessageDispatcher.cc
  6404. * src/version_usage.cc: Included <algorithm>
  6405. * src/main.cc
  6406. * src/MetalinkParserController.cc
  6407. * src/DefaultBtContext.cc
  6408. * src/DownloadEngineFactory.cc
  6409. * src/a2algo.h
  6410. Removed.
  6411. * test/StreamUriListParserTest.cc
  6412. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6414. ActivePeerConnectionCommand when it is given and
  6415. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6416. * src/ActivePeerConnectionCommand.{h, cc}
  6417. * src/BtSetup.cc
  6418. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Only add socket to DownloadEngine's select routine when peer or
  6420. localhost is unchoked and interested. This lowers CPU usage a
  6421. little bit.
  6422. * src/PeerInteractionCommand.cc
  6423. * src/PeerAbstractCommand.{h, cc}
  6424. * src/BtInteractive.h
  6425. * src/DefaultBtInteractive.{h, cc}
  6426. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Revert previous change because get_peers message is needed for
  6428. announce_peer anyway.
  6429. * src/DHTGetPeersCommand.cc
  6430. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Request peers thought DHT only when download hasn't finished.
  6432. * src/DHTGetPeersCommand.cc
  6433. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6435. * src/DHTBucketRefreshTask.{h, cc}
  6436. * src/DHTSetup.cc
  6437. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6439. standard classes.
  6440. Included string.h where mem* function are used.
  6441. Added namespace aria2.
  6442. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Create directory before saving DHT routing table.
  6444. Now ios::failure is now handled properly.
  6445. * src/DHTAutoSaveCommand.cc
  6446. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Removed unnecessary cerr.
  6448. * src/DownloadEngine.cc
  6449. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Catch exception inside DHTMessageReceiver::receiveMessage().
  6451. Log unknown message.
  6452. * src/DHTMessageReceiver.{h, cc}
  6453. * src/DHTMessageFactory.h
  6454. * src/DHTMessageFactoryImpl.{h, cc}
  6455. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6456. * src/DHTInteractionCommand.cc
  6457. * src/DHTUnknownMessage.{h, cc}
  6458. * test/DHTUnknownMessageTest.cc
  6459. * test/MockDHTMessageFactory.h
  6460. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Commented out ip address comparison because a host can have multiple
  6462. ip addresses and it is hard to predict the hostname is resolved into
  6463. which one.
  6464. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6465. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. * po/Makefile.in: Removed since this is generated by configure.
  6467. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Fixed compiler warning about redefinition of SIZE_MAX.
  6469. Use common.h instead of config.h directly here.
  6470. * src/Platform.{h, cc}
  6471. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6472. here.
  6473. * common.h
  6474. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6475. Updated gettext related files.
  6476. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6477. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6478. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Added DHT functionality, compatible with mainline.
  6480. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6481. You may need to specify entry point to DHT network using
  6482. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6483. Use --dht-listen-port to specify port number. Make sure that your
  6484. firewall configuration can pass through UDP traffic to the port.
  6485. The routing table is saved in $HOME/.aria2/dht.dat.
  6486. * src/DHT*
  6487. * src/BNode.{h, cc}
  6488. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6489. particular torrent.
  6490. * src/Data.cc: Rewritten ctor.
  6491. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6492. --dht-entry-point.
  6493. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6494. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6495. ends, remove BtContext from DHTPeerAnnounceStorage.
  6496. * src/BtPortMessage.{h, cc}: Rewritten.
  6497. * src/message.h
  6498. * src/OptionHandlerImpl.cc
  6499. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6500. --dht-entry-point.
  6501. * src/Dictionary.{h, cc} (remove): New function.
  6502. * src/prefs.h
  6503. * src/DefaultBtMessageFactory.h
  6504. * src/BtHandshakeMessage.cc
  6505. * src/ActivePeerConnectionCommand.cc
  6506. * src/SocketCore.{h, cc}: Added datagram socket support.
  6507. * src/DefaultBtMessageFactory.cc
  6508. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6509. Create DHT commands.
  6510. * src/BtMessageFactory.h
  6511. * src/PeerMessageUtil.{h, cc}
  6512. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Fixed the bug that log file is not written when configuration file doesn't exist.
  6514. This is caused by using Logger class before LogFactory is not configured.
  6515. BUG #1875079
  6516. * src/option_processing.cc
  6517. Warning message "configuration doesn't exist" is only printed when --conf is
  6518. given.
  6519. * src/option_processing.cc
  6520. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6522. ShaVisitor is now deprecated and slated to be removed.
  6523. * src/DefaultBtContext.cc
  6524. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Externalize message to message.h
  6526. * src/Platform.cc
  6527. * src/message.h
  6528. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Set default domain and default path to cookie.
  6530. * src/HttpResponse.cc
  6531. * src/CookieBox.{h, cc}
  6532. * src/CookieParser.{h, cc}
  6533. * test/CookieParserTest.cc
  6534. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Added --no-conf and --conf-path command-line option.
  6536. --no-conf option disables loading aria2.conf file.
  6537. --conf-path option changes the configuration file path. The default
  6538. file path is $HOME/.aria2/aria2.conf
  6539. Added a warning message when the configuration file is not found.
  6540. * src/HelpItemFactory.cc
  6541. * src/option_processing.cc
  6542. * src/prefs.h
  6543. * src/usage_text.h
  6544. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Added the message to inform users that other help categories are
  6546. available in -h option.
  6547. * src/version_usage.cc
  6548. * src/TagContainer.{h, cc}
  6549. * test/TagContainerTest.cc
  6550. * src/TaggedItem.{h, cc}
  6551. * test/TaggedItemTest.cc
  6552. * src/HelpItem.h
  6553. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6555. from PiecedSegment's ctor.
  6556. Previously Piece::getAllMissingBlockIndexes() is called from
  6557. PiecedSegment() but it is rather expensive since only first element is
  6558. used.
  6559. * src/PiecedSegment.cc
  6560. * src/Piece.{h, cc}
  6561. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6563. each time these functions are called.
  6564. * src/BitfieldMan.{h, cc}
  6565. * test/BitfieldManTest.cc
  6566. * src/array_fun.h
  6567. * test/array_funTest.cc
  6568. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6569. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6570. filtered. Removed unnecessary cast to int32_t.
  6571. * src/BitfieldMan.{h, cc}
  6572. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6574. payload length(4bytes) are received. This happens because lenbufLength
  6575. is not updated in this particular case and successive call of
  6576. receiveMessage() overwrites payload length with bytes recieved which
  6577. are payload body.
  6578. * src/PeerConnection.{h, cc}
  6579. * src/message.h
  6580. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6582. peer if there are peers that have same ipaddr and port.
  6583. I've experiened segmentation fault and "pure virtual function was
  6584. called" error.
  6585. * src/Peer.h
  6586. * test/PeerTest.cc
  6587. * src/DefaultPeerStorage.cc
  6588. * test/DefaultPeerStorageTest.cc
  6589. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Removed a call to isPowerOf() because it is no longer necessary here
  6591. and a request block is not always power of 2.
  6592. BUG#1866924
  6593. * src/PeerMessageUtil.cc (checkLength)
  6594. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Fixed the bug that always first found Segment is removed from
  6596. usedSegmentEntries. Removed unused functions.
  6597. * src/SegmentMan.{h, cc}
  6598. * test/SegmentManTest.cc
  6599. Fixed the bug that ServerHost is not removed.
  6600. * src/RequestGroup.cc
  6601. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Fixed the bug that SegmentMan::completeSegment() is not called
  6603. even if Segment is complete when --lowest-speed-limit is enabled.
  6604. BUG#1864525
  6605. * src/DownloadCommand.{h, cc}
  6606. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Fixed: hash algorithm 'sha1' is always used.
  6608. * src/DownloadCommand.cc (validatePieceHash)
  6609. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Added --enable-peer-exchange command-line option.
  6611. * src/OptionHandlerFactory.cc
  6612. * src/HelpItemFactory.cc
  6613. * src/option_processing.cc
  6614. * src/usage_text.h
  6615. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Move extension from BtRuntime to ExtensionMessageFactory, because
  6617. extension can be specified per peer, not per torrent.
  6618. * src/DefaultBtInteractive.cc
  6619. * src/BtRuntime.h
  6620. * src/ExtendedMessagingAware.h
  6621. * src/ExtensionMessageFactory.h
  6622. * src/DefaultExtensionMessageFactory.cc
  6623. * test/DefaultExtensionMessageFactoryTest.cc
  6624. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Added categorized option help. Specify category using --help option.
  6626. Also added the ability to search options in forward match.
  6627. * src/HelpItem.{h, cc}
  6628. * test/HelpItemTest.cc
  6629. * src/HelpItemFactory.{h, cc}
  6630. * src/TagContainer.{h, cc}
  6631. * test/TagContainerTest.cc
  6632. * src/option_processing.cc
  6633. * src/prefs.h
  6634. * src/TaggedItem.{h, cc}
  6635. * test/TaggedItemTest.cc
  6636. * src/version_usage.cc
  6637. * src/help_tags.h
  6638. * src/usage_text.h
  6639. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Fixed segmentation fault when bad torrent metainfo is parsed.
  6641. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6642. and then throw exception or skip it.
  6643. * src/DefaultBtContext.{h, cc}
  6644. * test/DefaultBtContextTest.cc
  6645. * src/AnnounceList.cc
  6646. * src/CompactPeerListProcessor.cc
  6647. * src/message.h
  6648. * src/DefaultBtAnnounce.{h, cc}
  6649. * test/DefaultBtAnnounceTest.cc
  6650. * src/BencodeVisitor.cc
  6651. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Added missing "B"(=Byte). So now the message looks like this:
  6653. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6654. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6655. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Show the seed ratio after torrent downloads.
  6657. For example, after torrent download completed and --seed-time and
  6658. --seed-ratio conditions are fulfilled, following message is printed
  6659. right after "Download complete: .....":
  6660. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6661. * src/RequestGroupMan.cc
  6662. * src/RequestGroup.{h, cc}
  6663. * src/message.h
  6664. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Remove a defunct control file. A defunct control file means that while
  6666. it exists, but the corresponding download file is missing.
  6667. After its removal, a download restarts from the beginning.
  6668. * src/RequestGroup.cc
  6669. * src/message.h
  6670. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Allocate bitfield in Peer when it is really used. More specifically,
  6672. bitfield in Peer is allocated after the connection is established and
  6673. deallocated when the connection is dropped.
  6674. Since 2 parameters(piece length and total length) was removed from the
  6675. constructor of Peer class, many test classes were modified accordingly.
  6676. See svn log for more detailed information.
  6677. * src/PeerInteractionCommand.cc
  6678. * src/CompactPeerListProcessor.cc
  6679. * src/Peer.cc
  6680. * src/DefaultPeerListProcessor.cc
  6681. * src/PeerListenCommand.cc
  6682. * src/PeerReceiveHandshakeCommand.cc
  6683. Fixed memory leak
  6684. * src/Piece.cc
  6685. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6687. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6688. command-line options.
  6689. * src/option_processing.cc
  6690. * src/ActivePeerConnectionCommand.cc
  6691. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Send have message to peer if it already has the piece.
  6693. * src/BtHaveMessage.{h, cc}
  6694. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6696. port.
  6697. * src/DefaultPeerStorage.{h, cc}
  6698. * test/DefaultPeerStorageTest.cc
  6699. * src/HandshakeExtensionMessage.cc
  6700. * test/HandshakeExtensionMessageTest.cc
  6701. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6702. * src/PeerStorage.h
  6703. * test/MockPeerStorage.h
  6704. * src/PeerListenCommand.cc
  6705. * src/PeerReceiveHandshakeCommand.cc
  6706. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Added --metalink-enable-unique-protocol option.
  6708. * src/Metalink2RequestGroup.cc
  6709. * src/option_processing.cc
  6710. * src/prefs.h
  6711. * src/version_usage.cc
  6712. * doc/aria2c.1.txt
  6713. * doc/aria2c.1
  6714. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Allow a peer in incomingPeer to be added peers.
  6716. * src/DefaultPeerStorage.cc
  6717. * test/DefaultPeerStorageTest.cc
  6718. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6720. I could reproduce this bug in following procedure:
  6721. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6722. 2. Restart aria2.
  6723. 3. You see the download stopped around 99%.
  6724. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6725. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6726. If timeout is reached, then _nextCommand is unused and it may contains
  6727. segments and they won't be canceled. Actually, timeout is not needed
  6728. here because if the server dropped connection, then retry is made.
  6729. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Added uTorrent compatible Peer Exchange.
  6731. * src/BencodeVisitor.{h, cc}
  6732. * test/BencodeVisitorTest.cc
  6733. * src/BtConstants.h
  6734. * src/BtContext.h: Added 'private' flag.
  6735. * src/BtExtendedMessage.{h, cc}
  6736. * test/BtExtendedMessageTest.cc
  6737. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6738. reserved field.
  6739. * test/BtHandshakeMessageTest.cc
  6740. * src/BtMessageFactory.h
  6741. * src/BtRegistry.h
  6742. * src/BtRuntime.h: This class holds default extension message IDs for
  6743. aria2. By default, aria2 uses ID 8 for ut_pex.
  6744. * src/DefaultBtContext.cc
  6745. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6746. When it is true, aria2 enables ut_pex. This value is set by
  6747. PeerInteractionCommand.
  6748. * src/DefaultBtMessageFactory.{h, cc}
  6749. * test/DefaultBtMessageFactoryTest.cc
  6750. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6751. handling to DefaultBtInteractive class.
  6752. * src/DefaultExtensionMessageFactory.{h, cc}
  6753. * test/DefaultExtensionMessageFactoryTest.cc
  6754. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6755. the container(peers and incomingPeers. The equality is determined by
  6756. Peer::id).
  6757. * test/DefaultPeerStorageTest.cc
  6758. * src/ExtensionMessage.h
  6759. * test/MockExtensionMessage.h
  6760. * src/ExtensionMessageFactory.h
  6761. * test/MockExtensionMessageFactory.h
  6762. * src/HandshakeExtensionMessage.{h, cc}
  6763. * test/HandshakeExtensionMessageTest.cc
  6764. * src/MetaEntry.h
  6765. * src/Peer.{h, cc}
  6766. * src/PeerInteractionCommand.cc
  6767. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6768. addIncomingPeer.
  6769. * src/PeerMessageUtil.{h, cc}
  6770. * src/PeerObject.h
  6771. * src/UTPexExtensionMessage.{h, cc}
  6772. * test/UTPexExtensionMessageTest.cc
  6773. * src/message.h
  6774. * src/prefs.h
  6775. Fixed the bug that returns incomplete data when it contains null
  6776. character. A convenient constructor was also added.
  6777. * src/Data.{h, cc}
  6778. Rewritten.
  6779. * src/CompactPeerListProcessor.cc
  6780. Fixed typos.
  6781. * src/message.h
  6782. * src/MetaFileUtil.cc
  6783. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Added "Status Legend" label to the explanation text of 'stat' in
  6785. download result and moved it to the last. BUG#1848214
  6786. * src/RequestGroupMan.cc
  6787. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6789. * src/Makefie.am
  6790. * test/Makefile.am
  6791. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Fixed the bug that prevents aria2 from loading cookie file when expire
  6793. value is greater than 2^31-1. BUG#1851066
  6794. * src/CookieBoxFactory.cc
  6795. * test/CookieBoxFactoryTest.cc
  6796. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Fixed possible memory leak when an exception is thrown.
  6798. * src/XML2SAXMetalinkProcessor.cc
  6799. Added Expat support. If both libxml2 and Expat are installed, then
  6800. libxml2 is used by default.
  6801. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6802. ExpatMetalinkProcessor according to the configuration.
  6803. * src/ExpatMetalinkProcessor.{h, cc}
  6804. * src/main.cc: Removed libxml2 specific header and init/free function.
  6805. * src/MetalinkProcessorFactory.{h, cc}
  6806. * src/MetalinkHelper.cc
  6807. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6808. * src/MetalinkProcessor.h
  6809. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6810. MetalinkProcessorTest is used instead.
  6811. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6812. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6813. MetalinkProcessorFactory::newInstance().
  6814. * m4/libexpat.m4
  6815. * configure.ac: Added configuration options for libexpat.
  6816. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Disabled -s option in metalink download.
  6818. * src/Metalink2RequestGroup.cc
  6819. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. If several protocols are available for a mirror in metalink file,
  6821. aria2 now use one of them. --metalink-preferred-protocol option was
  6822. added to specify the preference of protocol.
  6823. * src/AbstractCommand.cc
  6824. * src/OptionHandlerFactory.cc
  6825. * src/ServerHost.{h, cc}
  6826. * src/Metalink2RequestGroup.cc
  6827. * src/RequestGroup.{h, cc}
  6828. * test/RequestGroupTest.cc
  6829. * src/option_processing.cc
  6830. * src/prefs.h
  6831. * src/HttpResponseCommand.cc
  6832. * src/MetalinkResource.{h, cc}
  6833. * src/FtpNegotiationCommand.cc
  6834. * src/MetalinkEntry.{h, cc}
  6835. * src/MetalinkEntryTest.cc
  6836. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Code cleanup and added debug log.
  6838. * src/PeerConnection.cc
  6839. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Compiler error fix: applied the patch by Tiziano Mueller
  6841. * src/RequestGroup.cc
  6842. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6844. in stopped and completed event.
  6845. * src/AnnounceList.{h, cc}
  6846. * test/AnnounceListTest.cc
  6847. * src/DefaultBtAnnounce.cc
  6848. * test/DefaultBtAnnounceTest.cc
  6849. Sorted URLs.
  6850. * test/Metalink2RequestGroupTest.cc
  6851. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Removed unnecessary string copy. Updated doc and corrected indentation.
  6853. * src/Base64.cc
  6854. Fixed compilation warnings
  6855. * test/DataTest.cc
  6856. * test/HttpRequestTest.cc
  6857. * test/MetaFileUtilTest.cc
  6858. * test/RequestTest.cc
  6859. * Release 0.12.0
  6860. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Updated translations
  6862. * po/{de,fr,ja,nl,ru}.po
  6863. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6864. translations. Many thanks to translators.
  6865. * po/{ca,es,it,pt_BR,sv}.po
  6866. * po/LINGUAS
  6867. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Added a notice about URL
  6869. * src/version_usage.cc
  6870. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6871. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6872. aria2 repeatedly sends stopped request when tracker returns error code.
  6873. * src/AnnounceList.cc
  6874. * test/AnnounceListTest.cc
  6875. * src/AnnounceTier.h
  6876. Added a message when ctrl-c is hit.
  6877. Now second ctrl-c is also handled in signal handler.
  6878. * src/RequestGroupMan.{h, cc}
  6879. * src/RequestGroup.{h, cc}
  6880. * src/MultiUrlRequestInfo.cc
  6881. * src/DownloadEngine.cc
  6882. * src/TrackerWatcherCommand.cc
  6883. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Code cleanup
  6885. * src/Base64.cc (encode)
  6886. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Changed Direct/IO enable/disable procesure in file allocation routine.
  6888. * src/SingleFileAllocationIterator.cc
  6889. (SingleFileAllocationIterator):
  6890. Disable directIO if offset is not multiple of 512.
  6891. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6892. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6893. Enable created SingleFileAllocationIterator's directIO.
  6894. * src/FileAllocationEntry.cc
  6895. (FileAllocationEntry): Enable directIO here.
  6896. (~FileAllocationEntry): Disable directIO here.
  6897. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6899. * src/Peer.{h, cc}
  6900. * src/DefaultPieceStorage.cc
  6901. * test/DefaultPieceStorageTest.cc
  6902. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Rewritten direct I/O support routine
  6904. * src/SingleFileAllocationIterator.cc
  6905. * src/MultiDiskAdaptor.{h, cc}
  6906. * src/ByteArrayDiskWriter.h
  6907. * src/AbstractSingleDiskAdaptor.h
  6908. * src/AbstractDiskWriter.cc
  6909. * src/DefaultPieceStorage.cc
  6910. * src/DiskWriter.h
  6911. * src/BinaryStream.h
  6912. * src/IteratableChunkChecksumValidator.cc
  6913. * src/IteratableChecksumValidator.cc
  6914. * src/CheckIntegrityEntry.cc
  6915. * src/FileAllocationEntry.cc
  6916. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Fixed typo
  6918. * src/version_usage.cc
  6919. Updated doc
  6920. * doc/aria2c.1.txt
  6921. * doc/aria2c.1
  6922. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Fixed compile error without message digest support.
  6924. * src/FileMetalinkParserState.cc
  6925. * src/MetalinkParserController.{h, cc}
  6926. * test/XML2SAXMetalinkProcessorTest.cc
  6927. * test/MetalinkParserControllerTest.cc
  6928. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Enable direct I/O support in checksum checking.
  6930. * src/IteratableChunkChecksumValidator.{h, cc}
  6931. * test/IteratableChunkChecksumValidatorTest.cc
  6932. * src/CheckIntegrityEntry.cc
  6933. * src/PieceHashCheckIntegrityEntry.cc
  6934. * src/IteratableChecksumValidator.{h, cc}
  6935. * src/BtCheckIntegrityEntry.cc: Added doc.
  6936. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Added --allow-piece-length-change option.
  6938. * src/DefaultBtProgressInfoFile.cc
  6939. * test/DefaultBtProgressInfoFileTest.cc
  6940. * src/OptionHandlerFactory.cc
  6941. * src/option_processing.cc
  6942. * src/prefs.h
  6943. * src/version_usage.cc
  6944. * doc/aria2c.1.txt
  6945. * doc/aria2c.1
  6946. Fixed: duplicated result entry appears when exception is thrown in
  6947. RequestGroup::createInitiateConnectionCommand().
  6948. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6949. Add RequestGroup to _requestGroup after RequetGroup::
  6950. createInitiateConnectionCommand() succeeds.
  6951. Externalized message
  6952. * src/XML2SAXMetalinkProcessor.cc
  6953. * src/message.h
  6954. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Forced download abort when received negative response from http/ftp
  6956. server.
  6957. * src/HttpResponseCommand.cc
  6958. * src/FtpNegotiationCommand.cc
  6959. * src/HttpResponse.cc
  6960. * src/FtpConnection.cc
  6961. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6963. the predecessor, Xml2MetalinkParser class.
  6964. I tested them against 94KB metalink file with 1234 chunk checksums.
  6965. The new one parsed it in 22msec, while it took 6000msec with old one.
  6966. * src/XML2SAXMetalinkProcessor.{h, cc}
  6967. * test/XML2SAXMetalinkProcessorTest.cc
  6968. * src/MetalinkParserController.{h, cc}
  6969. * test/MetalinkParserControllerTest.cc
  6970. * src/MetalinkParserState.h: Also added 16 subclasses.
  6971. * src/main.cc
  6972. * src/Metalink2RequestGroup.cc
  6973. * src/MetalinkHelper.cc
  6974. * src/MetalinkEntry.cc
  6975. * src/ChunkChecksum.h
  6976. Rewritten Base64 class for better performance.
  6977. * src/Base64.{h, cc}
  6978. * test/Base64Test.cc
  6979. * src/HttpRequest.cc
  6980. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Fixed the bug#1841757: aria2 will connect to server to only get
  6982. file size.
  6983. * src/StreamFileAllocationEntry.cc
  6984. * src/option_processing.cc
  6985. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6986. downloads.
  6987. * src/FtpNegotiationCommand.cc
  6988. Suppressed wrong message when finding PreDownloadHandler
  6989. * src/RequestGroup.cc
  6990. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Updated usage
  6992. * src/version_usage.cc
  6993. Updated man page
  6994. * doc/aria2c.1.txt
  6995. * doc/aria2c.1
  6996. Updated po files
  6997. * po/aria2c.pot
  6998. * po/*.po
  6999. * po/*.gmo
  7000. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Eliminated g++-4.2 warning
  7002. * src/DownloadHandlerConstants.{h, cc}
  7003. * src/Util.cc
  7004. * test/MetaFileUtilTest.cc
  7005. * test/PStringBuildVisitorTest.cc
  7006. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7007. * src/RequestGroup.cc
  7008. * src/BtCheckIntegrityEntry.cc
  7009. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Fixed a2io.h
  7011. * src/a2io.h
  7012. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Added direct I/O support. The current implementation uses O_DIRECT,
  7014. which is not posix standard and is tested on linux 2.6.21.
  7015. Currently only file allocation uses direct I/O.
  7016. * src/SingleFileAllocationIterator.{h, cc}
  7017. * test/SingleFileAllocationIteratorTest.cc
  7018. * src/MultiFileAllocationIterator.{h, cc}
  7019. * test/MultiFileAllocationIteratorTest.cc
  7020. * src/BinaryStream.h
  7021. * src/DiskWriter.h
  7022. * src/AbstractDiskWriter.{h, cc}
  7023. * src/ByteArrayDiskWriter.h
  7024. * src/DiskAdaptor.h
  7025. * src/AbstractSingleDiskAdaptor.{h, cc}
  7026. * src/MultiDiskAdaptor.{h, cc}
  7027. * src/FileAllocationEntry.cc
  7028. * src/Util.{h, cc}
  7029. * src/OptionHandlerFactory.cc
  7030. * src/prefs.h
  7031. * src/version_usage.cc
  7032. * src/option_processing.cc
  7033. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7034. handleException.
  7035. * src/MultiFileAllocationIterator.cc
  7036. Added EINTR handling
  7037. * src/SocketCore.cc
  7038. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Updated usage
  7040. * src/version_usage.cc
  7041. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Applied Ross's patch for MinGW port.
  7043. * src/DownloadEngine.h
  7044. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Set Content-Type to SingleFileDownloadContext when http response is
  7046. received.
  7047. * src/HttpResponseCommand.cc
  7048. * src/HttpResponse.{h, cc}
  7049. * test/HttpResponseTest.cc
  7050. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Rewritten to add content-type support.
  7052. * src/DownloadHandler.{h, cc}
  7053. * src/BtPostDownloadHandler.{h, cc}
  7054. * test/BtPostDownloadHandlerTest.cc
  7055. * src/MetalinkPostDownloadHandler.{h, cc}
  7056. * test/MetalinkPostDownloadHandlerTest.cc
  7057. * src/PostDownloadHandler.{h, cc}
  7058. * src/DownloadHandlerConstants.{h, cc}
  7059. * src/RequestGroup.cc
  7060. * src/HttpResponseCommand.cc
  7061. * src/FtpNegotiationCommand.cc
  7062. * src/SingleFileDownloadContext.{h, cc}
  7063. * src/RequestGroup.h
  7064. * src/RequestGroupCriteria.h
  7065. * src/ContentTypeRequestGroupCriteria.h
  7066. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7067. If it is give, metalink/torrent file is not written to the disk, but
  7068. just is kept in memory. Parsing is occurred on memory.
  7069. * src/MetalinkHelper.{h, cc}
  7070. * src/MetalinkProcessor.h
  7071. * src/Xml2MetalinkProcessor.{h, cc}
  7072. * test/Xml2MetalinkProcessorTest.cc
  7073. * src/DownloadHandlerFactory.{h, cc}
  7074. * test/DownloadHandlerFactoryTest.cc
  7075. * src/PreDownloadHandler.{h, cc}
  7076. * src/OptionHandlerFactory.cc
  7077. * src/DefaultBtContext.{h, cc}
  7078. * test/DefaultBtContextTest.cc
  7079. * src/version_usage.cc
  7080. * src/Metalink2RequestGroup.{h, cc}
  7081. * src/RequestGroup.{h, cc}
  7082. * src/a2functional.h
  7083. * test/a2functionalTest.cc
  7084. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7085. * src/OptionHandlerImpl.h
  7086. * src/prefs.h
  7087. * src/Util.{h, cc}
  7088. * test/UtilTest.cc
  7089. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7090. memory usage.
  7091. * src/RequestGroupMan.{h, cc}
  7092. * src/DownloadEngine.cc
  7093. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7094. WeakHandle to SharedHandle because WeakHandle could be null.
  7095. * src/RequestGroup.{h, cc}
  7096. * src/DownloadEngineFactory.cc
  7097. * src/DownloadResult.h
  7098. Set totalLength after download finished
  7099. * src/UnknownLengthPieceStorage.{h, cc}
  7100. Keep torrent file specified in metalink in memory.
  7101. * src/Metalink2RequestGroup.cc
  7102. * src/BtDependency.cc
  7103. * src/TrueRequestGroupCriteria.h
  7104. Fixed the bug: seekg is used where seekp should be used.
  7105. * src/ByteArrayDiskWriter.cc
  7106. * test/ByteArraydiskWriterTest.cc
  7107. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Fixed syntax error
  7109. * test/SequenceTest.cc
  7110. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7112. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7113. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7114. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7115. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Added the check to see whether ares_host_callback accepts timeouts
  7117. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7118. * src/NameResolver.{h, cc}
  7119. * m4/libcares.m4
  7120. * configure.ac: Set C++ for language choice.
  7121. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Fixed: compilation fails without c-ares/ares
  7123. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7124. Generate http/ftp commands only when download is incomplete.
  7125. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7126. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Corrected typo. Examples are removed since they are available in man
  7128. page.
  7129. * src/version_usage.cc
  7130. Updated man page.
  7131. * doc/aria2c.1
  7132. * doc/aria2c.1.txt
  7133. * doc/makeman: Commented out sed command.
  7134. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Throw DlAbortEx when a remote file is not found.
  7136. * src/HttpResponse.cc
  7137. * src/FtpNegotiationCommand.cc
  7138. * src/message.h
  7139. Overwrite an existing file if --allow-overwrite=true is given.
  7140. * src/RequestGroup.cc
  7141. Removed unused functions
  7142. * src/AbstractCommand.h
  7143. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Removed 'extern' from 'extern typedef ...' in src/*.h
  7145. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Updated usage
  7147. * src/version_usage.cc
  7148. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Trim announce URL
  7150. * src/DefaultBtContext.cc
  7151. * test/ShaVisitorTest.cc
  7152. Trim argument s. Give trimed s to exception constructor.
  7153. * src/Util.cc (parseInt)(parseLLInt)
  7154. * test/UtilTest.cc
  7155. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Set precision back to 1.
  7157. * src/ConsoleStatCalc.cc (calculateStat)
  7158. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Replaced strtol with Util::parseInt
  7160. * src/ChunkedEncoding.cc
  7161. * src/HttpConnection.cc
  7162. * src/CookieBoxFactory.cc
  7163. * src/ParameterizedStringParser.cc
  7164. * src/Util.cc
  7165. * test/UtilTest.cc
  7166. * test/OptionHandlerTest.cc
  7167. * src/Request.cc
  7168. Throw exception when empty string is given. The message for exception
  7169. changed.
  7170. * src/Util.cc (parseInt)(parseLLInt)
  7171. * src/message.h
  7172. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7174. set to 1.
  7175. * src/ConsoleStatCalc.cc (calculateStat)
  7176. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Preallocate non-requested file which is adjacent forward to requested
  7178. file('requested' files means the files given in --select-file option)
  7179. if they share a same piece.
  7180. This fixes long pause in the file system which doesn't support sparse
  7181. files like FAT32 while downloading.
  7182. * src/MultiFileAllocationIterator.{h, cc}
  7183. * test/MultiFileAllocationIteratorTest.cc
  7184. * src/FileEntry.{h, cc}
  7185. Removed unused _option.
  7186. * src/MultiDiskAdaptor.h
  7187. * test/MultiDiskAdaptorTest.cc
  7188. * src/DefaultPieceStorage.cc
  7189. Set the default value of --seed-ratio to 1.0.
  7190. If 0.0 is given, then seeding continues regardless of share ratio.
  7191. * src/version_usage.cc
  7192. * src/option_processing.cc
  7193. * src/BtSetup.cc
  7194. * doc/aria2c.1.txt
  7195. * doc/aria2c.1
  7196. Fixed: Selective download is not working in BitTorrent
  7197. * src/RequestGroup.cc
  7198. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7199. * src/PieceStorage.h
  7200. * test/MockPieceStorage.h
  7201. * src/UnknownLengthPieceStorage.h
  7202. * src/DefaultPieceStorage.{h, cc}
  7203. * src/Metalink2RequestGroup.cc
  7204. * src/RequestGroup.cc
  7205. * src/Sequence.h
  7206. * test/SequenceTest.cc
  7207. * src/IntSequence.h
  7208. * src/message.h
  7209. * src/Util.{h, cc}
  7210. * test/UtilTest.cc
  7211. Added new function 'parse' to catch exception thrown by subclass's
  7212. parseArg
  7213. * src/OptionHandler.h
  7214. * src/OptionParser.cc
  7215. * src/NameMatchOptionHandler.h
  7216. * src/OptionHandlerImpl.h
  7217. * test/OptionHandlerTest.cc
  7218. Added IntegerRangeOptionHandler. Used for --listen-port and
  7219. --select-file. Now --listen-port accepts range of port.
  7220. * src/OptionHandlerFactory.cc
  7221. * src/version_usage.cc
  7222. * src/OptionHandlerImpl.h
  7223. * src/option_processing.cc
  7224. * src/BtSetup.cc
  7225. * src/PeerListenCommand.{h, cc}
  7226. * doc/aria2c.1.txt
  7227. * doc/aria2c.1
  7228. Implemented operator< for Exception class to provide easy way to print
  7229. exception stack trace.
  7230. * src/Exception.{h, cc}
  7231. * src/main.cc
  7232. * src/option_processing.cc
  7233. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. * src/version_usage.cc
  7235. (showVersion): Reworked.
  7236. (showUsage): Added examples.
  7237. Removed Hint for total length and file name.
  7238. * src/Metalink2RequestGroup.cc
  7239. * src/RequestGroup.{h, cc}
  7240. * src/HttpResponseCommand.cc
  7241. * src/FtpNegotiationCommand.cc
  7242. Now --follow-torrent and --follow-metalink option work properly.
  7243. * src/RequestGroup.cc
  7244. Updated man page
  7245. * doc/aria2c.1.txt
  7246. * doc/aria2c.1
  7247. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Removed.
  7249. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7250. Use Segment::operator==()
  7251. * src/HttpConnection.cc
  7252. * src/Segment.h
  7253. Updated usage
  7254. * src/version_usage.cc
  7255. Added EINTR treatment.
  7256. * src/SocketCore.cc
  7257. * src/AbstractDiskWriter.cc
  7258. Rewritten.
  7259. * src/Util.cc (rangedFileCopy)
  7260. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Fixed typo.
  7262. * src/version_usage.cc
  7263. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Implemented. Now -c option works fine.
  7265. * src/DefaultPieceStorage.cc (markPiecesDone)
  7266. * test/DefaultPieceStorageTest.cc
  7267. Removed.
  7268. * src/SegmentMan.{h, cc}
  7269. (markAllPiecesDone)
  7270. (markPieceDone)
  7271. Synchronized po files with
  7272. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7273. * src/fr.po
  7274. * src/ru.po
  7275. * src/de.po
  7276. * src/ja.po
  7277. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Added ifdef and some modifications to compile without BitTorrent,
  7279. Metalink, MessageDigest
  7280. support.
  7281. * src/PieceHashCheckIntegrityEntry.cc
  7282. * src/MetalinkEntry.h
  7283. * src/version_usage.cc
  7284. * src/main.cc
  7285. * src/DownloadEngine.{h, cc}
  7286. * src/Metalink2RequestGroup.cc
  7287. * src/Peer.cc
  7288. * src/RequestGroup.cc
  7289. * src/MetalinkHelper.cc
  7290. * test/DefaultPieceStorageTest.cc
  7291. * test/MetalinkPostDownloadHandlerTest.cc
  7292. * test/Metalink2RequestGroupTest.cc
  7293. Hide TOTAL SPD when all downloads complete.
  7294. * src/ConsoleStatCalc.cc
  7295. Log target system information.
  7296. * src/main.cc
  7297. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Now --metalink-location accepts a comma-deliminated list of locations.
  7299. * src/MetalinkEntry.{h, cc}
  7300. * test/MetalinkEntryTest.cc
  7301. * src/version_usage.cc
  7302. * src/Metalink2RequestGroup.cc
  7303. * src/Xml2MetalinkProcessor.cc
  7304. * test/Xml2MetalinkProcessorTest.cc
  7305. * doc/aria2c.1.txt
  7306. * doc/aria2c.1
  7307. * src/Util.cc (toUpper)(toLower): Rewritten.
  7308. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Added the ability to detect duplicate download entry which is about to
  7310. download the same file other RequestGroup is downloading.
  7311. * src/RequestGroup.cc
  7312. * src/HttpResponseCommand.cc
  7313. * src/FtpNegotiationCommand.cc
  7314. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Recalculates download progress when loading a control file,
  7316. if the piece length of DownloadContext is different from the one saved
  7317. in the control file. Currently in-flight pieces are ignored.
  7318. * src/DefaultBtProgressInfoFile.cc
  7319. * test/DefaultBtProgressInfoFileTest.cc
  7320. * src/Util.{h, cc}
  7321. * test/UtilTest.cc
  7322. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Do not rotate tiers in announce-list.
  7324. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7325. AnnounceList::allTiersFailed() used instead to detect whether all
  7326. tiers are tried and failed.
  7327. * test/DefaultBtAnnounceTest.cc
  7328. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7329. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7330. * test/AnnounceListTest.cc
  7331. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7332. clause. Catch RecoverableException instead of DlRetryEx instead.
  7333. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Implemented checksum validation feature(1 checksum for each file)
  7335. The validation takes place after the download.
  7336. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7337. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7338. * src/CheckIntegrityCommand.cc: Changed log message.
  7339. * src/Metalink2RequestGroup.cc: Set checksum to
  7340. SingleFileDownloadContext.
  7341. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7342. PieceHashCheckIntegrity class.
  7343. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7344. PieceHashCheckIntegrity class.
  7345. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7346. * src/IteratableValidator.h: New class.
  7347. * src/message.h
  7348. * src/CheckIntegrityEntry.{h, cc}
  7349. * src/IteratableChunkChecksumValidator.{h, cc}
  7350. * src/SingleFileDownloadContext.h
  7351. * src/DownloadCommand.cc
  7352. --allow-overwrite=true is no longer needed to check file integrity
  7353. before download in BitTorrent download.
  7354. * src/RequestGroup.cc (getInitialCommand)
  7355. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7356. throws exception.
  7357. * src/RequestGroupMan.cc (getInitialCommands)
  7358. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. urlencode the given url inside Request::parseUrl(...)
  7360. * src/Request.{h, cc}
  7361. * src/Util.{h, cc}
  7362. * test/RequestTest.cc
  7363. Removed #!metalink3! notation support because it is deleted from
  7364. the metalink specification.
  7365. * src/Request.{h, cc}
  7366. * test/RequestTest.cc
  7367. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Don't connect server before checking file integrity at startup, if
  7369. filesize and output file path are known.
  7370. * src/AbstractCommand.cc
  7371. * src/StreamFileAllocationEntry.cc
  7372. * src/Metalink2RequestGroup.cc
  7373. * src/RequestGroup.{h, cc}
  7374. * src/HttpResponseCommand.cc
  7375. * src/FtpNegotiationCommand.cc
  7376. Added DownloadFailureException. If it is thrown, RequestGroup should
  7377. halt.
  7378. * src/AbstractCommand.cc
  7379. * src/DownloadFailureException.h
  7380. * src/RequestGroup.cc
  7381. Catch RecoverableException, instead of DlAbortEx.
  7382. * src/RequestGroupMan.cc
  7383. * src/FillRequestGroupCommand.cc
  7384. * src/MetaFileUtil.cc
  7385. * src/IteratableChunkChecksumValidator.cc
  7386. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7387. getGID())
  7388. * src/CheckIntegrityCommand.cc
  7389. * src/message.h
  7390. Print gid instead of idx.
  7391. * src/RequestGroupMan.cc
  7392. Removed exception throwers declaration.
  7393. * src/DirectDiskAdaptor.{h, cc}
  7394. * src/SocketCore.{h, cc}
  7395. * src/MultiDiskAdaptor.{h, cc}
  7396. * src/HttpConnection.{h, cc}
  7397. * src/HttpResponse.{h, cc}
  7398. * src/DiskAdaptor.{h, cc}
  7399. * src/CopyDiskAdaptor.{h, cc}
  7400. * src/MultiDiskAdaptor.{h, cc}
  7401. * src/HttpHeaderProcessor.{h, cc}
  7402. * src/AbstractSingleDiskAdaptor.{h, cc}
  7403. * src/Util.{h, cc}
  7404. * test/UtilTest.cc
  7405. * src/DefaultDiskWriter.{h, cc}
  7406. * src/FtpConnection.{h, cc}
  7407. * src/AbstractDiskWriter.{h, cc}
  7408. Removed duplicate code.
  7409. * src/StreamCheckIntegrityEntry.cc
  7410. Removed unnecessary include.
  7411. * src/DiskWriter.h
  7412. Included Exception.h
  7413. * src/option_processing.cc
  7414. Included 2 files and added doc
  7415. * src/TrackerWatcherCommand.cc
  7416. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7417. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Changed CheckIntegrityEntry interface so that it can define
  7419. the action when all the chunk checksums are valid.
  7420. * src/CheckIntegrityEntry.h
  7421. * src/StreamCheckIntegrityEntry.{h, cc}
  7422. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7423. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7424. to exit rather than doing seeding. So, it would be good to toggle this
  7425. behavior.
  7426. * src/CheckIntegrityCommand.cc
  7427. * src/AbstractCommand.cc
  7428. * src/RequestGroup.cc
  7429. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Reflect the download length of in-flight pieces.
  7431. It makes the download length readout more precise.
  7432. * src/DefaultPieceStorage.{h, cc}
  7433. * test/DefaultPieceStorageTest.cc
  7434. * src/a2functional.h
  7435. * test/a2functionalTest.cc
  7436. Lower CPU load when --max-download-limit is used.
  7437. There is up and down in speed indicator when enabling
  7438. http-pipelining but a download goes well. I think the problem is that
  7439. because http-pipelining is enabled, DownloadCommand is created for
  7440. each segment and in its constructor, PeerStat::downloadStart() is
  7441. called. In PeerStat::downloadStart(), speed calculation object is
  7442. reseted, which makes download speed zero.
  7443. * src/DownloadCommand.cc
  7444. Rewritten using accumulate.
  7445. * src/RequestGroupMan.cc (calculateStat)
  7446. Code clearnup.
  7447. * src/FtpNegotiationCommand.cc
  7448. * src/HttpResponseCommand.cc
  7449. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Fixed: Can not resume: aria2 reports download already finished.
  7451. * src/AbstractCommand.{h, cc}
  7452. * src/HttpResponseCommand.cc
  7453. * src/FtpNegotiateCommand.cc
  7454. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Now a file is stored in the directory specified in .metalnk file
  7456. (file[@name]).
  7457. * src/Metalink2RequestGroup.cc
  7458. Create the directory structure when opening the file if it doesn't
  7459. exist.
  7460. * src/AbstractDiskWriter.cc
  7461. * src/Util.{h, cc}
  7462. * src/File.h
  7463. * test/UtilTest.cc
  7464. Removed file name comparison
  7465. * src/Metalink2RequestGroup.cc
  7466. * src/HttpResponseCommand.cc
  7467. Rewritten using Util::mkdirs()
  7468. * src/FileEntry.cc (setupDir)
  7469. * test/FileEntryTest.cc
  7470. Updated doc
  7471. * src/SingleFileDownloadContext.h
  7472. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Now SleepCommand dispatches nextCommand when halt is requested.
  7474. It avoids a possible long wait after hitting CTRL-C.
  7475. * src/SleepCommand.{h, cc}
  7476. * src/RequestGroupAware.{h, cc}
  7477. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7479. to open listen port, then remove the port number from the tracker
  7480. request.
  7481. * src/DefaultBtAnnounce.cc
  7482. * test/DefaultBtAnnounceTest.cc
  7483. * test/MockPieceStorage.h
  7484. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7485. them more testable.
  7486. * src/DefaultBtAnnounce.{h, cc}
  7487. * src/DefaultBtContext.{h, cc}
  7488. * src/Util.{h, cc}
  7489. * test/DefaultBtAnnounceTest.cc
  7490. * test/DefaultBtContextTest.cc
  7491. * test/UtilTest.cc
  7492. Added 'B' to upload bytes readout.
  7493. * src/ConsoleStatCalc.cc
  7494. Now the listen port for BitTorrent download is opened when it is
  7495. needed.
  7496. * src/DownloadEngineFactory.cc
  7497. * src/BtSetup.{h, cc}
  7498. * src/PeerListenCommand.{h, cc}
  7499. Now an exception thrown while parsing tracker response is now logged.
  7500. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7501. called, which means no retry is made in this case, assuming a tracker
  7502. has a problem.
  7503. * src/TrackerWatcherCommand.cc
  7504. Fixed: downloading a file whose length is unkown fails.
  7505. * src/DownloadCommand.cc
  7506. Simplified prepareForNextSegment()
  7507. * src/DownloadCommand.cc
  7508. Updated
  7509. * po/POTFILES.in
  7510. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Re-implemented a file listing for Metalink, which was dropped while
  7512. http/ftp/torrent integration was being implemented.
  7513. * src/MetalinkHelper.{h, cc}: New class.
  7514. * test/MetalinkHelperTest.cc
  7515. * src/main.cc
  7516. * src/Metalink2RequestGroup.cc
  7517. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Added the ability to display the detailed torrent file information.
  7519. Now -S option gives not only a file listing, but also total download
  7520. length, info hash, announce URI, piece length, the number of pieces,
  7521. and mode(single or multi-torrent).
  7522. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7523. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7524. KiB)
  7525. * test/UtilTest.cc
  7526. * src/main.cc
  7527. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Added ftp://USER:PASSWD@Servername automatic parsing.
  7529. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7530. _password. Recognize username and password in URI.
  7531. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7532. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7533. * src/RequestFactory.{h, cc}: Removed.
  7534. * src/AuthConfigFactory.{h, cc}: New class.
  7535. * src/FtpConnection.cc: Use AuthConfigFactory.
  7536. * src/HttpRequest.cc: Use AuthConfigFactory.
  7537. * test/HttpRequestTest.cc: Updated.
  7538. * test/RequestTest.cc: Updated.
  7539. * test/AuthConfigFactoryTest.cc: New class.
  7540. * test/RequestFactoryTest.cc: Removed.
  7541. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Use RequestGroup::allDownloadFinished() to decide whether the control
  7543. file should be removed or saved.
  7544. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7545. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7546. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Use File::renameTo()
  7548. * src/DefaultBtProgressInfoFile.cc
  7549. Added --no-file-allocation-limit command-line option.
  7550. * src/version_usage.cc
  7551. * src/option_processing.cc
  7552. * src/OptionHandlerFactory.cc
  7553. * src/RequestGroup.{h, cc}
  7554. * src/BtCheckIntegrityEntry.cc
  7555. * src/StreamCheckIntegrityEntry.cc
  7556. * src/prefs.h
  7557. * doc/aria2c.1.txt
  7558. * doc/aria2c.1
  7559. Now prealloc is the default value for --file-allocation option.
  7560. * src/version_usage.cc
  7561. * src/option_processing.cc
  7562. * doc/aria2c.1.txt
  7563. * doc/aria2c.1
  7564. Don't URL-encode user-agent.
  7565. * src/HttpRequest.cc
  7566. Updated translations
  7567. * po/LINGUAS: Added nl for Dutch translation.
  7568. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7569. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7570. * po/POTFILES.in: Updated.
  7571. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Added the ability to recognize url-list in a torrent file.
  7573. The retrieved URLs are attached to the corresponding FileEntry.
  7574. * src/DefaultBtContext.{h, cc}
  7575. * src/FileEntry.{h, cc}
  7576. * test/DefaultBtContextTest.cc
  7577. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7579. after the download finishes.
  7580. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7582. the data smaller than block length.
  7583. A block length can be specified by constructor's argument.
  7584. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7585. Get a missing piece in the range of given FileEntry. This function is
  7586. not used in the program yet.
  7587. * src/Util.h: Added some macros.
  7588. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Added HTTP/1.1 keep alive and pipelining support.
  7590. See --enable-http-keep-alive and --enable-http-pipelining option.
  7591. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7592. Segment.
  7593. * src/HttpDownloadCommand.{h, cc}
  7594. * src/OptionHandlerFactory.cc
  7595. * src/HttpConnection.{h, cc}
  7596. * src/version_usage.cc
  7597. * src/HttpInitiateConnectionCommand.cc
  7598. * src/FtpInitiateConnectionCommand.cc
  7599. * src/Segment.h
  7600. * src/HttpRequestCommand.{h, cc}
  7601. * src/option_processing.cc
  7602. * src/prefs.h
  7603. * src/HttpResponseCommand.cc
  7604. * src/SegmentMan.{h, cc}
  7605. * src/FtpNegotiateCommand.cc
  7606. * src/HttpProxyResponseCommand.cc
  7607. * src/Request.cc
  7608. * src/HttpRequest.cc
  7609. * src/DownloadCommand.cc
  7610. * test/HttpRequestTest.cc
  7611. * test/RequestTest.cc
  7612. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7614. finished.
  7615. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7617. catching it inside the method.
  7618. When no file entry is found in a metalink without querying user
  7619. preferences, throw the exception with the error message that suggests
  7620. metalink file is probably broken.
  7621. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7622. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7624. processed.
  7625. * src/RequestGroupMan.cc (removeStoppedGroup)
  7626. Added debug message.
  7627. * src/BtPostDownloadHandler.cc
  7628. * src/MetalinkPostDownloadHandler.cc
  7629. * src/PostDownloadHandler.{h, cc}
  7630. * src/RequestGroup.cc
  7631. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7633. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7635. stops and there are any unfinished or in-progress downloads.
  7636. Added the legend of "stat".
  7637. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Throw exception when chunck checksum verification fails.
  7639. * src/DownloadCommand.cc (validatePieceHash): New function.
  7640. * src/PiecedSegment.{h, cc} (clear): New function.
  7641. * src/GrowSegment.{h, cc} (clear): New function.
  7642. * src/Segment.h (clear): New function.
  7643. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7644. * test/SegmentTest.cc
  7645. * test/GrowSegmentTest.cc
  7646. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Do not send referer when redirected.
  7648. * src/Request.cc (redirectUrl)
  7649. * test/RequestTest.cc
  7650. * test/HttpRequestTest.cc
  7651. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Implemented BitTorrent/http/ftp integrated download.
  7653. I've rewritten lots of files and now some headers have forward
  7654. class declarations to reduce compile time.
  7655. The implementation is extremely alpha stage, I recommend to use this
  7656. for testing purpose only.
  7657. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Fixed the compilation error on 64bit platform.
  7659. * test/HttpHeaderProcessorTest.cc
  7660. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Merged Ross's patch that fixes compilation problem in MinGW
  7662. * test/DefaultBtProgressInfoFileTest.cc
  7663. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Updated fr.po by sebone
  7665. * po/fr.po
  7666. Updated man page.
  7667. * doc/aria2c.1.txt
  7668. * Release 0.11.3
  7669. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7671. failure in Metalink.
  7672. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Automatically save *.aria2 control file of http/ftp download in every
  7674. 60 seconds.
  7675. * src/AutoSaveCommand.{h, cc}: New class.
  7676. * src/TimeBasedCommand.{h, cc}: New class.
  7677. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7678. Disable parameterized URI support by default. Added -P option to
  7679. enable the feature.
  7680. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7681. * src/OptionHandlerFactory.cc
  7682. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7683. Updated Japanese translation.
  7684. * po/ja.po
  7685. Updated man page.
  7686. * doc/aria2c.1.txt
  7687. * Release 0.11.3-rc
  7688. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7690. it is successful, then renamed to *.aria2.
  7691. This prevents *.aria2 file from being truncated or corrupted when
  7692. file system becomes out of space.
  7693. * src/DefaultBtProgressInfoFile.cc (save)
  7694. * src/SegmentMan.cc (save)
  7695. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7696. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Reduced the fragmentation of bitfield in http/ftp download.
  7698. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7699. * test/BitfieldManTest.cc
  7700. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Added the ability to disable segmented download in .metalink.
  7702. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7703. 'url' tag.
  7704. * src/MetalinkEntry.{h, cc}
  7705. * src/RequestResource.{h, cc}
  7706. * src/MetalinkRequestInfo.cc
  7707. * src/Xml2MetalinkProcessor.cc
  7708. * test/Xml2MetalinkProcessorTest.cc
  7709. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Added parameterized URI support.
  7711. * src/main.cc: -Z option added.
  7712. * src/OptionHandlerFactory.cc
  7713. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7714. * src/PStringDatum.h: New class.
  7715. * src/PStringSegment.{h,cc}: New class.
  7716. * src/PStringNumLoop.h: New class.
  7717. * src/PStringSelect.h: New class.
  7718. * src/NumberDecorator.h: New class.
  7719. * src/FixedWidthNumberDecorator.h: New class.
  7720. * src/AlphaNumberDecorator.h: New class.
  7721. * src/PStringVisitor.h: New class.
  7722. * src/PStringBuildVisitor.{h,cc}: New class.
  7723. * src/ParameterizedStringParser.{h,cc}: New class.
  7724. * src/Util.{h,cc}
  7725. (isNumber): New function.
  7726. (isLowercase): New function.
  7727. (isUppercase): New function.
  7728. (alphaToNum): New function.
  7729. * test/ParameterizedStringParserTest.cc: New class.
  7730. * test/AlphaNumberDecoratorTest.cc: New class.
  7731. * test/PStringBuildVisitorTest.cc: New class.
  7732. * test/UtilTest.cc
  7733. (testIsNumber): New function.
  7734. (testIsLowercase): New function.
  7735. (testIsUppercase): New function.
  7736. (testAlphaToNum): New function.
  7737. Added '\n' after the error message
  7738. * src/RequestInfo.h (printDownloadAbortMessage)
  7739. Added auto file renaming feature in http(s)/ftp download.
  7740. * src/main.cc: Added --auto-file-renaming command-line option.
  7741. * src/OptionHandlerFactory.cc
  7742. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7743. * src/RequestGroup.{h, cc}
  7744. (shouldCancelDownloadForSafety): Rewritten
  7745. (tryAutoFileRenaming): New function.
  7746. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7747. * src/HttpResponseCommand.cc
  7748. (executeInternal): Removed the call to RequestGroupMan::
  7749. isSameFileBeingDownloaded()
  7750. * src/FtpNegotiateCommand.cc
  7751. (recvSize): Removed the call to RequestGroupMan::
  7752. isSameFileBeingDownloaded()
  7753. * test/RequestGroupTest.cc: New class.
  7754. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7756. IO.
  7757. * src/DefaultBtProgressInfoFile.cc
  7758. * src/MetaFileUtil.cc
  7759. * src/SimpleLogger.cc
  7760. * src/SegmentMan.cc
  7761. * src/Util.cc
  7762. * src/Platform.cc
  7763. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7765. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7767. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7768. Fixed the bug that prevents file allocation is not done when
  7769. dowloading multi-torrent file.
  7770. * src/AbstractDiskWriter.cc (openFile)
  7771. Increase the maximum number of -j option from 15 to 45.
  7772. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7773. Added fr.po, thanks to Charles Landemaine.
  7774. * po/fr.po
  7775. * po/LINGUAS
  7776. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7777. gcc 3.4.4 support:
  7778. * src/DefaultBtContext.cc: int32_t -> int
  7779. * src/main.cc: int -> int32_t, int32_t -> int
  7780. * src/messageDigest.h: uint32_t -> unsigned int
  7781. * src/NameResolver.h: int32_t -> int
  7782. * src/PeerConnection.cc: int -> int32_t
  7783. * src/SpeedCalc.cc: int32_t -> int
  7784. * src/TrackerUpdateCommand.h: int -> int32_t
  7785. * src/Util.cc: int32_t -> int
  7786. * src/Util.h: int32_t -> int
  7787. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7788. * test/AnnounceListTest.cc: int -> int32_t
  7789. * test/ChunkedEncodingTest.cc: int -> int32_t
  7790. * test/DataTest.cc: int -> int32_t
  7791. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7792. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7793. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7794. * test/FeatureConfigTest.cc: int -> int32_t
  7795. * test/MetalinkEntryTest.cc: int -> int32_t
  7796. * test/MockBtRequestFactory.h: int -> int32_t
  7797. * test/MockPieceStorage.h: int -> int32_t
  7798. * test/OptionTest.cc: int -> int32_t
  7799. * test/RequestTest.cc: int -> int32_t
  7800. * test/SegmentManTest.cc: int -> int32_t
  7801. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7802. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7803. Move sleep functions to Util class:
  7804. * src/Util.cc
  7805. (sleep): New function.
  7806. (usleep): New function.
  7807. * src/DownloadCommand.cc: sleep -> Util::sleep
  7808. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7809. MinGW build enhancements. The following files are added:
  7810. * src/timegm.{c,h}
  7811. Changes to support the above new files:
  7812. * configure.ac
  7813. * src/Makefile.am
  7814. * src/a2time.h
  7815. * src/Util.cc:
  7816. * src/strptime.c: Added support for %Z option.
  7817. Fixed MinGW non-blocking bug.
  7818. * src/SocketCore.cc
  7819. * src/HttpRequestCommand.cc
  7820. Miscellenous build fixes/enhancements.
  7821. * configure.ac: Added summary report.
  7822. * src/Platform.h: Tweaked #include's.
  7823. * src/a2netcompat.h: Tweaked #include's.
  7824. * src/strptime.h: Tweaked #include's.
  7825. * src/gai_strerror.c: Tweaked #include's.
  7826. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7827. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7828. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7829. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Increased the initial connection size in BitTorrent download to 40.
  7831. * src/BtRuntime.h
  7832. Added the usage message of --peer-id-prefix option.
  7833. * src/main.cc
  7834. * Release 0.11.2
  7835. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. MessageDigestHelper is introduced in order to simplify the use
  7837. of message digest. Removed repeated code.
  7838. The message digest algorithm is now specified by string, like "sha1",
  7839. "md5".
  7840. * src/messageDigest.{h, cc}
  7841. * src/MessageDigestHelper.{h, cc}: New class.
  7842. * src/DefaultPieceStorage.cc
  7843. * src/DefaultBtContext.{h, cc}
  7844. (computeFastSet): New function.
  7845. (setInfoHash): Added for unit testing.
  7846. (setNumPieces): Added for unit testing.
  7847. * src/DefaultBtInteractive.cc
  7848. * src/BtPieceMessage.cc
  7849. * src/Peer.cc
  7850. * src/Checksum.h
  7851. * src/message.h
  7852. * src/IteratableChecksumValidator.h
  7853. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7854. inside it.
  7855. * src/SegmentMan.{h, cc}
  7856. (checkIntegrity): Removed.
  7857. * src/IteratableChunkChecksumValidator.{h, cc}
  7858. * src/Util.h
  7859. (sha1Sum): Removed.
  7860. (simpleMessageDigest): Removed.
  7861. (fileChecksum): Removed.
  7862. (computeFastSet): Removed.
  7863. * src/ShaVisitor.cc
  7864. * src/ChunkChecksum.h
  7865. * src/DownloadCommand.cc
  7866. Removed messageDigest virtual functions.
  7867. * src/MultiDiskAdaptor.{h, cc}
  7868. * src/DiskAdaptor.h
  7869. * src/ByteArrayDiskWriter.h
  7870. * src/DiskWriter.h
  7871. * src/DiskAdaptorWriter.h
  7872. * src/AbstractSingleDiskAdaptor.{h, cc}
  7873. * src/AbstractDiskWriter.{h, cc}
  7874. Fixed comilation error when message digest is disabled.
  7875. * src/MetalinkEntry.{h, cc}
  7876. * src/MetalinkRequestInfo.cc
  7877. Removed srandom and random.
  7878. * src/SimpleRandomizer.h
  7879. Added size() virtual function to DiskAdaptor
  7880. * src/MultiDiskAdaptor.h
  7881. Fixed the bug that causes that files are not opened correctly in
  7882. multi-file torrent.
  7883. * src/TorrentRequestInfo.cc
  7884. * src/MultiDiskAdaptor.cc
  7885. Added SHA256 support
  7886. * src/messageDigest.cc
  7887. * src/Xml2MetalinkProcessor.cc
  7888. Show supported message digest algorithms
  7889. * src/main.cc
  7890. Updated contact info.
  7891. * src/main.cc
  7892. Applied Ross's patch
  7893. * src/a2netcompat.h
  7894. * src/main.cc
  7895. Fixed the bug that prevents a remote metalink from not being processed
  7896. even if '-o foo.metalink' is specified.
  7897. * src/MetalinkRequestInfo.cc
  7898. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Merged Dan's patch:
  7900. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7901. Use va_copy to avoid core dump on amd64:
  7902. * src/SimpleLogger.cc
  7903. Updated contact info.
  7904. * src/main.cc
  7905. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7906. digest is not available.
  7907. * src/MetalinkEntry.h
  7908. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Make a2netcompat.h include a2io.h to fix compilation error:
  7910. * src/a2netcompat.h
  7911. * src/SocketCore.cc: Removed include of a2io.h
  7912. * src/Util.cc: Removed include of a2io.h
  7913. Gather time related functions to a2time.h:
  7914. * src/a2time.h: New file.
  7915. * src/DefaultPeerStorage.cc
  7916. * src/SimpleLogger.cc
  7917. * src/Util.{h, cc}
  7918. * src/SimpleRandomizer.h
  7919. * src/TimeA2.{h,cc}
  7920. * src/DownloadCommand.cc
  7921. * src/main.cc
  7922. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7923. a2netcompat.h:
  7924. * src/NameResolver.cc
  7925. Fixed compilation error without openssl:
  7926. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7927. Added default block to suppress compiler warnings:
  7928. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7929. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7930. MinGW build enhancements. The following files are added:
  7931. * src/gai_strerror.{c,h}
  7932. * src/gettimeofday.{c,h}
  7933. Changes to support the above new files:
  7934. * configure.ac
  7935. * src/Makefile.am
  7936. * src/a2netcompat.h
  7937. * src/TimeA2.cc
  7938. * src/DefaultPeerStorage.cc
  7939. * src/NameResolver.cc: removed mingw_strerror() function.
  7940. * src/SocketCore.cc: removed mingw_strerror() function.
  7941. Miscellaneous MinGW build fixes.
  7942. * src/a2io.h: Use _lseeki64() instead of lseek()
  7943. * src/common.h
  7944. * src/DefaultFileAllocator.cc
  7945. * src/GlowFileAllocator.cc
  7946. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7947. * src/NameResolver.cc
  7948. (callback): Changed int32_t to int.
  7949. (resolve): Changed int32_t to int.
  7950. * src/Platform.cc
  7951. * src/Platform.h
  7952. * test/MultiDiskWriterTest.cc
  7953. * test/PeerMessageUtilTest.cc
  7954. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7955. Other enhancements and fixes.
  7956. * src/HttpRequestCommand.cc
  7957. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7958. * src/SocketCore.cc:
  7959. (error): New function to abstract errno/WSAGetLastError().
  7960. (errorMsg): New function to abstract errno/WSAGetLastError().
  7961. (initiateSecureConnection): Added more detailed error reporting.
  7962. * src/SocketCore.h: Added private variable blocking, to allow
  7963. proper handling of OpenSSL psuedo-errors.
  7964. * src/message.h
  7965. (EX_SSL_INIT_FAILURE)
  7966. (EX_SSL_IO_ERROR)
  7967. (EX_SSL_PROTOCOL_ERROR)
  7968. (EX_SSL_UNKNOWN_ERROR)
  7969. (EX_SSL_CONNECT_ERROR)
  7970. (EX_SOCKET_BLOCKING)
  7971. (EX_SOCKET_NONBLOCKING)
  7972. (EX_SOCKET_UNKNOWN_ERROR)
  7973. * src/Util.cc
  7974. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7975. reserved name.
  7976. (httpGMT): Fixed typo.
  7977. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Merged Ross's win32 patch(manually)
  7979. In the course of merging, following files are added.
  7980. * src/strptime.{h,c}
  7981. * src/libgen.{h,c}
  7982. * src/inet_aton.{h,c}
  7983. * src/Platform.{h,cc}
  7984. * src/localtime_r.{h,c}
  7985. * src/getaddrinfo.{h,c}
  7986. I've gethered network related things, and put them to following file:
  7987. * src/a2netcompat.h
  7988. Also io related things are put to following file:
  7989. * src/a2io.h
  7990. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7991. * src/message.h
  7992. (MSG_ALLOCATION_COMPLETED)
  7993. (EX_TOO_LARGE_FILE)
  7994. (EX_SIZE_MISMATCH)
  7995. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7996. (EX_INVALID_CHUNK_CHECKSUM)
  7997. (EX_INVALID_RANGE_HEADER)
  7998. * src/FileAllocationCommand.cc
  7999. * src/HttpResponse.cc
  8000. * src/RequestGroup.cc
  8001. * src/MultiDiskAdaptor.cc
  8002. * src/OptionHandlerImpl.h
  8003. * src/HttpResponseCommand.cc
  8004. * src/FtpNegotiateCommand.cc
  8005. * src/IteratableChecksumValidator.cc
  8006. * src/SegmentMan.cc
  8007. * src/ChunkChecksumValidator.cc
  8008. Added Randomizer::getRandomNumber(long int)
  8009. * src/Randomizer.h (getRandomNumber)
  8010. * src/SimpleRandomizer.h (getRandomNumber)
  8011. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8012. * src/Util.cc (randomAlpha): Use this new function.
  8013. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Converted int's to in32_t. long long int's are also converted to
  8015. int64_t
  8016. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Fixed the bug that prevents cookies from being sent to the server
  8018. if the domain of cookie is FQDN and starts with ".".
  8019. * src/Cookie.cc (match)
  8020. To add the ability to change peer id.
  8021. * src/DefaultBtContext.h
  8022. (_peerIdPrefix): New variable
  8023. (setPeerIdPrefix): New function.
  8024. * src/torrentRequestInfo.cc
  8025. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8026. DefaultBtContext.
  8027. * src/main.cc (main): Added peer-id-prefix command-line option.
  8028. The usage message is not added yet.
  8029. * src/DefaultBtContext.cc
  8030. (generatePeerId): Use _peerIdPrefix.
  8031. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8032. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Fixed the bug that prevents filename in content-disposition from
  8034. being retrieved when filename is not quoted.
  8035. * src/Util.cc (getContentDispositionFilename)
  8036. Fixed the bug that causes infinate loop and memory leak when file open
  8037. operation failed.
  8038. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8039. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Fixed the bug that causes segfault when all URIs specified are
  8041. unsupported.
  8042. * src/RequestGroupMan.cc (getInitialCommands)
  8043. Check if RequestGroup::createNextCommand() returns empty list of
  8044. commands.
  8045. * src/RequestGroup.cc (createNextCommand)
  8046. Change log level from info to error so that users can notice that
  8047. an error occurred.
  8048. Fixed the bug that causes segfault when a zero-sized file is
  8049. downloaded.
  8050. * src/BitfieldMan.cc (isAllBitSet)
  8051. Return true if bitfieldLength is 0.
  8052. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. * src/main.cc
  8054. (showUsage): Added 3 usage examples for metalink download.
  8055. Replace MetalinkChunkChecksum with ChunkChecksum.
  8056. * src/MetalinkChunkChecksum.h: Removed.
  8057. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8058. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8059. * src/Xml2MetalinkProcessor.cc
  8060. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8061. * src/MetalinkRequestInfo.cc (execute)
  8062. * Release 0.11.1
  8063. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Reads URIs from stdin when "-i -" is specified.
  8065. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8066. * src/UriListParser.h, src/UriListParser.cc: New class.
  8067. * src/StreamUriListParser.h: New class.
  8068. * src/FileUriListParser.h: New class.
  8069. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8070. instead of UriFileListParser.
  8071. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Made console readout more readable.
  8073. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8074. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Fix the bug that causes -s option not to work.
  8076. * src/main.cc (main)
  8077. * src/a2algo.h: New file.
  8078. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Create directory structure specified in metalink file.
  8080. * src/RequestGroup.h, src/RequestGroup.cc
  8081. (initAndOpenFile): Create a directory to store files if it does not
  8082. exist.
  8083. (getDir): New function.
  8084. Added ETA and download speed for an individual file to readout.
  8085. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8086. * src/RequestGroup.h
  8087. (calculateDownloadSpeed): New function.
  8088. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Made -S option work with metalink file and provided selective download
  8090. to metalink.
  8091. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8092. (filename): Removed.
  8093. (file): New variable.
  8094. (size): Removed.
  8095. (operator=): Updated.
  8096. (getPath): New function.
  8097. (getLength): New function.
  8098. (toFileEntry): New function.
  8099. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8100. (execute): Use toStream.
  8101. (showFileEntry): Removed.
  8102. * src/MetalinkRequestInfo.h
  8103. (targetFiles): New variable.
  8104. (setTargetFiles): New variable.
  8105. * src/MetalinkRequestInfo.cc
  8106. (execute): Added the ability to print file information included in
  8107. a metalink file.
  8108. Added selective download mode to metalink.
  8109. * src/main.cc
  8110. (showUsage): Updated to denote that -S and --select-file options are
  8111. applicable to metalink.
  8112. * src/FileEntry.h
  8113. (operator=): New function.
  8114. (getBasename): New function.
  8115. (getDirname): New function.
  8116. * src/Util.h, src/Util.cc
  8117. (toStream): New function.
  8118. * src/Xml2MetalinkProcessor.cc: Updated.
  8119. Made aria2 work with metalink with directory structure.
  8120. * src/File.h, src/File.cc
  8121. (getBasename): New function.
  8122. (getDirname): New function.
  8123. * src/RequestGroup.h, src/RequestGroup.cc
  8124. (_topDir): New variable.
  8125. (setTopDir): New function.
  8126. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8127. Rewrote HTTP header parsing with stringstream.
  8128. * src/HttpConnection.h, src/HttpConnection.cc
  8129. (HttpRequestEntry): New class.
  8130. (headerBuf): Removed.
  8131. (headerBufLength): Removed.
  8132. (outstandingHttpRequests): Now its element type is
  8133. HttpRequestEntryHandle.
  8134. (findEndOfHeader): Removed.
  8135. (receiveResponse): Rewritten.
  8136. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8137. Updated doc for -j option to notice that it should be used with -i
  8138. option.
  8139. * src/main.cc (showUsage)
  8140. Removed unused classes.
  8141. * src/RequestInfo.h
  8142. (FileInfo): Removed.
  8143. (checksum): Removed.
  8144. (fileInfo): Removed.
  8145. (setChecksum): Removed.
  8146. (getChecksum): Removed.
  8147. (getFileInfo): Removed.
  8148. Use ISO units.
  8149. * src/ConsoleDownloadEngine.cc
  8150. * src/TorrentConsoleDownloadEngine.cc
  8151. * src/Util.cc (abbrevSize)
  8152. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added the default listening ports to the help message.
  8154. * src/main.cc (showUsage)
  8155. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Reduce the number of calls to gettimeofday to lower CPU load.
  8157. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8158. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8159. * src/Peer.h (calculateUploadSpeed): New function.
  8160. (calculateDownloadSpeed): New function.
  8161. * src/DefaultPeerStorage.cc
  8162. (CalculateStat): Added _now variable.
  8163. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8164. and Peer::calculateUploadSpeed(const struct timeval&)
  8165. Drop connection if no request or piece message is exchanged in
  8166. a certain interval.
  8167. * src/DefaultBtInteractive.h
  8168. (btRuntime): New variable.
  8169. (inactiveCheckPoint): New variable.
  8170. (checkActiveInteraction): New function.
  8171. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8172. request or piece message is received.
  8173. (checkActiveInteraction): New function.
  8174. (doInteractionProcessing): Call checkActiveInteraction.
  8175. Fixed the bug that causes remote Metalink and Torrent files are not
  8176. processed.
  8177. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8178. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Changed format of log file.
  8180. * src/SimpleLogger.cc
  8181. * Release 0.11.0
  8182. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. * src/AbstractCommand.cc
  8184. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8185. MSG_MAX_TRY from error to info.
  8186. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8187. * src/message.h
  8188. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8189. (MSG_DOWNLOAD_ABORTED): Added %s.
  8190. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8191. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8192. * src/PeerAbstractCommand.cc
  8193. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8194. * src/Request.h
  8195. (cookieBox): Made ShardHandle.
  8196. * src/RequestGroup.h, src/RequestGroup.cc
  8197. (createNextCommandWithAdj): New function.
  8198. * src/FileAllocationCommand.cc
  8199. (executeInternal): Use createNextCommandWithAdj().
  8200. * src/CheckIntegrityCommand.cc
  8201. (executeInternal): Use createNextCommandWithAdj().
  8202. Added --load-cookies command-option.
  8203. * src/OptionHandlerFactory.cc
  8204. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8205. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8206. Now aria2 can handle cookie's expiration date.
  8207. * src/Cookie.h (expires): Changed its type to time_t.
  8208. * src/main.cc: Added --load-cookies command-line option.
  8209. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8210. * src/Util.h, src/Util.cc (httpGMT): New function.
  8211. * src/Request.cc (Request): Initialize cookieBox using
  8212. CookieBoxFactory.
  8213. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8214. * src/CookieParser.h, src/CookieParser.cc: New class.
  8215. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8216. * src/HttpResponseCommand.cc
  8217. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8218. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8219. download.
  8220. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Added -j command-line option.
  8222. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8223. * src/main.cc
  8224. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8225. Rewritten using stringstream.
  8226. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8227. Rewritten using stringstream.
  8228. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Make download size shown in MB, KB.
  8230. * src/ConsoleDownloadEngine.h (sendStatistics)
  8231. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8232. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Accept incoming connections if download rate is low.
  8234. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8235. (_lowestSpeedLimit): New variable.
  8236. (setLowestSpeedLimit): New function.
  8237. (execute): Accept incoming connections if download rate is low.
  8238. MAX_PEERS is ignored in this case.
  8239. Disable PREF_OUT in multiple concurrent download:
  8240. * src/RequestGroup.h, src/RequestGroup.cc
  8241. (setUserDefinedFilename): New function.
  8242. * src/DownloadEngineFactory.cc
  8243. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8244. concurrent download.
  8245. * src/DefaultSegmentManFactory.cc
  8246. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8247. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8249. Added its overloaded method.
  8250. * src/RequestGroup.h
  8251. (_numConcurrentCommand): New variable.
  8252. (setNumConcurrentCommand): New function.
  8253. * src/RequestGroup.cc
  8254. Abort download if same file is being downloaded concurrently.
  8255. * src/RequestGroup.h, src/RequestGroupMan.cc
  8256. (isSameFileBeingDownloaded): New function.
  8257. * src/HttpResponseCommand.cc (executeInternal)
  8258. * src/FtpNegotiateCommand.cc (recvSize)
  8259. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8260. * main.cc: Added help message for -i option.
  8261. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8263. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8264. * src/MetalinkEntry.h
  8265. (checksum): Changed to ChecksumHandle
  8266. * src/MetalinkRequestInfo.cc
  8267. (checksum): Changed to ChecksumHandle
  8268. * src/File.cc
  8269. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8270. * src/common.h
  8271. (DIR_OPEN_MODE): New definition
  8272. * src/RequestGroup.cc
  8273. (prepareForNextAction): Added an argument.
  8274. * src/message.h
  8275. (MSG_GOOD_CHECKSUM): New definition
  8276. (MSG_BAD_CHECKSUM): New definition
  8277. * src/HttpResponseCommand.cc
  8278. (handleDefaultEncoding): Continue download sequence in new
  8279. non-segmented download.
  8280. * src/FileAllocationEntry.h
  8281. (_nextDownloadCommand): New variable.
  8282. * src/DownloadCommand.cc
  8283. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8284. available.
  8285. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8286. * src/IteratableChecksumValidator.h,
  8287. src/IteratableChecksumValidator.cc: New class.
  8288. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8289. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Change file mode to 666:
  8291. * src/common.h (OPEN_MODE): New definition.
  8292. * src/File.cc
  8293. * src/Util.cc
  8294. * src/Directry.cc
  8295. * src/AbstractDiskWriter.cc
  8296. Change the level of log message "download aborted" to debug:
  8297. * src/PeerAbstractCommand.cc (execute)
  8298. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8299. * src/TrackerWatcherCommand.cc
  8300. (createCommand): Sleep some seconds after request failed.
  8301. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8302. then abort tracker request.
  8303. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. * Added the simultaneous download feature.
  8305. * src/main.cc: Print "Exception caught: " when exception is caught.
  8306. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8307. * src/ActivePeerConnectionCommand.cc
  8308. * src/PeerInteractionCommand.cc
  8309. * src/BtRuntime.h
  8310. (cuidCounter): Removed.
  8311. (getNewCuid): Removed.
  8312. * src/DownloadEngineFactory.cc
  8313. * src/PeerListenCommand.cc
  8314. * src/TrackerUpdateCommand.cc
  8315. * src/PeerInitiateConnectionCommand.cc
  8316. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. * src/PeerAbstractCommand.cc
  8318. (onAbort): Call PeerStorage::returnPeer()
  8319. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8320. (incomingPeers): New variable.
  8321. (addIncomingPeer): New function.
  8322. (returnPeer): New function.
  8323. (onErasingPeer): New function.
  8324. (addPeer): push_back -> push_front
  8325. (getActivePeers): Rewritten.
  8326. (calculateStat): Rewritten.
  8327. * src/PeerStorage.h
  8328. (TransferStat::copy): New function.
  8329. (TransferStat::TransferStat): New function.
  8330. (TransferStat::operator=): New function.
  8331. (addIncomingPeer): New function.
  8332. (returnPeer): New function.
  8333. * src/PeerListenCommand.cc
  8334. (execute): Use PeerStorage::addIncomingPeer() instead of
  8335. Peer::addPeer().
  8336. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Connect to a peer actively when download speed is lower than specified
  8338. speed in torrent download:
  8339. * src/ActivePeerConnectionCommand.h: New class.
  8340. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8342. * src/main.cc: Fixed the bug that prevents download if .netrc
  8343. doesn't exist.
  8344. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. To cache resolved hostname:
  8346. * src/AbstractCommand.h, src/AbstractCommand.cc
  8347. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8348. Added dns cache.
  8349. * src/FtpInitiateConnectionCommand.cc
  8350. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8351. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8352. NameResolver working without ares.
  8353. * src/TorrentRequestInfo.cc
  8354. (execute): Don't cache dns in torrent download.
  8355. * src/HttpInitiateConnectionCommand.cc
  8356. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8357. * src/DNSCache.h: New class.
  8358. * src/UrlRequestInfo.cc
  8359. (execute): Use dns cache.
  8360. In http request, suppress port number in http request header if port
  8361. is 80 or 443:
  8362. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8363. request header if port is 80 or 443.
  8364. (createProxyRequest): Allways send port number.
  8365. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. To add the command-line option which disables netrc support:
  8367. * src/OptionHandlerFactory.cc
  8368. (createOptionHandlers): Added PREF_NO_NETRC.
  8369. * src/main.cc: Added -n option.
  8370. * src/prefs.h (PREF_NO_NETRC): New definition.
  8371. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8372. V_TRUE.
  8373. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8374. is V_FALSE. This may get configurable in the future release.
  8375. To clear peer's error status by time basis:
  8376. * src/PeerAbstractCommand.cc
  8377. (onAbort): Call Peer::startBadCondition().
  8378. * src/Peer.h, src/Peer.cc
  8379. (error): Removed.
  8380. (_badConditionStartTime): New variable.
  8381. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8382. (startBadCondition): New function.
  8383. (isGood): New function.
  8384. * src/DefaultPeerStorage.cc
  8385. (addPeer): Use Peer::isGood().
  8386. (FindFinePeer): Use Peer::isGood().
  8387. Always include port number in http request header:
  8388. * src/HttpRequest.cc (getHostText): Always include port number in
  8389. http request header.
  8390. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. To the ability to read options from a config file:
  8392. * src/main.cc: Command-line parameter validation is delegated to
  8393. OptionHandler class.
  8394. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8395. * src/Option.h, src/Option.cc (clear): New function.
  8396. * src/OptionParser.h, src/OptionParser.cc: New class.
  8397. * src/OptionHandler.h: New class.
  8398. * src/NameMatchOptionHandler.h: New class.
  8399. * src/OptionHandlerImpl.h: New classes.
  8400. * src/prefs.h: '_' -> '-'
  8401. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8402. (FTP_PASV): New definition.
  8403. * src/Util.h, src/Util.cc (getRealSize): New function.
  8404. To disable netrc support if .netrc file does not have correct
  8405. permissions:
  8406. * src/File.h, src/File.cc (mode): New function.
  8407. To prevent confidential information to be logged:
  8408. * src/HttpConnection.h, src/HttpConnection.cc
  8409. (eraseConfidentialInfo): New function.
  8410. (sendRequest): Call eraseConfidentialInfo().
  8411. (sendProxyRequest): Call eraseConfidentialInfo().
  8412. * src/main.cc: Validate permissions of .netrc file.
  8413. To add --user-agent command-line option:
  8414. * src/main.cc: Added new command line option: --user-agent
  8415. * src/prefs.h (PREF_USER_AGENT): New definition.
  8416. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8417. parameter to HttpRequest object.
  8418. * src/AbstractProxyRequestCommand.cc
  8419. (executeInternal): Set user-agent option parameter to HttpRequest
  8420. object.
  8421. Marged the patches from Dan Fandrich.
  8422. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Use filename and size from Metalink file instead of sending HEAD
  8424. request:
  8425. * src/UrlRequestInfo.h
  8426. (_filename): New variable.
  8427. (_totalLength): New variable.
  8428. (setTotalLength): New variable.
  8429. (setFilename): New variable.
  8430. * src/MetalinkRequestInfo.cc
  8431. (execute): Set filename and size to UrlRequestInfo
  8432. * src/UrlRequestInfo.cc
  8433. (execute): Use filename and size from Metalink instead of seding
  8434. HEAD request to servers.
  8435. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. To add the ability to resume downloading a partially downloaded file
  8437. which is downloaded from the beginning:
  8438. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8439. takes this role.
  8440. * src/main.cc: Added -c option.
  8441. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8442. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8443. * src/prefs.h (PREF_CONTINUE): New definition.
  8444. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8445. * src/DefaultDiskWriter.cc
  8446. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8447. * src/AbstractDiskWriter.h
  8448. (glowFileAllocator): New variable.
  8449. * src/AbstractDiskWriter.cc
  8450. (openExistingFile): Now preallocate file space from the end of the
  8451. existing file if totalLength argument is specified and grater than 0.
  8452. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8453. to download exists in local, continue the download of the file.
  8454. --allow-overwrite=true is assumed in this context.
  8455. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8456. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8457. Throw exception if --check-integrity=true is specified but chunk
  8458. checksums are not provided:
  8459. * src/UrlRequestInfo.cc
  8460. Do not print URLs to stdout:
  8461. * src/UrlRequestInfo.cc
  8462. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. * src/Request.h: Use AuthResolver to get authentication information.
  8464. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8465. set to RequestFactory object.
  8466. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8467. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8468. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8469. create Request object.
  8470. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8471. To integrate Netrc into exsiting classes:
  8472. * src/Request.h
  8473. (_userDefinedAuthConfig): New variable.
  8474. (findNetrcAuthenticator): New function.
  8475. (segment): Removed.
  8476. (setUserDefinedAuthConfig): New function.
  8477. (resolveHttpAuthConfigItem): New function.
  8478. (resolveFtpAuthConfigItem): New function.
  8479. (resolveHttpProxyAuthConfigItem): New function.
  8480. * src/HttpRequest.h
  8481. (authConfig): Removed.
  8482. (proxyAuthConfig): Removed.
  8483. (setAuthConfig): Removed.
  8484. (setProxyAuthConfig): Removed.
  8485. * src/UrlRequest.h
  8486. (getHeadResult): Added a parameter: authConfigHandle
  8487. * src/common.h
  8488. (SingletonHolder.h): New include.
  8489. * src/main.cc
  8490. (Netrc.h): New include.
  8491. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8492. Added initial value of PREF_NETRC_PATH.
  8493. Added the initialization of netrc.
  8494. * src/AuthConfig.h: New class.
  8495. * src/prefs.h
  8496. (PREF_NETRC_PATH): New definition.
  8497. * src/HttpAuthConfig.h: Removed.
  8498. * src/Netrc.cc
  8499. (getRequiredNextToken): New function.
  8500. (skipMacdef): New function.
  8501. (parse): Rewritten.
  8502. * src/Netrc.h
  8503. (getRequiredNextToken): New function.
  8504. (skipMacdef): New function.
  8505. * src/Util.h, src/Util.cc
  8506. (getHomeDir): New function.
  8507. * src/TrackerWatcherComand.cc
  8508. (createRequestCommand): Use AuthConfig.
  8509. * src/FtpConnection.cc
  8510. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8511. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8512. * src/Request.cc
  8513. (findNetrcAuthenticator): New function.
  8514. (resolveHttpAuthConfigItem): New function.
  8515. (resolveFtpAuthConfigItem): New function.
  8516. (resolveHttpProxyAuthConfigItem): New function.
  8517. * src/UrlRequestInfo.cc: Use AuthConfig.
  8518. * src/HttpRequest.cc
  8519. (createRequest): Use authConfig.
  8520. (getProxyAuthString): Use authConfig.
  8521. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8522. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8523. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. To reduce overhead to find commands whose socket is either
  8525. readable or writable in the download engine loop:
  8526. * src/Command.h, src/Command.cc
  8527. (STATUS): New enum.
  8528. (status): New variable.
  8529. (statusMatch): New function.
  8530. (setStatusActive): New function.
  8531. (setStatusInactive): New function.
  8532. * src/DownloadEngine.h, src/DownloadEngine.cc
  8533. (executeCommand): New function.
  8534. (run): Simplified.
  8535. (waitData): Call Command::setStatusActive() when command's socket is
  8536. readable or writable.
  8537. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. To handle Segment as SegmentHandle:
  8539. * src/AbstractCommand.cc (execute): Rewritten.
  8540. * src/SegmentMan.h: Segment -> SegmentHandle
  8541. Introducded HttpResponse class, HttpRequest class to improve code
  8542. extensiveness and make it clear:
  8543. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8544. HttpResponse class.
  8545. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8546. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8547. * src/HttpConnection.cc: Contruction of http request were moved to
  8548. HttpRequest class.
  8549. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8550. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8551. * src/HttpAuthConfig.h: New class.
  8552. * src/Range.h: New class.
  8553. To make FtpTunnel{Request, Response}Command and
  8554. HttpProxy{Request, Response}Command derived from
  8555. AbstractProxy{Request, Response}Command:
  8556. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8557. Derived from AbstractProxyRequestCommand class.
  8558. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8559. Derived from AbstractProxyResponseCommand class.
  8560. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8561. Derived from AbstractProxyRequestCommand class.
  8562. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8563. Derived from AbstractProxyResponseCommand class.
  8564. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8565. : New class.
  8566. * src/AbstractProxyResponseCommand.h,
  8567. src/AbstractProxyResponseCommand.cc: New class.
  8568. To add netrc support:
  8569. * src/Netrc.h, src/Netrc.cc: New class.
  8570. * src/Util.h, src/Util.cc (split): New function.
  8571. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8572. "Content-Range" header instead of "Range" header.
  8573. * src/HttpHeader.h
  8574. (getStatus): Removed.
  8575. (setStatus): Removed.
  8576. * src/Segment.h
  8577. (getPositionToWrite): New function.
  8578. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. * src/HttpHeader.h
  8580. (Range.h): New include.
  8581. (status): New variable.
  8582. (HttpHeader): Initialized status with 0.
  8583. (getStatus): New function.
  8584. (setStatus): New function.
  8585. (getRange): New function.
  8586. (HttpHeaderHandle): New function.
  8587. * src/HttpHeader.cc
  8588. (getRange): New function.
  8589. * src/Request.h
  8590. (RequestWeakHandle): New definition.
  8591. * src/HttpConnection.h
  8592. (HttpConnectionHandle): New type definition.
  8593. * src/HttpConnection.cc
  8594. (receiveResponse): Set HTTP status to headers.
  8595. * src/main.cc
  8596. (showUsage): Fixed typo.
  8597. * src/Segment.h
  8598. (SegmentHandle): New type definition.
  8599. * src/BitfieldMan.h
  8600. (getMissingUnusedLength): New function.
  8601. * src/BitfieldMan.cc
  8602. (getMissingUnusedLength): New function.
  8603. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. To fix static initialization order problem:
  8605. * src/BitfieldManFactory.h
  8606. (defaultRandomizer): Removed.
  8607. (factory): New variable.
  8608. (getNewFactory): Removed.
  8609. (getFactoryInstance): New function.
  8610. (setDefaultRandomizer): Rewritten.
  8611. (getDefaultRandomizer): Rewritten.
  8612. * src/BitfieldManFactory.cc
  8613. (defaultRandomizer): Removed.
  8614. (factory): Initialized to 0.
  8615. (BitfieldManFactory): Initialized randomizer to 0.
  8616. * src/DefaultPieceStorage.cc
  8617. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8618. * src/Peer.cc
  8619. (Peer): getNewFactory() -> getFactoryInstance()
  8620. * src/SegmentMan.cc
  8621. (initBitfield): getNewFactory() -> getFactoryInstance()
  8622. * src/Piece.cc
  8623. (Piece): getNewFactory() -> getFactoryInstance()
  8624. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. To fix the bug that causes crash on Max OS X:
  8626. * src/SimpleRandomizer.h
  8627. (getInstance): Create new instance if the static variable is null.
  8628. * src/SimpleRandomizer.cc
  8629. (randomizer): Initialized to 0.
  8630. * src/BitfieldManFactory.h
  8631. (getNewFactory): Removed the call to setRandomizer().
  8632. To fix the miscalculation of the range of checksum:
  8633. * src/BitfieldMan.h
  8634. (isBitSetOffsetRange): New function.
  8635. * src/BitfieldMan.cc
  8636. (isBitSetOffsetRange): New function.
  8637. * src/SegmentMan.cc
  8638. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8639. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8640. * Release 0.10.1
  8641. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. To lower CPU usage in BitTorrent download when --max-upload-limit
  8643. command-line option specified:
  8644. * src/DefaultBtMessageDispatcher.cc
  8645. (sendMessages): Calculate uploading speed only when current message
  8646. is uploading data and is not sent yet.
  8647. * src/DefaultPeerStorage.h
  8648. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8649. * src/HttpResponseCommand.cc
  8650. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8651. This fixes compile error in Soralis 10.
  8652. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. To fix segfault in Metalink download:
  8654. * src/UrlRequestInfo.h
  8655. (filename): Removed.
  8656. (totalLength): Removed.
  8657. (setTotalLength): Removed.
  8658. (setFilename): Removed.
  8659. * src/MetalinkRequestInfo.cc
  8660. (execute): Do not set filename and totalLength to reqInfo.
  8661. Set chunk checksum to reqInfo if it is not null.
  8662. * src/HttpResponseCommand.cc
  8663. (executeInternal): Fixed filename in log.
  8664. (handleDefaultEncoding): Removed the call to initBitfield() and
  8665. markAllPiecesDone().
  8666. (handleOtherEncoding): Added HEAD method handling.
  8667. * src/FtpNegotiateCommand.cc
  8668. (executeInternal): Added SEQ_HEAD_OK handling.
  8669. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8670. return false.
  8671. * src/FtpNegotiateCommand.h
  8672. (SEQ_HEAD_OK): New definition.
  8673. * src/SegmentMan.cc
  8674. (initBitfield): Delete bitfield.
  8675. (isChunkChecksumValidationReady): Fixed the condition.
  8676. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8677. works fine.
  8678. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. * src/Xml2MetalinkProcessor.h
  8680. (xpathExists): New function.
  8681. * src/Xml2MetalinkProcessor.cc
  8682. (xpathExists): New function.
  8683. Not to send HEAD request if filename and size are available in Metalink
  8684. file:
  8685. * src/UrlRequestInfo.h
  8686. (filename): New variable.
  8687. (totalLength): New variable.
  8688. (setTotalLength): New function.
  8689. (setFilename): New function.
  8690. * src/MetalinkRequestInfo.cc
  8691. (execute): Set filename and size to UrlRequestInfo.
  8692. * src/MetalinkEntry.cc
  8693. (MetalinkEntry): Initialize size with 0.
  8694. * src/UrlRequestInfo.cc
  8695. (execute): Set filename and size to SegmentMan.
  8696. Not to download rest of the files after selected files are downloaded
  8697. in BitTorrent:
  8698. * src/PieceStorage.h
  8699. (allDownloadFinished): New function.
  8700. * src/DefaultBtAnnounce.cc
  8701. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8702. downloadFinished.
  8703. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8704. * src/DefaultPieceStorage.cc
  8705. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8706. Commented out the call to finishSelectiveDownloadingMode().
  8707. (downloadFinished): Call isFilteredAllBitSet() instead of
  8708. isAllBitSet().
  8709. (allDownloadFinished): New function.
  8710. * src/DefaultBtInteractive.cc
  8711. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8712. downloadFinished().
  8713. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8714. * src/TorrentDownloadEngine.cc
  8715. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8716. * src/BitfieldMan.h
  8717. (isFilteredAllBitSet): New function.
  8718. * src/ShareRatioSeedCriteria.h
  8719. (PieceStorage.h): New include.
  8720. (pieceStorage): New variable.
  8721. (evaluate):
  8722. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8723. * src/BitfieldMan.cc
  8724. (isFilteredAllBitSet): New function.
  8725. (isAllBitSet): Filter is not took into account.
  8726. Rename --force-truncate as --allow-overwrite:
  8727. * src/TorrentRequestInfo.cc
  8728. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8729. * src/main.cc
  8730. (showUsage): --force-truncate -> --allow-overwrite
  8731. * src/message.h
  8732. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8733. * src/prefs.h
  8734. (PREF_FORCE_TRUNCATE): Removed.
  8735. (PREF_ALLOW_OVERWRITE): New definition.
  8736. * src/SegmentMan.cc
  8737. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8738. * src/MetalinkRequestInfo.cc
  8739. (execute): Queueing message are now logged in info level.
  8740. * src/common.h
  8741. (LONG_LONG_MAX): Removed.
  8742. (LONG_LONG_MIN): Removed.
  8743. * src/HttpResponseCommand.cc
  8744. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8745. * src/FtpNegotiateCommand.cc
  8746. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8747. * src/main.cc
  8748. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8749. command-line option.
  8750. (main): Added --check-integriy and --realtime-chunk-checksum
  8751. command-line option.
  8752. --force-truncate -> --allow-overwrite
  8753. Set initial value of --check-integrity option to false.
  8754. Don't show usage when error occurs while persing command-line options.
  8755. Removed deprecated --upload-limit option.
  8756. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8758. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8759. * src/BtAllowedFastMessage.cc:
  8760. * src/BtBitfieldMessage.cc
  8761. * src/BtCancelMessage.cc
  8762. * src/BtChokeMessage.cc
  8763. * src/BtHaveAllMessage.cc
  8764. * src/BtHaveMessage.cc
  8765. * src/BtHaveNoneMessage.cc
  8766. * src/BtInterestedMessage.cc
  8767. * src/BtNotInterestedMessage.cc
  8768. * src/BtPieceMessage.cc
  8769. * src/BtPortMessage.cc
  8770. * src/BtRejectMessage.cc
  8771. * src/BtRequestMessage.cc
  8772. * src/BtSuggestPieceMessage.cc
  8773. * src/BtUnchokeMessage.cc
  8774. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8775. files are affected.
  8776. * src/ChunkChecksumValidator.cc
  8777. * src/SegmentMan.cc
  8778. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. To add chunk checksum validation:
  8780. * src/MetalinkEntry.h
  8781. (MetalinkChunkChecksum.h): New include.
  8782. (chunkChecksum): New variable.
  8783. * src/Request.h
  8784. (method): New variable.
  8785. (setMethod): New function.
  8786. (getMethod): New function.
  8787. (METHOD_GET): New static constant.
  8788. (METHOD_HEAD): New static constant.
  8789. * src/Xml2MetalinkProcessor.h
  8790. (getPieceHash): New function.
  8791. * src/PieceStorage.h
  8792. (markAllPiecesDone): New function.
  8793. (checkIntegrity): New function.
  8794. * src/FileAllocator.h
  8795. (NullFileAllocationMonitor.h): New include.
  8796. (FileAllocator): Initialize fileAllocationMonitor with new
  8797. NullFileAllocationMonitor().
  8798. * src/MultiDiskAdaptor.h
  8799. (messageDigest.h): Remove include.
  8800. (ctx): Removed.
  8801. (hashUpdate): Added ctx.
  8802. (MultiDiskAdaptor): Removed ctx.
  8803. (sha1Sum): Renamed as messageDigest.
  8804. (messageDigest): New function.
  8805. * src/UrlRequestInfo.h
  8806. (HeadResult): New class.
  8807. (digestAlgo): New variable.
  8808. (chunkChecksumLength): New variable.
  8809. (chunkChecksums): New variable.
  8810. (getHeadResult): New function.
  8811. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8812. (setDigestAlgo): New function.
  8813. (setChunkChecksumLength): New function.
  8814. (setChunkChecksums): New function.
  8815. * src/DefaultPieceStorage.cc
  8816. (DiskAdaptorWriter.h): New include.
  8817. (ChunkChecksumValidator.h): New include.
  8818. (markAllPiecesDone): New function.
  8819. (checkIntegrity): New function.
  8820. * src/DefaultBtContext.h
  8821. (getPieceHashes): New function.
  8822. * src/TorrentRequestInfo.cc
  8823. (execute): Try to validate chunk checksum if file already exists and
  8824. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8825. * src/messageDigest.h
  8826. (~MessageDigestContext): Added digestFree().
  8827. * src/MetalinkRequestInfo.cc
  8828. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8829. * src/DiskAdaptor.h
  8830. (messageDigest.h): New include.
  8831. (sha1Sum): Renamed as messageDigest.
  8832. (messageDigest): New function.
  8833. * src/DownloadCommand.h
  8834. (PeerStat.h): New include.
  8835. (maxDownloadSpeedLimit): New variable.
  8836. (startupIdleTime): New variable.
  8837. (lowestDownloadSpeedLimit): New variable.
  8838. (peerStat): New variable.
  8839. (setMaxDownloadSpeedLimit): New function.
  8840. (setStartupIdleTime): New function.
  8841. (setLowestDownloadSPeedLimit): New function.
  8842. * src/BtContext.h
  8843. (getPieceHashes): New function.
  8844. * src/main.cc
  8845. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8846. option to true for testing purpose.
  8847. * src/BtPieceMessage.cc
  8848. (checkPieceHash): Use messageDigest
  8849. * src/DownloadEngine.cc
  8850. (SetDescriptor): Removed.
  8851. (AccumulateActiveCommand): Removed.
  8852. (waitData): Rewritten.
  8853. (updateFdSet): Rewritten.
  8854. * src/MultiDiskAdaptor.cc
  8855. (hashUpdate): Added ctx.
  8856. (sha1Sum): Renamed as messageDigest.
  8857. (messageDigest): New function.
  8858. * src/BitfieldMan.h
  8859. (isBitRangeSet): New function.
  8860. (unsetBitRange): New function.
  8861. * src/ByteArrayDiskWriter.h
  8862. (sha1Sum): Renamed as messageDigest.
  8863. (messageDigest): New function.
  8864. * src/ConsoleDownloadEngine.cc
  8865. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8866. * src/DiskWriter.h
  8867. (messageDigest.h): New include.
  8868. (sha1Sum): Renamed as messageDigest.
  8869. (messageDigest): New function.
  8870. * src/ChunkChecksumValidator.h: New class.
  8871. * src/DiskAdaptorWriter.h: New class.
  8872. * src/prefs.h
  8873. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8874. (PREF_CHECK_INTEGRITY): New definition.
  8875. * src/HttpResponseCommand.cc
  8876. (handleDefaultEncoding): Added method "HEAD" handling.
  8877. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8878. (handleOtherEncoding):
  8879. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8880. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8881. startupIdleTime, lowestDownloadSpeedLimit to command.
  8882. * src/SegmentMan.h
  8883. (getSegmentEntryByIndex): New function.
  8884. (getSegmentEntryByCuid): New function.
  8885. (getSegmentEntryIteratorByCuid): New function.
  8886. (diskWriter): DiskWriter -> DiskWriterHandle
  8887. (pieceHashes): New variable.
  8888. (chunkHashLength): New variable.
  8889. (digestAlgo): New variable.
  8890. (FindPeerStat): Removed.
  8891. (getPeerStat): Rewritten.
  8892. (markAllPiecesDone): New function.
  8893. (checkIntegrity): New function.
  8894. (tryChunkChecksumValidation): New function.
  8895. (isChunkChecksumValidationReady): New function.
  8896. * src/BitfieldMan.cc
  8897. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8898. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8899. blocks to 0.
  8900. (isBitRangeSet): New function.
  8901. (unsetBitRange): New function.
  8902. * src/FtpNegotiateCommand.cc
  8903. (executeInternal): Set maxDownloadSpeedLimit,
  8904. startupIdleTime, lowestDownloadSpeedLimit to command.
  8905. (recvSize): Added method "HEAD" handling.
  8906. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8907. * src/AbstractSingleDiskAdaptor.cc
  8908. (sha1Sum): Renamed as messageDigest.
  8909. (messageDigest): New function.
  8910. * src/AbstractSingleDiskAdaptor.h
  8911. (sha1Sum): Renamed as messageDigest.
  8912. (messageDigest): New function.
  8913. * src/Util.h
  8914. (indexRange): New function.
  8915. * src/MetalinkEntry.cc
  8916. (MetalinkEntry): Initialized chunkChecksum to 0.
  8917. * src/ShaVisitor.cc
  8918. (~ShaVisitor): Removed the call to ctx.digestFree().
  8919. * src/SegmentMan.cc
  8920. (ChunkChecksumValidator.h): New include.
  8921. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8922. to DIGEST_ALGO_SHA1.
  8923. (~SegmentMan): Removed diskWriter.
  8924. (FindSegmentEntryByIndex): Removed.
  8925. (FindSegmentEntryByCuid): Removed.
  8926. (checkoutSegment): Rewritten.
  8927. (findSlowerSegmentEntry): Rewritten.
  8928. (getSegment): Rewritten.
  8929. (updateSegment): Rewritten.
  8930. (completeSegment): Rewritten.
  8931. (markAllPiecesDone): New function.
  8932. (checkIntegrity): New function.
  8933. (isChunkChecksumValidationReady): New function.
  8934. (tryChunkChecksumValidation): New function.
  8935. * src/Xml2MetalinkProcessor.cc
  8936. (getEntry): Get size and set it to entry.
  8937. Get chunk checksum and set it to entry.
  8938. (getPieceHash): New function.
  8939. * src/Util.cc
  8940. (sha1Sum): Removed ctx.digestFree()
  8941. (fileChecksum): Removed ctx.digestFree()
  8942. (indexRange): New function.
  8943. * src/Request.cc
  8944. (METHOD_GET): New variable.
  8945. (METHOD_HEAD): New variable.
  8946. (Request): Added method.
  8947. * src/UrlRequestInfo.cc
  8948. (FatalException.h): New include.
  8949. (message.h): New include.
  8950. (operator<<): Added operator<< for class HeadResult.
  8951. (getHeadResult): New function.
  8952. (execute): Get filename and size in separate download engine.
  8953. * src/ChunkChecksumValidator.cc: New class.
  8954. * src/DownloadCommand.cc:
  8955. (DownloadCommand): Added peerStat.
  8956. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8957. the value from Option.
  8958. The buffer size is now 16KB.
  8959. Use peerStat member instead of getting it from SegmentMan.
  8960. Use startupIdleTime member instead of gettingit from Option.
  8961. Added chunk checksum validation.
  8962. * src/AbstractDiskWriter.cc
  8963. (AbstractDiskWriter): Removed ctx.
  8964. (~AbstractDiskWriter): Removed ctx.digestFree()
  8965. (writeDataInternal): Returns the return value of write.
  8966. (readDataInternal): Returns the return value of read.
  8967. (sha1Sum): Renamed as messageDigest
  8968. (messageDigest): New function.
  8969. * src/AbstractDiwkWriter.h
  8970. (messageDigest.h): Removed include.
  8971. (ctx): Removed.
  8972. (sha1Sum): Renamed as messageDigest
  8973. (messageDigest): New function.
  8974. * src/DefaultPieceStorage.h
  8975. (markAllPiecesDone): New function.
  8976. (checkIntegrity): New function.
  8977. * src/NullFileAllocationMonitor.h: New class.
  8978. * src/MetalinkChunkChecksum.h: New class.
  8979. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. To decrease CPU usage in bittorrent download, calculation results in
  8981. BitfieldMan were cached and realtime fetching PeerObject was removed
  8982. with WeakHandle introduced. Option values are set to the objects
  8983. by setter before download begins.
  8984. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8985. * src/DefaultBtRequestFactory.h
  8986. (dispatcher): BtMessageDispatcherHandle ->
  8987. BtMessageDispatcherWeakHandle.
  8988. (messageFactory): New variable.
  8989. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8990. BtMessageDispatcherWeakHandle.
  8991. (setBtMessageFactory): New function.
  8992. * src/DefaultBtMessageDispatcher.cc:
  8993. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8994. from Option.
  8995. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8996. feating the value from Option.
  8997. Use messageFactory member.
  8998. * src/PeerInteractionCommand.cc
  8999. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9000. Add reverse dependencies to factory object.
  9001. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9002. dispatcher.
  9003. Set messageFactory to receiver.
  9004. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9005. btInteractive.
  9006. Set receiver to peerObject.
  9007. Set maxDownloadSpeedLimit to this.
  9008. (executeInternal): Use maxDownloadSpeedLimit member.
  9009. * src/BtChokeMessage.cc
  9010. (doReceivedAction): Use dispatcher, requestFactory member.
  9011. (onSendComplete): Use dispatcher member.
  9012. * src/PeerInteractionCommand.h
  9013. (maxDownloadSpeedLimit): New variable.
  9014. * src/DefaultBtMessageReceiver.h
  9015. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9016. (dispatcher):
  9017. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9018. (messageFactory): New variable.
  9019. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9020. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9021. (setDispatcher):
  9022. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9023. (setBtMessageFactory): New function.
  9024. * src/DefaultBtInteractive.cc
  9025. (initiateHandshake): Use messageFactory member.
  9026. (addBitfieldMessageToQueue): Use messageFactory member.
  9027. (addAllowedFastMessageToQueue): Use messageFactory member.
  9028. (decideChoking): Use messageFactory member.
  9029. (checkHave): Use messageFactory member.
  9030. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9031. (receiveMessages): Use maxDownloadSpeedLimit member.
  9032. (decideInterest): Use messageFactory member.
  9033. * src/BtRequestMessage.cc
  9034. (doReceivedAction): Use messageFactory, dispatcher member.
  9035. (onQueued): Use dispatcher member.
  9036. * src/BtPieceMessage.cc
  9037. (doReceivedAction): Use dispatcher member.
  9038. (send): Use peerConnection member.
  9039. (onWrongPiece): Use requestFactory member.
  9040. (handleChokingEvent): Use messageFactory, dispatcher member.
  9041. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9042. * src/BtMessageDispatcher.h
  9043. (BtMessageDispatcherWeakHandle): New type definition.
  9044. * src/SimpleBtMessage.cc
  9045. (send): Use peerConnection member.
  9046. * src/BtRejectMessage.cc
  9047. (doReceivedAction): Use dispatcher member.
  9048. * src/DefaultBtMessageDispatcher.h
  9049. (Option.h): Removed include.
  9050. (messageFactory): New variable.
  9051. (option): Removed.
  9052. (maxUploadSpeedLimit): New variable.
  9053. (requestTimeout): New variable.
  9054. (DefaultBtMessageDispatcher): Removed option.
  9055. Added maxUploadSpeedLimit, requestTimeout.
  9056. (setOption): Removed.
  9057. (getOption): Removed.
  9058. (setMaxUploadSpeedLimit): New function.
  9059. (setRequestTimeout): New function.
  9060. (setBtMessageFactory): New function.
  9061. * src/DefaultBtInteractive.h
  9062. (btMessageReceiver):
  9063. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9064. (dispatcher):
  9065. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9066. (btRequestFactory):
  9067. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9068. (peerConnection):
  9069. PeerConnectionHandle -> PeerConnectionWeakHandle
  9070. (messageFactory): New variable.
  9071. (option): Removed.
  9072. (keepAliveInterval): New variable.
  9073. (maxDownloadSpeedLimit): New variable.
  9074. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9075. (setBtMessageReceiver):
  9076. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9077. (setDispatcher):
  9078. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9079. (setBtRequestFactory):
  9080. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9081. (setPeerConnection):
  9082. PeerConnectionHandle -> PeerConnectionWeakHandle
  9083. (setOption): Removed.
  9084. (setKeepAliveInterval): New function.
  9085. (setMaxDownloadSpeedLimit): New function.
  9086. (setBtMessageFactory): New function.
  9087. * src/BitfieldMan.h
  9088. (cachedNumMissingBlock): New variable.
  9089. (cachedNumFilteredBlock): New variable.
  9090. (cachedCompletedLength): New variable.
  9091. (cachedFilteredComletedLength): New variable.
  9092. (cachedFilteredTotalLength): New variable.
  9093. (countMissingBlockNow): New function.
  9094. (countFilteredBlockNow): New function.
  9095. (getFilteredTotalLengthNow): New function.
  9096. (getCompletedLengthNow): New function.
  9097. (getFilteredCompletedLengthNow): New function.
  9098. (updateCache): New function.
  9099. * src/AbstractBtMessage.h
  9100. (BtMessageDispatcher.h): New include.
  9101. (PeerConnection.h): New include.
  9102. (BtRequestFactory.h): New include
  9103. (BtMessageFactory.h): New include.
  9104. (dispatcher): New variable.
  9105. (messageFactory): New variable.
  9106. (peerConnection: New variable.
  9107. (setBtMessageDispatcher): New function.
  9108. (setPeerConnection): New function.
  9109. (setBtMessageFactory): New function.
  9110. (setBtRequestFactory): New function.
  9111. * src/DefaultBtMessageFactory.cc
  9112. (setCommonProperty): Set dispatcher, requestFactory, this,
  9113. peerConnection to msg.
  9114. * src/BtRegistry.h
  9115. (BT_MESSAGE_RECEIVER): New macro.
  9116. * src/PeerConnection.h
  9117. (PeerConnectionWeakHandle): New type definition.
  9118. * src/BtMessageFactory.h
  9119. (BtMessageFactoryWeakHandle): New type definition.
  9120. * src/BitfieldMan.cc
  9121. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9122. cachedCompletedLength, cachedFilteredComletedLength,
  9123. cachedFilteredTotalLength.
  9124. Call updateCache().
  9125. (countMissingBlock): Return cachedNumMissingBlock.
  9126. (countMissingBlockNow): New function.
  9127. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9128. (countFilteredBlockNow): New function.
  9129. (setBit): Call updateCache().
  9130. (unsetBit): Call updateCache().
  9131. (setBitfield): Call updateCache().
  9132. (clearAllBit): Call updateCache().
  9133. (setAllBit): Use setBitInternal instead of setBit.
  9134. Call updateCache().
  9135. (addFilter): Call updateCache().
  9136. (enableFilter): Call updateCache().
  9137. (disableFilter): Call updateCache().
  9138. (clearFilter): Call updateCache().
  9139. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9140. (getFilteredTotalLengthNow): New function.
  9141. (getCompletedLength): Return cachedCompletedLength.
  9142. (getCompletedLengthNow): New function.
  9143. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9144. (getFilteredCompletedLengthNow): New function.
  9145. (updateCache): New function.
  9146. * src/BtMessageReceiver.h
  9147. (BtMessageReceiverWeakHandle): New type definition.
  9148. * src/DefaultBtMessageReceiver.cc
  9149. (receiveHandshake): Use messageFactory member.
  9150. (sendHandshake): Use messageFactory member.
  9151. (receiveMessage): Use messageFactory member.
  9152. * src/DefaultBtMessageFactory.h
  9153. (dispatcher): New variable.
  9154. (requestFactory): New variable.
  9155. (peerConnection): New variablle.
  9156. (setBtMessageDispatcher): New function.
  9157. (setBtRequestFactory): New function.
  9158. (setPeerConnection): New function.
  9159. * src/SharedHandle.h
  9160. (RefCount): New class.
  9161. (WeakHandle): New class.
  9162. * src/PeerObject.h
  9163. (BtMessageReceiver.h): New include.
  9164. (PeerObject): Added btMessageReceiver.
  9165. (btMessageReceiver): New variable.
  9166. * src/Util.cc
  9167. (countBit): Simplified.
  9168. * src/BtCancelMessage.cc
  9169. (doReceivedAction): Use dispatcher member.
  9170. * src/BtRequestFactory.h
  9171. (BtRequestFactoryWeakHandle): New type definition.
  9172. * src/PeerStorage.h
  9173. (downloadSpeed): int -> uint32_t
  9174. (uploadSpeed): int -> uint32_t
  9175. (sessionDownloadLength): long long int -> uint64_t
  9176. (sessionUploadLength): long long int -> uint64_t
  9177. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. To add RecoverableException, FatalException:
  9179. * src/AbstractCommand.cc
  9180. (onAbort): Exception -> RecoverableException
  9181. * src/PeerAbstractCommand.h
  9182. (RecoverableException.h): New include.
  9183. (onAbort): Exception -> RecoverableException.
  9184. * src/PeerInteractionCommand.cc
  9185. (onAbort): Exception -> RecoverableException.
  9186. * src/PeerAbstractCommand.cc
  9187. (execute): Exception -> RecoverableException.
  9188. (onAbort): Exception -> RecoverableException.
  9189. * src/TorrentRequestInfo.cc
  9190. (execute): Exception -> RecoverableException.
  9191. * src/MetalinkRequestInfo.cc
  9192. (execute): Exception -> RecoverableException.
  9193. * src/MetaFileUtil.cc: RecoverableException.
  9194. * src/AbstractCommand.h
  9195. (onAbort): Exception -> RecoverableException.
  9196. * src/DlRetryEx.h: Exception -> RecoverableException.
  9197. * src/DlAbortEx.h: Exception -> RecoverableException.
  9198. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9199. * src/Util.cc: Exception -> RecoverableException.
  9200. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9201. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9202. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9203. To make ID static const int
  9204. * src/BtInterestedMessage.h
  9205. (ID_t): Removed.
  9206. (ID): New variable.
  9207. (getId): Made non-const.
  9208. * src/BtPieceMessage.h
  9209. (ID_t): Removed.
  9210. (ID): New variable.
  9211. (getId): Made non-const.
  9212. * src/BtChokeMessage.h
  9213. (ID_t): Removed.
  9214. (ID): New variable.
  9215. (getId): Made non-const.
  9216. * src/BtHaveAllMessage.h
  9217. (ID_t): Removed.
  9218. (ID): New variable.
  9219. (getId): Made non-const.
  9220. * src/BtKeepAliveMessage.h
  9221. (ID_t): Removed.
  9222. (ID): New variable.
  9223. (getId): Made non-const.
  9224. * src/BtHandshakeMessage.h
  9225. (ID): New variable.
  9226. (getId): Made non-const.
  9227. * src/BtSuggestPieceMessage.h
  9228. (ID_t): Removed.
  9229. (ID): New variable.
  9230. (getId): Made non-const.
  9231. * src/BtPortMessage.h
  9232. (ID_t): Removed.
  9233. (ID): New variable.
  9234. (getId): Made non-const.
  9235. * src/AbstractBtMessage.h
  9236. (id): Removed.
  9237. (AbstractBtMessage): Removed id.
  9238. (getId): Removed.
  9239. * src/BtHaveMessage.h
  9240. (ID_t): Removed.
  9241. (ID): New variable.
  9242. (getId): Made non-const.
  9243. * src/BtAllowedFastMessage.h
  9244. (ID_t): Removed.
  9245. (ID): New variable.
  9246. (getId): Made non-const.
  9247. * src/BtCancelMessage.h
  9248. (ID_t): Removed.
  9249. (ID): New variable.
  9250. (getId): Made non-const.
  9251. * src/BtNotInterestedMessage.h
  9252. (ID_t): Removed.
  9253. (ID): New variable.
  9254. (getId): Made non-const.
  9255. * src/BtChokeMessage.h
  9256. (ID_t): Removed.
  9257. (ID): New variable.
  9258. (getId): Made non-const.
  9259. * src/BtRejectMessage.h
  9260. (ID_t): Removed.
  9261. (ID): New variable.
  9262. (getId): Made non-const.
  9263. * src/BtBitfieldMessage.h
  9264. (ID_t): Removed.
  9265. (ID): New variable.
  9266. (getId): Made non-const.
  9267. * src/BtUnchokeMessage.h
  9268. (ID_t): Removed.
  9269. (ID): New variable.
  9270. (getId): Made non-const.
  9271. * src/BtRequestMessage.h
  9272. (ID_t): Removed.
  9273. (ID): New variable.
  9274. (getId): Made non-const.
  9275. * src/BtHaveMessage.h
  9276. (ID_t): Removed.
  9277. (ID): New variable.
  9278. (getId): Made non-const.
  9279. To add --force-truncate command-line option and a check whether
  9280. the file already exists:
  9281. * src/DirectDiskAdaptor.h
  9282. (getFilePath): Made virtual public.
  9283. * src/MultiDiskAdaptor.h
  9284. (File.h): New include.
  9285. (DiskWriterEntry::fileEntry): Made private.
  9286. (DiskWriterEntry::fileExists): New function.
  9287. (DiskWriterEntry::getFileEntry): New function.
  9288. (fileExists): New function.
  9289. (getFilePath): New function.
  9290. * src/TorrentRequestInfo.cc
  9291. (FatalException.h): New include.
  9292. (message.h): New include.
  9293. (RecoverableException.h): New include.
  9294. (execute): Added a check whether file is already exists or not.
  9295. * src/DiskAdaptor.h
  9296. (fileExists): New function.
  9297. (getFilePath): New function.
  9298. * src/main.cc
  9299. (showUsage): Added an explanation of --force-truncate command-line
  9300. option.
  9301. (main): Added --force-truncate command-line option.
  9302. * src/Exception.h
  9303. (setMsg): buf[256] -> buf[1024]
  9304. * src/CopyDiskWriter.h
  9305. (getFilePath): Made public virtual.
  9306. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9307. (fileExists): New function.
  9308. * src/DownloadEngineFactory.cc
  9309. (newTorrentConsoleEngine): Don't open file here.
  9310. * src/message.h
  9311. (EX_FILE_ALREADY_EXISTS): New definition.
  9312. * src/prefs.h
  9313. (PREF_FOECE_TRUNCATE): New definition.
  9314. * src/HttpResponseCommand.cc
  9315. (handleDefaultEncoding): Added a check whether the file already exists.
  9316. * src/SegmentMan.h
  9317. (fileExists): New function.
  9318. (shouldCancelDownloadForSafety): New function.
  9319. * src/FtpNegotiateCommand.cc
  9320. (recvSize): Added a check whether the file already exists.
  9321. * src/AbstractSingleDiskAdaptor.cc
  9322. (File.h): New include.
  9323. (fileExists): New function.
  9324. * src/AbstractSingleDiskAdaptor.h
  9325. (getFilePath): Removed.
  9326. (fileExists): New function.
  9327. * src/SegmentMan.cc
  9328. (fileExists): New function.
  9329. (shouldCancelDownloadForSafety): New function.
  9330. To fix regression bug in torrent downloading:
  9331. * src/DefaultBtRequestFactory.cc
  9332. (doChokedAction): New function.
  9333. * src/DefaultBtRequestFactory.h
  9334. (doChokedAction): New function.
  9335. * src/DefaultBtMessageDispatcher.cc
  9336. (doChokedAction): Do not delete request if its target is in allowed
  9337. fast set.
  9338. * src/DefaultBtInteractive.cc
  9339. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9340. (sendKeepAlive): Send keep alive message even if the outgoing message
  9341. queue is not empty.
  9342. (decideInterest): Simplified the code.
  9343. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9344. it is already called when BtChokeMessage is received from a peer.
  9345. * src/BtRequestFactory.h
  9346. (doChokedAction): New function.
  9347. To clean up code:
  9348. * src/PeerInteractionCommand.h
  9349. (executeInternal): Added virtual keyword explicitly.
  9350. (prepareForRetry): Added virtual keyword explicitly.
  9351. (prepareForNextPeer): Added virtual keyword explicitly.
  9352. (onAbort): Added virtual keyword explicitly.
  9353. * src/RequestSlot.cc
  9354. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9355. * src/BtPieceMessage.cc
  9356. (doReceivedAction): Added a debug log of piece's bitfield.
  9357. * src/Piece.h
  9358. (getBitfieldLength): New function.
  9359. * src/ByteArrayDiskWriter.cc
  9360. (clear): Added buf = 0 to avoid double free corruption.
  9361. * src/FileAllocator.cc
  9362. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9363. Added cp.reset().
  9364. * src/BitfieldMan.h
  9365. (operator=): Rewritten.
  9366. * src/BitfieldMan.cc
  9367. (BitfieldMan): Initialized bitfield, useBitfield.
  9368. * src/PeerConnection.cc
  9369. (receiveMessage): Added a call to socket->readable() after getting
  9370. message length to avoid possible EOF.
  9371. * src/Util.cc
  9372. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9373. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. To add an ability to pre-allocate file space:
  9375. * src/DirectDiskAdaptor.h: Rewritten.
  9376. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9377. * src/MultiDiskAdaptor.h: Rewritten.
  9378. * src/DefaultPieceStorage.cc
  9379. (MultiDiskWriter.h): Removed include.
  9380. (PreAllocationDiskWriter.h): Removed include.
  9381. (FileAllocationMonitor.h): New include.
  9382. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9383. (initStorage): Rewritten.
  9384. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9385. * src/FileAllocator.h: New class.
  9386. * src/FileAllocator.cc: New class.
  9387. * src/FileAllocationMonitor.h: New class.
  9388. * src/FileAllocationMonitor.cc: New class.
  9389. * src/ConsoleFileAllocationMonitor.h: New class.
  9390. * src/ConsoleFileAllocationMonitor.cc: New class.
  9391. * src/AbstractSingleDiskAdaptor.h: New class.
  9392. * src/AbstractSingleDiskAdaptor.cc: New class.
  9393. * src/DiskAdaptor.h
  9394. (Directory.h): Removed include.
  9395. (DiskWriter.h): Removed include.
  9396. (FileEntry.h): Removed include.
  9397. (diskWriter): Removed.
  9398. (DiskAdaptor): Removed diskWriter.
  9399. (openFile): Made pure virtual.
  9400. (closeFile): Made pure virtual.
  9401. (openExistingFile): Made pure virtual.
  9402. (initAndOpenFile): Made pure virtual.
  9403. (writeData): Made pure virtual.
  9404. (readData): Made pure virtual.
  9405. (sha1Sum): Made pure virtual.
  9406. (getStoreDir): Returns const reference of storeDir.
  9407. (DiskAdaptorHandle): New type definition.
  9408. * src/main.cc
  9409. (ConsoleFileAllocationMonitor.h): New include.
  9410. (showUsage): Added default value description of -s option.
  9411. Added the description of --file-allocation option.
  9412. (main): Set default value of --file-allocation option to 'none'.
  9413. Added --file-allocation command-line option.
  9414. Setup FileAllocationMonitorFactory.
  9415. * src/FtpInitiateConnectionCommand.cc
  9416. (executeInternal): Removed diskWriter related processing, which was
  9417. moved to FtpNegotiationCommand.cc.
  9418. * src/DirectDiskAdaptor.cc
  9419. (getFilePath): Made non-const.
  9420. * src/CopyDiskAdaptor.h
  9421. (DiskAdaptor.h): Removed include.
  9422. (DiskWriter.h): Removed include.
  9423. (AbstractSingleDiskAdaptor.h): New include.
  9424. (getFilePath): Made non-const. Added virtual keyword.
  9425. (CopyDiskAdaptor): Removed diskWriter.
  9426. (getTempFile): Returns const reference.
  9427. (CopyDiskAdaptorHandle): New type definition.
  9428. * src/ByteArrayDiskWriter.cc
  9429. (clear): Simplified.
  9430. (initAndOpenFile): Rewritten.
  9431. (openFile): Call initAndOpenFile()
  9432. * src/MultiDiskAdaptor.cc: Rewritten.
  9433. * src/DownloadEngineFactory.cc
  9434. (FileAllocator.h): New include.
  9435. (FileAllocationMonitor.h): New include.
  9436. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9437. create DefaultDiskWriter with file allocator.
  9438. * src/DiskWriter.h
  9439. (initAndOpenFile): Added totalLength argument.
  9440. (openFile): Added totalLength argument.
  9441. * src/prefs.h
  9442. (PREF_FILE_ALLOCATION): New definition.
  9443. (V_PREALLOC): New definition.
  9444. (V_NONE): New definition.
  9445. * src/HttpResponseCommand.cc
  9446. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9447. size.
  9448. * src/FtpNegotiateCommand.cc
  9449. (Util.h): New include.
  9450. (recvSize): Open file here.
  9451. * src/Util.h
  9452. (ullitos): New function.
  9453. * src/CopyDiskWriter.h
  9454. (getFilePath): Made non-const.
  9455. * src/DefaultDiskWriter.h
  9456. (Option.h): New include.
  9457. (totalLength): Removed.
  9458. (DefaultDiskWriter): Removed totalLength.
  9459. (initAndOpenFile): Added totalLength argument.
  9460. (DefaultDiskWriterHandle): New type definition.
  9461. (createNewDiskWriter): New function.
  9462. * src/Util.cc
  9463. (ullitos): New function.
  9464. * src/DefaultDiskWriter.cc
  9465. (message.h): New include.
  9466. (FileAllocator.h): New include.
  9467. (prefs.h): New include.
  9468. (Util.h): New include.
  9469. (DefaultDiskWriter): Removed totalLength.
  9470. (initAndOpenFile): Added file allocation.
  9471. (createNewDiskWriter): New function. Just for temporary solution.
  9472. It will be rewritten later.
  9473. * src/DiskAdaptor.cc
  9474. (DiskAdaptor): Removed diskWriter.
  9475. * src/AbstractDiskWriter.cc
  9476. (LogFactory.h): New include.
  9477. (AbstractDiskWriter): Added fileAllocator, logger.
  9478. (openFile): Added totalLength argument.
  9479. * src/AbstractDiskWriter.h
  9480. (FileAllocator.h): New include.
  9481. (Logger.h): New include.
  9482. (fileAllocator): New variable.
  9483. (logger): New variable.
  9484. (openFile): Added totalLength argument. Added virtual keyword
  9485. explicitly.
  9486. (openExistingFile): Added totalLength argument. Added virtual keyword
  9487. explicitly.
  9488. (closeFile): Added virtual keyword explicitly.
  9489. (sha1Sum): Added virtual keyword explicitly.
  9490. (writeData): Added virtual keyword explicitly.
  9491. (readData): Added virtual keyword explicitly.
  9492. (setFileAllocator): New function.
  9493. * src/DefaultPieceStorage.h
  9494. (FileAllocator.h): New include.
  9495. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9496. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9497. * src/FileProgressMonitor.h: New class.
  9498. To compile aria2 on PC-BSD:
  9499. * src/DefaultBtContext.cc
  9500. (libgen.h): New include.
  9501. To fix memory leak:
  9502. * src/Exception.h
  9503. (~Exception): Delete cause. Fixed memory leak.
  9504. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Rewritten a portion of bittorrent implementation:
  9506. * src/BtMessageValidator.h: New class.
  9507. * src/BtBitfieldMessageValidator.h: New class.
  9508. * src/BtHandshakeMessageValidator.h: New class.
  9509. * src/BtRequestMessageValidator.h: New class.
  9510. * src/BtSuggestPieceMessageValidator.h: New class.
  9511. * src/BtAllowedFastMessageValidator.h: New class.
  9512. * src/BtRejectMessageValidator.h: New class.
  9513. * src/BtCancelMessageValidator.h: New class.
  9514. * src/BtPieceMessageValidator.h: New class.
  9515. * src/BtHaveMessageValidator.h: New class.
  9516. * src/BtEventListener.h: New class.
  9517. * src/AbstractBtEventListener.h: New class.
  9518. * src/BtEvent.h: New class.
  9519. * src/BtChokingEvent.h: New class.
  9520. * src/BtChokedEvent.h: New class.
  9521. * src/BtCancelSendingPieceEvent.h: New class.
  9522. * src/BtAbortOutstandingRequestEvent.h: New class.
  9523. * src/Randomizer.h: New class.
  9524. * src/SimpleRandomizer.h: New class.
  9525. * src/BtMessage.h: New class.
  9526. * src/AbstractBtMessage.h: New class.
  9527. * src/SimpleBtMessage.h: New class.
  9528. * src/BtHaveMessage.h: New class.
  9529. * src/BtInterestedMessage.h: New class.
  9530. * src/BtAllowedFastMessage.h: New class.
  9531. * src/BtUnchokeMessage.h: New class.
  9532. * src/BtCancelMessage.h: New class.
  9533. * src/BtNotInterestedMessage.h: New class.
  9534. * src/BtChokeMessage.h: New class.
  9535. * src/BtHaveNoneMessage.h: New class.
  9536. * src/BtHandshakeMessage.h: New class.
  9537. * src/BtSuggestPieceMessage.h: New class.
  9538. * src/BtHaveMessage.h: New class.
  9539. * src/BtPieceMessage.h: New class.
  9540. * src/BtHaveAllMessage.h: New class.
  9541. * src/BtKeepAliveMessage.h: New class.
  9542. * src/BtPortMessage.h: New class.
  9543. * src/BtRejectMessage.h: New class.
  9544. * src/BtBitfieldMessage.h: New class.
  9545. * src/BtRequestMessage.h: New class.
  9546. * src/DefaultBtRequestFactory.h: New class.
  9547. * src/DefaultBtMessageReceiver.h: New class.
  9548. * src/BtInteractive.h: New class.
  9549. * src/BtMessageDispatcher.h: New class.
  9550. * src/DefaultBtMessageDispatcher.h: New class.
  9551. * src/DefaultBtInteractive.h: New class.
  9552. * src/BitfieldManFactory.h: New class.
  9553. * src/HandleRegistry.h: New class.
  9554. * src/BtMessageFactory.h: New class.
  9555. * src/BtMessageReceiver.h: New class.
  9556. * src/DefaultBtMessageFactory.h: New class.
  9557. * src/PeerObject.h: New class.
  9558. * src/BtRequestFactory.h: New class.
  9559. * src/SuggestPieceMessage.h: Removed.
  9560. * src/PortMessage.h: Removed.
  9561. * src/SuggestPieceMessage.h: Removed.
  9562. * src/KeepAliveMessage.h: Removed.
  9563. * src/HandshakeMessage.h: Removed.
  9564. * src/PeerInteraction.h: Removed.
  9565. * src/UnchokeMessage.h: Removed.
  9566. * src/PieceMessage.h: Removed.
  9567. * src/RequestMessage.h: Removed.
  9568. * src/InterestedMessage.h: Removed.
  9569. * src/HaveMessage.h: Removed.
  9570. * src/CancelMessage.h: Removed.
  9571. * src/RejectMessage.h: Removed.
  9572. * src/AllowedFastMessage.h: Removed.
  9573. * src/HaveNoneMessage.h: Removed.
  9574. * src/SimplePeerMessage.h: Removed.
  9575. * src/HaveAllMessage.h: Removed.
  9576. * src/BitfieldMessage.h: Removed.
  9577. * src/PeerMessageFactory.h: Removed.
  9578. * src/NotInterestedMessage.h: Removed.
  9579. * src/ChokeMessage.h: Removed.
  9580. * src/PeerMessage.h: Removed.
  9581. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. To know root cause of exception:
  9583. * src/Exception.h
  9584. (cause): New variable.
  9585. (Exception): Added a parameter.
  9586. (getMsg): Return const reference to msg.
  9587. (getCause): New function.
  9588. * src/DlRetryEx.h
  9589. (DlRetryEx): Added a parameter 'cause'.
  9590. Added an overloaded constructor.
  9591. (DlAbortEx): Added a parameter 'cause'.
  9592. Added an overloaded constructor.
  9593. * src/SimpleLogger.cc
  9594. (writeLog): Log nested exception messages recursively.
  9595. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. * src/DefaultBtProgressInfoFile.cc
  9597. (load): Fixed memory leak when the infohash doesn't match.
  9598. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. * src/DefaultPeerStorage.cc
  9600. (calculateStat): Simplified the code by combining 2 loops into 1.
  9601. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9603. for BitTorrent download:
  9604. * src/PeerAbstractCommand.cc
  9605. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9606. * src/main.cc:
  9607. (timeoutSpecified): Removed.
  9608. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9609. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9610. * src/TorrentRequestInfo.cc
  9611. (timeoutSpecified): Removed.
  9612. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9613. timeout value.
  9614. * src/prefs.h
  9615. (PREF_BT_TIMEOUT): New definition.
  9616. Delete unused variables:
  9617. * src/TorrentRequestInfo.cc
  9618. (requestInfo): Removed.
  9619. Move setSignalHander to Util::setGlobalSignalHandler:
  9620. * src/TorrentRequestInfo.cc:
  9621. setSignalHander -> Util::setGlobalSignalHandler
  9622. * src/main.cc
  9623. (setSignalHander): Removed.
  9624. (main): setSignalHander -> Util::setGlobalSignalHandler
  9625. * src/Util.h
  9626. (setGlobalSignalHandler): New function.
  9627. * src/Util.cc
  9628. (setGlobalSignalHandler): New function.
  9629. * src/UrlRequestInfo.cc:
  9630. setSignalHander -> Util::setGlobalSignalHandler
  9631. Reset peer status in order to exit gracefully:
  9632. * src/PeerAbstractCommand.cc
  9633. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9634. To fix the bug that causes the number of bytes uploaded is not saved
  9635. to .aria2 file:
  9636. * src/DefaultPeerStorage.h
  9637. (removedPeerSessionDownloadLength): New variable.
  9638. (removedPeerSessionUploadLength): New variable.
  9639. * src/DefaultPeerStorage.cc
  9640. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9641. removedPeerSessionUploadLength(0).
  9642. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9643. through all peers, and then add removedPeerSessionDownloadLength(
  9644. removedPeerSessionUploadLength) to it.
  9645. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9646. (to) the peer to removedPeerSessionDownloadLength
  9647. (removedPeerSessionUploadLength).
  9648. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. To add Metalink location option:
  9650. * src/MetalinkRequestInfo.cc
  9651. (execute): Call MetalinkEntry::setLocationPreference()
  9652. * src/main.cc
  9653. (showUsage): Added the help message for --metalink-location option.
  9654. (main): Added --metalink-location option.
  9655. * src/prefs.h
  9656. (PREF_METALINK_LOCATION): New definition.
  9657. * src/MetalinkEntry.cc
  9658. (AddLocationPreference): New function object.
  9659. (setLocationPreference): New function.
  9660. * src/Xml2MetalinkProcessor.cc
  9661. (getResource): Set location attribute to MetalinkResource
  9662. To show URLs to download
  9663. * src/UrlRequestInfo.h
  9664. (printUrls): New function.
  9665. To add multiple <file> Metalink support:
  9666. * src/MetalinkEntry.h
  9667. (MetalinkResources): Removed.
  9668. (setLocationPreference): New function.
  9669. (MetalinkEntryHandle): New type definition.
  9670. (MetalinkEntries): New type definition.
  9671. * src/Xml2MetalinkProcessor.h
  9672. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9673. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9674. (parseFile): Metalinker* -> MetalinkerHandle
  9675. * src/UrlRequestInfo.h
  9676. (execute): RequestInfo* -> RequestInfos
  9677. * src/MetalinkRequestInfo.cc
  9678. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9679. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9680. (execute): RequestInfo* -> RequestInfos
  9681. Added multiple <file> support. Print filename when it is queued.
  9682. * src/MetalinkRequestInfo.h
  9683. (execute): RequestInfo* -> RequestInfos
  9684. (getDownloadEngine): Removed.
  9685. * src/RequestInfo.h
  9686. (RequestInfoHandle): New type definition.
  9687. (RequestInfos): New type definition.
  9688. (execute): RequestInfo* -> RequestInfos
  9689. (getDownloadEngine): Removed.
  9690. * src/MetalinkResource.h
  9691. (MetalinkResourceHandle): New type definition.
  9692. (MetalinkResources): New type definition.
  9693. * src/MetalinkEntry.cc
  9694. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9695. because the element is now of type MetalinkResourceHandle.
  9696. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9697. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9698. (dropUnsupportedResource): Removed the deletion of the elements of
  9699. resources because the element is now of type MetalinkResourceHandle.
  9700. * src/Xml2MetalinkProcessor.cc
  9701. (parseFile): Metalinker* -> MetalinkerHandle
  9702. MetalinkEntry* -> MetalinkEntryHandle
  9703. Removed try-catch block.
  9704. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9705. MetalinkResource* -> MetalinkResourceHandle
  9706. Removed try-catch block.
  9707. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9708. Free result by using xmlXPathFreeObject()
  9709. * src/Metalinker.cc
  9710. (~Metalinker): Removed the deletion of entries.
  9711. MetalinkEntry* -> MetalinkEntryHandle
  9712. (queryEntry): Add multiple <file> Metalink support.
  9713. * src/Metalinker.h
  9714. (MetalinkEntries): Removed.
  9715. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9716. * src/MetalinkProcessor.h
  9717. (parseFile): Metalinker* -> MetalinkerHandle
  9718. Bug fixes:
  9719. * src/PeerChokeCommand.cc
  9720. (execute): cat01->cat02
  9721. * src/DefaultPieceStorage.cc
  9722. (DefaultPieceStorage): Added diskAdaptor(0)
  9723. * src/TrackerWatcherComand.cc:
  9724. (execute): Use btAnnounce->noMoreAnnounce()
  9725. to determin whether the function returns true or not.
  9726. * src/TrackerUpdateCommand.cc:
  9727. (execute): Use btAnnounce->noMoreAnnounce()
  9728. to determin whether the function returns true or not.
  9729. * src/FtpConnection.cc
  9730. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9731. This is the fix of the busy loop bug.
  9732. * src/DownloadCommand.cc
  9733. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9734. cached PeerStat.
  9735. The value of "name" entry in torrent file is now set by
  9736. *DiskAdaptor::setTopDir(...) methods.
  9737. * src/MultiDiskAdaptor.h
  9738. (topDir): New variable.
  9739. (setTopDir): New function.
  9740. (getTopDir): New function.
  9741. * src/MultiDiskAdaptor.cc
  9742. (getFilePath): Concat storDir, "/" and topDir.
  9743. (mkdir): Use getFilePath() to get the directory path for output.
  9744. * src/DefaultPieceStorage.cc
  9745. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9746. CopyDiskAdaptor.
  9747. * src/CopyDiskAdaptor.h
  9748. (topDir): New variable.
  9749. (setTopDir): New function.
  9750. (getTopDir): New function.
  9751. * src/CopyDiskAdaptor.cc
  9752. (fixFilename): Updated.
  9753. Misc
  9754. * src/UrlRequestInfo.h
  9755. (e): Removed.
  9756. (UrlRequestInfo): Removed e.
  9757. (getDownloadEngine): Removed.
  9758. * src/UrlRequestInfo.cc
  9759. (handler): Rewritten.
  9760. (printUrls): New function.
  9761. (execute): Call printUrls().
  9762. * src/HandshakeMessage.cc
  9763. (check): peerinteraction->getBtContext() -> btContext
  9764. * src/PeerInteraction.h
  9765. (getBtContext): Removed.
  9766. * src/TorrentRequestInfo.h
  9767. (execute): RequestInfo* -> RequestInfos
  9768. (getDownloadEngine): Removed.
  9769. * src/TorrentRequestInfo.cc
  9770. (haltRequested): Removed.
  9771. (btHaltRequested): New variable.
  9772. (torrentHandler): haltRequested -> btHaltRequested
  9773. (execute): RequestInfo* -> RequestInfos
  9774. * src/TorrentConsoleDownloadEngine.cc
  9775. (afterEachIteration): haltRequested -> btHaltRequested.
  9776. * src/ConsoleDownloadEngine.h
  9777. (initStatistics): Added virtual.
  9778. (calculateStatistics): Added virtual.
  9779. (onEndOfRun): Added virtual.
  9780. (afterEachIteration): Added virtual.
  9781. * src/ConsoleDownloadEngine.cc
  9782. (haltRequested): New variable.
  9783. (afterEachIteration): New function.
  9784. * src/main.cc
  9785. (requestInfo): Removed.
  9786. * src/SegmentMan.cc
  9787. (findSlowerSegmentEntry): Refactored.
  9788. * Release 0.9.0
  9789. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9791. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9792. * src/TorrentMan.h: Removed.
  9793. * src/TorrentMan.cc: Removed.
  9794. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9795. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9796. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9797. * src/PeerAbstractCommand.cc: Use btRuntime.
  9798. * src/BtContextAwareCommand.h: New class.
  9799. * src/FileEntry.h: Added accessor methods for following variables.
  9800. (path): Made private.
  9801. (length): Made private.
  9802. (offset): Made private.
  9803. (extracted): Made private.
  9804. (requested): Made private.
  9805. (FileEntries): New definition.
  9806. (FileEntryHandle): New definition.
  9807. * src/FileEntry.cc: New file.
  9808. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9809. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9810. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9811. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9812. * src/PieceStorage.h: New file.
  9813. * src/PeerInteractionCommand.h: Use btContext.
  9814. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9815. btRuntime.
  9816. * src/DefaultBtProgressInfoFile.h: New file.
  9817. * src/DefaultBtProgressInfoFile.cc: New file.
  9818. * src/File.cc
  9819. (Util.h): New include.
  9820. (mkdirs): New function.
  9821. * src/MultiDiskAdaptor.h
  9822. (mkdir): New function.
  9823. * src/PeerListProcessor.h
  9824. (Peers): Removed.
  9825. * src/PeerInteraction.h
  9826. (torrentMan): Removed.
  9827. (btContext): New variable.
  9828. (peerStorage): New variable.
  9829. (pieceStorage): New variable.
  9830. (btAnnounce): New variable.
  9831. (getTorrentMan): Removed.
  9832. (getBtContext): New function.
  9833. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9834. btAnnounce.
  9835. * src/HandshakeMessage.h
  9836. (TorrentMan.h): Removed.
  9837. * src/HandshakeMessage.cc: Use btContext.
  9838. * src/DefaultBtAnnounce.cc: New file.
  9839. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9840. * src/DefaultPieceStorage.cc: New file.
  9841. * src/DefaultBtContext.h: New file.
  9842. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9843. Use the accessor methods of FileEntry.
  9844. * src/CookieBox.cc: Updated to use Util::slice().
  9845. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9846. * src/common.h (SharedHandle.h): New include.
  9847. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9848. pieceStorage.
  9849. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9850. * src/DiskAdaptor.h
  9851. (topDir): Removed.
  9852. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9853. (setTopDir): Removed.
  9854. (getTopDir): Removed.
  9855. * src/BtContext.h: New file.
  9856. * src/DefaultPeerStorage.h: New file.
  9857. * src/PieceMessage.h (TorrentMan.h): Removed.
  9858. * src/RequestMessage.h (TorrentMan.h): Removed.
  9859. * src/TorrentDownloadEngine.h
  9860. (uploadLength): New variable.
  9861. (btContext): New variable.
  9862. (btRuntime): New variable.
  9863. (pieceStorage): New variable.
  9864. (peerStorage): New variable.
  9865. (btAnnounce): New variable.
  9866. (btProgressInfoFile): New variable.
  9867. (torrentMan): Removed.
  9868. (setBtContext): New function.
  9869. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9870. peerStorage, btAnnounce, btProgressInfoFile.
  9871. * src/Piece.h
  9872. (toString): New function.
  9873. (Pieces): New type definition.
  9874. * src/Peer.h
  9875. (active): New variable.
  9876. (Peer): Added active.
  9877. (activate): Set active to true.
  9878. (deactivate): Set active to false.
  9879. (isActive): New function.
  9880. (Peers): New type definition.
  9881. * src/DirectDiskAdaptor.cc
  9882. (getFilePath): Use the accessor methods of FileEntry.
  9883. * src/TorrentConsoleDownloadEngine.h
  9884. (afterEachIteration): New function.
  9885. * src/TorrentConsoleDownloadEngine.cc
  9886. (haltRequested): New variable.
  9887. (sendStatistics): Use pieceStorage, btRuntime.
  9888. (afterEachIteration): New function.
  9889. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9890. * src/Directry.h
  9891. (Directory): New function.
  9892. (DirectoryHandle): New type definition.
  9893. * src/BtProgressInfoFile.h: New file.
  9894. * src/RequestMessage.cc: Use pieceStorage.
  9895. * src/BtRuntime.h: New file.
  9896. * src/DefaultBtContext.cc: New file.
  9897. * src/BitfieldMan.h
  9898. (getCompletedLength): New function(private).
  9899. (getCompletedLength): New function.
  9900. (getFilteredCompletedLength): New function.
  9901. * src/BitfieldMan.h
  9902. (getCompletedLength): New function(private).
  9903. (getCompletedLength): New function.
  9904. (getFilteredCompletedLength): New function.
  9905. * src/MultiDiskAdaptor.cc
  9906. (mkdir): New function.
  9907. (openFile): Call mkdir().
  9908. (initAndOpenFile): Call mkdir().
  9909. * src/CancelMessage.h
  9910. (TorrentMan.h): Removed.
  9911. * src/RejectMessage.h
  9912. (TorrentMan.h): Removed.
  9913. * src/DownloadEngineFactory.cc
  9914. (DefaultPieceStorage.h): New include.
  9915. (DefaultPeerStorage.h): New include.
  9916. (DefaultBtAnnounce.h): New include.
  9917. (DefaultBtProgressInfoFile.h): New include.
  9918. (newTorrentConsoleEngine): Rewritten.
  9919. * src/ShareRatioSeedCriteria.h
  9920. (torrentMan): Removed.
  9921. (btContext): New variable.
  9922. (peerStorage): New variable.
  9923. (btRuntime): New variable.
  9924. (evaluate): Use btContext, btRuntime, peerStorage.
  9925. * src/AnnounceTier.h: New file.
  9926. * src/BtAnnounce.h: New file.
  9927. * src/BtRegistry.h: New file.
  9928. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9929. * src/PeerConnection.h (TorrentMan.h): Removed.
  9930. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9931. * src/Util.h
  9932. (slice): Added an argument.
  9933. * src/Util.cc
  9934. (slice): Added an argument to control whether trim is made or not.
  9935. * src/PeerStorage.h: New file.
  9936. * src/BtRegistry.cc: New file.
  9937. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9938. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9939. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9940. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9941. * src/TorrentRequestInfo.h
  9942. (e): Removed.
  9943. (showFileEntry): Added an argument.
  9944. (getDownloadEngine): Return 0.
  9945. * src/DefaultBtAnnounce.h: New file.
  9946. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9947. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9948. * src/PeerMessageFactory.h
  9949. (btContext): New variable.
  9950. (pieceStorage): New variable.
  9951. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9952. btAnnounce.
  9953. * src/DiskAdaptor.cc
  9954. (DiskAdaptor): Removed topDir.
  9955. (~DiskAdaptor): Removed topDir.
  9956. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9957. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9958. * src/File.h (mkdirs): New function.
  9959. * src/DefaultPeerStorage): New file.
  9960. * src/DownloadEngineFactory.h
  9961. (newTorrentConsoleEngine): Use btContext.
  9962. * src/BtContextAwareCommand.cc: New file.
  9963. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9964. * src/PeerMessage.h
  9965. (btContext): New variable.
  9966. (peerStorage): New variable.
  9967. (pieceStorage): New variable.
  9968. (setBtContext): New function.
  9969. * src/Directry.cc
  9970. (Directory): New function.
  9971. (createDir): Do nothing if name.size() == 0.
  9972. * src/AnnounceList.h
  9973. (AnnounceTier): Removed.
  9974. (AnnounceTiers): Removed.
  9975. * src/DefaultPieceStorage.h: New file.
  9976. * src/Piece.cc (toString): New function.
  9977. To fix typo:
  9978. * src/main.cc (showVersion): Fixed typo.
  9979. To fix compile warning:
  9980. * src/DelegatingPeerListProcessor.cc
  9981. (canHandle): Added "return false".
  9982. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9984. make the process of announce request testable.
  9985. * src/TrackerWatcherCommand.h
  9986. (TimeA2.h): Removed.
  9987. (interval): Removed.
  9988. (checkPoint): Removed.
  9989. (createRequestCommand): Added an argument 'url'.
  9990. (TrackerWatherCommand): Removed interval.
  9991. (createCommand): New function.
  9992. * src/DownloadEngineFactory.cc
  9993. (newTorrentConsoleEngine): Updated according to the changes in
  9994. TrackerWatherCommand.
  9995. * src/TorrentMan.cc
  9996. (DelegatingPeerListProcessor.h): New includes.
  9997. (TorrentMan): Added the initialization of announceInterval.
  9998. (isStoppedAnnounceReady): New function.
  9999. (isCompletedAnnounceReady): New function.
  10000. (isDefaultAnnounceReady): New function.
  10001. (isAnnounceReady): New function.
  10002. (getAnnounceUrl): New function.
  10003. (announceStart): New function.
  10004. (announceFailure): New function.
  10005. (announceSuccess): New function.
  10006. (isAllAnnounceFailed): New function.
  10007. (resetAnnounce): New function.
  10008. (processAnnounceResponse): New function.
  10009. (needMorePeerConnection): New function.
  10010. (noMoreAnnounce): New function.
  10011. * src/TrackerUpdateCommand.h
  10012. (getTrackerResponse): int->size_t
  10013. * src/TorrentMan.h
  10014. (isStoppedAnnounceReady): New function.
  10015. (isCompletedAnnounceReady): New function.
  10016. (isDefaultAnnounceReady): New function.
  10017. (announceInterval): New variable.
  10018. (isAnnounceReady): New function.
  10019. (getAnnounceUrl): New function.
  10020. (announceStart): New function.
  10021. (announceFailure): New function.
  10022. (announceSuccess): New function.
  10023. (isAllAnnounceFailed): New function.
  10024. (resetAnnounce): New function.
  10025. (processAnnounceResponse): New function.
  10026. (needMorePeerConnection): New function.
  10027. (noMoreAnnounce): New function.
  10028. * src/TrackerWatcherCommand.cc
  10029. (TrackerWatherCommand): Removed interval and checkPoint.
  10030. (execute): Rewritten.
  10031. (createCommand): New function.
  10032. (createRequestCommand): Rewritten.
  10033. * src/TrackerUpdateCommand.cc
  10034. (MetaFileUtil.h): Removed.
  10035. (DelegatingPeerListProcessor.h): Removed.
  10036. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10037. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Request -> RequestHandle:
  10039. * src/HttpResponseCommand.h: Request->RequestHandle
  10040. * src/AbstractCommand.cc: Request->RequestHandle
  10041. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10042. * src/HttpRequestCommand.cc: Request->RequestHandle
  10043. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10044. * src/AbstractCommand.h: Request->RequestHandle
  10045. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10046. * src/HttpResponseCommand.cc: Request->RequestHandle
  10047. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10048. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10049. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10050. * src/HttpConnection.h: Request->RequestHandle
  10051. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10052. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10053. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10054. * src/DownloadCommand.h: Request->RequestHandle
  10055. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10056. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10057. * src/HttpRequestCommand.h: Request->RequestHandle
  10058. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10059. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10060. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10061. * src/HttpDownloadCommand.h: Request->RequestHandle
  10062. * src/FtpConnection.cc: Request->RequestHandle
  10063. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10064. * src/UrlRequestInfo.cc: Request->RequestHandle
  10065. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10066. * src/HttpConnection.h: Request->RequestHandle
  10067. * src/DownloadCommand.cc: Request->RequestHandle
  10068. * src/FtpConnection.h: Request->RequestHandle
  10069. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10070. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10071. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10072. * src/Request.h
  10073. (SharedHandle.h): New include.
  10074. (RequestHandle): New type definition.
  10075. (Requests): Redefined.
  10076. To add MULTITRACKER support:
  10077. * src/TrackerWatcherCommand.h
  10078. (createRequestCommand): New function.
  10079. * src/DownloadEngineFactory.cc
  10080. (newTorrentConsoleEngine): Removed req.
  10081. * src/prefs.h
  10082. (PREF_TRACKER_MAX_TRIES): New definition.
  10083. * src/TorrentMan.cc
  10084. (TorrentMan): Removed req. Added trackerNumTry.
  10085. (~TorrentMan): Removed req.
  10086. (setupInternal1): Added announceList.
  10087. * src/TorrentRequestInfo.cc
  10088. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10089. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10090. * src/main.cc
  10091. (main): Added PREF_TRACKER_MAX_TRIES.
  10092. * src/TorrentMan.h
  10093. (Request.h): Removed.
  10094. (AnnounceList.h): New include.
  10095. (trackerNumTry): New variable.
  10096. (req): Removed.
  10097. (announceList): New variable.
  10098. * src/TrackerWatcherCommand.cc
  10099. (execute): Rewritten.
  10100. (createRequestCommand): New function.
  10101. * src/TrackerUpdateCommand.cc
  10102. (execute): Updated with the use of AnnounceList.
  10103. * src/AnnounceList.cc: New class.
  10104. * src/AnnounceList.h: New class.
  10105. To fix typo:
  10106. * src/prefs.h
  10107. (PREF_MAX_TRIES): max_try->max_tries
  10108. To not to decode "+" as space in URL decode:
  10109. * src/Util.cc
  10110. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10111. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10112. To add timeout to async name resolution:
  10113. * src/AbstractCommand.h
  10114. (nameResolveFinished): New function. This is not elegant way. It needs
  10115. to be more refined.
  10116. (nameResolverCheck): New variable.
  10117. * src/AbstractCommand.cc
  10118. (AbstractCommand): Added nameResolverCheck.
  10119. (execute): Added the check whether the name resolution has finished.
  10120. (setNameResolverCheck): Set nameResolverCheck to true.
  10121. (disableNameResolverCheck): Set nameResolverCheck to false.
  10122. (nameResolverFinished): New function.
  10123. * src/FtpInitiateConnectionCommand.h
  10124. (nameResolverFinished): New function.
  10125. * src/FtpInitiateConnectionCommand.cc
  10126. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10127. * src/HttpInitiateConnectionCommand.h
  10128. (nameResolverFinished): New function.
  10129. * src/HttpInitiateConnectionCommand.cc
  10130. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10131. * src/prefs.h
  10132. (PREF_DNS_TIMEOUT): New definition.
  10133. * src/main.cc
  10134. (main): Added PREF_DNS_TIMEOUT.
  10135. To add the support for a non-compact response from a tracker:
  10136. * src/PeerListProcessor.h: New class.
  10137. * src/DefaultPeerListProcessor.h: New class.
  10138. * src/DefaultPeerListProcessor.cc: New class.
  10139. * src/CompactPeerListProcessor.h: New class.
  10140. * src/CompactPeerListProcessor.cc: New class.
  10141. * src/DelegatingPeerListProcessor.h: New class.
  10142. * src/DelegatingPeerListProcessor.cc: New class.
  10143. * src/TorrentMan.cc
  10144. (addPeer): New function(overload).
  10145. (addPeer): Delete unused peers only when new peer is added.
  10146. * src/TorrentMan.h
  10147. (PeerListProcessor.h): Included.
  10148. (Peers): Removed.
  10149. (addPeer): New function(overload).
  10150. * src/TrackerUpdateCommand.cc
  10151. (netinet/in.h): Removed.
  10152. (DelegatingPeerListProcessor.h): Included.
  10153. (execute): Updated to use DelegatingPeerListProcessor.
  10154. To fix the memory leak in TorrentMan::peers:
  10155. * src/PeerAbstractCommand.cc
  10156. (onAbort): Added peer->resetStatus().
  10157. * src/Peer.h
  10158. (resetStatus): Made public.
  10159. To improve the precision of the speed calculation:
  10160. * src/SpeedCalc.h
  10161. (nextInterval): New variable.
  10162. * src/SpeedCalc.cc
  10163. (reset): Added nextInterval.
  10164. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10165. (changeSw): Set nextInterval to 15 seconds relative to the current
  10166. instant time.
  10167. * src/main.cc
  10168. (showVersion): Updated.
  10169. (showUsage): Updated.
  10170. * Release 0.8.1
  10171. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. * src/main.cc
  10173. (showUsage): Commented out --min-segment-size option.
  10174. (main): Commented out --min-segment-size option.
  10175. * Release 0.8.0
  10176. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. * src/*.{h,cc}:
  10178. Added an exception to the license which allows linking with OpenSSL.
  10179. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. * src/AbstractCommand.cc
  10181. (execute): Check whether the download has finished before checking
  10182. socket status.
  10183. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10184. Do not exit even if no segment is available.
  10185. * src/prefs.h
  10186. (PREF_STARTUP_IDLE_TIME): New definition.
  10187. * src/PeerInteractionCommand.cc
  10188. (executeInternal): Removed max speed limit. Because it performs bad.
  10189. (receiveMessages): Added max speed limit. This was better than above,
  10190. but still a little bit to be desired. Sometimes the download speed
  10191. became much faster than I specified.
  10192. * src/SpeedCalc.h
  10193. (start): New variable.
  10194. (accumulatedLength): New variable.
  10195. (getAvgSpeed): New function.
  10196. * src/SpeedCalc.cc
  10197. (reset): Added start, accumulatedLength.
  10198. (update): Added calculation of an average speed.
  10199. (getAvgSpeed): New function.
  10200. * src/DownloadCommand.h
  10201. (sw): Removed.
  10202. * src/main.cc
  10203. (main): Added PREF_STARTUP_IDLE_TIME.
  10204. * src/PeerStat.h
  10205. (STATUS): Added REQUEST_IDLE.
  10206. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10207. (getAvgDownloadSpeed): New function
  10208. (requestIdle): New function.
  10209. * src/SegmentMan.h
  10210. (SegmentEntryHandle): New type definition.
  10211. (SegmentEntries): Now holds SegmentEntryHandle.
  10212. (findSlowerSegmentEntry): New funtion.
  10213. * src/SegmentMan.cc
  10214. (save): Updated according to the changes in SegmentEntries.
  10215. (read): Updated according to the changes in SegmentEntries.
  10216. (FindSegmentEntryByIndex): Updated according to the changes in
  10217. SegmentEntries.
  10218. (FindSegmentEntryByCuid): Updated according to the changes in
  10219. SegmentEntries.
  10220. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10221. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10222. Renamed uitr as itr.
  10223. (findSlowerSegmentEntry): New function.
  10224. (getSegment): Updated according to the changes in SegmentEntries.
  10225. Added the feature that cancels the segment with slow server and fast
  10226. one takes it over.
  10227. (cancelSegment): Updated according to the changes in SegmentEntries.
  10228. (getDownloadLength): Updated according to the changes in
  10229. SegmentEntries.
  10230. (init): Assigned 0 to bitfield after deleting it.
  10231. * src/DownloadCommand.cc
  10232. (STARTUP_IDLE_TIME): Removed.
  10233. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10234. * src/PeerChokeCommand.cc
  10235. (optUnchokingPeer): Updated according to the changes in Peer.
  10236. (ResetDelta): Removed.
  10237. (UploadFaster): Updated according to the changes in Peer.
  10238. (DownloadFaster): Updated according to the changes in Peer.
  10239. (execute): I clarify the meaning of "upload" and "download" here.
  10240. "upload" means the transfer from localhost to remote host.
  10241. "download" means the transfer from remote host to localhost.
  10242. Based on this rule, I swapped orderByUploadRate and
  10243. orderByDownloadRate.
  10244. * src/PeerInteractionCommand.cc
  10245. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10246. (executeInternal): Removed the argument of
  10247. peerInteraction->sendMessages().
  10248. (receiveMessages): Rewritten download speed limit.
  10249. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10250. * src/HttpResponseCommand.cc
  10251. (handleDefaultEncoding): If file size is unknown in torrent request,
  10252. do not call segmentMan->initBitfield() here.
  10253. Disabled persistent connection feature in torrent request.
  10254. * src/UrlRequestInfo.h
  10255. (UrlRequestInfo): Removed const qualifier from option.
  10256. * src/TorrentMan.h
  10257. (TransferStat): New class.
  10258. (deltaDownloadLength): Removed.
  10259. (deltaUploadLength): Removed.
  10260. (addDeltaDownloadLength): Removed.
  10261. (getDeltaDownloadLength): Removed.
  10262. (resetDeltaDownloadLength): Removed.
  10263. (addDeltaUploadLength): Removed.
  10264. (getDeltaUploadLength): Removed.
  10265. (resetDeltaUploadLength): Removed.
  10266. (addActivePeer): Added peer->activate().
  10267. (deleteActivePeer): Added peer->deactivate().
  10268. (calculateStat): New function.
  10269. * src/TorrentMan.cc
  10270. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10271. (calculateStat): New function.
  10272. * src/PeerInteraction.h
  10273. (uploadLimit): Removed.
  10274. (option): New variable.
  10275. (setUploadLimit): Removed.
  10276. (getUploadSpeed): Removed.
  10277. (sendMessages): Removed the argument "currentUploadSpeed".
  10278. * src/PeerInteraction.cc
  10279. (prefs.h): Included.
  10280. (PeerInteraction): Removed uploadLimit. Added option.
  10281. (sendMessages): Rewritten upload speed limit.
  10282. (sendHandshake): Removed the argument from sendMessages().
  10283. (sendBitfield): Removed the argument from sendMessages().
  10284. * src/PeerAbstractCommand.cc
  10285. (execute): Commented out the portion of upload limit.
  10286. (onAbort): Removed peer->resetStatus().
  10287. * src/TorrentRequestInfo.cc
  10288. (timeoutSpecified): Declared extern.
  10289. (execute): Set timeout to 180 if timeout is not specified by.
  10290. command-line.
  10291. * src/PieceMessage.cc
  10292. (receivedAction): Added peer->updateDownloadLength().
  10293. Removed peer->addPeerUpload().
  10294. Removed torrentMan->addDeltaDownloadLength().
  10295. (send): Added peer->updateUploadLength().
  10296. Removed peer->addPeerDownload().
  10297. Removed torrentMan->addDeltaUploadLength().
  10298. * src/main.cc
  10299. (timeoutSpecified): New variable.
  10300. (main): Set timeoutSpecified to false.
  10301. If the command-line option "--upload-limit" is specified, then
  10302. timeoutSpecified is set to true. This option will remain in the next
  10303. release, but be deprecated in the future release.
  10304. * src/TorrentRequestInfo.h
  10305. (TorrentRequestInfo): Removed const qualifier from op.
  10306. * src/PeerStat.h
  10307. (uploadSpeed): New variable.
  10308. (PeerStat): Added default value to cuid.
  10309. (calculateUploadSpeed): New function.
  10310. (updateUploadLength): New function.
  10311. (getMaxUploadSpeed): New function.
  10312. (getAvgUploadSpeed): New function.
  10313. (reset): Added uploadSpeed. Set status to IDLE.
  10314. * src/TorrentDownloadEngine.h
  10315. (cp): Declared as Time.
  10316. (sessionDownloadLengthArray): Removed.
  10317. (sessionUploadLengthArray): Removed.
  10318. (currentCp): Removed.
  10319. (lastCalcStat): New variable
  10320. (lastElapsed): Removed.
  10321. (sessionDownloadLength): Removed.
  10322. (calculateStat): New function.
  10323. * src/TorrentDownloadEngine.cc
  10324. (initStatistics): Removed lastElapsed, cp[],
  10325. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10326. currentCp, sessionDownloadLength.
  10327. Added cp.reset() and lastCalcStat.reset().
  10328. (calculateSpeed): Changed the name of the argument.
  10329. (calculateStatistics): Rewritten.
  10330. (calculateStat): New function.
  10331. * src/Peer.h
  10332. (PeerStat.h): Included.
  10333. (peerUpload): Removed.
  10334. (peerDownload): Removed.
  10335. (peerStat): New variable.
  10336. (sessionUploadLength): New variable.
  10337. (sessionDownloadLength): New variable.
  10338. (deltaUpload): Removed.
  10339. (deltaDownload): Removed.
  10340. (resetStatus): Made private.
  10341. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10342. Removed peerUpload, peerDownload.
  10343. (updateUploadLength): New function.
  10344. (addDeltaUpload): Removed.
  10345. (updateDownloadLength): New function.
  10346. (resetDeltaUpload): Removed.
  10347. (getDeltaUpload): Removed.
  10348. (addDeltaDownload): Removed.
  10349. (calculateUploadSpeed): New function.
  10350. (resetDeltaDownload): Removed.
  10351. (getDeltaDownload): Removed.
  10352. (calculateDownloadSpeed): New function.
  10353. (getSessionUploadLength): New function.
  10354. (getSessionDownloadLength): New function.
  10355. (activate): New function.
  10356. (deactivate): New function.
  10357. (addPeerUpload): Removed.
  10358. (setPeerUpload): Removed.
  10359. (getPeerUpload): Removed.
  10360. (addPeerDownload): Removed.
  10361. (setPeerDownload): Removed.
  10362. (getPeerDownload): Removed.
  10363. * src/Peer.cc
  10364. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10365. * src/MetalinkRequestInfo.h
  10366. (MetalinkRequestInfo): Removed const qualifier from op.
  10367. * src/RequestInfo.h
  10368. (op): Removed const qualifier.
  10369. (RequestInfo): Removed const qualifier from op.
  10370. * src/prefs.h
  10371. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10372. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10373. * src/PeerInteractionCommand.cc
  10374. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10375. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10376. * src/PeerInteraction.cc
  10377. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10378. * src/main.cc
  10379. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10380. Added the description of "--max-download-limit" option.
  10381. Removed the description of "--upload-limit" option.
  10382. Added the description of "--max-upload-limit" option.
  10383. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10384. Added "--max-download-limit" option and "--max-upload-limit" option.
  10385. Added the warning message if "--upload-limit" option is used.
  10386. * src/DownloadCommand.cc
  10387. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10388. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. To rewrite segment download mechanism for HTTP/FTP download.
  10390. Use BitfieldMan to manage segment download.
  10391. * src/HttpResponseCommand.h
  10392. (executeInternal): Pass the reference of segment.
  10393. * src/AbstractCommand.cc
  10394. (prepareForRetry): Call segmentMan->cancelSegment here.
  10395. (onAbort): Call segmentMan->cancelSegment here.
  10396. * src/HttpDownloadCommand.cc
  10397. (prepareForNextSegment): New function.
  10398. * src/DownloadEngineFactory.cc
  10399. (newConsoleEngine): Removed splitter.
  10400. (newTorrentConsoleEngine): Removed splitter.
  10401. * src/Request.h
  10402. (segment): Renamed from seg.
  10403. * src/FtpInitiateConnectionCommand.h
  10404. (executeInternal): Pass the reference of segment.
  10405. * src/AbstractCommand.h
  10406. (executeInternal): Pass the reference of segment.
  10407. * src/pref.h
  10408. (PREF_SEGMENT_SIZE): New definition.
  10409. * src/HttpProxyRequestCommand.h
  10410. (executeInternal): Pass the reference of segment.
  10411. * src/HttpResponseCommand.cc
  10412. (checkResponse): Allowed status 206 when a request range starts 0.
  10413. (handleDefaultEncoding): Rewritten the code related to Segment.
  10414. (handleOtherEncoding): Rewritten the code related to Segment.
  10415. * src/SegmentMan.h
  10416. (SegmentEntry): New class.
  10417. (SegmentEntries): New type definition.
  10418. (bitfield): New variable.
  10419. (usedSegmentEntries): New variable.
  10420. (onNullBitfield): New function.
  10421. (checkoutSegment): New function.
  10422. (segments): Removed.
  10423. (splitter): Removed.
  10424. (unregisterId): Removed.
  10425. (getSegment): New function(overload)
  10426. (getDownloadedSize): Removed.
  10427. (cancelSegment): New function.
  10428. (completeSegment): New function.
  10429. (initBitfield): New function.
  10430. (hasSegment): New function.
  10431. (getDownloadLength): New function.
  10432. * src/BitfieldMan.h
  10433. (getStartIndex): New function.
  10434. (getEndIndex): New function.
  10435. (getMissingUnusedIndex): New function(overload).
  10436. (getSparseMissingUnusedIndex): New function.
  10437. * src/BitfieldMan.cc
  10438. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10439. (getMissingUnusedIndex): New function(overload).
  10440. (Range): New class.
  10441. (getStartIndex): New function.
  10442. (getEndIndex): New function.
  10443. (getSparseMissingUnusedIndex): New function.
  10444. (isBitSetInternal): Return false if the given index is less than 0.
  10445. * src/HttpInitiateConnectionCommand.h
  10446. (executeInternal): Pass the reference of segment.
  10447. * src/FtpNegotiateCommand.h
  10448. (executeInternal): Pass the reference of segment.
  10449. * src/FtpNegotiateCommand.cc
  10450. (recvSize): Initialize bitfield here.
  10451. * src/FtpTunnelResponseCommand.h
  10452. (executeInternal): Pass the reference of segment.
  10453. * src/HttpConnection.cc
  10454. (createRequest): Rewritten range header processing.
  10455. * src/DownloadCommand.h
  10456. (executeInternal): Pass the reference of segment.
  10457. (prepareForRetry): Removed.
  10458. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10459. function.
  10460. * src/main.cc
  10461. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10462. * src/SegmentMan.cc
  10463. (SegmentMan): Added bitfield. Removed splitter.
  10464. (~SegmentMan): Added bitfield. Removed splitter.
  10465. (unregisterId): Removed.
  10466. (getSegment): Rewritten.
  10467. (updateSegment): Rewritten.
  10468. (save): Rewritten.
  10469. (read): Rewritten.
  10470. (finished): Rewritten.
  10471. (getDownloadedSize): Removed.
  10472. (initBitfield): New function.
  10473. (FindSegmentEntryByIndex): New function object.
  10474. (FindSegmentEntryByCuid): New function object.
  10475. (checkoutSegment): New function.
  10476. (onNullBitfield): New function.
  10477. (getSegment): New function(overload).
  10478. (CancelSegment): New function object.
  10479. (cancelSegment): New function.
  10480. (completeSegment): New function.
  10481. (hasSegment): New function.
  10482. (getDownloadLength): New function.
  10483. * src/FtpInitiateConnectionCommand.cc
  10484. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10485. * src/Segment.h: Rewritten.
  10486. * src/Segment.cc (operator<<): New function.
  10487. * src/HttpDownloadCommand.h
  10488. (prepareForNextSegment): New function.
  10489. * src/Request.cc
  10490. (resetUrl): Made segment null.
  10491. * src/DownloadEngine.cc
  10492. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10493. * src/HttpProxyRequestCommand.h
  10494. (executeInternal): Pass the reference of segment.
  10495. * src/DownloadCommand.cc
  10496. (executeInternal): Rewritten the code related to Segment.
  10497. (prepareForRetry): Removed.
  10498. (prepareForNextSegment): Rewritten.
  10499. * src/FtpTunnelResponseCommand.h
  10500. (executeInternal): Pass the reference of segment.
  10501. To add HTTP 1.1 persistent connection support(experimental)
  10502. * src/HttpRequestCommand.cc
  10503. (executeInternal): Disable keep alive if it is disabled by
  10504. configuration.
  10505. * src/Request.h
  10506. (keepAlive): New variable.
  10507. (isKeepAlive): New function.
  10508. (setKeepAlive): New function.
  10509. * src/pref.h
  10510. (PREF_HTTP_KEEP_ALIVE): New definition.
  10511. * src/HttpResponseCommand.cc
  10512. (executeInternal): Check the remote server supports keep alive.
  10513. * src/HttpConnection.cc
  10514. (createRequest): Send "Connection: close" only if keep alive is
  10515. disabled.
  10516. * src/main.cc
  10517. (main):
  10518. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10519. To add max download speed limit:
  10520. * src/pref.h
  10521. (PREF_MAX_SPEED_LIMIT): New definition.
  10522. * src/PeerInteractionCommand.cc
  10523. (executeInternal): Added max download speed limit. Not tested yet.
  10524. * src/SegmentMan.h
  10525. (PeerStats): New type definition.
  10526. (peerStats): New variable.
  10527. (registerPeerStat): New function.
  10528. (FindPeerStat): New function object.
  10529. (getPeerStat): New function.
  10530. (calculateDownloadSpeed): New function.
  10531. * src/SpeedCalc.h: New class.
  10532. * src/SpeedCalc.cc: New class.
  10533. * src/main.cc
  10534. (main):
  10535. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10536. download speed is not restricted).
  10537. * src/PeerStat.h: New class.
  10538. * src/SegmentMan.cc
  10539. (registerPeerStat): New function.
  10540. (calculateDownloadSpeed): New function.
  10541. * src/DownloadCommand.cc
  10542. (STARTUP_IDLE_TIME): New definition.
  10543. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10544. downloadStart.
  10545. (~DownloadCommand): Call peerStat->downloadStop.
  10546. (executeInternal): Added download speed limitter. Rewritten lowest
  10547. speed limitter.
  10548. * src/HttpConnection.cc
  10549. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10550. * src/AbstractCommand.cc
  10551. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10552. Added hostname to the error message.
  10553. * src/ConsoleDownloadEngine.cc
  10554. (calculateStatistics): Initialize psize with dlSize.
  10555. * src/PieceMessage.cc
  10556. (receivedAction): Do not call peerInteraction->abortPiece here.
  10557. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10558. * src/BitfieldMan.h
  10559. (clearAllUseBit): New function.
  10560. (setAllUseBit): New function.
  10561. * src/BitfieldMan.cc
  10562. (clearAllBit): Do not clear useBitfield here.
  10563. (clearAllUseBit): New function.
  10564. (setAllUseBit): New function.
  10565. * src/Piece.cc
  10566. (clearAllBlock): Call bitfield->clearAllUseBit().
  10567. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. To make filename URL-decoded:
  10569. * src/HttpResponseCommand.h: Updated doc.
  10570. * src/HttpResponseCommand.cc
  10571. (determinFilename): Made filename URL-decoded.
  10572. * src/FtpInitiateConnectionCommand.cc
  10573. (executeInternal): Made filename URL-decoded.
  10574. * src/Util.h (urldecode): New function.
  10575. * src/Util.cc (urldecode): New function.
  10576. To fix a bug that caused assertion failure in ares_strerror:
  10577. * src/NameResolver.cc (callback): Fixed the bug.
  10578. * Release 0.7.3
  10579. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. To add --seed-time and --seed-ratio command-line option:
  10581. * src/Option.h (getAsDouble): New function.
  10582. * src/Option.cc (getAsDouble): New function.
  10583. * src/SeedCheckCommand.h: New class.
  10584. * src/SeedCheckCommand.cc: New class.
  10585. * src/DownloadEngineFactory.cc
  10586. (SeedCheckCommand.h): Included.
  10587. (UnionSeedCriteria.h): Included.
  10588. (TimeSeedCriteria.h): Included.
  10589. (ShareRatioSeedCriteria.h): Included.
  10590. (newTorrentConsoleEngine): Added the processing of seed option.
  10591. * src/SeedCriteria.h: New class.
  10592. * src/ShareRatioSeedCriteria.h: New class.
  10593. * src/TimeSeedCriteria.h: New class.
  10594. * src/UnionSeedCriteria.h: New class.
  10595. * src/prefs.h
  10596. (PREF_SEED_TIME): New definition.
  10597. (PREF_SEED_RATIO): New definition.
  10598. * src/main.cc
  10599. (showUsage): Added --seed-time and --seed-ratio option.
  10600. (main): Added --seed-time and --seed-ratio option.
  10601. Made default log file name "/dev/null".
  10602. * src/SharedHandle.h
  10603. (SharedHandle): Copy constructor. Made it assignable from the
  10604. SharedHandle of the subclasses.
  10605. (operator=): Made it assignable from the SharedHandle of the
  10606. subclasses.
  10607. (getRefCount): New function.
  10608. To add notice log level and the switch to write log to stdout. This
  10609. switch is configurable per log level.
  10610. * src/Logger.h
  10611. (notice): New function.
  10612. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10613. constant.
  10614. * src/LogFactory.cc
  10615. (getInstance): The use of NullLogger was removed. A log message with
  10616. notice log level was made written to stdout along with log file.
  10617. * src/NullLogger.h
  10618. (notice): New function.
  10619. * src/SimpleLogger.h
  10620. (writeHeader): Added the 'file' argument.
  10621. (writeLog): Added the 'file' argument.
  10622. (writeFile): New function.
  10623. (stdoutField): New variable.
  10624. (SimpleLogger): Removed the default constructor.
  10625. (SimpleLogger): Made the default value of logfile 0.
  10626. (debug): Added 'virtual' keyword.
  10627. (info): Added 'virtual' keyword.
  10628. (warn): Added 'virtual' keyword.
  10629. (error): Added 'virtual' keyword.
  10630. (notice): New function.
  10631. (setStdout): New function.
  10632. * src/SimpleLogger.cc
  10633. (WRITE_LOG): Replaced writeLog with writeFile.
  10634. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10635. (SimpleLogger): Removed the default constructor.
  10636. (setStdout): New function.
  10637. (writeLog): Added the handling of NOTICE log level.
  10638. (writeFile): New function.
  10639. (notice): New function.
  10640. * src/TorrentMan.h: Updated doc.
  10641. * src/BitfieldMan.h: Updated doc.
  10642. * src/TrackerWatcherCommand.cc
  10643. (execute): Return true if error occurred in the request to the tracker
  10644. and halt is requested.
  10645. * src/TrackerUpdateCommand.cc
  10646. (execute): Return true if error occurred in the request to the tracker
  10647. and halt is requested.
  10648. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10649. DownloadEngine:
  10650. * src/TorrentConsoleDownloadEngine.h
  10651. (onSelectiveDownloadingCompletes): Removed.
  10652. * src/TorrentConsoleDownloadEngine.cc
  10653. (onSelectiveDownloadingCompletes): Removed.
  10654. * src/TorrentDownloadEngine.h
  10655. (onEndOfRun): Added 'virtual' keyword.
  10656. (afterEachIteration): Removed.
  10657. (onSelectiveDownloadingCompletes): Removed.
  10658. * src/TorrentDownloadEngine.cc
  10659. (onEndOfRun): Removed filenameFixed.
  10660. (afterEachIteration): Removed.
  10661. * src/TorrentMan.cc
  10662. (completePiece): Call onDownloadComplete here.
  10663. (onDownloadComplete): Added 2 log messages.
  10664. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10666. * src/NameResolver.h: Added the prototype declaration of callback().
  10667. To support c-ares library:
  10668. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10669. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10670. * src/FtpInitiateConnectionCommand.h:
  10671. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10672. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10673. * src/HttpInitiateConnectionCommand.h:
  10674. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10675. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10676. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10677. #1542285 by tizianomueller)
  10678. * src/HttpInitiateConnectionCommand.cc:
  10679. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10680. * src/FtpInitiateConnectionCommand.cc:
  10681. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10682. * src/DownloadEngine.h:
  10683. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10684. * src/DownloadEngine.cc:
  10685. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10686. To fix the bug that causes compilation failure with metalink-support
  10687. disabled(bug#1543587):
  10688. * src/main.cc: Fixed with the patch by tizianomueller.
  10689. * Release 0.7.2
  10690. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10691. * src/main.cc
  10692. (main): Added a message to inform users that aria2 is starting to
  10693. verify checksum.
  10694. * src/RequestInfo.cc
  10695. (printDownloadAbortMessage): Added a message to inform users that
  10696. transfer can be resumed.
  10697. * src/FeatureConfig.cc
  10698. (FEATURE_ASYNC_DNS): New definition.
  10699. (FeatureConfig): Added aysnc DNS entry.
  10700. To replace CommandUuid with Command* in SocketEntry and
  10701. NameResolverEntry:
  10702. * src/DownloadEngine.h
  10703. (CommandUuids): Removed.
  10704. (SocketEntry::commandUuid): Removed.
  10705. (SocketEntry::command): New variable.
  10706. (SocketEntry::SocketEntry): Updated.
  10707. (SocketEntry::operator==): Updated.
  10708. (NameResolverEntry::commandUuid): Removed.
  10709. (NameResolverEntry::command): New variable.
  10710. (NameResolverEntry::NameResolverEntry): Updated.
  10711. (NameResolverEntry::operator==): Updated.
  10712. (waitData): Changed the argument type.
  10713. (addSocketForReadCheck): Changed the argument type.
  10714. (deleteSocketForReadCheck): Changed the argument type.
  10715. (addSocketForWriteCheck): Changed the argument type.
  10716. (deleteSocketForWriteCheck): Changed the argument type.
  10717. (addNameResolverCheck): Changed the argument type.
  10718. (deleteNameResolverCheck): Changed the argument type.
  10719. * src/DownloadEngine.cc
  10720. (FindCommand): Removed.
  10721. (run): Removed activeUuid. Added activeCommands instead.
  10722. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10723. (AccumulateActiveCommand): New function object.
  10724. (waitData): Use AccumulateActiveCommand.
  10725. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10726. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10727. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10728. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10729. (addNameResolverCheck): Use Command instead of CommandUuid.
  10730. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10731. * src/AbstractCommand.cc
  10732. (disableReadCheckSocket): Updated according to the changes in
  10733. DownloadEngine.
  10734. (setReadCheckSocket): Updated according to the changes in
  10735. DownloadEngine.
  10736. (disableWriteCheckSocket): Updated according to the changes in
  10737. DownloadEngine.
  10738. (setWriteCheckSocket): Updated according to the changes in
  10739. DownloadEngine.
  10740. (setNameResolverCheck): Updated according to the changes in
  10741. DownloadEngine.
  10742. (disableNameResolverCheck): Updated according to the changes in
  10743. DownloadEngine.
  10744. * src/AbstractCommand.cc
  10745. (disableReadCheckSocket): Updated according to the changes in
  10746. DownloadEngine.
  10747. (setReadCheckSocket): Updated according to the changes in
  10748. DownloadEngine.
  10749. (disableWriteCheckSocket): Updated according to the changes in
  10750. DownloadEngine.
  10751. (setWriteCheckSocket): Updated according to the changes in
  10752. DownloadEngine.
  10753. * release 0.7.1
  10754. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. To handle the case where some BitTorrent tracker requires all letters
  10756. except for [A-Za-z0-9] is URL encoded.
  10757. * src/Util.h
  10758. (torrentUrlencode): New function.
  10759. * src/Util.cc
  10760. (ctype.h): Included.
  10761. (torrentUrlencode): New function.
  10762. * src/TrackerWatcherCommand.cc
  10763. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10764. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. To add asynchronous DNS support(libares):
  10766. * src/AbstractCommand.h
  10767. (setNameResolverCheck): New function.
  10768. (disableNameResolverCheck): New function
  10769. (resolveHostname): New function.
  10770. * src/AbstractCommand.cc
  10771. (setNameResolverCheck): New function.
  10772. (disableNameResolverCheck): New function
  10773. (resolveHostname): New function.
  10774. * src/FtpInitiateConnectionCommand.h
  10775. (nameResolver): New function.
  10776. * src/FtpInitiateConnectionCommand.cc
  10777. (Util.h): Included.
  10778. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10779. disableWriteCheckSocket.
  10780. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10781. (executeInternal): Added async DNS support.
  10782. * src/HttpInitiateConnectionCommand.h
  10783. (nameResolver): New function.
  10784. * src/HttpInitiateConnectionCommand.cc
  10785. (DlRetryEx.h): Included.
  10786. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10787. disableWriteCheckSocket.
  10788. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10789. (executeInternal): Added async DNS support.
  10790. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10791. by extern "C" declaration.
  10792. * src/NameResolver.cc: New class.
  10793. * src/Util.h:
  10794. (isNumberAndDotsNotation): New function
  10795. * src/Util.cc
  10796. (isNumberAndDotsNotation): New function.
  10797. * src/DownloadEngine.h
  10798. (NameResolver.h): Included.
  10799. (NameResolverEntry): New class.
  10800. (NameResolverEntries): New type definition.
  10801. (addNameResolverCheck): New function.
  10802. (deleteNameResolverCheck): New function.
  10803. * src/DownloadEngine.cc
  10804. (run): Initialize cp with 0.
  10805. (SetDescriptor::operator()): Added for NameResolverEntry.
  10806. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10807. (waitData): Check nameResolver entries.
  10808. (updateFdSet): Update fds in nameResolver entries.
  10809. (addNameResolverCheck): New function.
  10810. (deleteNameResolverCheck): new function.
  10811. * src/PeerInteractionCommand.cc
  10812. (executeInternal): Fixed wrong socket handling.
  10813. * src/main.cc
  10814. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10815. * src/Util.cc
  10816. (fileChecksum): Removed the call to ctx.digestReset().
  10817. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. * po/ru.po: Azamat sent me Russian translation.
  10819. * src/FtpNegotiateCommand.cc
  10820. (recvGreeting): Call disableWriteCheckSocket just after
  10821. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10822. (recvRetr): Recognized status code 125 as a acceptable response code.
  10823. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10824. case-insesitive filesystem(BUG#1531057).
  10825. * src/Time.h: Renamed as TimeA2.h.
  10826. * src/Time.cc: Renamed as TimeA2.cc.
  10827. * src/TimeA2.h: New class.
  10828. * src/TimeA2.cc: New class.
  10829. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10830. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10831. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10832. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10833. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10834. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10835. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10836. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10837. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10838. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10839. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10840. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10841. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10842. * release 0.7.0
  10843. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10844. * src/PeerChokeCommand.h
  10845. (PeerChokeCommand): Rearranged the arguments.
  10846. * src/PeerChokeCommand.cc
  10847. (PeerChokeCommand): Rearranged the arguments.
  10848. * src/MetalinkEntry.h
  10849. (Checksum.h): Included.
  10850. (md5): Removed.
  10851. (sha1): Removed.
  10852. (checksum): New variable.
  10853. (operator=): Updated.
  10854. (check): Removed.
  10855. * src/prefs.h
  10856. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10857. (PREF_FOLLOW_TORRENT): New definition.
  10858. (PREF_SELECT_FILE): New definition.
  10859. (PREF_FOLLOW_METALINK): New definition.
  10860. * src/MetalinkResource.h
  10861. (TYPE_HTTPS): Added to enum TYPE.
  10862. * src/TorrentMan.cc
  10863. (~TorrentMan): Rewritten.
  10864. * src/MultiDiskWriter.cc
  10865. (MultiDiskAdaptor): Updated according to the changes in
  10866. MessageDigestContext.
  10867. (~MultiDiskAdaptor): Updated according to the changes in
  10868. MessageDigestContext.
  10869. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10870. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10871. * src/Util.h
  10872. (fileChecksum): Updated according to the changes in
  10873. MessageDigestContext.
  10874. * src/Util.cc
  10875. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10876. (fileChecksum): Updated according to the changes in
  10877. MessageDigestContext.
  10878. * src/messageDigest.h: Rewritten.
  10879. * src/MetalinkEntry.cc
  10880. (check): Removed.
  10881. (Supported): Updated.
  10882. (dropUnsupportedResource): Fixed a memory leak.
  10883. * src/ShaVisitor.cc
  10884. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10885. (~ShaVisitor): Updated according to the changes in
  10886. MessageDigestContext.
  10887. (visit): Updated according to the changes in MessageDigestContext.
  10888. * src/main.cc
  10889. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10890. command-line option added.
  10891. * src/DownloadEngine.h
  10892. (SocketEntry): New class.
  10893. (SocketEntries): New definition.
  10894. (PairFind): Removed.
  10895. (SockCmdMap): Removed.
  10896. * src/DownloadEngine.cc
  10897. (DownloadEngine): Rewritten.
  10898. (~DownloadEngine): Rewritten.
  10899. (run): Renamed activeCommandUuids as activeUuids.
  10900. (SetDescriptor): Rewritten.
  10901. (AccumulateActiveCommandUuid): Removed.
  10902. (AccumulateActiveUuid): New function object.
  10903. (waitData): Rewritten.
  10904. (updateFdSet): Rewritten.
  10905. (addSocket): Rewritten.
  10906. (deleteSocket): Rewritten.
  10907. (addSocketForReadCheck): Rewritten.
  10908. (deleteSocketForReadCheck): Rewritten.
  10909. (addSocketForWriteCheck): Rewritten.
  10910. (deleteSocketForWriteCheck): Rewritten.
  10911. * src/Xml2MetalinkProcessor.cc
  10912. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10913. * src/DownloadCommand.cc
  10914. (executeInternal): Added the check routine for lowest speed limit.
  10915. * src/AbstractDiskWriter.cc
  10916. (AbstractDiskWriter): Updated according to the changes in
  10917. MessageDigestContext.
  10918. (~AbstractDiskWriter): Updated according to the changes in
  10919. MessageDigestContext.
  10920. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10921. * src/RequestInfo.h: New class.
  10922. * src/UrlRequestInfo.h: New class.
  10923. * src/UrlRequestInfo.cc: New class.
  10924. * src/TorrentRequestInfo.h: New class.
  10925. * src/TorrentRequestInfo.cc: New class.
  10926. * src/MetalinkRequestInfo.h: New class.
  10927. * src/MetalinkRequestInfo.cc: New class.
  10928. * src/Checksum.h: New class.
  10929. * src/DownloadEngineFactory.h: New class.
  10930. * src/DownloadEngineFactory.cc: New class.
  10931. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. * src/Option.h
  10933. (getAsBool): New function.
  10934. * src/Option.cc
  10935. (prefs.h): Included.
  10936. (defined): 0-length value is now recognized as undefined.
  10937. (getAsInt): Rewritten.
  10938. (getAsLLInt): Rewritten.
  10939. (getAsBool): New function.
  10940. * src/FeatureConfig.h: Rewritten.
  10941. * src/FeatureConfig.cc: Rewritten.
  10942. * src/prefs.h
  10943. (PREF_STDOUT_LOG): New definition.
  10944. (PREF_LOG): New definition.
  10945. (PREF_DIR): New definition.
  10946. (PREF_OUT): New definition.
  10947. (PREF_SPLIT): New definition.
  10948. (PREF_DAEMON): New definition.
  10949. (PREF_REFERER): New definition.
  10950. (PREF_TORRENT_FILE): New definition.
  10951. (PREF_LISTEN_PORT): New definition.
  10952. (PREF_METALINK_FILE): New definition.
  10953. (PREF_METALINK_VERSION): New definition.
  10954. (PREF_METALINK_LANGUAGE): New definition.
  10955. (PREF_METALINK_OS): New definition.
  10956. (PREF_METALINK_SERVERS): New definition.
  10957. * src/main.cc
  10958. (main): Following command-line parameters are now put into Option
  10959. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10960. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10961. metalinkLanguage, metalinkOs, metalinkServers
  10962. To fix the bug that aria2 can not handle http response header properly.
  10963. * src/HttpHeader.cc
  10964. (put): Made name lowercased.
  10965. (defined): Made name lowercased.
  10966. (getFirst): Made name lowercased.
  10967. (get): Made name lowercased.
  10968. (getFirstAsInt): Rewritten.
  10969. (getFirstAsLLInt): Rewritten.
  10970. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10971. * src/TorrentMan.h:
  10972. (advertisePiece): Updated doc.
  10973. (getAdvertisedPieceIndexes): Updated doc.
  10974. (removeAdvertisedPiece); New function.
  10975. * src/TorrentMan.cc
  10976. (FindElapsedHave): New function object.
  10977. (removeAdvertisedPiece): New function.
  10978. * src/HaveEraseCommand.h: New class.
  10979. * src/HaveEraseCommand.cc: New class.
  10980. * src/FeatureConfig.h: New class.
  10981. * src/FeatureConfig.cc: New class.
  10982. * src/Request.h
  10983. (defaultPorts): Removed.
  10984. * src/Request.cc
  10985. (FeatureConfig.h): Included.
  10986. (Request): Removed the statements related to defaultPorts.
  10987. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10988. A default port number is now retrieved from FeatureConfig.
  10989. * src/main.cc
  10990. (HaveEraseCommand.h): Included.
  10991. (showVersion): Added the output of feature list.
  10992. (main): Added HaveEraseCommand to command queue in BitTorrent
  10993. downloading.
  10994. * src/PeerInteractionCommand.h
  10995. (chokeCheckPoint): Commented out.
  10996. (periodicExecPoint): New variable.
  10997. * src/PeerInteractionCommand.cc
  10998. (executeInternal): Following methods are now called in at least every
  10999. 0.5 seconds to reduce CPU usage:
  11000. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11001. checkHave(), sendKeepAlive().
  11002. (checkLongTimePeerChoking): Commented out.
  11003. * src/BitfieldMan.h
  11004. (getNthBitIndex): Changed the method signature.
  11005. (getMissingIndexRandomly): Changed the method signature.
  11006. * src/BitfieldMan.cc
  11007. (getNthBitIndex): Rewritten
  11008. (getMissingIndexRandomly): Rewritten.
  11009. (hasMissingPiece): Rewritten.
  11010. (getMissingIndex): Refactored.
  11011. (getMissingUnusedIndex); Refactored.
  11012. (getMissingIndex): Refactored.
  11013. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. * src/PeerMessage.h
  11015. (Piece.h): Included.
  11016. (SharedHandle.h): Included.
  11017. (invalidate): New variable.
  11018. (uploading): New variable.
  11019. (isInvalidate): New function.
  11020. (isUploading): New function.
  11021. (onPush): New function.
  11022. (onChoked): New function.
  11023. (onCanceled): New function.
  11024. (onAbortPiece): New function.
  11025. (PeerMessageHandle): New type definition.
  11026. * src/PeerMessage.cc
  11027. (PeerMessage): Added the initialization for invalidate and uploading.
  11028. * src/CancelMessage.h
  11029. (CancelMessage): Rewritten.
  11030. * src/RejectMessage.h
  11031. (RejectMessage): Rewritten.
  11032. * src/Metalinker.h
  11033. (operator=): Defined.
  11034. * src/MetaEntry.h
  11035. (operator=): Defined.
  11036. * src/MetalinkResource.h
  11037. (operator=): Defined.
  11038. * src/AllowedFastMessage.h
  11039. (AllowedFastMessage): Rewritten.
  11040. * src/HandshakeMessage.h
  11041. (HandshakeMessage): New function(overload).
  11042. * src/HandshakeMessage.cc
  11043. (HandshakeMessage): Rewritten.
  11044. (init): New function.
  11045. * src/HaveMessage.h
  11046. (HaveMessage): Rewritten.
  11047. * src/Time.h
  11048. (operator=): Defined the function body here.
  11049. * src/Time.cc
  11050. (operator=): Removed.
  11051. * src/SocketCore.h
  11052. (operator==): Defined here.
  11053. (operator!=): Defined here.
  11054. (operator<): Defined here.
  11055. * src/SocketCore.cc
  11056. (operator==): Removed.
  11057. (operator<): Removed.
  11058. * src/BitfieldMan.h
  11059. (operator=): Defined the function body here.
  11060. * src/BitfieldMan.cc
  11061. (operator=): Removed.
  11062. * src/TorrentMan.h
  11063. (deleteErrorPeer): Removed.
  11064. (deleteUnusedPeer); New function.
  11065. * src/TorrentMan.cc
  11066. (addPeer): Call deleteUnusedPeer.
  11067. (deleteErrorPeer): Removed.
  11068. (deleteUnusedPeer): New function.
  11069. * src/PeerAbstractCommand.h
  11070. (setNoCheck): New function.
  11071. (noCheck): New variable.
  11072. * src/PeerAbstractCommand.cc
  11073. (PeerAbstractCommand): Added the initialization of noCheck.
  11074. (execute): Added a check for noCheck.
  11075. (setNoCheck): New function.
  11076. * src/Util.h
  11077. (stdio.h): Included.
  11078. * src/Util.cc
  11079. (unistd.h): Included.
  11080. * src/DefaultDiskWriter.cc
  11081. (unistd.h): Included.
  11082. * src/Peer.h
  11083. (operator==): Defined the function body here.
  11084. (operator!=): Defined the function body here.
  11085. * src/Peer.cc
  11086. (operator==): Removed.
  11087. (operator!=): Removed.
  11088. * src/Piece.h
  11089. (Piece): Defined the function body here(copy constructor).
  11090. (operator=): Defined the function body here.
  11091. (operator==): Defined the function body here.
  11092. * src/Piece.cc
  11093. (Piece): Removed(copy constructor).
  11094. (operator=): Removed.
  11095. (operator==): Removed.
  11096. * src/PeerMessageUtil.h
  11097. (ChokeMessage.h): Removed.
  11098. (UnchokeMessage.h): Removed.
  11099. (InterestedMessage.h): Removed.
  11100. (NotInterestedMessage.h): Removed.
  11101. (HaveMessage.h): Removed.
  11102. (BitfieldMessage.h): Removed.
  11103. (RequestMessage.h): Removed.
  11104. (CancelMessage.h): Removed.
  11105. (PieceMessage.h): Removed.
  11106. (HandshakeMessage.h): Removed.
  11107. (KeepAliveMessage.h): Removed.
  11108. (PortMessage.h): Removed.
  11109. (HaveAllMessage.h): Removed.
  11110. (HaveNoneMessage.h): Removed.
  11111. (PeerConnection.h): Removed.
  11112. (HandshakeMessage.h): Included.
  11113. * src/BitfieldMessage.h
  11114. (init): New function.
  11115. (BitfieldMessage): Rewritten.
  11116. (BitfieldMessage): New function(overload).
  11117. * src/RequestSlot.h
  11118. (operator=): Defined the function body here.
  11119. (operator==): Defined the function body here.
  11120. * src/RequestSlot.cc
  11121. (operator=): Removed.
  11122. (operator==): Removed.
  11123. To remove the dependency on the PeerMessage subclass from
  11124. PeerInteraction:
  11125. * src/PeerMessageFactory.h: New class.
  11126. * src/PeerMessageFactory.cc: New class.
  11127. * src/SimplePeerMessage.cc
  11128. (send): If invalidate is true then do nothing.
  11129. * src/PeerInteractionCommand.cc
  11130. (HandshakeMessage.h): Included.
  11131. (KeepAliveMessage.h): Included.
  11132. (ChokeMessage.h): Included.
  11133. (UnchokeMessage.h): Included.
  11134. (HaveMessage.h): Included.
  11135. (executeInternal): Call setNoCheck().
  11136. Removed setWriteCheckSocket(socket).
  11137. * src/PeerInteraction.h
  11138. (ChokeMessage.h): Removed.
  11139. (UnchokeMessage.h): Removed.
  11140. (InterestedMessage.h): Removed.
  11141. (NotInterestedMessage.h): Removed.
  11142. (HaveMessage.h): Removed.
  11143. (BitfieldMessage.h): Removed.
  11144. (RequestMessage.h): Removed.
  11145. (CancelMessage.h): Removed.
  11146. (PieceMessage.h): Removed.
  11147. (HandshakeMessage.h): Removed.
  11148. (KeepAliveMessage.h): Removed.
  11149. (PortMessage.h): Removed.
  11150. (HaveAllMessage.h): Removed.
  11151. (HaveNoneMessage.h): Removed.
  11152. (RejectMessage.h): Removed.
  11153. (AllowedFastMessage.h): Removed.
  11154. (SuggestPieceMessage.h): Removed.
  11155. (PeerMessageFactory.h): Included.
  11156. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11157. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11158. (PeerMessageFactory): New variable.
  11159. (createPeerMessage): Removed.
  11160. (createHandshakeMessage): Removed.
  11161. (setPeerMessageCommonProperty): Removed.
  11162. (addRequestSlot): New function.
  11163. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11164. (getPeerMessageFactory): New function.
  11165. (createRequestMessage): Removed.
  11166. (createCancelMessage): Removed.
  11167. (createPieceMessage): Removed.
  11168. (createHaveMessage): Removed.
  11169. (createChokeMessage): Removed.
  11170. (createUnchokeMessage): Removed.
  11171. (createInterestedMessage): Removed.
  11172. (createNotInterestedMessage): Removed.
  11173. (createBitfieldMessage): Removed.
  11174. (createKeepAliveMessage): Removed.
  11175. (createHaveAllMessage): Removed.
  11176. (createHaveNoneMessage): Removed.
  11177. (createRejectMessage): Removed.
  11178. (createAllowedFastMessage): Removed.
  11179. * src/PeerInteraction.cc
  11180. (PeerInteraction): Allocate PeerMessageFactory here.
  11181. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11182. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11183. PieceMessage::ID.
  11184. (addMessage): Simplified by using PeerMessage::onPush().
  11185. (addRequestSlot): New function.
  11186. (rejectAllPieceMessageInQueue): Simplified by using
  11187. PeerMessage::onChoked().
  11188. (rejectPieceMessageInQueue): Simplified by using
  11189. PeerMessage::onCanceled().
  11190. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11191. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11192. (createHandshakeMessage): Removed.
  11193. (createPeerMessage): Removed.
  11194. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11195. (setPeerMessageCommonProperty): Removed.
  11196. (createRequestMessage): Removed.
  11197. (createCancelMessage): Removed.
  11198. (createPieceMessage): Removed.
  11199. (createHaveMessage): Removed.
  11200. (createChokeMessage): Removed.
  11201. (createUnchokeMessage): Removed.
  11202. (createInterestedMessage): Removed.
  11203. (createNotInterestedMessage): Removed.
  11204. (createBitfieldMessage): Removed.
  11205. (createKeepAliveMessage): Removed.
  11206. (createHaveAllMessage): Removed.
  11207. (createHaveNoneMessage): Removed.
  11208. (createRejectMessage): Removed.
  11209. (createAllowedFastMessage): Removed.
  11210. * src/PieceMessage.h
  11211. (createRejectMessage): New function.
  11212. (PieceMessage): Rewritten.
  11213. (onChoked): New function.
  11214. (onCanceled): New function.
  11215. * src/PieceMessage.cc
  11216. (send): If invalidate is true then do nothing, just return.
  11217. (createRejectMessage): New function.
  11218. (onChoked): New function.
  11219. (onCanceled): New function.
  11220. * src/RequestMessage.h
  11221. (RequestMessage): Rewritten.
  11222. (onPush): New function.
  11223. (onAbortPiece): New function.
  11224. * src/RequestMessage.cc
  11225. (onPush): New function.
  11226. (onAbortPiece): New function.
  11227. Update fd_set when a socket is added or deleted in order to improve
  11228. performance:
  11229. * src/DownloadEngine.h
  11230. (rfdset): New variable.
  11231. (wfdset): New variable.
  11232. (updateFdSet): New function.
  11233. * src/DownloadEngine.cc
  11234. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11235. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11236. (waitData): Copy rfdset and wfdset.
  11237. (updateFdSet): New function.
  11238. (addSocket): Call updateFdSet.
  11239. (deleteSocket): Call updateFdSet.
  11240. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. To add the support for Metalink3.0 backward compatible links:
  11242. * src/Request.h
  11243. (SAFE_CHARS): Added '#'.
  11244. (METALINK_MARK): New definition.
  11245. * src/Request.cc
  11246. (parseUrl): Added the support for Metalink3.0 backward compatible
  11247. links.
  11248. etc
  11249. * src/PeerInteraction.cc
  11250. (MsgPushBack): Removed.
  11251. (sendMessages): Use STL copy and back_inserter.
  11252. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11253. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11254. * src/TorrentMan.h
  11255. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11256. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. * src/SharedHandle.h: New class.
  11258. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11259. * src/HttpResponseCommand.h
  11260. (HttpResponseCommand): Wrapped Socket.
  11261. * src/SocketCore.h
  11262. (operator==): New function.
  11263. (operator!=): New function.
  11264. (operator<): New function.
  11265. (getSockfd): New function.
  11266. (isOpen): New function.
  11267. (writeData): New function.
  11268. * src/SocketCore.cc
  11269. (operator==): New function.
  11270. (operator!=): New function.
  11271. (operator<): New function.
  11272. * src/AbstractCommand.h
  11273. (socket): Changed its type to SocketHandle.
  11274. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11275. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11276. (disableReadCheckSocket): New function.
  11277. (disableWriteCheckSocket): New function.
  11278. (readCheckTarget): Changed its type to SocketHandle.
  11279. (writeCheckTarget): Changed its type to SocketHandle.
  11280. (AbstractCommand): Replaced Socket with SocketHandle.
  11281. * src/AbstractCommand.cc
  11282. (AbstractCommand): Replaced Socket with SocketHandle.
  11283. (~AbstractCommand): Removed the deallocation for Socket object.
  11284. (disableReadCheckSocket): New function.
  11285. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11286. (disableWriteCheckSocket): New function.
  11287. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11288. * src/HttpDownloadCommand.cc
  11289. (DownloadCommand): Replaced Socket with SocketHandle.
  11290. * src/PeerAbstractCommand.h
  11291. (socket): Changed its type to SocketHandle.
  11292. (peer): Changed its type to PeerHandle.
  11293. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11294. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11295. (disableReadCheckSocket): New function.
  11296. (disableWriteCheckSocket): New function.
  11297. (readCheckTarget): Changed its type to SocketHandle.
  11298. (writeCheckTarget): Changed its type to SocketHandle.
  11299. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11300. Replaced Peer with PeerHandle.
  11301. * src/HttpRequestCommand.cc
  11302. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11303. Use disableReadCheckSocket.
  11304. * src/PeerInitiateConnectionCommand.h
  11305. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11306. * src/PeerChokeCommand.cc
  11307. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11308. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11309. (execute): Use PeerHandle.
  11310. * src/PeerConnection.h
  11311. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11312. (socket): Changed its type to SocketHandle.
  11313. (PeerConnection): Replaced Socket with SocketHandle.
  11314. * src/PeerConnection.cc
  11315. (PeerConnection): Replaced Socket with SocketHandle.
  11316. * src/PeerInteractionCommand.h
  11317. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11318. Replaced Peer with PeerHandle.
  11319. * src/PeerInteractionCommand.cc
  11320. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11321. Replaced Peer with PeerHandle.
  11322. (executeInternal): Use disableWriteCheckSocket.
  11323. Use HandshakeMessageHandle.
  11324. (receiveMessages): Use PeerMessageHandle.
  11325. (prepareForNextPeer): Use PeerHandle.
  11326. * src/HttpProxyRequestCommand.h
  11327. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11328. * src/HttpResponseCommand.cc
  11329. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11330. * src/TorrentMan.cc
  11331. (nullPeer): Added external reference.
  11332. (~TorrentMan): Removed the deallocation of the elements of peers.
  11333. (addPeer): Rewritten.
  11334. (isPeerAvailable): Use nullPeer.
  11335. (deleteOldpeers): Replaced with deleteErrorPeer.
  11336. (deleteErrorPeer): New function.
  11337. (getPeer): Use PeerHandle and nullPeer.
  11338. (hasMissingPiece): Replaced Peer with PeerHandle.
  11339. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11340. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11341. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11342. (getMissingPiece): Replaced Peer with PeerHandle.
  11343. * src/FtpNegotiateCommand.cc
  11344. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11345. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11346. (recvGreeting): Use disableWriteCheckSocket.
  11347. (recvPasv): Removed the allocation of Socket.
  11348. Use disableReadCheckSocket.
  11349. (sendRestPasv): Use disableWriteCheckSocket.
  11350. (recvRetr): Changed assertion.
  11351. * src/PeerInteraction.h
  11352. (SharedHandle.h): Included SharedHandle.h.
  11353. (PeerMessageHandle): New type definition.
  11354. (HandshakeMessageHandle): New type definition.
  11355. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11356. (peer): Changed its type to PeerHandle.
  11357. (createHandshakeMessage): Replaced HandshakeMessage with
  11358. HandshakeMessageHandle.
  11359. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11360. (PeerInteraction): Replaced Peer with PeerHandle.
  11361. Replaced Socket with SocketHandle.
  11362. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11363. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11364. (receiveHandshake): Replaced HandshakeMessage with
  11365. HandshakeMessageHandle.
  11366. * src/PeerInteraction.cc
  11367. (PeerInteraction): Replaced Peer with PeerHandle.
  11368. Replaced Socket with SocketHandle.
  11369. (~PeerInteraction): Removed the deallocation of the elements of
  11370. messageQueue.
  11371. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11372. (isSendingMessageInProgress): Replaced PeerMessage with
  11373. PeerMessageHandle.
  11374. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11375. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11376. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11377. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11378. (abortPiece): Use PeerMessageHandle.
  11379. (receiveHandshake): Replaced HandshakeMessage with
  11380. HandshakeMessageHandle. Removed try-catch block.
  11381. (createHandshakeMessage): Replaced HandshakeMessage with
  11382. HandshakeMessageHandle.
  11383. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11384. Removed try-catch block.
  11385. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11386. * src/HttpProxyResponseCommand.cc
  11387. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11388. * src/FtpTunnelResponseCommand.h
  11389. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11390. * src/HttpConnection.cc
  11391. (HttpConnection): Replaced Socket with SocketHandle.
  11392. * src/PeerAbstractCommand.cc
  11393. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11394. (~PeerAbstractCommand): Removed the deallocation of socket.
  11395. Use disableReadCheckSocket, disableWriteCheckSocket.
  11396. (disableReadCheckSocket): New function.
  11397. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11398. (disableWriteCheckSocket): New function.
  11399. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11400. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11401. * src/FtpTunnelRequestCommand.cc
  11402. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11403. (~FtpTunnelRequestCommand): Corrected indentation.
  11404. * src/DownloadCommand.h
  11405. (DownloadCommand): Replaced Socket with SocketHandle.
  11406. * src/PeerListenCommand.cc
  11407. (PeerListenCommand): Removed the initialization of socket.
  11408. (~PeerListenCommand): Removed the deallocation of socket.
  11409. (bindPort): Use SocketHandle.
  11410. (execute): Use SocketHandle and PeerHandle.
  11411. * src/FtpDowndloadCommand.cc
  11412. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11413. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11414. * src/main.cc
  11415. (main): Corrected indentation.
  11416. * src/HttpInitiateConnectionCommand.cc
  11417. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11418. (executeInternal): Removed the allocation of socket.
  11419. * src/HttpRequestCommand.h
  11420. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11421. * src/FtpNegotiationCommand.h
  11422. (dataSocket): Changed its type to SocketHandle.
  11423. (serverSocket): Changed its type to SocketHandle.
  11424. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11425. * src/TorrentMan.h
  11426. (MAX_PEER_UPDATE): Removed.
  11427. (MAX_PEERS): New definition.
  11428. (Peers): The element is now of type PeerHandle.
  11429. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11430. (getPeer): Replaced Peer with PeerHandle.
  11431. (deleteOldErrorPeers): Removed.
  11432. (deleteErrorPeer): New function.
  11433. (hasMissingPiece): Replaced Peer with PeerHandle.
  11434. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11435. (getMissingPiece): Replaced Peer with PeerHandle.
  11436. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11437. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11438. (addActivePeer): Replaced Peer with PeerHandle.
  11439. (deleteActivePeer): Replaced Peer with PeerHandle.
  11440. Added a check for the return value of find.
  11441. * src/FtpTunnelResponseCommand.cc
  11442. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11443. * src/FtpInitiateConnectionCommand.cc
  11444. (executeInternal): Removed the allocation of socket.
  11445. * src/DownloadEngine.h
  11446. (Sockets): An element is now of type SocketHandle.
  11447. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11448. (CommandUuids): New type definition.
  11449. (rsockets): Changed its type to SockCmdMap.
  11450. (wsockets): Changed its type to SockCmdMap.
  11451. (addSocket): Rewritten.
  11452. (deleteSocket): Rewritten.
  11453. (addSocketForReadCheck): Rewritten.
  11454. (deleteSocketForReadCheck): Rewritten.
  11455. (addSocketForWriteCheck): Rewritten.
  11456. (deleteSocketForWriteCheck): Rewritten.
  11457. (PairFind): New template class.
  11458. * src/HttpDownloadCommand.h
  11459. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11460. * src/FtpConnection.cc
  11461. (FtpConnection): Replaced Socket with SocketHandle.
  11462. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11463. block.
  11464. * src/InitiateConnectionCommandFactory.cc
  11465. (DlAbortEx.h): Included DlAbortEx.h.
  11466. (createInitiateConnectionCommand): Throw exception if the protocol of
  11467. requested URI is not supported.
  11468. * src/Peer.cc
  11469. (nullPeer): Changed its type to PeerHandle.
  11470. (operator==): New function.
  11471. (operator!=): New function.
  11472. * src/Peer.h
  11473. (SharedHandle.h): Included SharedHandle.h.
  11474. (operator==): New function.
  11475. (operator!=): New function.
  11476. (Peer): Added the default constructor.
  11477. Use resetStatus() to initialize member variables.
  11478. (nullPeer): Removed.
  11479. * src/TrackerUpdateCommand.cc
  11480. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11481. with MIN_PEERS.
  11482. * src/PeerListenCommand.h
  11483. (socket): Changed its type to SocketHandle.
  11484. * src/Command.h
  11485. (CommandUuid): New type definition.
  11486. (uuid): New variable.
  11487. (uuidGen): New variable.
  11488. (Command): Added the initialization of uuid.
  11489. (getUuid): New function.
  11490. * src/Socket.h
  11491. (Socket): Removed.
  11492. (SocketHandle): New type definition.
  11493. * src/DownloadEngine.h
  11494. (FindCommand): New function object.
  11495. (run): The portion of socket check was rewritten.
  11496. (SetDescriptor): New function object.
  11497. (AccumulateActiveCommandUuid): New function object.
  11498. (waitData): Rewritten.
  11499. (addSocket): Rewritten.
  11500. (deleteSocket): Rewritten.
  11501. (addSocketForReadCheck): Rewritten.
  11502. (addSocketForWriteCheck): Rewritten.
  11503. (deleteSocketForReadCheck): Rewritten.
  11504. (deleteSocketForWriteCheck): Rewritten.
  11505. * src/HttpProxyResponseCommand.h
  11506. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11507. * src/HttpConnection.h
  11508. (socket): Changed its type to SocketHandle.
  11509. (HttpConnection): Replaced Socket with SocketHandle.
  11510. * src/PeerInitiateConnectionCommand.cc
  11511. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11512. (executeInternal): Removed the allocation of socket.
  11513. (prepareForNextPeer): Use PeerHandle.
  11514. * src/PeerMessage.h
  11515. (peer): Changed its type to PeerHandle.
  11516. (getPeer): Replaced Peer with PeerHandle.
  11517. (setPeer): Replaced Peer with PeerHandle.
  11518. * src/DownloadCommand.cc
  11519. (DownloadCommand): Replaced Socket with SocketHandle.
  11520. * src/FtpConnection.h
  11521. (socket): Changed its type to SocketHandle.
  11522. (FtpConnection): Replaced Socket with SocketHandle.
  11523. (sendPort); Replaced Socket with SocketHandle.
  11524. * src/FtpDowndloadCommand.h
  11525. (ctrlSocket): Changed its type to SocketHandle.
  11526. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11527. * src/HttpProxyRequestCommand.cc
  11528. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11529. * src/FtpTunnelRequestCommand.h
  11530. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11531. etc
  11532. * src/PeerChokeCommand.h
  11533. (setAllPeerChoked): Removed.
  11534. (setAllPeerResetDelta): Removed.
  11535. * src/PeerChokeCommand.cc
  11536. (setAllPeerChoked): Removed.
  11537. (ChokePeer): New function object.
  11538. (setAllPeerResetDelta): Removed.
  11539. (ResetDelta): New function object.
  11540. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11541. (execute): Show download speed when the local node is a seeder.
  11542. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11543. using STL.
  11544. * src/TrackerWatcherCommand.h
  11545. (MIN_PEERS): Removed.
  11546. * src/TorrentMan.cc
  11547. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11548. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. To fix the bug that .aria2 file is not saved if downloading is stopped
  11550. by the errors:it results that aria2 can not resume downloading:
  11551. * src/main.cc
  11552. (normalDownload): Added the call to save().
  11553. (main): Added the deletion of the elements in 'reserved'.
  11554. To fix log:
  11555. * src/PeerInteraction.cc
  11556. (receiveHandshake): Fixed log.
  11557. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11558. To improve download performance in BitTorrent:
  11559. * src/TorrentMan.cc
  11560. (getPeer): Check the number of connections. Return nullPeer if
  11561. it is greater than MAX_PEER_UPDATE.
  11562. This code was originally here, but was removed in 0.5.1.
  11563. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11564. To improve the conditional compilation:
  11565. * src/MultiDiskWriter.h:
  11566. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11567. * src/MultiDiskWriter.cc:
  11568. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11569. * src/Util.h:
  11570. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11571. Added ENABLE_BITTORRENT around computeFastSet().
  11572. * src/Util.cc:
  11573. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11574. Added ENABLE_BITTORRENT around computeFastSet().
  11575. * src/messageDigest.h:
  11576. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11577. * src/ShaVisitor.h:
  11578. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11579. * src/ShaVisitor.cc:
  11580. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11581. * src/main.cc:
  11582. Added ENABLE_BITTORRENT around includes and blocks related to
  11583. BitTorrent.
  11584. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11585. digest support is not available.
  11586. * src/AbstractDiskWriter.h:
  11587. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11588. * src/AbstractDiskWriter.cc:
  11589. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11590. * src/MetalinkEntry.cc
  11591. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11592. support is not available.
  11593. To add command-line options for Metalink:
  11594. * src/main.cc:
  11595. Added metalink-version, metalink-language, metalink-os,
  11596. follow-metalink.
  11597. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11598. * src/main.cc: Use these definition.
  11599. * Release 0.6.0
  11600. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11601. To add Metalink support(http/ftp only):
  11602. * src/AbstractCommand.h
  11603. (tryReserved): New function.
  11604. * src/AbstractCommand.cc
  11605. (execute): Call tryReserved().
  11606. (tryReserved): New function.
  11607. * src/Request.h
  11608. (Requests): New type definition.
  11609. * src/SegmentMan.h
  11610. (reserved): New variable.
  11611. * src/Util.h
  11612. (fileChecksum): New function.
  11613. (toUpper): New function.
  11614. (toLower): New function.
  11615. * src/Util.cc
  11616. (messageDigest.h): Included.
  11617. (trim): Trim \r\n\t.
  11618. (fileChecksum): New function.
  11619. (toUpper): New function.
  11620. (toLower): New function.
  11621. * src/main.cc
  11622. (normalDownload): New function.
  11623. (main): Added 2 command-line options: metalink-file,
  11624. metalink-connection. Their usage has not been written yet.
  11625. * src/MetalinkProcessor.h: New class.
  11626. * src/Xml2MetalinkProcessor.h: New class.
  11627. * src/Xml2MetalinkProcessor.cc: New class.
  11628. * src/MetalinkEntry.h: New class.
  11629. * src/MetalinkEntry.cc: New class.
  11630. * src/MetalinkResource.h: New class.
  11631. * src/MetalinkResource.cc: New class.
  11632. To add md5 message digest checking:
  11633. * src/messageDigest.h: Rewritten.
  11634. * src/MultiDiskWriter.cc: Updated according to the changes in
  11635. messageDigest.h.
  11636. * src/ShaVisitor.cc: Updated according to the changes in
  11637. messageDigest.h.
  11638. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11639. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11640. messageDigest.h.
  11641. To fix a bug that causes segfault when the payload length in peer
  11642. message is less than 0:
  11643. * src/PeerConnection.cc:
  11644. (receiveMessage): Fixed the bug.
  11645. * src/PeerMessageUtil.cc
  11646. (checkLength): Throw an exception if length is less than or equals to
  11647. 0.
  11648. To add new interfaces to Base64 encoding/decoding:
  11649. * src/Base64.h
  11650. (part_encode): Changed the method signature.
  11651. (encode): New function(overload).
  11652. (decode): New function(overload).
  11653. * src/Base64.cc
  11654. (part_encode): Rewritten.
  11655. (encode): Rewritten.
  11656. (encode): New function(overload).
  11657. To prevent a peer to download same piece if there is an error in
  11658. checksum:
  11659. * src/PieceMessage.cc
  11660. (receivedAction): Call peerInteraction->abortPiece().
  11661. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. To fix the bug that causes same have message is sent many times to
  11663. a single peer.
  11664. * src/Time.cc
  11665. (isNewer): Use Util::difftv().
  11666. * src/Util.cc
  11667. (difftv): Added a cast to (long long int).
  11668. * src/TorrentMan.cc
  11669. (advertisePiece): Use push_front.
  11670. (getAdvertisedPieceIndexes): A performance improvement was made.
  11671. To fix the bug that sends tracker requests without a sleep interval
  11672. when the number of connections is less than 15.
  11673. * src/TrackerWatcherCommand.cc
  11674. (execute): Now the number of connections is not a factor to decide
  11675. whether or not a tracker request should be sent or not.
  11676. * src/Time.h
  11677. (setTimeInSec): New function.
  11678. * src/Time.cc
  11679. (setTimeInSec): New function.
  11680. etc.
  11681. * src/ChokeMessage.cc
  11682. (receivedAction): Removed peer->snubbing = false
  11683. * src/PeerConnection.h
  11684. (receiveHandshake): Updated doc.
  11685. * src/TorrentMan.h
  11686. (getAdvertisedPieceIndexes): Updated the method signature.
  11687. * src/TorrentMan.cc
  11688. (getAdvertisedPieceIndexes): Updated the method signature.
  11689. * src/Time.h
  11690. (getTimeInMicros): Added a cast to (long long int).
  11691. (getTimeInMillis): Added a cast to (long long int).
  11692. * Release 0.5.2
  11693. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. To make a listening socket non-block:
  11695. * src/SocketCore.h
  11696. (setNonBlockingMode): New function.
  11697. * src/SocketCore.cc
  11698. (setNonBlockingMode): New function.
  11699. (beginListen): Added a call to setNonBlockingMode().
  11700. (acceptConnection): Call setNonBlockingMode().
  11701. (setBlockingMode): Updated.
  11702. To handle tracker's NAT-checking:
  11703. * src/PeerConnection.cc
  11704. (receiveHandshake): 'msg' param is filled with received data and
  11705. its length is assigned to 'length' param, even if all handshake
  11706. message is not yet received.
  11707. * src/PeerInteractionCommand.cc
  11708. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11709. a new peer connects to localhost.
  11710. A call to peerInteraction->sendHandshake() was removed because
  11711. it is called from peerInteraction->receiveHandshake(true).
  11712. * src/PeerInteraction.h
  11713. (quickReplied): New variable.
  11714. (receiveHandshake): Added an argument.
  11715. * src/PeerInteraction.cc
  11716. (PeerInteraction): Added the initialization of quickReplied.
  11717. (receiveHandshake): Send handshake message as soon as the info hash
  11718. in a handshake message from a peer is correct.
  11719. To change the random part of peer id and key parameter:
  11720. * src/TorrentMan.h
  11721. (key): New variable.
  11722. * src/TorrentMan.cc
  11723. (setupInternal1): Use Util::randomAlpha() to generate random part
  11724. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11725. key is also generated by Util::randomAlpha() and it is now 8 character
  11726. long.
  11727. * src/Util.h
  11728. (randomAlpha): New function.
  11729. * src/Util.cc
  11730. (randomAlpha): New function.
  11731. * src/TrackerWatcherCommand.cc
  11732. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11733. Added no_peer_id=1.
  11734. Set snubbing flag to false when a choke message is received from a
  11735. snubbed peer.
  11736. * src/ChokeMessage.cc
  11737. (receivedAction): Set snubbing flag to false.
  11738. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11740. * src/SimpleLogger.h (writeHeader): New function.
  11741. * src/SimpleLogger.cc (writeHeader): New function.
  11742. (writeLog): Fixed the bug that causes segfaults if exception message
  11743. contains an unescaped "%" character.
  11744. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11745. when a tracker request fails.
  11746. * src/Request.cc (parseUrl): Query string is now handled properly.
  11747. * Release 0.5.1
  11748. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. To add Time class which represents a specific instant in time and
  11750. its precision is microseconds. Time checking procedures were rewritten
  11751. using this object.
  11752. * src/Time.h: New class.
  11753. * src/Time.cc: New class.
  11754. * src/AbstractCommand.h
  11755. (updateCheckPoint): Removed.
  11756. (isTimeoutDetected): Removed.
  11757. (checkPoint): Changed the type to Time.
  11758. (timeout): New variable.
  11759. (setTimeout): New function.
  11760. * src/AbstractCommand.cc
  11761. (AbstractCommand): Removed the initialization of checkPoint.
  11762. Added the initialization of timeout.
  11763. (updateCheckPoint): Removed.
  11764. (isTimeoutDetected): Removed.
  11765. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11766. * src/PeerChokeCommand.h
  11767. (checkPoint): Changed the type to Time.
  11768. * src/PeerChokeCommand.cc
  11769. (PeerChokeCommand): Removed the initialization of checkPoint.
  11770. (execute): Rewritten using Time object.
  11771. * src/TrackerWatcherCommand.h
  11772. (checkPoint): Changed the type to Time.
  11773. * src/TrackerWatcherCommand.cc
  11774. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11775. (execute): Rewritten.
  11776. * src/ConsoleDownloadEngine.h
  11777. (cp): Changed the type to Time.
  11778. (startup): Changed the type to Time.
  11779. * src/ConsoleDownloadEngine.cc
  11780. (initStatistics): Use cp.reset(), startup.reset().
  11781. (calculateStatistics): Rewritten using Time object.
  11782. * src/PeerAbstractCommand.h
  11783. (updateCheckPoint): Removed.
  11784. (isTimeoutDetected): Removed.
  11785. (checkPoint): Changed the type to Time.
  11786. * src/PeerAbstractCommand.cc
  11787. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11788. (updateCheckPoint): Removed.
  11789. (isTimeoutDetected): Removed.
  11790. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11791. * src/PeerInteractionCommand.cc
  11792. (PeerInteractionCommand): Removed the initializations of struct
  11793. timeval variables.
  11794. * src/PeerInteractionCommand.h
  11795. (keepAliveCheckPoint): Changed the type to Time.
  11796. (chokeCheckPoint): Changed the type to Time.
  11797. (freqCheckPoint): Changed the type to Time.
  11798. (haveCheckTime): Changed the type to Time.
  11799. * src/PeerInteractionCommand.cc
  11800. (executeInternal): Rewritten using Time object.
  11801. (detectMessageFlooding): Rewritten using Time object.
  11802. (checkLongTimePeerChoking): Rewritten using Time object.
  11803. (sendKeepAlive): Rewritten using Time object.
  11804. (checkHave): Rewritten using Time object.
  11805. * src/SleepCommand.h
  11806. (checkPoint): Changed the type to Time.
  11807. * src/SleepCommand.cc
  11808. (SleepCommand): Removed the initialization of checkPoint.
  11809. (execute): Rewritten using Time object.
  11810. * src/TorrentAutoSaveCommand.h
  11811. (checkPoint): Changed the type to Time.
  11812. * src/TorrentAutoSaveCommand.cc
  11813. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11814. (execute): Rewritten.
  11815. * src/DownloadCommand.h
  11816. (sw): Changed the type to Time.
  11817. * src/DownloadCommand.cc
  11818. (DownloadCommand): Removed the initialization of sw.
  11819. (executeInternal): Rewritten.
  11820. * src/RequestSlot.h
  11821. (dispatchedTime): Changed the type to Time.
  11822. * src/RequestSlot.cc
  11823. (RequestSlot): Removed the call to setDispatchedTime().
  11824. (setDispatchedTime): Rewirtten.
  11825. (isTimeout): Rewritten.
  11826. (getLatencyInMillis): Rewritten.
  11827. * src/TorrentDownloadEngine.h
  11828. (cp): Changed the type to Time[2].
  11829. (startup): Changed the type to Time.
  11830. * src/TorrentDownloadEngine.cc
  11831. (initStatistics): Rewritten.
  11832. (calculateStatistics): Rewritten.
  11833. * src/DownloadEngine.cc
  11834. (run): Rewritten.
  11835. To detect all attempts to connect to the tracker are failed:
  11836. * src/AbstractCommand.cc
  11837. (execute): Increment e->segmentMan->errors if a command aborted.
  11838. * src/SegmentMan.h
  11839. (errors): New variable.
  11840. * src/SegmentMan.cc
  11841. (SegmentMan): Added the initialization of errors.
  11842. (init): Added the initialization of errors.
  11843. * src/TrackerWatcherCommand.cc
  11844. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11845. request was failed.
  11846. To handle snubbed peers:
  11847. * src/PeerChokeCommand.cc
  11848. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11849. (execute): Snubbed peers don't get unchoked.
  11850. * src/PeerInteraction.h
  11851. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11852. * src/PeerInteraction.cc
  11853. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11854. back the requested 16k block in 60 seconds.
  11855. * src/PieceMessage.cc
  11856. (receivedAction): A peer's snubbed state is cleard if it sends
  11857. the requested 16k block in 60 seconds.
  11858. * src/Peer.h
  11859. (snubbing): New variable.
  11860. * src/Peer.cc
  11861. (resetStatus): Added snubbed = false.
  11862. To fix the bug that causes have message is not sent:
  11863. * src/PeerInteractionCommand.cc
  11864. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11865. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11866. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11867. * src/TorrentMan.h
  11868. (HaveEntry): New class.
  11869. (advertisePiece): Rewritten.
  11870. (getAdvertisedPieceIndexes): Rewritten.
  11871. (Haves): Changed the type.
  11872. (getAdvertisedPieceIndexes): Added an argument.
  11873. Others:
  11874. * src/TorrentMan.h
  11875. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11876. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11877. * src/TorrentMan.cc
  11878. (getPeer): Don't check the number of connections here.
  11879. (setupInternal1): Changed peerId.
  11880. * src/PeerInteractionCommand.h
  11881. (KEEP_ALIVE_INTERVAL): New definition.
  11882. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11883. * src/main.cc
  11884. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11885. * src/DownloadEngine.h: Removed unnecessary header includes.
  11886. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. To fix the bug that causes segfaults if a tracker returns a zero-length
  11888. list as "peers":
  11889. * src/TrackerUpdateCommand.cc
  11890. (execute): Added a check to see wether the type of peers is Data*.
  11891. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. * Release 0.5.0
  11893. To fix compile issue with gcc3:
  11894. * src/CancelMessage.h
  11895. (ID): Renamed as ID_t
  11896. (ID_t): New enum.
  11897. * src/RejectMessage.h
  11898. (ID): Renamed as ID_t
  11899. (ID_t): New enum.
  11900. * src/SuggestPieceMessage.h
  11901. (ID): Renamed as ID_t
  11902. (ID_t): New enum.
  11903. * src/AllowedFastMessage.h
  11904. (ID): Renamed as ID_t
  11905. (ID_t): New enum.
  11906. * src/PortMessage.h
  11907. (ID): Renamed as ID_t
  11908. (ID_t): New enum.
  11909. * src/HaveNoneMessage.h
  11910. (ID): Renamed as ID_t
  11911. (ID_t): New enum.
  11912. * src/KeepAliveMessage.h
  11913. (ID): Renamed as ID_t
  11914. (ID_t): New enum.
  11915. * src/HaveAllMessage.h
  11916. (ID): Renamed as ID_t
  11917. (ID_t): New enum.
  11918. * src/UnchokeMessage.h
  11919. (ID): Renamed as ID_t
  11920. (ID_t): New enum.
  11921. * src/BitfieldMessage.h
  11922. (ID): Renamed as ID_t
  11923. (ID_t): New enum.
  11924. * src/PieceMessage.h
  11925. (ID): Renamed as ID_t
  11926. (ID_t): New enum.
  11927. * src/RequestMessage.h
  11928. (ID): Renamed as ID_t
  11929. (ID_t): New enum.
  11930. * src/NotInterestedMessage.h
  11931. (ID): Renamed as ID_t
  11932. (ID_t): New enum.
  11933. * src/ChokeMessage.h
  11934. (ID): Renamed as ID_t
  11935. (ID_t): New enum.
  11936. * src/InterestedMessage.h
  11937. (ID): Renamed as ID_t
  11938. (ID_t): New enum.
  11939. * src/HaveMessage.h
  11940. (ID): Renamed as ID_t
  11941. (ID_t): New enum.
  11942. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. * src/PeerAbstractCommand.h
  11944. (beforeSocketCheck): Removed.
  11945. * src/PeerAbstractCommand.cc
  11946. Modified in order to call executeInternal() even if socket check
  11947. and upload limit check fail.
  11948. * src/PeerInteractionCommand.h
  11949. (keepAlive): Removed.
  11950. (sendKeepAlive): New function.
  11951. (checkHave): New function.
  11952. (beforeSocketCheck): Removed.
  11953. * src/PeerInteractionCommand.cc
  11954. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11955. calls to checkHave() and sendKeepAlive().
  11956. (keepAlive): Renamed to sendKeepAlive().
  11957. (sendKeepAlive): New function.
  11958. (beforeSocketCheck): Removed.
  11959. (checkHave): New function.
  11960. * src/BitfieldMan.cc
  11961. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11962. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11963. 0.
  11964. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11965. * src/TorrentMan.h
  11966. (UsedPieces): Removed.
  11967. (Pieces): New type definition.
  11968. * src/Piece.h: Updated doc.
  11969. * src/Peer.h
  11970. (totalLength): Removed.
  11971. * src/Peer.cc
  11972. (updateLatency): Fixed the latency calculation.
  11973. * src/TorrentMan.cc
  11974. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11975. than or equal to MAX_PEER_LIST_SIZE.
  11976. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11977. then return false.
  11978. (deleteOldErrorPeers): Rewritten.
  11979. (deleteUsedPiece): Fixed the miss use of STL remove.
  11980. * src/PeerInteraction.h
  11981. (Pieces): Removed.
  11982. (deleteTimeoutRequestSlot): Removed.
  11983. (deleteCompletedRequestSlot): Removed.
  11984. (checkRequestSlot): New function.
  11985. * src/PeerInteraction.cc
  11986. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11987. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11988. (checkRequestSlot): New function.
  11989. * src/DownloadEngine.cc
  11990. (run): Clear activeSockets before calling waitData().
  11991. (waitData): Removed a call to activeSockets.clear().
  11992. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11993. To attempt to handle EINTR:
  11994. * src/SocketCore.cc
  11995. (isReadable): Added EINTR handling.
  11996. (isWritable): Added EINTR handling.
  11997. To improve the performance:
  11998. * src/AbstractCommand.cc
  11999. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12000. * src/PeerInteractionCommand.h
  12001. (receiveMessage): Renamed as receiveMessages().
  12002. (receiveMessages): New function.
  12003. * src/PeerInteractionCommand.cc
  12004. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12005. () function. detectMessageFlooding() is moved here.
  12006. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12007. (). The flooding detection for have message is comment out.
  12008. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12009. Util::difftv().
  12010. (receiveMessage): Renamed as receiveMessages().
  12011. (receiveMessages): New function.
  12012. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12013. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12014. * src/SleepCommand.cc
  12015. (execute): Use Util::difftvsec() instead of Util::difftv().
  12016. * src/BitfieldMan.h
  12017. (getNthBitIndex): New function.
  12018. (hasMissingPiece): New function.
  12019. (getAllMissingIndexes): New function.
  12020. * src/BitfieldMan.cc
  12021. (countSetBit): Rewritten.
  12022. (getNthBitIndex): New function.
  12023. (getMissingIndexRandomly): Rewritten.
  12024. (hasMissingPiece): New function.
  12025. (getAllMissingIndexes): New function.
  12026. * src/TorrentMan.cc
  12027. (hasMissingPiece): New function.
  12028. (deleteUsedPiece): Rewritten using STL.
  12029. * src/PeerInteraction.cc
  12030. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12031. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12032. (addRequests): Updated the number of pending requests.
  12033. * src/PeerAbstractCommand.cc
  12034. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12035. (execute): Returns true if TorrentMan::isHalt() is true.
  12036. Corrected the condition of upload limit checking.
  12037. * src/Util.h
  12038. (countBit): New function.
  12039. * src/Util.cc
  12040. (nbits): New variable.
  12041. (countBit): New function.
  12042. * src/DownloadEngine.h
  12043. (SockCmdMap): New type definition.
  12044. (waitData): Added an argument.
  12045. (addSocket): Added an argument.
  12046. (addSocketForReadCheck): Added an argument.
  12047. (addSocketForWriteCheck): Added an argument.
  12048. * src/DownloadEngine.cc
  12049. (run): Executes only commands whose sockets are ready to read or write.
  12050. All commands are executed in every 1 second.
  12051. (waitData): Calls select() again if it returned
  12052. EINTR.
  12053. (addSocket): Saves socket and command object pair to the map.
  12054. (deleteSocket): Deletes socket and command object pair from the map.
  12055. (addSocketForReadCheck): Added an argument.
  12056. (addSocketForWriteCheck): Added an argument.
  12057. * src/DownloadCommand.cc
  12058. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12059. To send "event=stopped" to the tracker when the application finishes:
  12060. * src/PeerChokeCommand.h
  12061. (checkPoint): New variable.
  12062. * src/PeerChokeCommand.cc
  12063. (PeerChokeCommand): Added the initialization of checkPoint.
  12064. (execute): The interval check is now done by checkPoint, not
  12065. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12066. * src/TorrentMan.h
  12067. (halt): New function.
  12068. (hasMissingPiece): New function.
  12069. (isHalt): New function.
  12070. (setHalt): New function.
  12071. * src/TorrentMan.cc
  12072. (TorrentMan): Added the initialization of halt.
  12073. * src/TorrentAutoSaveCommand.h
  12074. (checkPoint): New variable.
  12075. * src/PeerListenCommand.cc
  12076. (execute): Returns true if TorrentMan::isHalt() is true.
  12077. * src/main.cc
  12078. (setSignalHander): Added flags argument.
  12079. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12080. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12081. Removed printDownloadAbortMessage() after torrent downloading loop.
  12082. * src/TorrentAutoSaveCommand.cc
  12083. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12084. (execute): Returns true if TorrentMan::isHalt() is true.
  12085. The interval check is now done by checkPoint, not SleepCommand.
  12086. * src/TrackerWatcherCommand.cc
  12087. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12088. event=stopped.
  12089. * src/TrackerUpdateCommand.cc
  12090. (prepareForRetry): Do not use SleepCommand here.
  12091. (execute): Returns true if TorrentMan::isHalt() is true.
  12092. Others:
  12093. * src/TorrentMan.cc
  12094. (getMissingPieceIndex): Updated log message.
  12095. * src/PeerInteraction.cc
  12096. (createPeerMessag): Updated log message.
  12097. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. To add the ability to download several pieces in mix in a command and
  12099. increase the number of request slots according to request-cancel
  12100. latency:
  12101. * src/PeerInteractionCommand.cc
  12102. (executeInternal): The number of messages to be received at a time
  12103. is increased from 10 to 50.
  12104. * src/LogFactory
  12105. (getInstance): Added NullLogger.
  12106. * src/NullLogger.h: New class.
  12107. * src/BitfieldMan.h
  12108. (getMissingIndex): New function.
  12109. * src/BitfieldMan.cc
  12110. (getMissingIndex): New function.
  12111. * src/TorrentMan.h
  12112. (checkOutPiece): New function.
  12113. (getMissingPieceIndex): New function.
  12114. (getMissingFastPieceIndex): New function.
  12115. (getMissingFastPiece): New function.
  12116. * src/TorrentMan.cc
  12117. (updatePiece): Rewritten using STL.
  12118. (syncPiece): Rewritten using STL.
  12119. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12120. checkOutPiece().
  12121. (getMissingPieceIndex): New function.
  12122. (getMissingFastPieceIndex): New function.
  12123. (getMissingFastPiece): New function.
  12124. (checkOutPiece): New function.
  12125. * src/PeerInteraction.h
  12126. (Pieces): New type definition.
  12127. (piece): Removed.
  12128. (pieces): New variable.
  12129. (getNewPieceAndSendInterest): Added the "piece" argument.
  12130. (abortPiece): Added the "piece" argument.
  12131. (abortAllPieces): New function.
  12132. (isInRequestSlot): New function.
  12133. (hasDownloadPiece): Added the "index" argument.
  12134. (setDownloadPiece): Removed.
  12135. (getDownloadPiece): Added the "index" argument.
  12136. (updatePiece): New function.
  12137. (createRequestMessage): Added the "index" argument.
  12138. * src/PeerInteraction.cc
  12139. (onChoked): Rewritten.
  12140. (abortPiece): Rewirtten.
  12141. (abortAllPieces): New function.
  12142. (deleteTimeoutRequestSlot): Rewritten.
  12143. Clarified code a little bit.
  12144. (deleteCompletedRequestSlot): Rewritten.
  12145. (isInRequestSlot): New function.
  12146. (syncPiece): Rewritten.
  12147. (updatePiece): New function.
  12148. (getNewPieceAndSendInterest): Rewritten.
  12149. (addRequests): Rewritten.
  12150. (getDownloadPiece): Rewritten.
  12151. (hasDownloadPiece): Rewritten.
  12152. (createRequestMessage): Added the "index" argument.
  12153. * src/common.h
  12154. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12155. (DIV_FLOOR): New definition.
  12156. * src/PieceMessage.cc
  12157. (receivedAction): Update request-piece latency here.
  12158. * src/RequestSlot.h
  12159. (getLatencyInMillis): New function.
  12160. * src/RequestSlot.cc
  12161. (isTimeout): Rewritten using getLatencyInMillis.
  12162. (getLatencyInMillis): New function.
  12163. * src/Piece.h
  12164. (operator==): New function.
  12165. (getMissingBlockIndex): New function.
  12166. * src/Piece.cc
  12167. (operator==): New function.
  12168. (getMissingBlockIndex): New function.
  12169. * src/Peer.h
  12170. (DEFAULT_LATENCY): New definition.
  12171. (latency): New variable.
  12172. (updateLatency): New function.
  12173. (getLatency): New function.
  12174. * src/Peer.cc
  12175. (resetStatus): Reset latecy.
  12176. (updateLatency): New function.
  12177. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. * src/SocketCore.cc
  12179. (isReadable): Added secure to the condition.
  12180. * src/HttpConnection.cc
  12181. (receiveResponse): Fixed a bug that causes no response header
  12182. exception.
  12183. * src/Peer.h
  12184. (getFastSet): Fixed the return value type.
  12185. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12186. To remove a wait from download loop:
  12187. * src/DownloadEngine.cc
  12188. (run): Comment out shortSleep.
  12189. To rewrite the message handling:
  12190. * src/SimplePeerMessage.h: New class.
  12191. * src/SimplePeerMessage.cc: New class.
  12192. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12193. (msg): New variable.
  12194. (create): New function.
  12195. (send): Removed.
  12196. (getMessage): New function.
  12197. (getMessageLength): New function.
  12198. * src/CancelMessage.cc
  12199. (create): New function.
  12200. (receivedAction): Replaced deleteRequestMessageInQueue with
  12201. rejectPieceMessageInQueue.
  12202. (send): Removed.
  12203. (getMessage): New function.
  12204. (getMessageLength): New function.
  12205. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12206. (msg): New variable.
  12207. (msgLength): New variable.
  12208. (~BitfieldMessage): Deleted msg.
  12209. (send): Removed.
  12210. (getMessage): New function.
  12211. (getMessageLength): New function.
  12212. * src/BitfieldMessage.cc
  12213. (create): New function.
  12214. (send): Removed.
  12215. (getMessage): New function.
  12216. (getMessageLength): New function.
  12217. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12218. (msg): New variable.
  12219. (sendPredicate): New function.
  12220. (onSendComplete): New function.
  12221. (send): Removed.
  12222. (getMessage): New function.
  12223. (getMessageLength): New function.
  12224. (create): New function.
  12225. * src/ChokeMessage.cc
  12226. (create): New function.
  12227. (send): Removed.
  12228. (sendPredicate): New function.
  12229. (getMessage): New function.
  12230. (getMessageLength): New function.
  12231. (onSendComplete): New function.
  12232. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12233. (msg): New variable.
  12234. (send): Removed.
  12235. (getMessage): New function.
  12236. (getMessageLength): New function.
  12237. * src/KeepAliveMessage.cc
  12238. (send): Removed.
  12239. (getMessage): New function.
  12240. (getMessageLength): New function.
  12241. * src/PortMessage.h
  12242. (create): New function.
  12243. (receivedAction): Updated log message.
  12244. * src/PortMessage.cc: New file.
  12245. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12246. (msg): New variable.
  12247. (sendPredicate): New function.
  12248. (onSendComplete): New function.
  12249. (create): New function.
  12250. (send): Removed.
  12251. (getMessage): New function.
  12252. (getMessageLength): New function.
  12253. * src/UnchokeMessage.cc
  12254. (create): New function.
  12255. (send): Removed.
  12256. (sendPredicate): New function.
  12257. (getMessage): New function.
  12258. (getMessageLength): New function.
  12259. (onSendComplete): New function.
  12260. * src/PieceMessage.h
  12261. (leftPieceDataLength): Removed.
  12262. (leftDataLength): New variable.
  12263. (headerSend): New variable.
  12264. (pendingCount): New variable.
  12265. (msgHeader): New variable.
  12266. (sendPieceData): New function.
  12267. (incrementPendingCount): New function.
  12268. (isPendingCountMax): New function.
  12269. (create): New function.
  12270. (getMessageHeader): New function.
  12271. (getMessageHeaderLength): New function.
  12272. * src/PieceMessage.cc
  12273. (create): New function.
  12274. (getMessageHeader): New function.
  12275. (getMessageHeaderLength): New function.
  12276. (send): Rewritten.
  12277. (sendPieceData): New function.
  12278. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12279. (msg): New variable.
  12280. (create): New function.
  12281. (getMessage): New function.
  12282. (getMessageLength): New function.
  12283. * src/HaveMessage.cc
  12284. (create): New function.
  12285. (send): Removed.
  12286. (sendPieceData): New function.
  12287. (getMessage): New function.
  12288. (getMessageLength): New function.
  12289. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12290. (msg): New variable.
  12291. (create): New function.
  12292. (send): Removed.
  12293. (getMessage): New function.
  12294. (getMessageLength): New function.
  12295. * src/RequestMessage.cc
  12296. (create): New function.
  12297. (receivedAction): Added the handling of fast extension.
  12298. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12299. (send): Removed.
  12300. (getMessage): New function.
  12301. (getMessageLength): New function.
  12302. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12303. (msg): New variable.
  12304. (sendPredicate): New function.
  12305. (onSendComplete): New function.
  12306. (create): New function.
  12307. (getMessage): New function.
  12308. (getMessageLength): New function.
  12309. * src/InterestedMessage.cc
  12310. (create): New function.
  12311. (send): Removed.
  12312. (sendPieceData): New function.
  12313. (getMessage): New function.
  12314. (getMessageLength): New function.
  12315. (onSendComplete): New function.
  12316. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12317. (msg): New variable.
  12318. (sendPieceData): New function.
  12319. (onSendComplete): New function.
  12320. (create): New function.
  12321. (send): Removed.
  12322. (getMessage): New function.
  12323. (getMessageLength): New function.
  12324. * src/NotInterestedMessage.cc
  12325. (create): New function.
  12326. (send): Removed.
  12327. (sendPredicate): New function.
  12328. (getMessage): New function.
  12329. (getMessageLength): New function.
  12330. (onSendComplete): New function.
  12331. * src/AllowedFastMessage.h: New class.
  12332. * src/AllowedFastMessage.cc: New class.
  12333. * src/RejectMessage.h: New class.
  12334. * src/RejectMessage.cc: New class.
  12335. * src/SuggestPieceMessage.h: New class.
  12336. * src/SuggestPieceMessage.cc: New class.
  12337. * src/HaveAllMessage.h: New class.
  12338. * src/HaveAllMessage.cc: New class.
  12339. * src/HaveNoneMessage.h: New class.
  12340. * src/HaveNoneMessage.cc: New class.
  12341. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12342. (msg): New variable.
  12343. (reserved): New variable.
  12344. (create): New function.
  12345. (getId): New function.
  12346. (receivedAction): New function.
  12347. (getMessage): New function.
  12348. (getMessageLength): New function.
  12349. (isFastExtensionSupported): New function.
  12350. * src/HandshakeMessage.cc
  12351. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12352. (create): New function.
  12353. (getMessage): New function.
  12354. (getMessageLength): New function.
  12355. (toString): Added the output of reserved field.
  12356. (check): Added const qualifier.
  12357. (isFastExtensionSupported): New function.
  12358. * src/PeerMessageUtil.h
  12359. (createChokeMessage): Removed.
  12360. (createUnchokeMessage): Removed.
  12361. (createInterestedMessage): Removed.
  12362. (createNotInterestedMessage): Removed.
  12363. (createHaveMessage): Removed.
  12364. (createBitfieldMessage): Removed.
  12365. (createRequestMessage): Removed.
  12366. (createCancelMessage): Removed.
  12367. (createPieceMessage): Removed.
  12368. (createPortMessage): Removed.
  12369. (createChokeMessage): Removed.
  12370. (createUnchokeMessage): Removed.
  12371. (createInterestedMessage): Removed.
  12372. (createNotInterestedMessage): Removed.
  12373. (createHaveMessage): Removed.
  12374. (createBitfieldMessage): Removed.
  12375. (createRequestMessage): Removed.
  12376. (createCancelMessage): Removed.
  12377. (createPieceMessage): Removed.
  12378. (createKeepAliveMessage): Removed.
  12379. (createHandshakeMessage): Removed.
  12380. (setIntParam): New function.
  12381. (createPeerMessageString): New function.
  12382. * src/PeerMessageUtil.cc
  12383. (createChokeMessage): Removed.
  12384. (createUnchokeMessage): Removed.
  12385. (createInterestedMessage): Removed.
  12386. (createNotInterestedMessage): Removed.
  12387. (createHaveMessage): Removed.
  12388. (createBitfieldMessage): Removed.
  12389. (createRequestMessage): Removed.
  12390. (createCancelMessage): Removed.
  12391. (createPieceMessage): Removed.
  12392. (createPortMessage): Removed.
  12393. (createRequestMessage): Removed.
  12394. (createCancelMessage): Removed.
  12395. (createPieceMessage): Removed.
  12396. (createHaveMessage): Removed.
  12397. (createChokeMessage): Removed.
  12398. (createUnchokeMessage): Removed.
  12399. (createInterestedMessage): Removed.
  12400. (createNotInterestedMessage): Removed.
  12401. (createBitfieldMessage): Removed.
  12402. (createKeepAliveMessage): Removed.
  12403. (createHandshakeMessage): Removed.
  12404. (setIntParam): New function.
  12405. (createPeerMessageString): New function.
  12406. * src/PeerConnection.h
  12407. (peer): Removed.
  12408. (torrentMan): Removed.
  12409. (createNLengthMessage): Removed.
  12410. (setIntParam): Removed.
  12411. (writeOutgoingMessageLog): Removed all overloaded functions.
  12412. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12413. (sendMessage): New function.
  12414. (sendHandshake): Removed.
  12415. (sendKeepAlive): Removed.
  12416. (sendChoke): Removed.
  12417. (sendUnchoke): Removed.
  12418. (sendInterested): Removed.
  12419. (sendNotInterested): Removed.
  12420. (sendHave): Removed.
  12421. (sendBitfield): Removed.
  12422. (sendRequest): Removed.
  12423. (sendPiece): Removed.
  12424. (sendPieceHeader): Removed.
  12425. (sendPieceData): Removed.
  12426. (sendCancel): Removed.
  12427. (getPeer): Removed.
  12428. * src/PeerConnection.cc
  12429. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12430. (sendHandshake): Removed.
  12431. (sendKeepAlive): Removed.
  12432. (createNLengthMessage): Removed.
  12433. (setIntParam): Removed.
  12434. (writeOutgoingMessageLog): Removed all overloaded functions.
  12435. (sendChoke): Removed.
  12436. (sendUnchoke): Removed.
  12437. (sendInterested): Removed.
  12438. (sendNotInterested): Removed.
  12439. (sendHave): Removed.
  12440. (sendBitfield): Removed.
  12441. (sendRequest): Removed.
  12442. (sendPiece): Removed.
  12443. (sendPieceHeader): Removed.
  12444. (sendPieceData): Removed.
  12445. (sendMessage): New function.
  12446. (sendCancel): Removed.
  12447. * src/PeerInteractionCommand.cc
  12448. (PeerInteractionCommand): Call setUploadLimit.
  12449. (executeInternal): Call setUploadLimit.
  12450. Added the handling of "inProgress" state of handshake message.
  12451. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12452. sendNow().
  12453. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12454. sendNow().
  12455. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12456. * src/TorrentMan.h
  12457. (PEER_ID_LENGTH): New definition.
  12458. (hasAllPieces): New function.
  12459. * src/TorrentMan.cc
  12460. (getMissingPiece): Added the handling of fast extension.
  12461. (cancelPiece): Call updatePiece().
  12462. (hasAllPieces): New function.
  12463. * src/PeerInteraction.h
  12464. (fastSet): New variable.
  12465. (getNewPieceAndSendInterest): Changed the return type to void.
  12466. (send): Renamed as sendMessages.
  12467. (deleteAllRequestSlot): Removed.
  12468. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12469. (cancelAllRequest): Removed all overloaded functions.
  12470. (deleteAllRequestSlot): Removed.
  12471. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12472. (rejectPieceMessageInQueue): New function.
  12473. (rejectAllPieceMessageInQueue): New function.
  12474. (onChoked): New function.
  12475. (isSendingMessageInProgress): New function.
  12476. (getCorrespondingRequestSlot): Changed its arguments.
  12477. (isInFastSet): New function.
  12478. (addFastSetIndex): New function.
  12479. (addRequests): New function.
  12480. (sendNow): Removed.
  12481. (trySendNow): Removed.
  12482. (sendBitfield): New function.
  12483. (sendAllowdFast): New function.
  12484. (createHaveAllMessage): New function.
  12485. (createHaveNoneMessage): New function.
  12486. (createRejectMessage): New function.
  12487. (createAllowedFastMessage): New function.
  12488. * src/PeerInteraction.cc
  12489. (send): Renamed as sendMessages.
  12490. (sendMessages): New function.
  12491. (MsgPushBack): New class.
  12492. (isSendingMessageInProgress): New function.
  12493. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12494. (rejectAllPieceMessageInQueue): New function.
  12495. Added the handling of fast extension.
  12496. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12497. (rejectPieceMessageInQueue): New function.
  12498. Added the handling of fast extension.
  12499. (deleteRequestSlot): Replaced for loop with std::find.
  12500. (onChoked): New function.
  12501. (deleteAllRequestSlot): Removed.
  12502. (abortPiece): Rewirtten.
  12503. (deleteTimeoutRequestSlot): Updated log messages.
  12504. (getCorrespondingRequestSlot): Changed its arguments.
  12505. (cancelAllRequest): Removed all overloaded functions.
  12506. (receiveHandshake): Added the check to see whether an incoming peer
  12507. supports fast extension.
  12508. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12509. PeerMessageUtil.
  12510. (createPeerMessage): Use create() of each message class instead of
  12511. PeerMessageUtil.
  12512. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12513. AllowedFastMessage were added.
  12514. (getNewPieceAndSendInterest): Changed its return value type to void.
  12515. Added the handling of fast extension.
  12516. (addRequests): New function.
  12517. (sendNow): Removed.
  12518. (sendHandshake): Rewritten.
  12519. (trySendNow): Removed.
  12520. (sendBitfield): New function.
  12521. (sendAllowdFast): New function.
  12522. (isInFastSet): New function.
  12523. (addFastSetIndex): New function.
  12524. (createRequestMessage): Use RequestMessage::create instead of
  12525. PeerMessageUtil.
  12526. (createCancelMessage): Use CancelMessage::create instead of
  12527. PeerMessageUtil.
  12528. (createPieceMessage): Use PieceMessage::create instead of
  12529. PeerMessageUtil.
  12530. (createHaveMessage): Use HaveMessage::create instead of
  12531. PeerMessageUtil.
  12532. (createChokeMessage): Use ChokeMessage::create instead of
  12533. PeerMessageUtil.
  12534. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12535. PeerMessageUtil.
  12536. (createInterestedMessage): Use InterestedMessage::create instead of
  12537. PeerMessageUtil.
  12538. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12539. of PeerMessageUtil.
  12540. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12541. PeerMessageUtil.
  12542. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12543. PeerMessageUtil.
  12544. (createHaveAllMessage): New function.
  12545. (createHaveNoneMessage): New function.
  12546. (createRejectMessage): New function.
  12547. (createAllowedFastMessage: New function.
  12548. * src/Util.h
  12549. (sha1Sum): New function.
  12550. (computeFastSet): New function.
  12551. * src/Util.cc
  12552. (sha1Sum): New function.
  12553. (computeFastSet): New function.
  12554. * src/Peer.h
  12555. (fastExtensionEnabled): New variable.
  12556. (fastSet): New variable.
  12557. (setAllBitfield): New function.
  12558. (setFastExtensionEnabled): New function.
  12559. (isFastExtensionEnabled): New function.
  12560. (addFastSetIndex): New function.
  12561. (getFastSet): New function.
  12562. (isInFastSet): New function.
  12563. (countFastSet): New function.
  12564. * src/Peer.cc
  12565. (isInFastSet): New function.
  12566. (addFastSetIndex): New function.
  12567. (setAllBitfield): New function.
  12568. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12569. sockets.
  12570. * src/PeerAbstractCommand.cc
  12571. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12572. and uploadLimit.
  12573. (execute): Changed the procedure of checking sockets. The upload speed
  12574. checking were added.
  12575. (setUploadLimit): New function.
  12576. (setUploadLimitCheck): New function.
  12577. * src/PeerAbstractCommand.h
  12578. (setUploadLimit): New function.
  12579. (setUploadLimitCheck): New function.
  12580. (uploadLimit): New variable.
  12581. (uploadLimitCheck): New variable.
  12582. To contact a tracker regularly:
  12583. * src/TrackerWatcherCommand.h (interval): New variable.
  12584. (checkPoint): New variable.
  12585. (TrackerWatcherCommand): Added interval argument.
  12586. * src/TrackerWatcherCommand.cc
  12587. (TrackerWatcherCommand): Initialized checkPoint.
  12588. (execute): Now a tracker is contacted in every specified period.
  12589. If peer list is not needed, send request with numwant=0.
  12590. * src/TrackerUpdateCommand.cc
  12591. (execute): Updated log messages.
  12592. * src/DownloadEngine.cc
  12593. (~DownloadEngine): Removed two asserts.
  12594. (waitData): Uncommented wfds. May be a bug fix.
  12595. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. * src/PeerInteractionCommand.h
  12597. (checkInactiveConnection): Removed.
  12598. * src/PeerInteractionCommand.cc
  12599. (executeInternal): Removed following function calls:
  12600. detectMessageFlooding(), checkLongTimePeerChoking and
  12601. checkInactiveConnection().
  12602. (checkInactiveConnection): Removed.
  12603. (detectMessageFlooding): Removed function call to
  12604. checkInactiveConnection().
  12605. * src/PeerMessageUtil.h
  12606. (createChokeMessage): New function. Overload.
  12607. (createUnchokeMessage): New function. Overload.
  12608. (createInterestedMessage): New function. Overload.
  12609. (createNotInterestedMessage): New function. Overload.
  12610. (createHaveMessage): New function. Overload.
  12611. (createBitfieldMessage): New function. Overload.
  12612. (createRequestMessage): New function. Overload.
  12613. (createCancelMessage): New function. Overload.
  12614. (createPieceMessage): New function. Overload.
  12615. (createKeepAliveMessage): New function. Overload.
  12616. * src/PeerMessageUtil.cc
  12617. (createChokeMessage): New function. Overload.
  12618. (createUnchokeMessage): New function. Overload.
  12619. (createInterestedMessage): New function. Overload.
  12620. (createNotInterestedMessage): New function. Overload.
  12621. (createHaveMessage): New function. Overload.
  12622. (createBitfieldMessage): New function. Overload.
  12623. (createRequestMessage): New function. Overload.
  12624. (createCancelMessage): New function. Overload.
  12625. (createPieceMessage): New function. Overload.
  12626. (createKeepAliveMessage): New function. Overload.
  12627. * src/SendMessageQueue.cc
  12628. (createRequestMessage): Use PeerMessageUtil.
  12629. (createCancelMessage): Use PeerMessageUtil.
  12630. (createPieceMessage): Use PeerMessageUtil.
  12631. (createHaveMessage): Use PeerMessageUtil.
  12632. (createChokeMessage): Use PeerMessageUtil.
  12633. (createUnchokeMessage): Use PeerMessageUtil.
  12634. (createInterestedMessage): Use PeerMessageUtil.
  12635. (createNotInterestedMessage): Use PeerMessageUtil.
  12636. (createBitfieldMessage): Use PeerMessageUtil.
  12637. (createKeepAliveMessage): Use PeerMessageUtil.
  12638. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12639. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12640. * src/PeerInteraction.h: New class.
  12641. * src/PeerInteraction.cc: New class.
  12642. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. Each peer message has its own class.
  12644. * src/PendingMessages.h: Removed.
  12645. * src/PendingMessages.cc: Removed. The sending process was moved to
  12646. each message class.
  12647. * src/RequestSlotMan.h: Removed.
  12648. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12649. SendMessageQueue.
  12650. * src/RequestMessage.h: New class.
  12651. * src/RequestMessage.cc: New class.
  12652. * src/CancelMessage.h: New class.
  12653. * src/CancelMessage.cc: New class.
  12654. * src/BitfieldMessage.h: New class.
  12655. * src/BitfieldMessage.cc: New class.
  12656. * src/ChokeMessage.h: New class.
  12657. * src/ChokeMessage.cc: New class.
  12658. * src/KeepAliveMessage.h: New class.
  12659. * src/KeepAliveMessage.cc: New class.
  12660. * src/PortMessage.h: New class.
  12661. * src/UnchokeMessage.h: New class.
  12662. * src/UnchokeMessage.cc: New class.
  12663. * src/PieceMessage.h: New class.
  12664. * src/PieceMessage.cc: New class.
  12665. * src/HaveMessage.h: New class.
  12666. * src/HaveMessage.cc: New class.
  12667. * src/BitfieldMessage.h: New class.
  12668. * src/BitfieldMessage.cc: New class.
  12669. * src/NotInterestedMessage.h: New class.
  12670. * src/NotInterestedMessage.cc: New class.
  12671. * src/InterestedMessage.h: New class.
  12672. * src/InterestedMessage.cc: New class.
  12673. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12674. (getSendMessageQueue): New function.
  12675. (setSendMessageQueue): New function.
  12676. * src/HandshakeMessage.cc: New class.
  12677. * src/PeerConnection.h (receiveMessage): Changed return value and
  12678. arguments.
  12679. (receiveHandshake): Changed return value and arguments.
  12680. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12681. here.
  12682. (receiveHandshake): Do not create handshake class here.
  12683. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12684. (piece): Removed.
  12685. (syncPiece): Removed.
  12686. (sendInterest): Removed.
  12687. (sendMessages): Removed.
  12688. (createRequestPendingMessage): Removed.
  12689. (checkPieceHash): Removed.
  12690. (erasePieceOnDisk): Removed.
  12691. (getNewPieceAndSendInterest): Removed.
  12692. (onGotNewPice): Removed.
  12693. (onGotWrongPiece): Removed.
  12694. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12695. Removed peerConnection, piece.
  12696. (~PeerInteractionCommand): Removed peerConnection.
  12697. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12698. (syncPiece): Moved to SendMessageQueue.
  12699. (decideChoking): Removed PendingMessage.
  12700. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12701. The action after receiving peer message was moved to each message
  12702. class.
  12703. (onGotNewPice): Moved to SendMessageQueue.
  12704. (onGotWrongPiece): Moved to SendMessageQueue.
  12705. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12706. (sendInterest): Moved to SendMessageQueue.
  12707. (createRequestPendingMessage): Removed.
  12708. (sendMessages): Moved to SendMessageQueue.
  12709. (onAbort): Use SendMessageQueue::abortPiece()
  12710. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12711. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12712. (checkPieceHash): Moved to SendMessageQueue.
  12713. (erasePieceOnDisk): Moved to SendMessageQueue.
  12714. * src/PeerMessageUtil.h
  12715. (createBitfieldMessage): Removed.
  12716. (createHaveMessage): Changed return value and arguments.
  12717. (createBitfieldMessage): Changed return value and arguments.
  12718. (createRequestCancelMessage): Removed.
  12719. (createPieceMessage): Changed return value and arguments.
  12720. (getShortIntParam): New function.
  12721. (checkIndex): Changed arguments.
  12722. (checkBegin): Changed arguments.
  12723. (checkLength): Changed arguments.
  12724. (checkPieceOffset): Removed.
  12725. (checkRange): New function.
  12726. (checkBitfield): Changed arguments.
  12727. (createPeerMessage): Removed.
  12728. (checkIntegrity): Removed.
  12729. (createHandshakeMessage): Changed arguments.
  12730. (createChokeMessage): New function.
  12731. (createUnchokeMessage): New function.
  12732. (createInterestedMessage): New function.
  12733. (createNotInterestedMessage): New function.
  12734. (createRequestMessage): New function.
  12735. (createCancelMessage): New function.
  12736. (createPortMessage): New function.
  12737. * src/PeerMessageUtil.cc
  12738. (createBitfieldMessage): Removed.
  12739. (createHaveMessage): Changed return value and arguments.
  12740. (createBitfieldMessage): Changed return value and arguments.
  12741. (createRequestCancelMessage): Removed.
  12742. (createPieceMessage): Changed return value and arguments.
  12743. (getShortIntParam): New function.
  12744. (checkIndex): Changed arguments.
  12745. (checkBegin): Changed arguments.
  12746. (checkLength): Changed arguments.
  12747. (checkPieceOffset): Removed.
  12748. (checkRange): New function.
  12749. (checkBitfield): Changed arguments.
  12750. (createPeerMessage): Removed.
  12751. (checkIntegrity): Removed.
  12752. (createHandshakeMessage): Changed arguments.
  12753. (createChokeMessage): New function.
  12754. (createUnchokeMessage): New function.
  12755. (createInterestedMessage): New function.
  12756. (createNotInterestedMessage): New function.
  12757. (createRequestMessage): New function.
  12758. (createCancelMessage): New function.
  12759. (createPortMessage): New function.
  12760. * src/PeerMessage.h
  12761. (id): Removed.
  12762. (index): Removed.
  12763. (begin): Removed.
  12764. (length): Removed.
  12765. (bitfield): Removed.
  12766. (bitfieldLength): Removed.
  12767. (block): Removed.
  12768. (blockLength): Removed.
  12769. (inProgress): New variable.
  12770. (cuid): New variable.
  12771. (peer): New variable.
  12772. (sendMessageQueue): New variable.
  12773. (logger): New variable.
  12774. (setBitfield): Removed.
  12775. (getBitfield): Removed.
  12776. (setBlock): Removed.
  12777. (getBlock): Removed.
  12778. (getBitfieldLength): Removed.
  12779. (getBlockLength): Removed.
  12780. (isInProgress): New function.
  12781. (toString): Made pure virtual.
  12782. (check): New function.
  12783. (send): New function.
  12784. (receivedAction): New function.
  12785. (getId): Made pure virtual.
  12786. (setId): Removed.
  12787. (getIndex): Removed.
  12788. (setIndex): Removed.
  12789. (getBegin): Removed.
  12790. (setBegin): Removed.
  12791. (getLength): Removed.
  12792. (setLength): Removed.
  12793. (getCuid): New function.
  12794. (setCuid): New function.
  12795. (getPeer): New function.
  12796. (setPeer): New function.
  12797. (getSendMessageQueue): New function.
  12798. (setSendMessageQueue): New function.
  12799. (ID): Removed.
  12800. * src/PeerMessage.cc
  12801. (setBitfield): Removed.
  12802. (setBlock): Removed.
  12803. (toString): Removed.
  12804. * src/TorrentMan.h
  12805. (getPieceLength): New function.
  12806. (getPieceLength): New function.
  12807. * src/SendMessageQueue.h
  12808. (REQUEST_TIME_OUT): New definition.
  12809. (RequestSlots): New definition.
  12810. (MessageQueue): New definition.
  12811. (requestSlotMan): Removed.
  12812. (pendingMessages): Removed.
  12813. (requestSlots): New variable.
  12814. (messageQueue): New variable.
  12815. (torrentMan): New variable.
  12816. (peerConnection): New variable.
  12817. (peer): New variable.
  12818. (piece): New variable.
  12819. (getNewPieceAndSendInterest): New function.
  12820. (createPeerMessage): New function.
  12821. (createHandshakeMessage): New function.
  12822. (send): Made private.
  12823. (setPeerMessageCommonProperty): New function.
  12824. (deleteAllRequestSlot): New function.
  12825. (deleteRequestMessageInQueue): New function.
  12826. (cancelAllRequest): Made private.
  12827. (cancelAllRequest): Made private.
  12828. (countRequestSlot): Made private.
  12829. (addPendingMessage): Removed.
  12830. (deletePendingPieceMessage): Removed.
  12831. (deletePendingRequestMessage): Removed.
  12832. (addMessage): New function.
  12833. (deletePieceMessageInQueue): New function.
  12834. (deleteTimeoutRequestSlot): Changed argument.
  12835. (deleteCompletedRequestSlot): Changed argument.
  12836. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12837. (getCorrespondingRequestSlot): New function.
  12838. (countPendingMessage): Removed.
  12839. (countMessageInQueue): New function.
  12840. (getTorrentMan): New function.
  12841. (getPeerConnection): New function.
  12842. (hasDownloadPiece): New function.
  12843. (getDownloadPiece): New function.
  12844. (setDownloadPiece): New function.
  12845. (syncPiece): New function.
  12846. (sendMessages): New function.
  12847. (sendNow): New function.
  12848. (trySendNow): New function.
  12849. (abortPiece): New function.
  12850. (sendHandshake): New function.
  12851. (receiveMessage): New function.
  12852. (receiveHandshake): New function.
  12853. (createRequestMessage): New function.
  12854. (createCancelMessage): New function.
  12855. (createPieceMessage): New function.
  12856. (createHaveMessage): New function.
  12857. (createChokeMessage): New function.
  12858. (createUnchokeMessage): New function.
  12859. (createInterestedMessage): New function.
  12860. (createNotInterestedMessage): New function.
  12861. (createBitfieldMessage): New function.
  12862. (createKeepAliveMessage): New function.
  12863. * src/SendMessageQueue.cc
  12864. (SendMessageQueue): Removed requestSlotMan.
  12865. Instantiated peerConnection here.
  12866. (~SendMessageQueue): Removed requestSlotMan.
  12867. Added deletion of peerConnection and the contents of messageQueue.
  12868. (send): Updated according to the change of messageQueue.
  12869. (addPendingMessage): Renamed to addMessage.
  12870. (addMessage): New function.
  12871. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12872. (deletePieceMessageInQueue): New function.
  12873. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12874. (deleteRequestMessageInQueue): New function.
  12875. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12876. here.
  12877. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12878. (...) was moved here.
  12879. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12880. moved here.
  12881. (deleteCompletedRequestSlot):
  12882. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12883. (getCorrespondingRequestSlot):
  12884. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12885. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12886. (countPendingMessage): Renamed to countMessageInQueue.
  12887. (countMessageInQueue): New function.
  12888. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12889. (receiveHandshake): New function.
  12890. (createHandshakeMessage): New function.
  12891. (receiveMessage): New function.
  12892. (createPeerMessage): New function.
  12893. (syncPiece): New function.
  12894. (getNewPieceAndSendInterest): New function.
  12895. (sendMessages): New function.
  12896. (sendNow): New function.
  12897. (trySendNow): New function.
  12898. (sendHandshake): New function.
  12899. (abortPiece): New function.
  12900. (getDownloadPiece): New function.
  12901. (getPeerMessageCommonProperty): New function.
  12902. (createRequestMessage): New function.
  12903. (createCancelMessage): New function.
  12904. (createPieceMessage): New function.
  12905. (createHaveMessage): New function.
  12906. (createChokeMessage): New function.
  12907. (createUnchokeMessage): New function.
  12908. (createInterestedMessage): New function.
  12909. (createNotInterestedMessage): New function.
  12910. (createBitfieldMessage): New function.
  12911. (createKeepAliveMessage): New function.
  12912. To add simple Content-Disposition support:
  12913. * src/HttpResponseCommand.h (determinFilename): New function.
  12914. * src/HttpResponseCommand.cc (executeInternal):
  12915. Use determinFilename(headers) instead of req->getFile() when comparing
  12916. filename.
  12917. (determinFilename): New function.
  12918. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12919. req->getFile().
  12920. (handleOtherEncoding): Use determinFilename(headers) instead of
  12921. req->getFile().
  12922. * src/Util.h (getContentDispositionFilename): New function.
  12923. * src/Util.cc (getContentDispositionFilename): New function.
  12924. * src/LogFactory.h (release): New function.
  12925. * src/LogFactory.cc (release): New function.
  12926. To fix a bug that causes out-of-bound exception when HTTP status
  12927. line is wrong:
  12928. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12929. size.
  12930. * src/common.h (Deleter): New class.
  12931. * src/SegmentMan.cc
  12932. (~SegmentMan): Added deletion of splitter and diskWriter.
  12933. * src/DownloadEngine.h
  12934. (Commands): Use deque.
  12935. (clearQueue): New function.
  12936. * src/DownloadEngine.cc
  12937. (~DownloadEngine): Added deletion of segmentMan.
  12938. (cleanQueue): New function.
  12939. * src/TorrentDownloadEngine.h
  12940. (TorrentDownloadEngine): The implementation was moved to
  12941. TorrentDownloadEngine.cc.
  12942. (~TorrentDownloadEngine): The implementation was moved to
  12943. TorrentDownloadEngine.cc.
  12944. * src/TorrentDownloadEngine.cc
  12945. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12946. * src/main.cc
  12947. (clearRequest): Removed.
  12948. (handler): Added deletion of e.
  12949. (torrentHandler): Added deletion of te.
  12950. (main): Do not share splitter.
  12951. Use Deleter instead of clearRequest.
  12952. Deletion of classes were updated.
  12953. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12954. * src/main.cc (main): Fixed typo.
  12955. * src/message.h: Fixed typo.
  12956. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12957. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12958. To add --select-file command-line option:
  12959. * src/Util.cc
  12960. (unfoldRange): New function.
  12961. (getNum): New function.
  12962. (unfoldSubRange): New function
  12963. * src/main.cc
  12964. (showUsage): Added help message.
  12965. (main): Added --select-file command-line option. Updated the layout of
  12966. file listing.
  12967. * src/common.h
  12968. (Integers): New definition.
  12969. * src/SocketCore.cc
  12970. (writeData): Removed timeout argument.
  12971. (readData): Removed timeout argument.
  12972. (peekData): Removed timeout argument.
  12973. * src/Socket.cc
  12974. (writeData): Removed timeout argument.
  12975. (readData): Removed timeout argument.
  12976. (peekData): Removed timeout argument.
  12977. * Release 0.4.1
  12978. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12979. To deploy upload rate based choking algorithm:
  12980. * src/PeerInteractionCommand.cc
  12981. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12982. peer currently used.
  12983. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12984. download completes. Simplified.
  12985. (receiveMessage): Updated.
  12986. * src/TorrentMan.h
  12987. (activePeers): New variable.
  12988. (addActivePeer): New function.
  12989. (getActivePeers): New function.
  12990. (deleteActivePeer): New function.
  12991. * src/TorrentMan.cc
  12992. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12993. * src/PeerAbstractCommand.cc
  12994. (onAbort): Use peer->resetStatus().
  12995. * src/main.cc
  12996. (PeerChokeCommand.h): Included.
  12997. (main): Added the instance of ChokingCommand to the command queue.
  12998. * src/Peer.h
  12999. (amChoking): Renamed from amChocking
  13000. (chokingRequired): New variable.
  13001. (optUnchoking): New variable.
  13002. (deltaUpload): New variable.
  13003. (deltaDownload): New variable.
  13004. (addDeltaUpload): New function.
  13005. (resetDeltaUpload): New function.
  13006. (addDeltaDownload): New function.
  13007. (resetDeltaDownload): New function.
  13008. (addPeerUpload): Added a call to addDeltaUpload.
  13009. (addPeerDownload): Added a call to addDeltaDownload.
  13010. * src/Peer.cc
  13011. (shouldBeChoking): Renamed from shouldChoke.
  13012. (resetStatus): New function.
  13013. * src/PeerChokeCommand.h: New class.
  13014. * src/PeerChokeCommand.cc: New class.
  13015. To add lazy upload speed limiter:
  13016. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13017. statistics calculation to TorrentDownloadEngine.
  13018. * src/TorrentConsoleDownloadEngine.cc
  13019. (sendStatistics): Renamed from printStatistics.
  13020. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13021. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13022. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13023. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13024. calculation.
  13025. (sendStatistics): New function as pure virtual function.
  13026. (getUploadSpeed): New function.
  13027. * src/TorrentDownloadEngine.cc
  13028. (initStatistics): New function.
  13029. (calculateSpeed): New function.
  13030. (calculateStatistics): New function.
  13031. * src/SendMessageQueue.h
  13032. (uploadLength): New variable.
  13033. (send): Added an argument.
  13034. (setUploadLimit): New function.
  13035. (getUploadLimit): New function.
  13036. * src/SendMessageQueue.cc
  13037. (send): Added upload speed limiter.
  13038. * src/prefs.h
  13039. (PREF_UPLOAD_LIMIT): New definition.
  13040. * src/PeerInteractionCommand.cc
  13041. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13042. * src/main.cc
  13043. (main): Added --upload-limit option
  13044. For bug fixes:
  13045. * src/main.cc
  13046. (showUsage): Corrected --listen-port help
  13047. Other changes:
  13048. * src/TorrentMan.cc
  13049. (getPeer): Return nullPeer if connection is grather than
  13050. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13051. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13052. To add some useful information to the exception message:
  13053. * src/SocketCore.cc : Updated messages.
  13054. * src/SegmentMan.cc :
  13055. * src/TorrentMan.cc : Updated messages.
  13056. * src/MultiDiskWriter.cc : Updated messages.
  13057. * src/Util.cc : Updated messages.
  13058. * src/AbstractDiskWriter.cc : Updated messages.
  13059. * src/PreAllocationDiskWriter.cc : Updated messages.
  13060. * src/message.cc : Added new messages. Updated some messages.
  13061. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13062. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13063. Updated threshold from 30 to 15.
  13064. * src/AbstractDiskWriter.h (filename): New variable.
  13065. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13066. (createFile): Assigned filename.
  13067. * src/main.cc: Updated the help message for http-auth-scheme.
  13068. * Release 0.4.0
  13069. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. To add TrackerUpdateCommand with which replaces
  13071. CompactTrackerResponseProcessor:
  13072. * src/TrackerWatcherCommand.h (req): Removed.
  13073. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13074. if the number of peer connections are less than 30.
  13075. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13076. * src/SegmentMan.h (diskWriter): New function.
  13077. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13078. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13079. (main): Use TrackerUpdateCommand.
  13080. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13081. (req): New variable.
  13082. (setTrackerResponseProcessor): Removed.
  13083. (getTrackerResponseProcessor): Removed.
  13084. (processTrackerResponse): Removed.
  13085. * src/DownloadEngine.h (diskWriter): Removed.
  13086. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13087. to torrentMan->processTrackerResponse().
  13088. To add Util::expandBuffer:
  13089. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13090. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13091. * src/Util.h (expandBuffer): New function.
  13092. To fix the bug that causes segmentation fault when "-l ." is specified
  13093. in command-line option:
  13094. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13095. (openFile): New function.
  13096. (closeFile): New function.
  13097. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13098. (~SimpleLogger): Call closeFile();
  13099. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13100. * src/main.cc (main): Added a check to see logger is configured
  13101. properly.
  13102. To enable HTTP authentication without specifying "--http-auth-scheme"
  13103. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13104. * src/HttpConnection.cc (createRequest): Send Authorization header
  13105. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13106. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13107. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13108. * src/Peer.cc (shouldChoke): Updated algorithm.
  13109. * src/message.h (EX_AUTH_FAILED): New definition.
  13110. (EX_FILE_OPEN): New definition.
  13111. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13112. if status == 401.
  13113. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13114. if req->isTorrent == true.
  13115. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13116. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13117. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13118. (createFile): Updated message.
  13119. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13120. To add a readout of estimated remaining time to normal HTTP/FTP
  13121. downloads:
  13122. * src/ConsoleDownloadEngine.h (startup): New variable.
  13123. (startupLength): New variable.
  13124. (isStartupLengthSet): New variable.
  13125. (avgSpeed): New variable.
  13126. (eta): New variable.
  13127. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13128. estimated remaining time.
  13129. (initStatistics): Initialized newly added variables.
  13130. (calculateStatistics): Calculate average speed and estimated remaining
  13131. time.
  13132. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13133. * src/TrackerDownloadCommand.h: Removed.
  13134. * src/TrackerDownloadCommand.cc: Removed.
  13135. * src/TrackerInitCommand.h: Removed.
  13136. * src/TrackerInitCommand.cc: Removed.
  13137. * src/TrackerUpdateCommand.h: Removed.
  13138. * src/TrackerUpdateCommand.cc: Removed.
  13139. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13140. url written in TrackerInitCommand was moved here. Do not create
  13141. tracker request command if torrentMan->trackers != 0.
  13142. * src/CompactTrackerResponseProcessor.h: New class.
  13143. * src/CompactTrackerResponseProcessor.cc: New class.
  13144. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13145. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13146. Decoupled TorrentDownloadEngine from this.
  13147. * src/SegmentMan.h (init): New function.
  13148. * src/SegmentMan.cc (init): New function.
  13149. * src/TorrentMan.h (responseProcessor): New variable.
  13150. (trackers): New variable.
  13151. (setTrackerResponseProcessor): New function.
  13152. (getTrackerResponseProcessor): New function.
  13153. (processTrackerResponse): New function.
  13154. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13155. (processTrackerResponse): New function.
  13156. * src/main.cc (main): Use ByteArrayDiskWriter and
  13157. CompactTrackerResponseProcessor.
  13158. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13159. processTrackerResponse().
  13160. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13161. readout.
  13162. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13163. which indicates download has completed.
  13164. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13165. (closeFile): fd >= 0, not fd > 0
  13166. * src/main.cc (main): Added short cut for show-files.
  13167. Added short cut for torrent-file.
  13168. Added new command-line option listen-port.
  13169. Updated i18n messages.
  13170. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13171. To add LogFactory which creates singleton logger:
  13172. * src/LogFactory.h: New class.
  13173. * src/LogFactory.cc: New class.
  13174. * src/Command.h (logger): New variable.
  13175. (Constructor): Use LogFactory.
  13176. * src/AbstractCommand.cc: Use Command::logger
  13177. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13178. Use LogFactory.
  13179. * src/SegmentSplitter.h : Made logger protected.
  13180. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13181. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13182. * src/DownloadEngine.h : Made logger protected.
  13183. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13184. * src/PeerInteractionCommand.cc : Use Command::logger.
  13185. * src/HttpResponseCommand.cc : Use Command::logger.
  13186. * src/SegmentMan.h : Made logger private.
  13187. * src/TorrentMan.h : Made logger private.
  13188. * src/TorrentMan.cc : Use LogFactory.
  13189. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13190. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13191. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13192. Use LogFactory.
  13193. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13194. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13195. Use LogFactory.
  13196. * src/DownloadCommand.cc : Use Command::logger.
  13197. * src/PeerAbstractCommand.cc : Use Command::logger.
  13198. * src/PeerListenCommand.cc : Use Command::logger.
  13199. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13200. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13201. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13202. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13203. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13204. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13205. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13206. Use LogFactory.
  13207. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13208. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13209. Use LogFactory.
  13210. * src/main.cc (main): Use LogFactory.
  13211. * src/DiskAdaptor.h (logger): New variable.
  13212. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13213. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13214. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13215. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13216. parameter to a tracker request.
  13217. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13218. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13219. * src/main.cc (setSignalHander): New function.
  13220. (main): Added a handler for SIGTERM.
  13221. (handler): Updated message.
  13222. (torrentHandler): Updated message.
  13223. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13224. * src/TorrentConsoleDownloadEngine.cc
  13225. (onPartialDownloadingCompletes): Renamed as
  13226. onSelectiveDownloadingCompletes.
  13227. (onSelectiveDownloadingCompletes): Updated message.
  13228. To add DiskAdaptor which abstract DiskWriter family:
  13229. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13230. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13231. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13232. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13233. MultiDiskAdaptor.h.
  13234. (readFileEntry): Changed its arguments.
  13235. (setup): setupDiskWriter is merged into this function.
  13236. (setupDiskWriter): Removed.
  13237. (setFileFilter): New function.
  13238. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13239. made in readFileEntry.
  13240. (getFilePath): Removed.
  13241. (getTempFilePath): Removed.
  13242. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13243. (fixFilename): Removed.
  13244. (copySingleFile): Removed.
  13245. (splitMultiFile): Removed.
  13246. (deleteTempFile): Removed.
  13247. (setFileEntriesToDownload): Removed.
  13248. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13249. (isSelectiveDownloadingMode): New function.
  13250. (setAllMultiFileRequestedState): Removed.
  13251. (finishPartialDownloadingMode): Renamed as
  13252. finishSelectiveDownloadingMode.
  13253. (finishSelectiveDownloadingMode): New function.
  13254. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13255. (getSelectedTotalLength): New function.
  13256. (onDownloadComplete): Use diskAdaptor.
  13257. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13258. (Range): Removed.
  13259. (setMultiFileEntries): Renamed as setFileEntries.
  13260. (setFileEntries): New function.
  13261. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13262. (pieceLength): New variable.
  13263. * src/main.cc (printDownloadCompeleteMessage): New function.
  13264. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13265. (main): Renamed torrent-show-files to show-files.
  13266. Rewritten file contents listing.
  13267. * src/TorrentMan.h (FileEntry): Removed.
  13268. (multiFileTopDir): Removed.
  13269. (multiFileEntries): Removed.
  13270. (diskWriter): Removed.
  13271. (diskAdaptor): New variable.
  13272. * src/DefaultDiskWriter.h (totalLength): New variable.
  13273. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13274. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13275. diskWriter.
  13276. * src/TorrentConsoleDownloadEngine.h
  13277. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13278. (partialTotalLength): Renamed as selectedTotalLength.
  13279. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13280. openExistingFile, otherwise call initAndOpenFile.
  13281. (closeFile): fd > 0, not fd != 0.
  13282. * src/DirectDiskAdaptor.h: New class.
  13283. * src/DirectDiskAdaptor.cc: New class.
  13284. * src/MultiDiskAdaptor.h: New class.
  13285. * src/MultiDiskAdaptor.cc: New class.
  13286. * src/CopyDiskAdaptor.h: New class.
  13287. * src/CopyDiskAdaptor.cc: New class.
  13288. * src/DiskAdaptor.h: New class.
  13289. * src/DiskAdaptor.cc: New class.
  13290. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13291. (PREF_SHOW_FILES): New definition.
  13292. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13293. To add the ability to download multi torrent into respective files
  13294. directly:
  13295. * src/DiskWriter.h (openFile): New function.
  13296. (seek): Removed.
  13297. * src/MultiDiskWriter.h: New class.
  13298. * src/MultiDiskWriter.cc: New class.
  13299. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13300. protected.
  13301. (openFile): New function.
  13302. * src/AbstractDiskWriter.cc (openFile): New function.
  13303. * src/prefs.h (V_FALSE): New definition.
  13304. (PREF_DIRECT_FILE_MAPPING): New definition.
  13305. * src/TorrentMan.h (setupDiskWriter): New function.
  13306. (setAllMultiFileRequestedState): New function.
  13307. (onDownloadComplete): New function.
  13308. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13309. (setupDiskWriter): New function.
  13310. (getFilePath): Updated.
  13311. (getTempFilePath): Updated.
  13312. (getSegmentFilePath): Updated.
  13313. (fixFilename): Updated.
  13314. (deleteTempFile): Updated.
  13315. (setAllMultiFileRequestedState): New function.
  13316. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13317. (finishPartialDownloadingMode): Reset requested flags.
  13318. (onDownloadComplete): New function.
  13319. * src/main.cc: Added --direct-file-mapping option.
  13320. Use TorrentMan::setupDiskWriter().
  13321. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13322. onDownloadComplete().
  13323. To fix ETA bug:
  13324. * src/Util.h (difftvsec): New function.
  13325. * src/Util.cc (difftvsec): New function.
  13326. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13327. type of "elapsed" instead of long long int.
  13328. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13329. The updates of statistics takes place every 1 seconds.
  13330. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13331. (calculateSpeed): Changed its argument signature.
  13332. * src/PeerMessage.cc (toString): Fixed message.
  13333. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13334. To print ETA:
  13335. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13336. completion handling when dealing with
  13337. TorrentMan::isPartialDownloadingMode() == true.
  13338. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13339. New function.
  13340. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13341. (sessionDownloadLength): New variable.
  13342. (avgSpeed): New variable.
  13343. (eta): New variable.
  13344. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13345. new variables: eta, avgSpeed, startup.
  13346. (calculateSpeed): Calculate average speed and ETA.
  13347. (printStatistics): Added ETA.
  13348. * src/Util.h (secfmt): New function.
  13349. * src/Util.cc (secfmt): New function.
  13350. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13351. To detect "keep alive" flooding:
  13352. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13353. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13354. variable: keepAliveCount.
  13355. (detectMessageFlooding): Added "keep alive" flooding detection.
  13356. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13357. received.
  13358. To add the ability to download only specified files in multi-file
  13359. torrent:
  13360. * src/BitfieldMan.h (filterBitfield): New variable.
  13361. (filterEnabled): New variable.
  13362. (setFilterBit): New function.
  13363. (enableFilter): New function.
  13364. (disableFilter): New function.
  13365. (isFilterEnabled): New function.
  13366. (getFilteredTotalLength): New function.
  13367. (getCompletedLength): New function.
  13368. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13369. filterBitfield, filterEnabled.
  13370. (CopyConstructor): Added filterBitfield and filterEnabled.
  13371. (operator==): Added filterBitfield and filterEnabled.
  13372. (Destructor): Added filterBitfield.
  13373. (getMissingIndex): Use filterBitfield.
  13374. (getMissingUnusedIndex): Use filterBitfield.
  13375. (getFirstMissingUnusedIndex): Use filterBitfield.
  13376. (getFirstMissingUnusedIndex): Use filterBitfield.
  13377. (getAllMissingIndexes): Use filterBitfield.
  13378. (countMissingBlock): Use filterBitfield.
  13379. (countBlock): Use filterBitfield.
  13380. (setBitInternal): Added new argument on.
  13381. (setUseBit): Use setBitInternal.
  13382. (unsetUseBit): Use setBitInternal.
  13383. (setBit): Use setBitInternal.
  13384. (unsetBit): Use setBitInternal.
  13385. (isAllBitSet): Use filterBitfield.
  13386. (setFilterBit): New function.
  13387. (addFilter): New function.
  13388. (enableFilter): New function.
  13389. (disableFilter): New function.
  13390. (clearFilter): New function.
  13391. (isFilterEnabled): New function.
  13392. (getFilteredTotalLength): New function.
  13393. (getCompletedLength): New function.
  13394. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13395. Initalized newly added variables.
  13396. [FileEntry](offset): New variable.
  13397. [FileEntry](extracted): New variable.
  13398. [FileEntry](requested): New variable.
  13399. (readFileEntry): New function.
  13400. (option): New variable.
  13401. (splitMultiFile): Removed const qualifier.
  13402. (fixFilename): Removed const qualifier.
  13403. (readFileEntryFromMetaInfoFile): New function.
  13404. (finishPartialDownloadingMode): New function.
  13405. (isPartialDownloadingMode): New function.
  13406. (setFileEntriesToDownload): New function.
  13407. (getCompletedLength): New function.
  13408. (getPartialTotalLength): New function.
  13409. * src/TorrentMan.cc (readFileEntry): New function.
  13410. (setup): Use readFileEntry. If no-preallocation option is specified,
  13411. use DefaultDiskWriter.
  13412. (readFileEntryFromMetaInfoFile): New function.
  13413. (fixFilename): Removed const qualifier.
  13414. (splitMultiFile): Removed const qualifier.
  13415. (setFileEntriesToDownload): New function.
  13416. (isPartialDownloadingMode): New function.
  13417. (finishPartialDownloadingMode): New function.
  13418. (getCompletedLength): New function.
  13419. (getPartialTotalLength): New function.
  13420. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13421. New variable.
  13422. (partialTotalLength): New variable.
  13423. (downloadLength): New variable.
  13424. (totalLength): New variable.
  13425. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13426. Added log.
  13427. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13428. partialTotalLength, downloadLength, totalLength.
  13429. (calculate): Calculate downloadLength and totalLength.
  13430. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13431. * src/main.cc (addCommand): Changed argument signature.
  13432. (main): Added new variable: args. Added new option "torrent-show-files"
  13433. "no-preallocation". Usage is not updated yet.
  13434. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13435. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13436. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. Attempt to add the ability to listing file entries in a .torrent file.
  13438. This feature is not yet complete.
  13439. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13440. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13441. (getName): New function.
  13442. * src/TorrentMan.h (getMultiFileEntries): New function.
  13443. (getName): New function.
  13444. * src/main.cc (main): Use above 2 funtion.
  13445. * Release 0.3.2
  13446. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13447. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13448. (detectMessageFlooding): Updated threshold value.
  13449. (checkLongTimePeerChoking): Updated timeout value.
  13450. (getNewPieceAndSendInterest): Added debug log.
  13451. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13452. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13453. (getPeer): Updated.
  13454. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13455. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13456. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13457. is localhost.
  13458. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13459. * src/PendingMessage.cc (processMessage): Not to send piece message
  13460. if peer is not interested in the pieces localhost has.
  13461. * src/Peer.cc (shouldChoke): Updated.
  13462. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13463. * src/Util.cc (isPowerOf): New function.
  13464. * src/Util.h (isPowerOf): New function.
  13465. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13466. whether or not it is power of 2.
  13467. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13468. Added new class SendMessageQueue that includes PendingMessages and
  13469. RequestSlotMan.
  13470. * src/SendMessageQueue.h: New class.
  13471. * src/SendMessageQueue.cc: New class.
  13472. * src/PendingMessage.h: Added new member variable blockIndex and its
  13473. accessors.
  13474. (createRequestMessage): Updated.
  13475. * src/PendingMessage.cc (createRequestMessage): Updated.
  13476. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13477. SendMessageQueue.
  13478. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13479. (receiveMessage): Updated with SendMessageQueue.
  13480. (deletePendingPieceMessage): Removed.
  13481. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13482. (sendInterest): Updated with SendMessageQueue.
  13483. (createRequestPendingMessage): Updated with SendMessageQueue.
  13484. (sendMessages): Updated with SendMessageQueue.
  13485. (onAbort): Updated with SendMessageQueue.
  13486. (keepAlive): Updated with SendMessageQueue.
  13487. (beforeSocketCheck): Updated SendMessageQueue.
  13488. * src/PeerInteractionCommand (sendMessages): Shuffle
  13489. missingBLockIndexes before using it.
  13490. Added its own timeout for peer connection.
  13491. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13492. setter.
  13493. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13494. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13495. Added setTimeout() call.
  13496. (executeInternal): Added setTimeout() call.
  13497. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13498. Added timeout.
  13499. (isTimeoutDetected): Updated.
  13500. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13501. option.
  13502. Added *simple* message flooding checker.
  13503. * src/PeerInteractionCommand.cc (executeInternal):
  13504. Added detectMessageFlooding() call.
  13505. (detectMessageFlooding): New function.
  13506. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13507. (beforeSocketCheck): Added detectMessageFlooding() call.
  13508. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13509. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13510. Removed deletePendingPieceMessage(), getRequestSlot(),
  13511. deleteRequestSlot(), deleteAllRequestSlot().
  13512. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13513. Added checkLongTimePeerChoking() call.
  13514. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13515. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13516. if duplicate == false.
  13517. The parameter "uploaded" and "downloaded" in the tracker request are
  13518. the size since the client sent the "started" event to the tracker.
  13519. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13520. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13521. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13522. getSessionDownloadedSize(), getSessionUploadedSize().
  13523. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13524. getSessionUploadedSize() instead of getDownloadedSize(),
  13525. getUploadedSize().
  13526. * src/PendingMessage.cc (processMessage): Do not send request message
  13527. if the peer is choking the client.
  13528. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13529. less than interval.
  13530. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. * configure.in: Added gnutls support. Added several CPP macros.
  13532. * m4/openssl.m4: Added.
  13533. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13534. readData(), peekData(). Added gnutls support.
  13535. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13536. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13537. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13538. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13539. Instead, added a check for whether setup method has executed
  13540. successfully.
  13541. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13542. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13543. * src/Makefile.am: Updated.
  13544. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13545. using whether OpenSSL or gcrypt, depending on the result of configure
  13546. script.
  13547. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13548. messageDigest.h.
  13549. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13550. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13551. Fixed memory leak.
  13552. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13553. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13554. Removed instantiation of TrackerInitCommand. Instead,
  13555. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13556. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13557. ENABLE_SSL.
  13558. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13559. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13560. If a piece is already acquired by another command, delete the request
  13561. slots for the piece.
  13562. * src/TrackerUpdateCommand.cc (execute):
  13563. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13564. Added a check whether peer list is null.
  13565. Fixed the bug that causes sending completed event to the tracker
  13566. several times.
  13567. * src/TrackerInitCommand.cc (execute):
  13568. Fixed the bug that causes sending completed event to the tracker
  13569. several times.
  13570. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13571. by using messageDigest.h.
  13572. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13573. * PeerConnection.cc: Replaced log message "keep-alive" with
  13574. "keep alive".
  13575. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13576. localhost long time.
  13577. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13578. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13579. at most 100 failure entry from the list. If with duplicate = false,
  13580. MAX_PEER_LIST is not checked.
  13581. * PeerListenCommand.cc: Fixed the argument order of log message.
  13582. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13583. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13584. Added warn().
  13585. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13586. Implemented warn().
  13587. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13588. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13589. * Request.h: Added AFTER_COMPLETED event.
  13590. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13591. instead of downloaded size and progress(%) after download completes.
  13592. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13593. message to the peer if it is interested in what localhost has
  13594. downloaded.
  13595. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13596. destination instead of just renaming it.
  13597. * TorrentMan.cc: Added deleteTempFile().
  13598. * PeerAbstractCommand.cc: do not stop execution after download
  13599. completes. This makes localhost a seeder.
  13600. * Util.{h,cc}: Added fileCopy().
  13601. * PeerListenCommand.cc: do not stop execution after download completes.
  13602. This makes localhost a seeder.
  13603. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13604. Added TorrentMan::deleteTempFile() to torrentHandler.
  13605. Initialized the variable dir as ".".
  13606. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13607. Deleted renameSingleFile().
  13608. Added copySingleFile(), deleteTempFile().
  13609. * DownloadEngine.h: Added virtual function afterEachIteration().
  13610. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13611. in onEndOfRun() to afterEachIteration().
  13612. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13613. true.
  13614. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13615. In rangedFileCopy(), added try-catch block to properly close file
  13616. descriptors.
  13617. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13618. Added afterEachIteration(), isFilenameFixed().
  13619. * Peer.cc: Changed choking strategy.
  13620. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13621. * TrackerInitCommand.cc: Send completed event only once.
  13622. * DownloadEngine.cc: Added a call to afterEachIteration().
  13623. * TrackerUpdateCommand.cc: Do not stop execution after download
  13624. completes.
  13625. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13626. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13627. received from a tracker.
  13628. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13629. Decreased the number of failure peers to delete to 0(just comment out
  13630. the line).
  13631. * Release 0.3.1
  13632. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. * PeerInteractionCommand.cc: added a call to
  13634. TorrentMan::unadvertisePiece in Destructor.
  13635. * PeerInteractionCommand.cc: make have message sent immediately
  13636. if the size of pending message queue is zero.
  13637. * TorrentMan.cc: set the maximum size of peer list to 250.
  13638. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13639. to deque.
  13640. * Util.cc: fixed rangedFileCopy.
  13641. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13642. to Constructor. Also, moved digest cleanup to Destructor.
  13643. * MetaFileUtil.cc: fixed memory leak
  13644. * replaced std::vector with std::deque.
  13645. * AbstractCommand.cc: casted timeout value to long long int.
  13646. * ChunkedEncoding.cc: fixed memory leak.
  13647. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13648. * SleepCommand.cc: casted timeout value to long long int.
  13649. * Data.cc: fixed memory leak.
  13650. * Data.cc: fixed toLLInt().
  13651. * BitfieldMan.cc: fixed memory leak.
  13652. * TorrentMan.cc: initialized storeDir to ".".
  13653. * TorrentMan.cc: fixed memory leak.
  13654. * TorrentMan.cc: corrected file paths of splitted files.
  13655. * PeerAbstractCommand.cc: casted timeout to long long int.
  13656. * main.cc: added delete(req) and delete(te->diskWriter).
  13657. * RequestSlot.cc: casted timeout value to long long int.
  13658. * Request.cc: fixed memory leak.
  13659. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13660. have the piece.
  13661. * Peer.{h,cc}: added hasPiece(int index).
  13662. * main.cc: corrected addCommand.
  13663. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13664. * BitTorrent protocol support added.
  13665. * Release 0.3.0
  13666. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13667. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13668. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13669. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13670. decoding did not work properly.
  13671. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13672. * DownloadEngine.h: included sys/time.h
  13673. * DownloadEngine.cc: remove sys/time.h
  13674. * Makefile.am (SUBDIRS): Add intl.
  13675. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13676. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * main.cc: correct help message for --http-auth-scheme.
  13678. * main.cc: changed e-mail address for bug reports.
  13679. * ja.po: added japanese translation.
  13680. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13681. * SimpleLogger.cc: flush log file instead of stdout.
  13682. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13683. * main.cc: Fixed command-line option: max-tries
  13684. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13685. does not equal to seg.sp.
  13686. * DownloadCommand.cc: If EOF is got from the server and the total size
  13687. of file is not zero, then throw DlRetryEx.
  13688. * main.cc: Set the minium value of min-segment-size to 1024.
  13689. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13690. fails because of a regression since 0.2.0 release.
  13691. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13692. * HttpConnection.cc:
  13693. * common.h: defined the user agent name as macro
  13694. * DownloadEngine.{h, cc}:
  13695. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13696. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13697. * main.cc: Download complete/abort message is now generated by main.
  13698. * Makefile.am (SUBDIRS): Add m4.
  13699. (ACLOCAL_AMFLAGS): New variable.
  13700. (EXTRA_DIST): New variable.
  13701. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13702. * gettext: added gettext functionality
  13703. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13704. * AbstractCommand.cc:
  13705. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13706. unregister its cuid from SegmentMan.
  13707. * DownloadEngine.cc: .aria2 file was written when a downloading
  13708. failed with errors.
  13709. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13710. Added "User-Agent" header to CONNECT proxy request.
  13711. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13712. properly.
  13713. * Logger.h:
  13714. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13715. * ChunkedEncoding.cc: Added #include directive for strings.h
  13716. * Release 0.2.1
  13717. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13718. * Util.{h,cc}: added startsWith().
  13719. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13720. Util::endsWith().
  13721. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13722. * common.h: added #include directive of limit.h.
  13723. * DownloadEngine.cc: added #include directive of sys/time.h and
  13724. algorithm.
  13725. * Exception.h: added #include directive of stdio.h.
  13726. * AbstractCommand.h: added #include directive of sys/time.h.
  13727. * DownloadCommand.h: added #include directive of sys/time.h.
  13728. * *.h: added #include directive of common.h to all base classes.
  13729. subclasses' one was removed.
  13730. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13731. does not define these macros.
  13732. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13733. * Release 0.2.0
  13734. * main.cc:
  13735. * HttpInitiateConnectionCommand.{h,cc}:
  13736. * prefs.h:
  13737. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13738. We can now use GET command in http proxy.
  13739. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13740. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13741. that splits slowest segment of SegmentMan::commands vector.
  13742. This is the default split algorithm of aria2.
  13743. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13744. that splits first segment of SegmentMan::commands vector.
  13745. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13746. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13747. * Segment.h:
  13748. * SegmentMan.cc: Added speed field to Segment.h
  13749. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13750. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13751. * message.h: Change file size related %d to %lld.
  13752. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. * FtpInitiateConnectionCommand.{h,cc}:
  13754. * FtpNegotiationCommand.{h,cc}:
  13755. * FtpDownloadCommand.{h,cc}:
  13756. * FtpConnection.{h,cc}: Added FTP support
  13757. * SimpleLogger.cc: Log message now includes time information.
  13758. * main.cc: The value of --http-auth-scheme option is chagned from
  13759. 'BASIC' to 'basic'
  13760. * main.cc: Added --timeout command-line option.
  13761. * main.cc: Added --min-segment-size command-line option.
  13762. * main.cc: Added --max-retries command-line option.
  13763. * prefs.h: option string constants are now defined in prefs.h
  13764. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13765. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13766. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13767. with version 0.1.0's one.
  13768. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13769. * configure.in: Added --enable-ssl option to configure script.
  13770. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13771. cannot permit absoluteURI as Request-URI.
  13772. * HttpConnection.cc: Added Referer support.
  13773. * main.cc: Added referer command-line option.
  13774. * main.cc: Added rety-wait command-line option.
  13775. * Exception.h: Fixed formating bug in Exception::setMsg()
  13776. * SocketCore.{h,cc}:
  13777. * Socket.{h, cc}:
  13778. * Request.cc:
  13779. * InitiateConnectionCommandFactory.cc:
  13780. * HttpRequestCommand.cc: Added HTTPS support.
  13781. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13782. for SocketCore.
  13783. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13784. size is wrong
  13785. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13786. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13787. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13788. * Release 0.1.0